pay
parent
d82c8f670d
commit
f687afe2cf
|
|
@ -3,7 +3,7 @@
|
|||
<image class="pay-icon" a:else mode="widthFix" src="{{default_round_error_icon}}" />
|
||||
<text class="dis-block">{{params.msg}}</text>
|
||||
<view a:if="{{params.code == '9000'}}" class="price-box">
|
||||
<text class="sales-price">¥{{params.pay.total_amount}}</text>
|
||||
<text class="sales-price">¥{{params.total_price}}</text>
|
||||
<text class="price-unit cr-888">元</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -39,9 +39,14 @@ Page({
|
|||
msg = '网络连接出错';
|
||||
break;
|
||||
|
||||
// 支付结果未知(有可能已经支付成功),请查询商户订单列表中订单的支付状态
|
||||
case '6004':
|
||||
msg = '支付结果未知';
|
||||
break;
|
||||
|
||||
// 用户点击忘记密码导致快捷界面退出(only iOS)
|
||||
case '99' :
|
||||
msg = '支付异常错误';
|
||||
msg = '用户取消支付';
|
||||
break;
|
||||
|
||||
// 默认错误
|
||||
|
|
@ -49,11 +54,7 @@ Page({
|
|||
msg = '其它异常错误';
|
||||
}
|
||||
options['msg'] = msg;
|
||||
|
||||
// 支付成功返回的信息
|
||||
var pay = ((options.result || null) == null || options.result == 'undefined') ? {} : JSON.parse(options.result);
|
||||
options['pay'] = pay.alipay_trade_app_pay_response;
|
||||
|
||||
|
||||
// 设置信息
|
||||
this.setData({params: options});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -211,8 +211,8 @@ Page({
|
|||
url:
|
||||
"/pages/paytips/paytips?code=" +
|
||||
res.resultCode +
|
||||
"&result=" +
|
||||
res.result
|
||||
"&total_price=" +
|
||||
temp_data_list[index]['total_price']
|
||||
});
|
||||
},
|
||||
fail: res => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue