From 17646d19b0a7b5b8bcd706e006f2610403adc1f3 Mon Sep 17 00:00:00 2001 From: h30830569 <30830569@qq.com> Date: Mon, 6 Jun 2022 17:13:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E6=B7=BB=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 1 + src/components/spec-popup/spec-popup.vue | 16 +- src/pageB/lucky/index.vue | 189 +++++++++++++---------- src/pages/login/index.vue | 22 ++- src/store/modules/user.js | 10 +- src/utils/login.js | 2 +- 6 files changed, 146 insertions(+), 94 deletions(-) diff --git a/src/App.vue b/src/App.vue index cb8a3c2..24741d8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,6 +29,7 @@ export default { // #endif }, onShow: function (option) { + console.log(option); let invite_code = option.query.invite_code || strToParams(decodeURIComponent(option.query.scene)).invite_code uni.setStorageSync('INVITE_CODE',invite_code) }, diff --git a/src/components/spec-popup/spec-popup.vue b/src/components/spec-popup/spec-popup.vue index c54b3d5..294cb7b 100644 --- a/src/components/spec-popup/spec-popup.vue +++ b/src/components/spec-popup/spec-popup.vue @@ -2,7 +2,7 @@ - + {{ sku.sell_price }} 会员价:{{ sku.vip_price }} @@ -20,12 +20,12 @@ {{spce.name}} @@ -187,13 +187,19 @@ export default { if (this.isOutStock) return this.$u.toast('超出库存'); this.$emit(type, this.sku); }, + //图片预览 + previewImage(url){ + uni.previewImage({ + urls: [url], + }) + } }, }; diff --git a/src/pageB/lucky/index.vue b/src/pageB/lucky/index.vue index 5e4912d..b8c6002 100644 --- a/src/pageB/lucky/index.vue +++ b/src/pageB/lucky/index.vue @@ -1,9 +1,9 @@