优惠券相关修改更新
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<view class="time">{{item.useDetail}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="label t">每邀请{{InviteFriendsData.invitedNum}}个用户可获得</view>
|
||||
<view class="label t">每邀请{{InviteFriendsData.invitedNum||''}}个用户可获得</view>
|
||||
<view class="card" v-for="(item,index) in InviteFriendsData.rewardCoupons">
|
||||
<view class="left">
|
||||
<view class="num"><text>¥</text>{{item.discountAmount}}</view>
|
||||
@@ -38,7 +38,7 @@
|
||||
>{{item.label}}{{item.num||0}}人</view>
|
||||
</view>
|
||||
<view class="tabContent">
|
||||
<viwe class="tabContent_item" v-for="(item,index) in shareRecordData.list" :key="index">
|
||||
<view class="tabContent_item" v-for="(item,index) in shareRecordData.list" :key="index">
|
||||
<view class="top">
|
||||
<view class="name">{{item.invitedName}}</view>
|
||||
<view class="status" :style="{color: isSuccess ? '#333' : '#FF534B'}">{{
|
||||
@@ -46,7 +46,7 @@
|
||||
}}</view>
|
||||
</view>
|
||||
<view class="time">{{item.createTime}}</view>
|
||||
</viwe>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -68,7 +68,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn" v-if="shareOpenData.status == 1" @click="shareReceive">领券</view>
|
||||
<view class="btn" v-else style="background-color: #999;">领券</view>
|
||||
<view class="btn" v-else-if="shareOpenData.status == 0" style="background-color: #999;">已领完</view>
|
||||
<view class="btn" v-else style="background-color: #999;">非新用户不可领取</view>
|
||||
|
||||
|
||||
</view>
|
||||
@@ -142,6 +143,14 @@
|
||||
this.share.path = `/pagesInviteFriends/index/index?shopId=${this.shopId}&is_type=he&shareId=${this.InviteFriendsData.id}&invitedId=${uni.cache.get('userInfo').id}`
|
||||
this.share.imageUrl = res.data.shareImg
|
||||
this.shareRecord();
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: "none",
|
||||
})
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack();
|
||||
},2000)
|
||||
}
|
||||
},
|
||||
|
||||
@@ -190,6 +199,7 @@
|
||||
shopId : this.shopId,
|
||||
}
|
||||
let res = await this.api.shareReceive(params)
|
||||
console.log(res)
|
||||
if ( res.code == 0 ) {
|
||||
uni.showToast({
|
||||
title: "领取成功",
|
||||
|
||||
Reference in New Issue
Block a user