Browse Source

代付

feature/v2.1
xpz2018 4 years ago
parent
commit
769b5904a2
1 changed files with 2 additions and 2 deletions
  1. 4
      pages/process/payment/index.js

4
pages/process/payment/index.js

@ -176,7 +176,7 @@ Scene({
}).catch(err => { }).catch(err => {
wx.hideLoading() wx.hideLoading()
this.data.requesting = false this.data.requesting = false
if(err.code = 200101){
if((typeof err == 'object') && err.code == 200101){
Dialog.confirm({ title: '温馨提示', message: '该客户注册成为纸通宝用户,才可以使用千鸟代付,现在去注册?' }).then(() => { Dialog.confirm({ title: '温馨提示', message: '该客户注册成为纸通宝用户,才可以使用千鸟代付,现在去注册?' }).then(() => {
var cid = this.data.orderList[0].factoryCustomerId var cid = this.data.orderList[0].factoryCustomerId
wx.navigateTo({ url: '/pages/home/registe/index?id=' + cid }) wx.navigateTo({ url: '/pages/home/registe/index?id=' + cid })
@ -193,7 +193,7 @@ Scene({
wx.navigateTo({ url: '/pages/home/registe/index?id=' + cid }) wx.navigateTo({ url: '/pages/home/registe/index?id=' + cid })
}).catch(err => { }).catch(err => {
}) })
} else if(err.indexOf('没有开通代付') >= 0){
} else if(err.indexOf('没有开通') >= 0){
Dialog.confirm({ title: '温馨提示', message: '您还没有开通千鸟代付,现在去了解并开通?' }).then(() => { Dialog.confirm({ title: '温馨提示', message: '您还没有开通千鸟代付,现在去了解并开通?' }).then(() => {
wx.navigateTo({ url: '/pages/htmls/auths/index' }) wx.navigateTo({ url: '/pages/htmls/auths/index' })
}).catch(err => { }).catch(err => {

Loading…
Cancel
Save