diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue index 485baf3..fe20d78 100644 --- a/pages/user/User/index.vue +++ b/pages/user/User/index.vue @@ -43,7 +43,7 @@ 会员码 - + 填写地址并收下 - - 未领取礼包,将于24小时后自动 + 未领取礼包,将于24小时后自动退回 - + @@ -71,6 +72,7 @@ export default { }, data() { return { + webUrl: this.$VUE_APP_RESOURCES_URL, // 组件数据 giftNotice: '', isReceive: false, @@ -88,14 +90,8 @@ export default { deep: true } }, - onShareAppMessage() { - return { - title: '送朋友', - path: `/pkg_user/views/gift/receive?code=${this.card.code}`, - imageUrl: this.card.image - } - }, methods: { + // 分享到微信好友 toShare() { // 分享到微信好友 @@ -171,7 +167,7 @@ export default { .tip-text{ font-family: Source Han Sans SC; font-weight: 500; - font-size: 28rpx; + font-size: 26rpx; color: #fff; opacity: 0.6; line-height: 36rpx; @@ -195,9 +191,11 @@ export default { } .auto-text-color { color: #fff; - font-size: 24rpx; + font-size: 26rpx; opacity: 0.8; margin-top: 50rpx; + width: 400rpx; + text-align: center; } .share-btn{ width: fit-content; diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index 6290806..06aac5f 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -175,7 +175,7 @@ export default { computed: mapGetters(["userInfo"]), onShareAppMessage() { return { - title: '送朋友', + title: this.message || '礼笺轻启,礼藏心意', path: `/pkg_user/views/gift/receive?code=${this.giftKey}`, imageUrl: this.giftImage } diff --git a/pkg_user/views/gift/receive.vue b/pkg_user/views/gift/receive.vue index a214831..40344e0 100644 --- a/pkg_user/views/gift/receive.vue +++ b/pkg_user/views/gift/receive.vue @@ -23,6 +23,13 @@ export default { onShow() { this.giftChooseAddress = uni.getStorageSync('giftChooseAddress') || {} }, + onShareAppMessage() { + return { + title: this.giftCard.message || '礼笺轻启,礼藏心意', + path: `/pkg_user/views/gift/receive?code=${this.giftCard.code}`, + imageUrl: this.giftCard.image + } + }, methods: { getGiftCard(code) { getGiftCardDetail({ diff --git a/pkg_user/views/giftList.vue b/pkg_user/views/giftList.vue index e07e2df..8ad7c5d 100644 --- a/pkg_user/views/giftList.vue +++ b/pkg_user/views/giftList.vue @@ -206,7 +206,7 @@ export default { }, onShareAppMessage() { return { - title: '送朋友', + title: this.giftItem.message || '礼笺轻启,礼藏心意', path: `/pkg_user/views/gift/receive?code=${this.giftItem.code}`, imageUrl: this.giftItem.giftInfo[0].productInfo.image }