调整购物车样式
This commit is contained in:
@@ -75,8 +75,40 @@ Page({
|
||||
loding: false
|
||||
})
|
||||
break;
|
||||
case 'baofu':
|
||||
this.baofuPay()
|
||||
break;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 宝付微信
|
||||
*/
|
||||
baofuPay(){
|
||||
wx.login({
|
||||
success: wxCode => {
|
||||
// wx.getFuzzyLocation({
|
||||
// success: locationRes => {
|
||||
// let { latitude, longitude } = locationRes
|
||||
let { code } = wxCode;
|
||||
let data = {
|
||||
order_type : this.data.modelType,
|
||||
order_id : this.data.modelId,
|
||||
code : code,
|
||||
longitude : '171.21',
|
||||
latitude : '22.33',
|
||||
}
|
||||
wx.$api.pay.bfPay(data).then(res => {
|
||||
console.log(res)
|
||||
}).finally(() => {
|
||||
this.setData({
|
||||
loding: false
|
||||
})
|
||||
})
|
||||
// }
|
||||
// })
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 微信支付
|
||||
*/
|
||||
|
||||
@@ -31,6 +31,13 @@
|
||||
</view>
|
||||
<radio class="radio-radio" value="coin" color="#da2b54" checked="{{payType == 'coin'}}"/>
|
||||
</label>
|
||||
<label class="radio-flex" wx:if="{{can.baofu == 1}}">
|
||||
<view class="radio-text">
|
||||
<image class="radio-icon" src="/static/pay/wechat.png"></image>
|
||||
<text>微信支付(宝付)</text>
|
||||
</view>
|
||||
<radio class="radio-radio" value="baofu" color="#da2b54" checked="{{payType == 'baofu'}}"/>
|
||||
</label>
|
||||
</radio-group>
|
||||
<view class="radio-lay" wx:if="{{loding}}"></view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user