qq支付适配

feat/task1-c-wallet
devil 2020-08-10 22:16:39 +08:00
parent 9b27fd044f
commit 30c173320a
4 changed files with 2 additions and 6 deletions

View File

@ -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;
}

View File

@ -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
});

BIN
sourcecode/qq/images/default-toast-error.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -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">