From 7f315380baa505e24cbc1b464116952a039a9642 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 22 Apr 2024 16:39:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E4=BD=8D=20=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/detail/detail.vue | 60 +++++++++++++++++++++++++++++++------- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/packages/detail/detail.vue b/packages/detail/detail.vue index bb37b12..8319b02 100644 --- a/packages/detail/detail.vue +++ b/packages/detail/detail.vue @@ -21,11 +21,20 @@ X + + + + + + + 长按保存二维码 + X + + - @@ -85,7 +94,7 @@ 开始前往 - + 去预约 @@ -168,7 +177,9 @@ showVorImage: true, isfull: false, playvideo: false, - playimg: false + playimg: false, + qrCode:'', + showQrCode:false, } }, onShareAppMessage() { @@ -218,15 +229,15 @@ swierChange(e) { this.currentIndex = e.detail.current }, - toWx(isWx,appid, path) { - if (!isWx) { + toWx(info) { + if (!info.iswx) { return } - path = path ? path : '' + let path = info.path ? info.path : '' // 跳转到其他小程序 - if(appid){ + if(info.appid){ uni.navigateToMiniProgram({ - appId: appid, // 目标小程序的 AppID + appId: info.appid, // 目标小程序的 AppID path: path, // 目标小程序的页面路径 extraData: { // 需要传递的参数 @@ -241,9 +252,15 @@ } }); }else{ - uni.navigateTo({ - url: '/packages/vr/vr?link=' + path - }) + if(!info.qrcode){ + return + } + this.qrCode = info.qrcode.url + this.showQrCode = true + // uni.navigateTo({ + // url: '/packages/vr/vr?link=' + path + // }) + } }, @@ -309,6 +326,27 @@ /* display: inline-block; */ right: 0rpx; top: -25rpx // transform: translate(0,-50%); + } + .qrcode{ + width: 450rpx; + position: relative; + margin: 0 auto; + >image{ + width:400rpx;height:400rpx;margin: 0 auto;display: block; + } + >view{ + color:#fff; + text-align: center; + margin:10rpx; + font-size:32rpx; + } + .closevideo{ + z-index: 999; + color: #bc9766; + border: 1px solid #bc9766; + top: -35rpx; + right: -9rpx; + } } }