From d7900f8eb1b993de739dbdf95f9abf426763c257 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Tue, 30 Apr 2024 18:56:28 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 +- api/store.js | 5 + manifest.json | 2 +- pages/gather/gather.vue | 85 ++-- pages/gather/subnvue/concat.nvue | 12 +- pages/index/index.vue | 44 +- pages/store/applicationRecord/index.vue | 19 +- pages/store/settled/index.vue | 517 +++++++++++++----------- pages/users/login/login_copy.vue | 26 +- static/images/eye.png | Bin 0 -> 989 bytes utils/uniMP.js | 15 +- 11 files changed, 357 insertions(+), 374 deletions(-) create mode 100644 static/images/eye.png diff --git a/App.vue b/App.vue index 5f67ab3..715700f 100644 --- a/App.vue +++ b/App.vue @@ -132,7 +132,6 @@ let title = result.title let content = result.content let extras = result.extras.type - if (result.extras.type == 'ORDER_CREATE' && result.extras.mp3.length > 0) { if (result.extras.mp3[0] == '微信') this.audioTeam.push('/static/audio/wechat.MP3') if (result.extras.mp3[0] == '支付宝') this.audioTeam.push('/static/audio/pay.MP3') @@ -167,17 +166,14 @@ if (notificationEventType == 'notificationOpened') { if (result.extras.type == 2) { let data = result.extras.group_data + data.route = result.extras.route data.type = 2 uniMP.loadAppletMP(data) - } else { uni.navigateTo({ url: result.extras.route }) - } - - } }) diff --git a/api/store.js b/api/store.js index 3c892fc..5e9404a 100644 --- a/api/store.js +++ b/api/store.js @@ -28,6 +28,11 @@ export function getProductParmas(id, data) { noAuth: true }); } + +export function getUnimpInfo() { + return request.get('intention/publish'); +} + /** * 获取店铺推荐商品 * @param int id diff --git a/manifest.json b/manifest.json index 73d662c..8a90b4a 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name" : "惠农生活", "appid" : "__UNI__3A527D1", "description" : "", - "versionName" : "2.0.60", + "versionName" : "2.0.44", "versionCode" : 2037, "transformPx" : false, /* 5+App特有相关 */ diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue index de98f17..90071c6 100644 --- a/pages/gather/gather.vue +++ b/pages/gather/gather.vue @@ -302,17 +302,26 @@ }, onShow() { + let that = this // #ifdef APP-PLUS - if (Boolean(this.$store.state.app.userInfo.service?.mer_id)) { - isNewMer(this.$store.state.app.userInfo.uid, this.$store.state.app.userInfo.service?.mer_id).then(res => { - console.log('resdata', res.data) - if (res.data == 'true' && this.elInfo) { - - this.subNvue = uni.getSubNVueById('concat') - this.subNvue.show('slide-in-left', 300) - // this.openDiver() - } - }) + if (Boolean(this.userInfo.service?.mer_id)) { + isNewMer(this.userInfo.uid, this.userInfo.service?.mer_id).then( + res => { + if (res.data == 'true') { + this.initMenu(true) + setTimeout(() => { + const query = uni.createSelectorQuery().in(this); + query + .select(".gatherDiver") + .boundingClientRect((data) => { + let info = JSON.stringify(data) + that.elInfo = data + that.openDiver() + }) + .exec(); + }, 500) + } + }) } // #endif this.street = this.$store.state.storage.address.townName; @@ -335,43 +344,7 @@ beforeDestroy() {}, onReady() { // #ifdef APP-PLUS - let that = this - if (Boolean(this.$store.state.app.userInfo.service?.mer_id)) { - this.initMenu(true) - setTimeout(() => { - const query = uni.createSelectorQuery().in(this); - query - .select(".gatherDiver") - .boundingClientRect((data) => { - let info = JSON.stringify(data) - that.elInfo = data - that.openDiver() - }) - .exec(); - }, 1000) - - } - - // #endif - - - // if (uni.getStorageSync('is_new_user')) { - // let that = this - // setTimeout(() => { - // const query = uni.createSelectorQuery().in(this); - // query - // .select(".gatherDiver") - // .boundingClientRect((data) => { - // let info = JSON.stringify(data) - // that.elInfo = data - // // #ifdef APP-PLUS - // that.openDiver() - // // #endif - // }) - // .exec(); - // }, 1000) - // } }, // #ifdef APP-PLUS onPageScroll(e) { @@ -393,6 +366,7 @@ }, methods: { openDiver() { + console.log("open") this.subNVue.show('zoom-out', 300) uni.$emit('diverGatherEmit', this.elInfo); }, @@ -500,12 +474,14 @@ if (list.find(t => t.name == item.name)?.name != item.name) all.push(item); else now.push(item) }) - // if() - if (flag && !now.length) now[0] = all[0]; - // console.log(all, now) - + console.log(flag) + console.log(now.length) this.AllMenuList = all; this.nowMenuList = now; + if (flag && !now.length) { + this.nowMenuList[0] = this.AllMenuList[0] + } + } catch (e) { this.nowMenuList = []; } @@ -553,14 +529,6 @@ return; // #endif // #ifdef H5 - // if (type == 2) { - // this.navigator(`/pages/moreProject/moreProject`); - // } else { - // uni.showToast({ - // icon: 'none', - // title: 'H5不支持打开小程序' - // }) - // } uni.showToast({ icon: 'none', title: 'H5不支持打开小程序' @@ -569,7 +537,6 @@ }, navigator(url, t) { - // if (this.userInfoData.is_wsxx === 0 && t != '商户设置') return Toast("请完善商户信息"); uni.navigateTo({ url: url }) diff --git a/pages/gather/subnvue/concat.nvue b/pages/gather/subnvue/concat.nvue index 52a3ce5..ebae390 100644 --- a/pages/gather/subnvue/concat.nvue +++ b/pages/gather/subnvue/concat.nvue @@ -24,6 +24,9 @@