准备加等级判断
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -55,19 +55,19 @@
|
||||
|
||||
<view wx:if="{{ttype==0||ttype==2||ttype==4||ttype==5||ttype==8||ttype==9||ttype==10||ttype==11||ttype==12||ttype==13||ttype==14}}" class='{{zftype==2?"hover":""}}' bindtap="onpay" data-id="2"><image src="../../images/weixinpay.png"/>微信支付</view>
|
||||
<view wx:if="{{ttype==0||ttype==2||ttype==4||ttype==5||ttype==8||ttype==9||ttype==10||ttype==11||ttype==12||ttype==13||ttype==14}}" class='{{zftype==0?"hover":""}}' bindtap="onpay" data-id="0"><image src="../../images/jianjinpay.png"/>余额抵扣</view>
|
||||
<view wx:if="{{ttype==0}}" class='{{zftype==1?"hover":""}}' bindtap="onpay" data-id="1"><image src="../../images/lqhb.png"/>兑换券抵扣</view>
|
||||
<!-- <view wx:if="{{ttype==0}}" class='{{zftype==1?"hover":""}}' bindtap="onpay" data-id="1"><image src="../../images/lqhb.png"/>兑换券抵扣</view> -->
|
||||
<!-- <view wx:if="{{ttype==22}}" class='{{zftype==1?"hover":""}}' bindtap="onpay" data-id="1"><image src="../../images/jianjinpay.png"/>混合支付、先积分</view>
|
||||
<view wx:if="{{ttype==1}}" class='{{zftype==5?"hover":""}}' bindtap="onpay" data-id="5"><image src="../../images/jianjinpay.png"/>流量积分</view>
|
||||
<view wx:if="{{ttype==14}}" class='{{zftype==6?"hover":""}}' bindtap="onpay" data-id="6"><image src="../../images/jianjinpay.png"/>佣金抵扣</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="pay_box" wx:if="{{zftype==1}}">
|
||||
<!-- <view class="pay_box" wx:if="{{zftype==1}}">
|
||||
<text class="pay_type" style="width:6em;">兑换券余额:</text>
|
||||
<view class="dhj_box">
|
||||
{{dhjye}}
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="bankcark_box" wx:if="{{zftype==4}}">
|
||||
<view><picker class="picker_hx" name="picker_hx" value="{{bankindex}}" data-selecthx="{{banks[bankindex].key}}" range="{{banks}}" range-key="{{'key'}}" bindchange="BankChange"> <view class="picker">
|
||||
<text wx:if='{{banks[bankindex]!=null}}'>{{banks[bankindex].key}}</text>
|
||||
|
||||
Reference in New Issue
Block a user