From 1d82db35bf6ab8afa328b7992d748ad8f0a74f5b Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Wed, 6 Sep 2023 11:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/WaterfallsFlow/WaterfallsFlowo.vue | 2 +- pages/gather/gather.vue | 24 +- pages/index/index.vue | 2041 ++++++++--------- pages/plant_release/index.vue | 29 +- pages/supply_chains/supply_chains.vue | 7 + pages/user/index.vue | 2 +- 6 files changed, 1042 insertions(+), 1063 deletions(-) diff --git a/components/WaterfallsFlow/WaterfallsFlowo.vue b/components/WaterfallsFlow/WaterfallsFlowo.vue index e8cc612..4551c22 100644 --- a/components/WaterfallsFlow/WaterfallsFlowo.vue +++ b/components/WaterfallsFlow/WaterfallsFlowo.vue @@ -101,7 +101,7 @@ export default { if(this.mark < this.allList.length){ this.waterFall() } - console.log(this.rightList,this.leftList) + } }, immediate: true, diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue index 992c8b3..da9e836 100644 --- a/pages/gather/gather.vue +++ b/pages/gather/gather.vue @@ -70,7 +70,13 @@ - + @@ -264,13 +270,14 @@ }, // 初始化菜单 initMenu() { - let all = uni.getStorageSync('gatherAllMenuList'); let now = uni.getStorageSync('gatherNowMenuList'); - if (all) { - this.AllMenuList = JSON.parse(all); - } - if (now) { + try { this.nowMenuList = JSON.parse(now); + this.AllMenuList = this.AllMenuList.filter((item) => { + return this.nowMenuList.find(t => t.name == item.name)?.name != item.name; + }) + } catch (e) { + this.nowMenuList = []; } }, clickMenu(e, data) { @@ -299,8 +306,7 @@ }, // 编辑完成 editComfirm() { - this.editFlag = false; - uni.setStorageSync('gatherAllMenuList', JSON.stringify(this.AllMenuList)); +this.editFlag = false; uni.setStorageSync('gatherNowMenuList', JSON.stringify(this.nowMenuList)); }, getUniMp(appid) { @@ -377,7 +383,7 @@ this.street = res.data.address_component.street this.$nextTick(() => { this.$bus.$emit('value-updated', this.street + ',' + - street_id); + street_id); }) diff --git a/pages/index/index.vue b/pages/index/index.vue index 4a48eb3..5a9597f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,219 +1,180 @@ \ No newline at end of file diff --git a/pages/plant_release/index.vue b/pages/plant_release/index.vue index cdcb3eb..c55ca66 100644 --- a/pages/plant_release/index.vue +++ b/pages/plant_release/index.vue @@ -1,9 +1,9 @@ @@ -252,7 +255,7 @@ // #endif }, onLoad(options) { - + // uni.hideTabBar() this.id = options.id; this.order_id = options.order_id; diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue index fa83bd5..bd6686b 100644 --- a/pages/supply_chains/supply_chains.vue +++ b/pages/supply_chains/supply_chains.vue @@ -129,6 +129,13 @@ 位置权限使用说明 用于向你推荐最近门店 + diff --git a/pages/user/index.vue b/pages/user/index.vue index f2e4aa6..c514b00 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -224,7 +224,7 @@ -