1
This commit is contained in:
@ -32,8 +32,8 @@
|
||||
<view class="recharge-method">
|
||||
<view class="wechat" @click.stop="selectOption1">
|
||||
<view class="select">
|
||||
<image class="w" src="@/static/images/wx.png" mode="widthFix" />
|
||||
<text class="x">微信</text>
|
||||
<image class="w" src="@/static/images/douy.png" mode="widthFix" />
|
||||
<text class="x">抖音</text>
|
||||
</view>
|
||||
<image v-if="selected1" class="not-selected"
|
||||
src="@/static/images/w.png" mode="widthFix" />
|
||||
@ -141,13 +141,12 @@
|
||||
walletWxpay(data).then((res) => {
|
||||
uni.hideLoading();
|
||||
// 使用获取的支付参数进行支付
|
||||
uni.requestPayment({
|
||||
provider: 'wxpay',
|
||||
timeStamp: res.data.timeStamp,
|
||||
nonceStr: res.data.nonceStr,
|
||||
package: res.data.package,
|
||||
signType: res.data.signType,
|
||||
paySign: res.data.paySign,
|
||||
tt.pay({
|
||||
orderInfo: {
|
||||
order_id:res.data.orderInfo.order_id,
|
||||
order_token:res.data.orderInfo.order_token,
|
||||
},
|
||||
service:5,
|
||||
success: (payRes) => {
|
||||
uni.showToast({
|
||||
title: '支付成功',
|
||||
|
||||
Reference in New Issue
Block a user