From c9dfa49cea33f38015c3bf1c7b00de44ff1ad2d0 Mon Sep 17 00:00:00 2001 From: liy <1492230202@qq.com> Date: Tue, 20 Aug 2024 17:38:31 +0800 Subject: [PATCH] 1 --- App.vue | 83 ++++++++++++++++++++++++++++++++++++++++++----------------------------------------- manifest.json | 3 ++- pages/declaration/declaration.vue | 2 +- 3 files changed, 45 insertions(+), 43 deletions(-) diff --git a/App.vue b/App.vue index 44573f0..6ea5a12 100644 --- a/App.vue +++ b/App.vue @@ -8,9 +8,9 @@ // uni.navigateTo({ // url: "/pages/login/login" // }) - // return + // return // } - this.gain() + this.gain() }, onShow: function() {}, onHide: function() { @@ -20,45 +20,46 @@ gain() { // const token = uni.getStorageSync("token"); // if (!token) return - this.API.getplie1({ - pageNum: 1, - pageSize: 80000 - }).then(response => { - console.log(response, '界桩') - let box1 = [] - // for (let index = 0; index < response.rows.length; index++) { - - // const newlist = response.rows[index]; - - // let c1 = '四川省眉山市仁寿县' + newlist.boundaryName - - // box1.push(c1) - // } - for (let i = 0; i < response.rows.length; i++) { - const newlist = response.rows[i]; - if (i == 0) { - let c1 = '四川省眉山市仁寿县' + newlist.boundaryName - box1.push(c1) - } else { - let ontrue = false - for (let q = 0; q < box1.length; q++) { - if (box1[q] == '四川省眉山市仁寿县' + newlist.boundaryName) { - ontrue = true - break - } - } - if (ontrue) { - - } else { - let c1 = '四川省眉山市仁寿县' + newlist.boundaryName - box1.push(c1) - } - - } - } - this.globalData.list1 = box1 - console.log('行政', this.globalData.list1) - }) + // this.API.getplie1({ + // pageNum: 1, + // pageSize: 80000 + // }).then(response => { + // console.log(response, '界桩') + // let box1 = [] + // // for (let index = 0; index < response.rows.length; index++) { + + // // const newlist = response.rows[index]; + + // // let c1 = '四川省眉山市仁寿县' + newlist.boundaryName + + // // box1.push(c1) + // // } + // for (let i = 0; i < response.rows.length; i++) { + // const newlist = response.rows[i]; + // if (i == 0) { + // let c1 = '四川省眉山市仁寿县' + newlist.boundaryName + // box1.push(c1) + // } else { + // let ontrue = false + // for (let q = 0; q < box1.length; q++) { + // if (box1[q] == '四川省眉山市仁寿县' + newlist.boundaryName) { + // ontrue = true + // break + // } + // } + // if (ontrue) { + + // } else { + // let c1 = '四川省眉山市仁寿县' + newlist.boundaryName + // box1.push(c1) + // } + + // } + // } + // this.globalData.list1 = box1 + // console.log('行政', this.globalData.list1) + // }) + this.globalData.list1 = ["四川省眉山市仁寿县慈航镇", "四川省眉山市仁寿县北斗镇", "四川省眉山市仁寿县龙正镇", "四川省眉山市仁寿县禾加镇", "四川省眉山市仁寿县宝飞镇", "四川省眉山市仁寿县文林街道", "四川省眉山市仁寿县宝马镇", "四川省眉山市仁寿县大化镇", "四川省眉山市仁寿县汪洋镇", "四川省眉山市仁寿县视高街道", "四川省眉山市仁寿县钟祥镇", "四川省眉山市仁寿县虞丞乡", "四川省眉山市仁寿县普宁街道", "四川省眉山市仁寿县富加镇", "四川省眉山市仁寿县曹家镇", "四川省眉山市仁寿县黑龙滩镇", "四川省眉山市仁寿县新店镇", "四川省眉山市仁寿县禄加镇", "四川省眉山市仁寿县始建镇", "四川省眉山市仁寿县青岗乡", "四川省眉山市仁寿县彰加镇", "四川省眉山市仁寿县文宫镇", "四川省眉山市仁寿县龙马镇", "四川省眉山市仁寿县高家镇", "四川省眉山市仁寿县板桥镇", "四川省眉山市仁寿县满井镇", "四川省眉山市仁寿县珠嘉镇", "四川省眉山市仁寿县藕塘镇", "四川省眉山市仁寿县方家镇", "四川省眉山市仁寿县谢安镇", "四川省眉山市仁寿县贵平镇", "四川省眉山市仁寿县怀仁街道"] } }, diff --git a/manifest.json b/manifest.json index d784e66..eb46b8d 100644 --- a/manifest.json +++ b/manifest.json @@ -111,7 +111,8 @@ "scope.userLocation" : { "desc" : "获取您的位置,方便使用" } - } + }, + "libVersion" : "latest" }, "mp-alipay" : { "usingComponents" : true diff --git a/pages/declaration/declaration.vue b/pages/declaration/declaration.vue index 936773f..f794eab 100644 --- a/pages/declaration/declaration.vue +++ b/pages/declaration/declaration.vue @@ -922,7 +922,7 @@ this.fileList.splice(event.index, 1) }, bindPickerChange1: function(e, e1) { - console.log('picker发送选择改变,携带值为', e, e1) + console.log('picker发送选择改变,携带值为', e, e1,this.array3[e.detail.value]) if (e1 == 1) { this.community.placeNameCategory = this.array1[e.detail.value] } else if (e1 == 2) { -- libgit2 0.21.4