Commit 4325c47ca5173a12db9edde5026fdbd1347bc025

Authored by 李宇
1 parent 4de364a7

1

1 1 <script>
  2 + import service from '@/service/service.js'
2 3 export default {
3 4 onLaunch: function() {
4 5  
5 6 let that = this
  7 + // if(!service.getUser()){
  8 + // uni.navigateTo({
  9 + // url: "/pages/login/login"
  10 + // })
  11 + // return
  12 + // }
6 13 this.gain()
7 14 },
8 15 onShow: function() {},
... ...
common/config.js
1   -let BASE_URL = 'http://zhmz.rsxmzj.cn:8536';
  1 +let BASE_URL = 'https://zhmz.rsxmzj.cn';
2 2  
3 3 // let BASE_URL='http://192.168.179.221:8536';
4 4  
... ...
pages.json
... ... @@ -2,7 +2,8 @@
2 2 "easycom": {
3 3 "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
4 4 },
5   - "pages": [{
  5 + "pages": [
  6 + {
6 7 "path": "pages/home/home",
7 8 "style": {
8 9 "navigationStyle": "custom"
... ... @@ -15,6 +16,8 @@
15 16 "enablePullDownRefresh": false
16 17 }
17 18 },
  19 +
  20 +
18 21 {
19 22 "path": "pages/funeral/funeral",
20 23 "style": {
... ...
pages/home/home.vue
... ... @@ -282,6 +282,7 @@
282 282 <script>
283 283 import md5 from "../../common/md5.js";
284 284 import BASE_URL from "@/common/config.js"
  285 + import service from '@/service/service.js'
285 286 export default {
286 287 data() {
287 288 return {
... ... @@ -327,7 +328,13 @@
327 328 }
328 329 },
329 330 onLoad() {
330   - uni.hideTabBar();
  331 + // if(!service.getUser()){
  332 + // uni.navigateTo({
  333 + // url: "/pages/login/login"
  334 + // })
  335 + // return
  336 + // }
  337 + // uni.hideTabBar();
331 338 this.getlist()
332 339 },
333 340 methods: {
... ...
pages/login/login.vue
... ... @@ -99,9 +99,9 @@
99 99 gain() {
100 100 // const token = uni.getStorageSync("token");
101 101 // if (!token) return
102   - this.API.getplie({
  102 + this.API.getplie1({
103 103 pageNum: 1,
104   - pageSize: 8000
  104 + pageSize: 80000
105 105 }).then(response => {
106 106 console.log(response, '界桩')
107 107 let box1 = []
... ...