Commit 4325c47ca5173a12db9edde5026fdbd1347bc025

Authored by 李宇
1 parent 4de364a7

1

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