准备加等级判断

This commit is contained in:
lym
2026-03-23 13:16:56 +08:00
parent 819116078b
commit 14eee2489c
12 changed files with 82 additions and 25 deletions

View File

@@ -59,7 +59,7 @@ Page( {
})
if(res.data.ttype==0){
that.setData({
cart_Total:"兑换券"+res.data.ZSubTotal
cart_Total:""+res.data.ZSubTotal
})
}
if(res.data.productlist.length>0){
@@ -199,8 +199,8 @@ Page( {
that.setData({
ttype:res.data.ttype,
cartproducts:res.data.productlist,
cart_Total:(res.data.ttype==1?"¥":"")+res.data.ZSubTotal+(res.data.ttype==0?"积分":"")
// cart_Total:(res.data.ttype==1?"¥":"")+res.data.ZSubTotal+(res.data.ttype==0?"¥":"")
cart_Total:("¥")+res.data.ZSubTotal+(res.data.ttype==0?"¥":"")
})
if(res.data.productlist.length>0){
that.setData({
@@ -252,8 +252,8 @@ Page( {
that.setData({
ttype:res.data.ttype,
cartproducts:res.data.productlist,
cart_Total:(res.data.ttype==1?"¥":"")+res.data.ZSubTotal+(res.data.ttype==0?"积分":"")
// cart_Total:(res.data.ttype==1?"¥":"")+res.data.ZSubTotal+(res.data.ttype==0?"":"")
cart_Total:("¥")+res.data.ZSubTotal+(res.data.ttype==0?"":"")
})
if(res.data.productlist.length>0){
that.setData({

View File

@@ -7,8 +7,8 @@
<view class="rname">
<view class="prodName" bindtap="gotodetail" data-id="{{item.prodid}}">{{item.prodName}} {{item.selcolor}}
</view>
<view class="je">单价:<text>{{ttype==0?"兑换券":"¥"}}{{item.prodPrice}}</text> 小计:
<text>{{ttype==0?"兑换券":"¥"}}{{item.SubTotal}}</text>
<view class="je">单价:<text>{{ttype==0?"金额":"¥"}}{{item.prodPrice}}</text> 小计:
<text>{{ttype==0?"金额":"¥"}}{{item.SubTotal}}</text>
</view>
<view class="tnum">
<view class="input_del" bindtap="updatenum" data-id="2:{{item.id}}:{{index}}"></view>