Commit c9dfa49cea33f38015c3bf1c7b00de44ff1ad2d0

Authored by 李宇
1 parent d9fd3dec

1

@@ -8,9 +8,9 @@ @@ -8,9 +8,9 @@
8 // uni.navigateTo({ 8 // uni.navigateTo({
9 // url: "/pages/login/login" 9 // url: "/pages/login/login"
10 // }) 10 // })
11 - // return 11 + // return
12 // } 12 // }
13 - this.gain() 13 + this.gain()
14 }, 14 },
15 onShow: function() {}, 15 onShow: function() {},
16 onHide: function() { 16 onHide: function() {
@@ -20,45 +20,46 @@ @@ -20,45 +20,46 @@
20 gain() { 20 gain() {
21 // const token = uni.getStorageSync("token"); 21 // const token = uni.getStorageSync("token");
22 // if (!token) return 22 // if (!token) return
23 - this.API.getplie1({  
24 - pageNum: 1,  
25 - pageSize: 80000  
26 - }).then(response => {  
27 - console.log(response, '界桩')  
28 - let box1 = []  
29 - // for (let index = 0; index < response.rows.length; index++) {  
30 -  
31 - // const newlist = response.rows[index];  
32 -  
33 - // let c1 = '四川省眉山市仁寿县' + newlist.boundaryName  
34 -  
35 - // box1.push(c1)  
36 - // }  
37 - for (let i = 0; i < response.rows.length; i++) {  
38 - const newlist = response.rows[i];  
39 - if (i == 0) {  
40 - let c1 = '四川省眉山市仁寿县' + newlist.boundaryName  
41 - box1.push(c1)  
42 - } else {  
43 - let ontrue = false  
44 - for (let q = 0; q < box1.length; q++) {  
45 - if (box1[q] == '四川省眉山市仁寿县' + newlist.boundaryName) {  
46 - ontrue = true  
47 - break  
48 - }  
49 - }  
50 - if (ontrue) {  
51 -  
52 - } else {  
53 - let c1 = '四川省眉山市仁寿县' + newlist.boundaryName  
54 - box1.push(c1)  
55 - }  
56 -  
57 - }  
58 - }  
59 - this.globalData.list1 = box1  
60 - console.log('行政', this.globalData.list1)  
61 - }) 23 + // this.API.getplie1({
  24 + // pageNum: 1,
  25 + // pageSize: 80000
  26 + // }).then(response => {
  27 + // console.log(response, '界桩')
  28 + // let box1 = []
  29 + // // for (let index = 0; index < response.rows.length; index++) {
  30 +
  31 + // // const newlist = response.rows[index];
  32 +
  33 + // // let c1 = '四川省眉山市仁寿县' + newlist.boundaryName
  34 +
  35 + // // box1.push(c1)
  36 + // // }
  37 + // for (let i = 0; i < response.rows.length; i++) {
  38 + // const newlist = response.rows[i];
  39 + // if (i == 0) {
  40 + // let c1 = '四川省眉山市仁寿县' + newlist.boundaryName
  41 + // box1.push(c1)
  42 + // } else {
  43 + // let ontrue = false
  44 + // for (let q = 0; q < box1.length; q++) {
  45 + // if (box1[q] == '四川省眉山市仁寿县' + newlist.boundaryName) {
  46 + // ontrue = true
  47 + // break
  48 + // }
  49 + // }
  50 + // if (ontrue) {
  51 +
  52 + // } else {
  53 + // let c1 = '四川省眉山市仁寿县' + newlist.boundaryName
  54 + // box1.push(c1)
  55 + // }
  56 +
  57 + // }
  58 + // }
  59 + // this.globalData.list1 = box1
  60 + // console.log('行政', this.globalData.list1)
  61 + // })
  62 + this.globalData.list1 = ["四川省眉山市仁寿县慈航镇", "四川省眉山市仁寿县北斗镇", "四川省眉山市仁寿县龙正镇", "四川省眉山市仁寿县禾加镇", "四川省眉山市仁寿县宝飞镇", "四川省眉山市仁寿县文林街道", "四川省眉山市仁寿县宝马镇", "四川省眉山市仁寿县大化镇", "四川省眉山市仁寿县汪洋镇", "四川省眉山市仁寿县视高街道", "四川省眉山市仁寿县钟祥镇", "四川省眉山市仁寿县虞丞乡", "四川省眉山市仁寿县普宁街道", "四川省眉山市仁寿县富加镇", "四川省眉山市仁寿县曹家镇", "四川省眉山市仁寿县黑龙滩镇", "四川省眉山市仁寿县新店镇", "四川省眉山市仁寿县禄加镇", "四川省眉山市仁寿县始建镇", "四川省眉山市仁寿县青岗乡", "四川省眉山市仁寿县彰加镇", "四川省眉山市仁寿县文宫镇", "四川省眉山市仁寿县龙马镇", "四川省眉山市仁寿县高家镇", "四川省眉山市仁寿县板桥镇", "四川省眉山市仁寿县满井镇", "四川省眉山市仁寿县珠嘉镇", "四川省眉山市仁寿县藕塘镇", "四川省眉山市仁寿县方家镇", "四川省眉山市仁寿县谢安镇", "四川省眉山市仁寿县贵平镇", "四川省眉山市仁寿县怀仁街道"]
62 } 63 }
63 64
64 }, 65 },
manifest.json
@@ -111,7 +111,8 @@ @@ -111,7 +111,8 @@
111 "scope.userLocation" : { 111 "scope.userLocation" : {
112 "desc" : "获取您的位置,方便使用" 112 "desc" : "获取您的位置,方便使用"
113 } 113 }
114 - } 114 + },
  115 + "libVersion" : "latest"
115 }, 116 },
116 "mp-alipay" : { 117 "mp-alipay" : {
117 "usingComponents" : true 118 "usingComponents" : true
pages/declaration/declaration.vue
@@ -922,7 +922,7 @@ @@ -922,7 +922,7 @@
922 this.fileList.splice(event.index, 1) 922 this.fileList.splice(event.index, 1)
923 }, 923 },
924 bindPickerChange1: function(e, e1) { 924 bindPickerChange1: function(e, e1) {
925 - console.log('picker发送选择改变,携带值为', e, e1) 925 + console.log('picker发送选择改变,携带值为', e, e1,this.array3[e.detail.value])
926 if (e1 == 1) { 926 if (e1 == 1) {
927 this.community.placeNameCategory = this.array1[e.detail.value] 927 this.community.placeNameCategory = this.array1[e.detail.value]
928 } else if (e1 == 2) { 928 } else if (e1 == 2) {