提交 30c17332 编写于 作者: D devil

qq支付适配

上级 9b27fd04
......@@ -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
});
......
sourcecode/qq/images/default-toast-error.png

1.9 KB | W: | H:

sourcecode/qq/images/default-toast-error.png

1.5 KB | W: | H:

sourcecode/qq/images/default-toast-error.png
sourcecode/qq/images/default-toast-error.png
sourcecode/qq/images/default-toast-error.png
sourcecode/qq/images/default-toast-error.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -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">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册