1
This commit is contained in:
@ -115,8 +115,8 @@
|
||||
<!-- 支付方式 -->
|
||||
<view class="info-cell payment-method-cell">
|
||||
<view class="payment-option" @click="selectPaymentMethod('wechat')">
|
||||
<image src="@/static/images/wx.png" mode="aspectFit" class="payment-icon" />
|
||||
<text class="payment-name">微信支付</text>
|
||||
<image src="@/static/images/douy.png" mode="aspectFit" class="payment-icon" />
|
||||
<text class="payment-name">抖音支付</text>
|
||||
<!-- 未选中状态 -->
|
||||
<image v-if="paymentMethod !== 'wechat'" src="@/static/images/w.png" mode="widthFix" class="not-selected" />
|
||||
<!-- 选中状态 -->
|
||||
@ -436,16 +436,12 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
const payData = res.data || res.info?.pay_data || {};
|
||||
|
||||
// 调用微信支付
|
||||
uni.requestPayment({
|
||||
provider: 'wxpay',
|
||||
timeStamp: payData.timeStamp,
|
||||
nonceStr: payData.nonceStr,
|
||||
package: payData.package,
|
||||
signType: payData.signType,
|
||||
paySign: payData.paySign || payData.sign,
|
||||
tt.pay({
|
||||
orderInfo: {
|
||||
order_id:res.data.orderInfo.order_id,
|
||||
order_token:res.data.orderInfo.order_token,
|
||||
},
|
||||
service:5,
|
||||
success: (payRes) => {
|
||||
console.log('支付成功:', payRes);
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user