Task:礼品赠送/送礼、分享。收礼
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
<image :src="webUrl + '/icon/icon-qrcode.png'" class="code" />
|
<image :src="webUrl + '/icon/icon-qrcode.png'" class="code" />
|
||||||
<text class="code-txt">会员码</text>
|
<text class="code-txt">会员码</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-align-center v12-mt-2">
|
<view class="v12-align-center v12-mt-2" @click="linkTo('/pkg_user/views/personalData')">
|
||||||
<image
|
<image
|
||||||
:src="webUrl + '/icon/icon-setting.png'"
|
:src="webUrl + '/icon/icon-setting.png'"
|
||||||
class="settings-img v12-mr-1"
|
class="settings-img v12-mr-1"
|
||||||
|
|||||||
@@ -29,14 +29,15 @@
|
|||||||
<view v-if="!isReceive && !card.isReceive" class="address-btn v12-white v12-primary-text" @click="setAddress">
|
<view v-if="!isReceive && !card.isReceive" class="address-btn v12-white v12-primary-text" @click="setAddress">
|
||||||
填写地址并收下
|
填写地址并收下
|
||||||
</view>
|
</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>
|
</button>
|
||||||
<view class="tips">
|
<view class="tips">
|
||||||
<view class="tip-text v12-mr-1">
|
<view class="tip-text v12-mr-1">
|
||||||
未领取礼包,将于24小时后自动
|
未领取礼包,将于24小时后自动退回
|
||||||
</view>
|
</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>
|
||||||
</view>
|
</view>
|
||||||
<giftTips ref="giftTips" :richText="giftNotice"></giftTips>
|
<giftTips ref="giftTips" :richText="giftNotice"></giftTips>
|
||||||
@@ -71,6 +72,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
// 组件数据
|
// 组件数据
|
||||||
giftNotice: '',
|
giftNotice: '',
|
||||||
isReceive: false,
|
isReceive: false,
|
||||||
@@ -88,14 +90,8 @@ export default {
|
|||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
|
||||||
return {
|
|
||||||
title: '送朋友',
|
|
||||||
path: `/pkg_user/views/gift/receive?code=${this.card.code}`,
|
|
||||||
imageUrl: this.card.image
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
// 分享到微信好友
|
// 分享到微信好友
|
||||||
toShare() {
|
toShare() {
|
||||||
// 分享到微信好友
|
// 分享到微信好友
|
||||||
@@ -171,7 +167,7 @@ export default {
|
|||||||
.tip-text{
|
.tip-text{
|
||||||
font-family: Source Han Sans SC;
|
font-family: Source Han Sans SC;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 28rpx;
|
font-size: 26rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
line-height: 36rpx;
|
line-height: 36rpx;
|
||||||
@@ -195,9 +191,11 @@ export default {
|
|||||||
}
|
}
|
||||||
.auto-text-color {
|
.auto-text-color {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 24rpx;
|
font-size: 26rpx;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
margin-top: 50rpx;
|
margin-top: 50rpx;
|
||||||
|
width: 400rpx;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
.share-btn{
|
.share-btn{
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export default {
|
|||||||
computed: mapGetters(["userInfo"]),
|
computed: mapGetters(["userInfo"]),
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
return {
|
return {
|
||||||
title: '送朋友',
|
title: this.message || '礼笺轻启,礼藏心意',
|
||||||
path: `/pkg_user/views/gift/receive?code=${this.giftKey}`,
|
path: `/pkg_user/views/gift/receive?code=${this.giftKey}`,
|
||||||
imageUrl: this.giftImage
|
imageUrl: this.giftImage
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,13 @@ export default {
|
|||||||
onShow() {
|
onShow() {
|
||||||
this.giftChooseAddress = uni.getStorageSync('giftChooseAddress') || {}
|
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: {
|
methods: {
|
||||||
getGiftCard(code) {
|
getGiftCard(code) {
|
||||||
getGiftCardDetail({
|
getGiftCardDetail({
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
return {
|
return {
|
||||||
title: '送朋友',
|
title: this.giftItem.message || '礼笺轻启,礼藏心意',
|
||||||
path: `/pkg_user/views/gift/receive?code=${this.giftItem.code}`,
|
path: `/pkg_user/views/gift/receive?code=${this.giftItem.code}`,
|
||||||
imageUrl: this.giftItem.giftInfo[0].productInfo.image
|
imageUrl: this.giftItem.giftInfo[0].productInfo.image
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user