准备加等级判断

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

@@ -37,7 +37,7 @@ Page( {
ttype:0,
IFFQPT:0,
FHEnable2:"0",
zftype:2,
zftype:0,
kjpay:0,
peitype:0,
p_peitype:0,
@@ -117,6 +117,25 @@ Page( {
app.globalData.IFRefreshsell1=0
}
}, 1000);
},
onShow: function() {
if(app.globalData.IFRefreshsell==1){
var id=app.globalData.selladdress.id
var contact=app.globalData.selladdress.contact
var tel=app.globalData.selladdress.tel
var address=app.globalData.selladdress.address
that.setData({
addressId:id,
contact:contact,
phone:tel,
province:app.globalData.selladdress.Province,
city:app.globalData.selladdress.City,
county:app.globalData.selladdress.County,
address:address
})
app.globalData.IFRefreshsell=0
that.getyunfei(app.globalData.selladdress.Province)
}
},onPullDownRefresh: function () {
//在当前页面显示导航条加载动画
wx.showNavigationBarLoading();
@@ -175,7 +194,7 @@ Page( {
distance0:(res.data.addresss.length>0?res.data.addresss[0].distance:""),
agentid:(res.data.addresss.length>0?res.data.addresss[0].addressId:0),
agenttype:(res.data.addresss.length>0?res.data.addresss[0].type:0),
zftype:(res.data.ttype==0?1:2) // 当ttype==0时默认选择兑换券抵扣
zftype:(res.data.ttype) // 当ttype==0时默认选择兑换券抵扣
})
@@ -312,7 +331,7 @@ Page( {
})
if(that.data.ttype==0){
that.setData({
cart_Total:""+app.changeTwoDecimal_f(cart_Total)
cart_Total:""+app.changeTwoDecimal_f(cart_Total)
})
}
},onaddpic1:function(e) {