优化匹配页面,新增好友优惠展示逻辑,支持通过推荐码获取折扣。调整价格计算方式,确保用户在购买时能看到实际优惠。更新页面样式以提升用户体验,并修复部分逻辑问题。
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<block wx:if="{{needPayToMatch}}">
|
||||
<text class="sphere-icon">⚡</text>
|
||||
<text class="sphere-title gold-text">购买次数</text>
|
||||
<text class="sphere-desc">¥1 = 1次匹配</text>
|
||||
<text class="sphere-desc">¥{{displayMatchPrice || matchPrice || 1}} = 1次匹配</text>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<text class="sphere-icon">👥</text>
|
||||
@@ -344,7 +344,16 @@
|
||||
<view class="unlock-info">
|
||||
<view class="info-row">
|
||||
<text class="info-label">单价</text>
|
||||
<text class="info-value text-brand">¥{{matchPrice || 1}} / 次</text>
|
||||
<view class="info-value-row" wx:if="{{hasReferralDiscount}}">
|
||||
<text class="info-original">¥{{matchPrice || 1}}</text>
|
||||
<text class="info-value text-brand">¥{{displayMatchPrice || matchPrice || 1}} / 次</text>
|
||||
<text class="info-discount">省{{userDiscount}}%</text>
|
||||
</view>
|
||||
<view class="info-value-row" wx:elif="{{showDiscountHint}}">
|
||||
<text class="info-value text-brand">¥{{matchPrice || 1}} / 次</text>
|
||||
<text class="info-discount-hint">好友链接立省{{userDiscount}}%</text>
|
||||
</view>
|
||||
<text wx:else class="info-value text-brand">¥{{matchPrice || 1}} / 次</text>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
<text class="info-label">已购买</text>
|
||||
@@ -353,7 +362,7 @@
|
||||
</view>
|
||||
|
||||
<view class="unlock-buttons">
|
||||
<view class="btn-gold" bindtap="buyMatchCount">立即购买 ¥{{matchPrice || 1}}</view>
|
||||
<view class="btn-gold" bindtap="buyMatchCount">立即购买 ¥{{hasReferralDiscount ? (displayMatchPrice || matchPrice || 1) : (matchPrice || 1)}}</view>
|
||||
<view class="btn-ghost" bindtap="closeUnlockModal">明天再来</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user