Task:礼品赠送/送礼、分享。收礼

This commit is contained in:
modendeveloper
2025-02-23 21:16:10 +08:00
parent aedc2fd768
commit 0f5f19d9a0
5 changed files with 21 additions and 16 deletions
+1 -1
View File
@@ -43,7 +43,7 @@
<image :src="webUrl + '/icon/icon-qrcode.png'" class="code" />
<text class="code-txt">会员码</text>
</view>
<view class="v12-align-center v12-mt-2">
<view class="v12-align-center v12-mt-2" @click="linkTo('/pkg_user/views/personalData')">
<image
:src="webUrl + '/icon/icon-setting.png'"
class="settings-img v12-mr-1"
+11 -13
View File
@@ -29,14 +29,15 @@
<view v-if="!isReceive && !card.isReceive" class="address-btn v12-white v12-primary-text" @click="setAddress">
填写地址并收下
</view>
<button open-type="share" class="share-btn v12-white v12-primary-text" v-if="card.canTransfer !== 0 && !isReceive">
点击转给好友
<button open-type="share" class="share-btn v12-white v12-primary-text v12-d-flex" v-if="card.canTransfer !== 0 && !isReceive">
点击转给好友
<u-icon :name="webUrl + '/icon/share.png'" ></u-icon>
</button>
<view class="tips">
<view class="tip-text v12-mr-1">
未领取礼包将于24小时后自动
未领取礼包将于24小时后自动退回
</view>
<u-icon @click="showTips" name="error-circle" color="#fff" size="28rpx"></u-icon>
<u-icon @click="showTips" name="error-circle" color="#fff" size="24rpx"></u-icon>
</view>
</view>
<giftTips ref="giftTips" :richText="giftNotice"></giftTips>
@@ -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;
+1 -1
View File
@@ -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
}
+7
View File
@@ -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({
+1 -1
View File
@@ -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
}