From bff1ced9fdb3c5cfe847c99f02e0cc371938aa07 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Sun, 28 Apr 2024 18:05:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E5=BC=95=E5=AF=BC=E9=A1=B5bu?= =?UTF-8?q?g=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/gather/gather.vue | 1471 +++++++++++++++--------------- pages/gather/subnvue/concat.nvue | 148 +++ pages/index/index.vue | 36 +- pages/index/subnvue/concat.nvue | 200 ++++ 4 files changed, 1133 insertions(+), 722 deletions(-) create mode 100644 pages/gather/subnvue/concat.nvue create mode 100644 pages/index/subnvue/concat.nvue diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue index 073ca26..312dec7 100644 --- a/pages/gather/gather.vue +++ b/pages/gather/gather.vue @@ -1,792 +1,827 @@ \ No newline at end of file diff --git a/pages/gather/subnvue/concat.nvue b/pages/gather/subnvue/concat.nvue new file mode 100644 index 0000000..2f470f4 --- /dev/null +++ b/pages/gather/subnvue/concat.nvue @@ -0,0 +1,148 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index d692330..2927ced 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -11,8 +11,8 @@ - + @changeDiy="changeDiy"> + @@ -83,7 +83,6 @@ @bindHeight="bindHeighta" @changeTab="changeTab" :isFixed="isFixed"> - @@ -260,7 +259,7 @@ - + @@ -430,6 +429,8 @@ }, data() { return { + subNvue: null, + diverFlag: true, domain: HTTP_REQUEST_URL, couponTypeMsg: { 10: '通用券', @@ -596,6 +597,11 @@ }, // #endif onLoad(options) { + + // #ifdef APP + this.subNVue = uni.getSubNVueById('concatIndex') + // #endif + let that = this this._options = options; this.diyId = options.diyId || 0; @@ -620,7 +626,22 @@ }, onShow() { let that = this; + if (this.diverFlag && uni.getStorageSync('is_new_user')) { + setTimeout(() => { + that.openDiver() + that.diverFlag = false + }, 500) + uni.$on('diverIndexSubEmit', function(data) { + console.log("收到关闭通知") + that.subNVue.hide('slide-out-right', 300) + setTimeout(() => { + uni.switchTab({ + url: '/pages/gather/gather' + }) + }, 400) + }) + } that.isIntegral = uni.getStorageSync('isIntegral') // #ifdef APP-PLUS if (that.appUpdate.openUpgrade == '1') { @@ -665,6 +686,10 @@ // #endif }, methods: { + openDiver() { + this.subNVue.show('slide-in-left', 300) + uni.$emit('diverIndexEmit', this.userInfo); + }, loadCoupon() { if (!this.showCoupon && !uni.getStorageSync('show_coupon') && uni.getStorageSync('is_new_user')) { getNewPeopleCouponLst().then(res => { @@ -1256,6 +1281,9 @@ } } }, + onReady() { + + } }; \ No newline at end of file