充值页面调整

商品折扣显示逻辑调整
增加公众号跳转修改资料逻辑
This commit is contained in:
2024-05-10 17:51:30 +08:00
parent dccdd43e3a
commit 74dba2ef29
7 changed files with 133 additions and 46 deletions

View File

@@ -23,7 +23,7 @@
<image class='goods-image' :src='item.images||defaultImage' />
<text class='goods-name'>{{ item.goodsName || '未知' }}</text>
<text class='goods-price'>¥{{ (item.price * ((userInfo.levelEntity?.discount || 100) / 100)).toFixed(2) }}
<text v-if='userInfo.levelEntity?.discount>0'
<text v-if='userInfo.levelEntity?.discount>0&&userInfo.levelEntity?.discount<100'
style='text-decoration: line-through;color: #999999;font-size: 25rpx'>¥{{ item.price }}
</text>
</text>

View File

@@ -16,7 +16,7 @@
<view class='c-flex-row'>
<text class='goods-price accent-text-color'>
¥{{ ((goodsBean?.price || 0) * ((userInfo.levelEntity?.discount || 100) / 100)).toFixed(2) }}
<text v-if='userInfo.levelEntity?.discount>0'
<text v-if='userInfo.levelEntity?.discount>0&&userInfo.levelEntity?.discount<100'
style='display:unset;text-decoration: line-through;font-size: 30rpx;color: #999999'>
¥{{ goodsBean?.price || 0 }}
</text>
@@ -57,7 +57,7 @@
<image :src='item.images||defaultImage' />
<text>{{ item.goodsName || '未知' }}</text>
<text class='goods-price'>{{ (item.price * ((userInfo.levelEntity?.discount || 100) / 100)).toFixed(2) }}
<text v-if='userInfo.levelEntity?.discount>0'
<text v-if='userInfo.levelEntity?.discount>0&&userInfo.levelEntity?.discount<100'
style='text-decoration: line-through;font-size: 25rpx;color: #999999'>{{ item.price }}
</text>
</text>

View File

@@ -14,7 +14,7 @@
<image class='goods-image' :src='item.images||defaultImage' />
<text class='goods-name'>{{ item.goodsName || '未知' }}</text>
<text class='goods-price'>¥{{ (item.price * ((userInfo.levelEntity?.discount || 100)/100)).toFixed(2) }}
<text v-if='userInfo.levelEntity?.discount>0'
<text v-if='userInfo.levelEntity?.discount>0&&userInfo.levelEntity?.discount<100'
style='text-decoration: line-through;color: #999999;font-size: 25rpx'>¥{{ item.price }}
</text>
</text>

View File

@@ -26,7 +26,7 @@
</view>
<text style='margin-top: 50rpx'>
¥{{ (item?.price * ((userInfo.levelEntity?.discount || 100) / 100)).toFixed(2) }}
<text v-if='userInfo.levelEntity?.discount>0'
<text v-if='userInfo.levelEntity?.discount>0&&userInfo.levelEntity?.discount<100'
style='text-decoration: line-through;color: #999999;font-size: 25rpx'>¥{{ item?.price }}
</text>
</text>