qq支付适配
parent
9b27fd044f
commit
30c173320a
|
|
@ -359,7 +359,7 @@ class QQ
|
|||
$data['trade_no'] = $data['transaction_id']; // 支付平台 - 订单号
|
||||
$data['buyer_user'] = isset($data['openid']) ? $data['openid'] : ''; // 支付平台 - 用户
|
||||
$data['out_trade_no'] = $data['out_trade_no']; // 本系统发起支付的 - 订单号
|
||||
$data['subject'] = isset($data['attach']) ? $data['attach'] : ''; // 本系统发起支付的 - 商品名称
|
||||
$data['subject'] = isset($data['body']) ? $data['body'] : ''; // 本系统发起支付的 - 商品名称
|
||||
$data['pay_price'] = $data['total_fee']/100; // 本系统发起支付的 - 总价
|
||||
return $data;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -544,12 +544,12 @@ App({
|
|||
if ((status || 'error') == 'success')
|
||||
{
|
||||
qq.showToast({
|
||||
icon: 'success',
|
||||
title: msg,
|
||||
duration: 3000
|
||||
});
|
||||
} else {
|
||||
qq.showToast({
|
||||
image: '/images/default-toast-error.png',
|
||||
title: msg,
|
||||
duration: 3000
|
||||
});
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.5 KiB |
|
|
@ -2,10 +2,6 @@
|
|||
<image class="pay-icon" qq:if="{{params.code == '9000'}}" mode="widthFix" src="{{default_round_success_icon}}" />
|
||||
<image class="pay-icon" qq:else mode="widthFix" src="{{default_round_error_icon}}" />
|
||||
<text class="dis-block">{{params.msg}}</text>
|
||||
<view qq:if="{{params.code == '9000'}}" class="price-box">
|
||||
<text class="sales-price">{{price_symbol}}{{params.total_price}}</text>
|
||||
<text class="price-unit cr-888">元</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="btn-box">
|
||||
|
|
|
|||
Loading…
Reference in New Issue