feat/task1-c-wallet
devil_gong 2018-11-22 18:10:45 +08:00
parent d82c8f670d
commit f687afe2cf
3 changed files with 10 additions and 9 deletions

View File

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

View File

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

View File

@ -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 => {