Browse Source

no message

feature/v1.1
xpz2018 5 years ago
parent
commit
2fff87a384
2 changed files with 19 additions and 15 deletions
  1. 25
      pages/process/payment/index.js
  2. 9
      pages/process/payment/index.js.rej

25
pages/process/payment/index.js

@ -137,13 +137,26 @@ Page({
}).catch(err => { }).catch(err => {
wx.hideLoading() wx.hideLoading()
this.data.requesting = false this.data.requesting = false
util.showToast(err)
console.log(err) console.log(err)
Dialog.confirm({ title: '温馨提示', message: '该客户注册成为纸通宝用户,才可以使用千鸟代付,现在去注册?' }).then(() => {
var cid = this.data.orderList[0].factoryCustomerId
wx.navigateTo({ url: '/pages/client/registe/index?id=' + cid })
}).catch(err => {
})
if(err.indexOf('用户未实名') >= 0){
Dialog.confirm({ title: '温馨提示', message: '您还没有实名认证,无法使用千鸟代付,现在去实名认证?' }).then(() => {
wx.navigateTo({ url: '/pages/home/authory/index' })
}).catch(err => {
})
} else if(err.indexOf('客户未注册') >= 0){
Dialog.confirm({ title: '温馨提示', message: '该客户注册成为纸通宝用户,才可以使用千鸟代付,现在去注册?' }).then(() => {
var cid = this.data.orderList[0].factoryCustomerId
wx.navigateTo({ url: '/pages/client/registe/index?id=' + cid })
}).catch(err => {
})
} else if(err.indexOf('没有开通代付') >= 0){
Dialog.confirm({ title: '温馨提示', message: '您还没有开通千鸟代付,现在去了解并开通?' }).then(() => {
wx.navigateTo({ url: '/pages/htmls/auths/index' })
}).catch(err => {
})
} else {
util.showToast(err)
}
}) })
}, },
paymentOrder: function(){ paymentOrder: function(){

9
pages/process/payment/index.js.rej

@ -1,9 +0,0 @@
diff a/pages/process/payment/index.js b/pages/process/payment/index.js (rejected hunks)
@@ -154,7 +154,6 @@
util.showToast('请选择要付款的订单')
return
}
- this.agentPayment(this.data.params.settleType)
Dialog.confirm({ title: '温馨提示', message: '该客户注册成为纸通宝用户,才可以使用千鸟代付,现在去注册?' }).then(() => {
var cid = this.data.orderList[0].factoryCustomerId
wx.navigateTo({ url: '/pages/client/registe/index?id=' + cid })
Loading…
Cancel
Save