|
|
@ -25,11 +25,11 @@ Scene({ |
|
|
orderStatus: null, |
|
|
orderStatus: null, |
|
|
params: { |
|
|
params: { |
|
|
settleType: '1', |
|
|
settleType: '1', |
|
|
ids: [], |
|
|
|
|
|
payRemark: '' |
|
|
|
|
|
|
|
|
ids: [] |
|
|
}, |
|
|
}, |
|
|
settleType: '1', |
|
|
settleType: '1', |
|
|
requesting: false |
|
|
|
|
|
|
|
|
requesting: false, |
|
|
|
|
|
editing: false |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 生命周期函数--监听页面加载 |
|
|
* 生命周期函数--监听页面加载 |
|
|
@ -153,8 +153,15 @@ Scene({ |
|
|
wx.navigateTo({ url: `/pages/process/order-info/index?id=${item.id}` }) |
|
|
wx.navigateTo({ url: `/pages/process/order-info/index?id=${item.id}` }) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
onRemark: function(e){ |
|
|
|
|
|
this.setData({editing: true }) |
|
|
|
|
|
}, |
|
|
|
|
|
onBlur: function(){ |
|
|
|
|
|
this.setData({editing: false }) |
|
|
|
|
|
}, |
|
|
bindInput: function (e) { |
|
|
bindInput: function (e) { |
|
|
this.data.params[e.target.id] = e.detail.value |
|
|
|
|
|
|
|
|
var form_data = 'params.' + e.currentTarget.id |
|
|
|
|
|
this.setData({ [form_data]: e.detail.value }) |
|
|
}, |
|
|
}, |
|
|
agentPayment: function(settleType){ |
|
|
agentPayment: function(settleType){ |
|
|
if(Number(settleType) != 1 && Number(settleType) != 2){ |
|
|
if(Number(settleType) != 1 && Number(settleType) != 2){ |
|
|
@ -176,7 +183,13 @@ Scene({ |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
|
this.data.requesting = false |
|
|
this.data.requesting = false |
|
|
if(err.indexOf('用户未实名') >= 0){ |
|
|
|
|
|
|
|
|
if(err.code = 200101){ |
|
|
|
|
|
Dialog.confirm({ title: '温馨提示', message: '该客户注册成为纸通宝用户,才可以使用千鸟代付,现在去注册?' }).then(() => { |
|
|
|
|
|
var cid = this.data.orderList[0].factoryCustomerId |
|
|
|
|
|
wx.navigateTo({ url: '/pages/home/registe/index?id=' + cid }) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
}) |
|
|
|
|
|
} else if(err.indexOf('用户未实名') >= 0){ |
|
|
Dialog.confirm({ title: '温馨提示', message: '您还没有实名认证,无法使用千鸟代付,现在去实名认证?' }).then(() => { |
|
|
Dialog.confirm({ title: '温馨提示', message: '您还没有实名认证,无法使用千鸟代付,现在去实名认证?' }).then(() => { |
|
|
wx.navigateTo({ url: '/pages/setting/authory/index' }) |
|
|
wx.navigateTo({ url: '/pages/setting/authory/index' }) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
|