会员价格显示优化

This commit is contained in:
GaoHao
2025-01-16 16:23:17 +08:00
parent 32ab643a6b
commit 8ba90c8963
2 changed files with 6 additions and 6 deletions

View File

@@ -70,7 +70,7 @@
<text class="num" > X{{ item.totalNumber || ""}} </text>
</view>
</view>
<view class="price"> {{ item.memberPrice*item.totalNumber || item.salePrice*item.totalNumber || 0}} </view>
<view class="price"> {{ amountVIP.isVip == 1 ? item.memberPrice*item.totalNumber : item.salePrice*item.totalNumber }} </view>
</view>
<view class="cell-item" v-if="packFee && packFee > 0">
<view class="label">打包费</view>
@@ -285,7 +285,7 @@
this.cartLists = JSON.parse(options.cartLists);
this.listinfo.name = this.storeInfo.shopName;
this.listinfo.details = JSON.parse(options.cartLists).data;
this.listinfo.payAmount = this.cartLists.memberAmount && this.cartLists.memberAmount > 0 ? this.cartLists.memberAmount : this.cartLists.amount
this.listinfo.payAmount = this.amountVIP.isVip == 1 && this.cartLists.memberAmount && this.cartLists.memberAmount > 0 ? this.cartLists.memberAmount : this.cartLists.amount
if ( options.tableCode ) { this.tableCode = options.tableCode;}
if ( this.storeInfo.eatModel.indexOf("dine-in") != -1 ) {
this.eatModel = "dine-in";