|
@@ -16,7 +16,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="price-row">
|
|
<view class="price-row">
|
|
|
<text class="price-label">助力成功减至</text>
|
|
<text class="price-label">助力成功减至</text>
|
|
|
- <text class="price-value increased">¥ {{ bookInfo.reduceMoney || 0 }}</text>
|
|
|
|
|
|
|
+ <text class="price-value increased">¥ {{ bookInfo.price - (bookInfo.reduceMoney || 0) }}</text>
|
|
|
<image class="up-icon" src="/static/img/activity/up2.png" mode="widthFix"
|
|
<image class="up-icon" src="/static/img/activity/up2.png" mode="widthFix"
|
|
|
style="transform: rotate(180deg);">
|
|
style="transform: rotate(180deg);">
|
|
|
</image>
|
|
</image>
|
|
@@ -31,13 +31,17 @@
|
|
|
<view class="share-text">分享{{ inviteUsers.length }}位好友砍价</view>
|
|
<view class="share-text">分享{{ inviteUsers.length }}位好友砍价</view>
|
|
|
<view class="add-button">
|
|
<view class="add-button">
|
|
|
<block v-for="(item, index) in inviteUsers" :key="index">
|
|
<block v-for="(item, index) in inviteUsers" :key="index">
|
|
|
- <view class="add-item" v-if="item.imgPath">
|
|
|
|
|
- <image class="hand-icon" :src="item.imgPath" mode="widthFix"></image>
|
|
|
|
|
|
|
+ <view class="add-item" v-if="item.nickName">
|
|
|
|
|
+ <image class="hand-icon" v-if="item.imgPath" :src="item.imgPath" mode="widthFix"></image>
|
|
|
|
|
+ <image class="hand-icon" v-else
|
|
|
|
|
+ src="https://www.dtsyyy.cn/doctor_preview/doctor/2024/11/05/be047e6459944ddfaa83add45346ad09.jpg"
|
|
|
|
|
+ mode="widthFix"></image>
|
|
|
<view class="add-text">{{ formatName(item.nickName) }}</view>
|
|
<view class="add-text">{{ formatName(item.nickName) }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<button v-else open-type="share" class="hand-btn">
|
|
<button v-else open-type="share" class="hand-btn">
|
|
|
- <image open-type="share" class="hand-icon" src="/static/img/activity/invite.png" mode="widthFix"></image>
|
|
|
|
|
|
|
+ <image open-type="share" class="hand-icon" src="/static/img/activity/invite.png"
|
|
|
|
|
+ mode="widthFix"></image>
|
|
|
</button>
|
|
</button>
|
|
|
</block>
|
|
</block>
|
|
|
</view>
|
|
</view>
|
|
@@ -84,7 +88,7 @@
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.bookInfo = res.data;
|
|
this.bookInfo = res.data;
|
|
|
- let needInviteNum = res.data.maxInviteNum;
|
|
|
|
|
|
|
+ let needInviteNum = res.data.canInvite;
|
|
|
let inviteUsers = res.data.inviteUsers || [];
|
|
let inviteUsers = res.data.inviteUsers || [];
|
|
|
let length = inviteUsers.length;
|
|
let length = inviteUsers.length;
|
|
|
for (let index = 0; index < needInviteNum - length; index++) {
|
|
for (let index = 0; index < needInviteNum - length; index++) {
|
|
@@ -94,6 +98,7 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
this.inviteUsers = inviteUsers;
|
|
this.inviteUsers = inviteUsers;
|
|
|
|
|
+ console.log(this.inviteUsers, 'inviteUsers');
|
|
|
uni.setStorageSync("reduceCodeShare", res.data.reduceCode);
|
|
uni.setStorageSync("reduceCodeShare", res.data.reduceCode);
|
|
|
} else {
|
|
} else {
|
|
|
uni.$u.toast(res.msg);
|
|
uni.$u.toast(res.msg);
|
|
@@ -234,6 +239,7 @@
|
|
|
.hand-icon {
|
|
.hand-icon {
|
|
|
width: 100rpx;
|
|
width: 100rpx;
|
|
|
height: 100rpx;
|
|
height: 100rpx;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -248,6 +254,7 @@
|
|
|
|
|
|
|
|
.add-item {
|
|
.add-item {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
|
|
|
.add-text {
|
|
.add-text {
|
|
|
position: absolute;
|
|
position: absolute;
|