商品券相关优化更新

This commit is contained in:
GaoHao
2024-11-21 09:46:04 +08:00
parent 8c5e03d6c4
commit f7a2f588ef
11 changed files with 613 additions and 578 deletions

View File

@@ -40,9 +40,9 @@
<view class="tabContent">
<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'}">{{
isSuccess ? '邀请成功' : '未邀请成功'
<view class="name">{{item.invitedName||""}}</view>
<view class="status" :style="{color: item.success ? '#333' : '#FF534B'}">{{
item.success ? '邀请成功' : '未邀请成功'
}}</view>
</view>
<view class="time">{{item.createTime}}</view>
@@ -162,11 +162,11 @@
shareId : this.InviteFriendsData.id,
invitedId : uni.cache.get('userInfo').id,
shopId : this.shopId,
success : this.isSuccess,
success : this.tabAcitve == 1 ? true : false,
}
let res = await this.api.shareRecord(params)
if ( res.code == 0 ) {
this.shareRecordData = res.data;
this.shareRecordData = res.data.records;
this.tabList[0].num = res.data.isSuccess;
this.tabList[1].num = res.data.isFail;
}