志愿者注册新增字段

This commit is contained in:
Renpc-kilig 2020-08-28 17:06:00 +08:00
parent 73ac796b79
commit 34403444df
4 changed files with 88 additions and 8 deletions

2
app.js
View File

@ -12,7 +12,7 @@ App({
volunteerUrl: 'https://www.wgink.ink/volunteer',
venueUrl: 'https://www.wgink.ink/venuebooking',
activityUrl: 'https://www.wgink.ink/culturalactivity',
volunteerUrl: 'https://www.wgink.ink/volunteer',
volunteerUrl: 'http://192.168.0.111:8888/volunteer',
liveUrl: 'https://www.wgink.ink/live',
liveRecordUrl: 'https://www.wgink.ink',
socialUrl: 'https://www.wgink.ink/social',

View File

@ -12,8 +12,8 @@ Page({
openExperience: 0,
tempObj: {}, // 用于临时存储字典表返回的数据
tempArray: [], // 用于临时存储字典表返回的数据
serviceType: {}, // 服务类别
serviceTypeValue: '', // 用户选择的服务类别ID
serviceType: {}, // 服务意向
serviceTypeValue: '', // 用户选择的服务意向ID
serviceIndustry: {}, // 服务领域或行业
serviceIndustryValue: '', // 用户选择的服务领域或行业ID
@ -33,7 +33,17 @@ Page({
teamAreaArray: [], // 服务区域-乡镇村
countyShowStatus: true,
areaShowStatus: true
areaShowStatus: true,
occupationIndex: 0,
occupationResult: '请选择职业',
occupation: {}, // 职业
occupationArray: [], // 职业
work: '', // 工作单位及职务
hobby: '', // 特长爱好
cv: '', // 个人简历
remark: '' // 备注
},
getToken: function() {
var self = this;
@ -206,10 +216,19 @@ Page({
&& self.data.teamArea[self.data.teamAreaIndex] != 'undefined' ?
self.data.teamArea[self.data.teamAreaIndex].dictionaryId :
'',
occupation: self.data.occupation[self.data.occupationIndex] != ''
&& self.data.occupation[self.data.occupationIndex] != null
&& self.data.occupation[self.data.occupationIndex] != 'undefined' ?
self.data.occupation[self.data.occupationIndex].dictionaryId :
'',
serviceType: self.data.serviceTypeValue,
serviceIndustry: self.data.serviceIndustryValue,
agree: self.data.isAgree,
openExperience : self.data.openExperience
openExperience : self.data.openExperience,
work: self.data.work,
hobby: self.data.hobby,
cv: self.data.cv,
remark: self.data.remark
};
var url;
var requ;
@ -341,7 +360,11 @@ Page({
if('200' == code) {
console.log(data)
self.setData({
volunteerMsg: data
volunteerMsg: data,
work: data.work,
hobby: data.hobby,
cv: data.cv,
remark: data.remark,
})
}
return resolve();
@ -380,6 +403,15 @@ Page({
tempArray: []
})
})
}).then(result => {
this.getDataFromDict('3a2a6615-a4fe-465b-b56d-a2b7ae409b9d', 2).then(result => {
self.setData({
occupation: self.data.tempObj,
occupationArray: self.data.tempArray,
tempObj: {},
tempArray: []
})
})
})
})
})

View File

@ -50,11 +50,11 @@
</view>
</view>
<view class="row" style="height: auto">
<view class="info-name">服务类别</view>
<view class="info-name">服务意向</view>
<view class="info-text" style="height: auto">
<view class="section" style="height: auto">
<checkbox-group bindchange="serviceTypeChange">
<checkbox value='{{item.dictionaryId}}' wx:for="{{serviceType}}">
<checkbox value='{{item.dictionaryId}}' wx:for="{{serviceType}}" model:value="{{serviceType}}">
<view>{{item.dictionaryName}}</view>
</checkbox>
</checkbox-group>
@ -73,6 +73,47 @@
</view>
</view>
</view>
<view class="row">
<view class="info-name">职业:</view>
<view class="info-text">
<view class="section">
<picker value="{{occupationyIndex}}" range="{{occupationArray}}">
<view class="picker">
{{occupationArray[occupationIndex]}}
</view>
</picker>
</view>
</view>
</view>
<view class="row" style="height: auto">
<view class="info-name">工作单位及职务:</view>
<view class="info-text">
<input name="work" placeholder="请输入工作单位及职务" model:value="{{work}}"></input>
</view>
</view>
<view class="row">
<view class="info-name">特长爱好:</view>
<view class="info-text">
<input name="hobby" placeholder="请输入特长爱好" model:value="{{hobby}}"></input>
</view>
</view>
<view class="row" style="height: auto">
<view class="info-name">个人简历:</view>
<view class="info-text" style="height: auto">
<textarea placeholder="请输入个人简历" model:value="{{cv}}"></textarea>
</view>
</view>
<view class="row" style="height: auto">
<view class="info-name">备注:</view>
<view class="info-text" style="height: auto">
<textarea placeholder="请输入备注" model:value="{{remark}}"></textarea>
</view>
</view>
</view>
<view class="bottom">
<view class="is-agree">

View File

@ -26,6 +26,13 @@
padding: 0 10rpx;
box-sizing: border-box;
}
.info-text textarea{
width: 100%;
height: 150rpx;
padding: 10rpx;
box-sizing: border-box;
border: 1px solid #DDD;
}
picker, .picker{
height: 55rpx;
line-height: 55rpx;