Browse Source

修改支付

master
zhengshuiqi 4 years ago
parent
commit
db473072bf
  1. 3
      common/common.scss
  2. 8
      pages/account/myOrders.vue
  3. 2
      pages/order/confirmation.vue
  4. 4
      pages/order/details.vue

3
common/common.scss

@ -1167,4 +1167,7 @@
}
}
}
}
.uni-page-refresh {
background: #000 !important;
}

8
pages/account/myOrders.vue

@ -678,7 +678,7 @@
})
}
})
} else if (this.pay_index == 1) {
} else if (this.pay_index == 0) {
let data = {
_action: 'payorder',
order_id: this.payQuery.order_id,
@ -687,7 +687,7 @@
}
defaultRequest2(data).then(res => {
console.info(res, '支付')
if (res.error == 1) {
if (res.error == 0) {
let url = res.data.prepay_data.checkoutnow_url
console.log(url)
// plus.runtime.openURL(res.data.prepay_data.checkoutnow_url)
@ -699,9 +699,9 @@
} else {
defaultRequest2(this.payQuery).then(res => {
console.info(res)
if (res.error == 1) {
if (res.error == 0) {
//
if (res.data.need_pay_amount == 1) return
if (res.data.need_pay_amount == 0) return
uni.requestPayment({
provider: 'alipay',
orderInfo: res.data.prepay_data.order_info, //

2
pages/order/confirmation.vue

@ -443,7 +443,7 @@
defaultRequest2(data).then(res => {
////////console.info(data,'')
//////console.log(res)
if (res.error == 1) {
if (res.error == 0) {
// plus.runtime.openURL(res.data.prepay_data.checkoutnow_url)
// this.src = res.data.prepay_data.checkoutnow_url
uni.navigateTo({

4
pages/order/details.vue

@ -370,8 +370,8 @@
defaultRequest2(data).then(res => {
console.info(data)
console.log(res)
if (res.error == 1) {
if (res.data.need_pay_amount == 1) return
if (res.error == 0) {
if (res.data.need_pay_amount == 0) return
// plus.runtime.openURL(res.data.prepay_data.checkoutnow_url)
// this.src = res.data.prepay_data.checkoutnow_url
uni.navigateTo({

Loading…
Cancel
Save