修复生产环境折扣价显示错误问题
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
@click.stop='goPath(`/pages/mall/subs/goods/detail?goodsId=${item.goodsId}`)'>
|
||||
<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&&userInfo.levelEntity?.discount<100'
|
||||
<text class='goods-price'>¥{{ (item.price * userInfo.userDiscount).toFixed(2) }}
|
||||
<text v-if='userInfo.userDiscount>0&&userInfo.userDiscount<1'
|
||||
style='text-decoration: line-through;color: #999999;font-size: 25rpx'>¥{{ item.price }}
|
||||
</text>
|
||||
</text>
|
||||
@@ -55,7 +55,7 @@ import useShoppingCartStore from '@/store/modules/shoppingcart';
|
||||
import { useUserStore } from '@/store';
|
||||
|
||||
const userStore = useUserStore();
|
||||
const { userInfo, companyConfigInfo } = storeToRefs(userStore);
|
||||
const { userInfo,companyConfigInfo } = storeToRefs(userStore);
|
||||
const shoppingCartStore = useShoppingCartStore();
|
||||
const { totalCount } = storeToRefs(shoppingCartStore);
|
||||
|
||||
|
@@ -15,8 +15,8 @@
|
||||
<view class='goods-info-view c-flex-column' style='margin-right: 10rpx'>
|
||||
<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&&userInfo.levelEntity?.discount<100'
|
||||
¥{{ ((goodsBean?.price || 0) * userInfo.userDiscount).toFixed(2) }}
|
||||
<text v-if='userInfo.userDiscount>0&&userInfo.userDiscount<1'
|
||||
style='display:unset;text-decoration: line-through;font-size: 30rpx;color: #999999'>
|
||||
¥{{ goodsBean?.price || 0 }}
|
||||
</text>
|
||||
@@ -56,8 +56,8 @@
|
||||
<view class='recommend-item c-flex-column'>
|
||||
<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&&userInfo.levelEntity?.discount<100'
|
||||
<text class='goods-price'>{{ (item.price * userInfo.userDiscount).toFixed(2) }}
|
||||
<text v-if='userInfo.userDiscount>0&&userInfo.userDiscount<1'
|
||||
style='text-decoration: line-through;font-size: 25rpx;color: #999999'>{{ item.price }}
|
||||
</text>
|
||||
</text>
|
||||
|
@@ -13,8 +13,8 @@
|
||||
@click.stop='goPath(`/pages/mall/subs/goods/detail?goodsId=${item.goodsId}`)'>
|
||||
<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&&userInfo.levelEntity?.discount<100'
|
||||
<text class='goods-price'>¥{{ (item.price * userInfo.userDiscount).toFixed(2) }}
|
||||
<text v-if='userInfo.userDiscount>0&&userInfo.userDiscount<1'
|
||||
style='text-decoration: line-through;color: #999999;font-size: 25rpx'>¥{{ item.price }}
|
||||
</text>
|
||||
</text>
|
||||
|
@@ -25,8 +25,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<text style='margin-top: 50rpx'>
|
||||
¥{{ (item?.price * ((userInfo.levelEntity?.discount || 100) / 100)).toFixed(2) }}
|
||||
<text v-if='userInfo.levelEntity?.discount>0&&userInfo.levelEntity?.discount<100'
|
||||
¥{{ (item?.price * userInfo.userDiscount).toFixed(2) }}
|
||||
<text v-if='userInfo.userDiscount>0&&userInfo.userDiscount<1'
|
||||
style='text-decoration: line-through;color: #999999;font-size: 25rpx'>¥{{ item?.price }}
|
||||
</text>
|
||||
</text>
|
||||
|
Reference in New Issue
Block a user