|
|
|
@ -137,13 +137,26 @@ Page({ |
|
|
|
}).catch(err => { |
|
|
|
wx.hideLoading() |
|
|
|
this.data.requesting = false |
|
|
|
util.showToast(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(){ |
|
|
|
|