Commit 3fb0f5bf4611ab6d43b0773cd4c6e1182801e555
1 parent
678d6b48aa
Exists in
master
支付问题修改
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/pages/confirmOrder/confirmOrder.vue
... | ... | @@ -379,7 +379,7 @@ export default { |
379 | 379 | uni.showLoading({ |
380 | 380 | title: '支付中', |
381 | 381 | }) |
382 | - if (this.isCart == 'true') { | |
382 | + if (this.isCart === 'true') { | |
383 | 383 | const checkedGoods = [] |
384 | 384 | const sk_id_arr = [] |
385 | 385 | this.checkedCartLst.map(item => { |
... | ... | @@ -393,10 +393,10 @@ export default { |
393 | 393 | sk_id_arr: sk_id_arr, |
394 | 394 | totalPrice: this.totalPrice, |
395 | 395 | }).then((res) => { |
396 | - this.pay(res.data) | |
396 | + this.pay(res) | |
397 | 397 | }) |
398 | 398 | } |
399 | - if (this.isCart == 'false') { | |
399 | + if (this.isCart === 'false') { | |
400 | 400 | const { sk_id_arr: skId, mp_id: mpId } = this.$store.state.order.param |
401 | 401 | store.dispatch('order/buyNow', { |
402 | 402 | pid: skId.pid, |
... | ... | @@ -408,7 +408,7 @@ export default { |
408 | 408 | liuyan: this.note, |
409 | 409 | dir: 1, |
410 | 410 | }).then((res) => { |
411 | - this.pay(res.data) | |
411 | + this.pay(res) | |
412 | 412 | }) |
413 | 413 | } |
414 | 414 | }, | ... | ... |