|
|
@ -11,6 +11,7 @@ Page({ |
|
|
|
authorizationPath: '', // 授权书图片
|
|
|
|
authorizationPath: '', // 授权书图片
|
|
|
|
enterpriseName: '', //企业名称
|
|
|
|
enterpriseName: '', //企业名称
|
|
|
|
creditCode: '', //信用代码
|
|
|
|
creditCode: '', //信用代码
|
|
|
|
|
|
|
|
industryId: '', //所在行业
|
|
|
|
enterpriseScale: '请选择', //企业规模
|
|
|
|
enterpriseScale: '请选择', //企业规模
|
|
|
|
businessLicense: '', //营业执照照片
|
|
|
|
businessLicense: '', //营业执照照片
|
|
|
|
bankAccount: '', //银行账号
|
|
|
|
bankAccount: '', //银行账号
|
|
|
@ -31,6 +32,7 @@ Page({ |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
onLoad: function (options) { |
|
|
|
onLoad: function (options) { |
|
|
|
|
|
|
|
this.getResourcesCagetory() |
|
|
|
if(options.authInfo){ |
|
|
|
if(options.authInfo){ |
|
|
|
let authInfo = JSON.parse(decodeURIComponent(options.authInfo)); |
|
|
|
let authInfo = JSON.parse(decodeURIComponent(options.authInfo)); |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
@ -56,6 +58,23 @@ Page({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//获取供应、需求类型
|
|
|
|
|
|
|
|
getResourcesCagetory(){ |
|
|
|
|
|
|
|
app.http('GET','ResourcesCagetory/listResourcesCagetory').then((res)=>{ |
|
|
|
|
|
|
|
// console.log(res)
|
|
|
|
|
|
|
|
if(res.data.success){ |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
resourcesList: res.data.data |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//选择行业
|
|
|
|
|
|
|
|
toProfession(){ |
|
|
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
|
|
url: '/pages/user/profession/index', |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
checkBank(e){ |
|
|
|
checkBank(e){ |
|
|
|
// console.log(e.detail.value)
|
|
|
|
// console.log(e.detail.value)
|
|
|
|
app.http('get','EnterpriseAuthentication/getBankName',{bankAccount: e.detail.value}).then((res)=>{ |
|
|
|
app.http('get','EnterpriseAuthentication/getBankName',{bankAccount: e.detail.value}).then((res)=>{ |
|
|
@ -156,6 +175,7 @@ Page({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
submit(){ |
|
|
|
submit(){ |
|
|
|
let form = this.data.form |
|
|
|
let form = this.data.form |
|
|
|
|
|
|
|
console.log(form) |
|
|
|
if(form.isLegalPerson == 0 && form.authorizationPath == ''){ |
|
|
|
if(form.isLegalPerson == 0 && form.authorizationPath == ''){ |
|
|
|
wx.showToast({ |
|
|
|
wx.showToast({ |
|
|
|
title: '请上传授权书!', |
|
|
|
title: '请上传授权书!', |
|
|
@ -293,7 +313,7 @@ Page({ |
|
|
|
* 生命周期函数--监听页面显示 |
|
|
|
* 生命周期函数--监听页面显示 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
onShow: function () { |
|
|
|
onShow: function () { |
|
|
|
|
|
|
|
console.log('232322') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|