正式考试可自填基本信息
This commit is contained in:
parent
4f9680beda
commit
663c07276f
|
|
@ -3,4 +3,4 @@ ENV = 'production'
|
|||
|
||||
# base api
|
||||
# VUE_APP_BASE_API = '/prod-api'
|
||||
VUE_APP_BASE_API = 'https://apitest.ahctc.cn'
|
||||
VUE_APP_BASE_API = 'http://1.116.154.158:8000/api'
|
||||
|
|
|
|||
|
|
@ -13,7 +13,17 @@ Page({
|
|||
}
|
||||
},
|
||||
|
||||
idInput: function(e){
|
||||
this.data.form.ID_number = e.detail.value
|
||||
},
|
||||
|
||||
nametInput: function(e){
|
||||
this.data.form.name = e.detail.value
|
||||
},
|
||||
|
||||
companyInput: function(e){
|
||||
this.data.form.company_name = e.detail.value
|
||||
},
|
||||
deptInput: function(e){
|
||||
this.data.form.deptname = e.detail.value
|
||||
},
|
||||
|
|
@ -60,16 +70,20 @@ Page({
|
|||
*/
|
||||
onLoad: function (options) {
|
||||
wx.showLoading({
|
||||
title: '获取信息...',
|
||||
title: '获取基本信息中..',
|
||||
})
|
||||
api.request('/crm/consumer/info/','GET').then(res=>{
|
||||
wx.hideLoading()
|
||||
getApp().globalData.userinfo = res.data.userinfo
|
||||
let userinfo = res.data.userinfo
|
||||
getApp().globalData.userinfo = userinfo
|
||||
this.setData(
|
||||
{
|
||||
userinfo: res.data.userinfo,
|
||||
form:{
|
||||
deptname:res.data.userinfo.deptname
|
||||
deptname:res.data.userinfo.deptname,
|
||||
company_name:res.data.userinfo.company_name,
|
||||
ID_number: res.data.userinfo.ID_number1,
|
||||
name: res.data.userinfo.name
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -5,18 +5,25 @@
|
|||
</view>
|
||||
|
||||
<view>
|
||||
<view class="weui-cells__title">个人信息</view>
|
||||
<view class="weui-cells__title">基本信息</view>
|
||||
<view class="weui-cells weui-cells_form">
|
||||
<view class="weui-cell weui-cell_active">
|
||||
<view class="weui-cell__hd"><label class="weui-label">姓名</label></view>
|
||||
<view class="weui-cell__bd">
|
||||
{{userinfo.name}}
|
||||
<input class="weui-input" bindinput="nameinput" placeholder="填写您的姓名"
|
||||
placeholder-class="weui-input__placeholder"
|
||||
value="{{form.name}}">
|
||||
|
||||
</input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-cell weui-cell_active">
|
||||
<view class="weui-cell__hd"><label class="weui-label">身份证号</label></view>
|
||||
<view class="weui-cell__bd">
|
||||
{{userinfo.ID_number1}}
|
||||
<input class="weui-input" bindinput="idinput" placeholder="填写您的身份证号" placeholder-class="weui-input__placeholder"
|
||||
value="{{form.ID_number}}">
|
||||
|
||||
</input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-cell weui-cell_active">
|
||||
|
|
@ -24,9 +31,14 @@
|
|||
<label class="weui-label">单位</label>
|
||||
</view>
|
||||
<view class="weui-cell__bd">
|
||||
{{userinfo.company_name}}
|
||||
<input class="weui-input" placeholder="填写您的单位" placeholder-class="weui-input__placeholder"
|
||||
bindinput="companyinput" value="{{form.company_name}}">
|
||||
|
||||
</input>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="weui-cells__title">补充信息</view>
|
||||
<view class="weui-cell weui-cell_active">
|
||||
<view class="weui-cell__hd">
|
||||
<label class="weui-label">部门</label>
|
||||
|
|
|
|||
Loading…
Reference in New Issue