Commit fb2be1b423a787a4034ba5ff629d35c9ae975ad1
1 parent
0566cf67
ios支付回调
Showing
1 changed file
with
3 additions
and
3 deletions
src/pages/myGiftBox/myGiftBox.vue
| ... | ... | @@ -106,7 +106,7 @@ |
| 106 | 106 | position="right" |
| 107 | 107 | :style="{ height: '100vh', width: '285px' }" |
| 108 | 108 | > |
| 109 | - <div class="screen_box"> | |
| 109 | + <div :style="'padding-top: ' + ($parent.top.value + 15) + 'px'" class="screen_box"> | |
| 110 | 110 | <!-- 标题 --> |
| 111 | 111 | <div class="title">筛选订单</div > |
| 112 | 112 | <!--按钮选中筛选--> |
| ... | ... | @@ -258,7 +258,7 @@ export default { |
| 258 | 258 | // 暴露方法,由APP调用,接受参数 |
| 259 | 259 | if (this.isiPhone.value) { |
| 260 | 260 | window.appPaymentCallback = item => { |
| 261 | - this.appPaymentCallback(); | |
| 261 | + this.appPaymentCallback(item); | |
| 262 | 262 | }; |
| 263 | 263 | } else if (this.isAndroid.value) { |
| 264 | 264 | window.payFinish = item => { |
| ... | ... | @@ -822,7 +822,7 @@ export default { |
| 822 | 822 | // ios支付成功回调 |
| 823 | 823 | appPaymentCallback(item) { |
| 824 | 824 | // 取消订单 |
| 825 | - if (this.orderOperation.item.status == "0") { | |
| 825 | + if (this.orderOperation.item.status == 0 && JSON.parse(item).payResult == 0) { | |
| 826 | 826 | // status=1(已支付可分享状态) |
| 827 | 827 | this.$set(this.orderOperation.item, "status", "1"); |
| 828 | 828 | } | ... | ... |