引导页面bug修复

This commit is contained in:
zmj 2024-04-28 18:16:24 +08:00
parent faa9e290b1
commit 3f9d9af62f

@ -255,6 +255,7 @@
}, },
data() { data() {
return { return {
subNVue: null,
elInfo: '', elInfo: '',
imgUrls: [{ imgUrls: [{
img: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e2f0520240203154207556.png' img: 'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/e2f0520240203154207556.png'
@ -292,6 +293,7 @@
}, },
created() {}, created() {},
onLoad() { onLoad() {
this.subNVue = uni.getSubNVueById('concat')
let that = this let that = this
uni.$on('diverGatherSubEmit', function(data) { uni.$on('diverGatherSubEmit', function(data) {
that.clickMenu(that.nowMenuList[0]) that.clickMenu(that.nowMenuList[0])
@ -328,9 +330,7 @@
let info = JSON.stringify(data) let info = JSON.stringify(data)
that.elInfo = data that.elInfo = data
// #ifdef APP-PLUS // #ifdef APP-PLUS
setTimeout(() => { that.openDiver()
that.openDiver()
}, 500)
// #endif // #endif
}) })
.exec(); .exec();
@ -357,8 +357,7 @@
}, },
methods: { methods: {
openDiver() { openDiver() {
const subNVue = uni.getSubNVueById('concat') this.subNVue.show('zoom-out', 300)
subNVue.show('zoom-out', 300)
uni.$emit('diverGatherEmit', this.elInfo); uni.$emit('diverGatherEmit', this.elInfo);
}, },
changeSwiper(e) { changeSwiper(e) {