作者 niufei

志愿者注册表

... ... @@ -131,7 +131,14 @@ Page({
sex: parseInt(e.detail.value) + 1
})
},
//固定电话
setfixed_phone(e) {
this.setData({
fixed_phone: e.detail.value
})
},
//移动电话
setmove_phone(e) {
this.setData({
move_phone: e.detail.value
... ... @@ -527,6 +534,8 @@ Page({
err = '请输入您的身份证号!';
} else if (!AuglyTest_ID.test(that.data.card_number)) {
err = '请输入正确的身份证号!';
} else if (that.data.fixed_phone == '' || !that.data.fixed_phone) {
err = '请输入您的固定电话!';
} else if (that.data.move_phone == '') {
err = '请输入您的移动电话!';
} else if (!AuglyTest_phone.test(that.data.move_phone)) {
... ... @@ -543,8 +552,6 @@ Page({
err = '请输入正确的QQ号!';
} else if (that.data.address == '') {
err = '请选择您的服务区域';
} else if (that.data.type == '') {
err = '请选择您的志愿类别!';
} else if (that.data.front_card == '') {
err = '请上传身份证正面!';
} else if (that.data.reverse_card == '') {
... ... @@ -582,7 +589,7 @@ Page({
addr: that.data.addr,
school: that.data.school,
card_number: that.data.card_number,
fixed_phone: that.data.fixed_phone,
move_phone: that.data.move_phone,
postcode: that.data.postcode,
email: that.data.email,
... ... @@ -592,7 +599,6 @@ Page({
city: that.data.city,
county: that.data.county,
address: that.data.address,
// type: that.data.type,
record_start_time: record_start_time,
record_end_time: record_end_time,
record_unit: record_unit,
... ...
... ... @@ -19,7 +19,7 @@
</view>
<picker bindchange="bindsex" range="{{arraysex}}" disabled="{{page_type}}">
<view class='apply_item'>
<view>别</view>
<view>别</view>
<view class='apply_item_input'>
<view class='iconfont icon-xiangyou'></view>
<view class='apply_itemtxt {{arraysex[sex-1]?"color333":""}}'>{{arraysex[sex-1]?arraysex[sex-1]:'请选择'}}</view>
... ... @@ -95,19 +95,19 @@
<view class='apply_item'>
<view>身份证号</view>
<view class='apply_item_input'>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setcard_number' value='{{card_number}}' disabled="{{page_type}}"></input>
<input placeholder='未填写' placeholder-class='input_p' bindinput='setcard_number' value='{{card_number}}' disabled="{{page_type}}" maxlength="20"></input>
</view>
</view>
<!-- <view class='apply_item'>
<view class='apply_item'>
<view>固定电话</view>
<view class='apply_item_input'>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setfixed_phone' value='{{fixed_phone}}'></input>
</view>
</view> -->
</view>
<view class='apply_item'>
<view>移动电话</view>
<view class='apply_item_input'>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setmove_phone' value='{{move_phone}}' disabled="{{page_type}}"></input>
<input placeholder='未填写' type='number' placeholder-class='input_p' bindinput='setmove_phone' value='{{move_phone}}' disabled="{{page_type}}" maxlength="11"></input>
</view>
</view>
<view class='apply_item'>
... ...
... ... @@ -126,7 +126,7 @@
<view catchtap="examine" data-id="1">通过</view>
</view>
</view>
<view class="line" wx:if="{{!status}}"/>
<view class="cover_box" catchtouchmove="true" wx:if="{{cover_type}}">
<view class="show_box">
... ...
... ... @@ -248,4 +248,8 @@ page {
}
.two_btn view:last-child{
background: #41CD79;
}
.line{
width: 100%;
height: 78rpx;
}
\ No newline at end of file
... ...
... ... @@ -142,7 +142,8 @@ Page({
}
app.post(url, params, head).then((res) => {
that.setData({
datalist: res
datalist: res,
"datalist.button_status": Number(res.button_status)
})
if (that.data.status == '1'){
that.get_poster()
... ...
... ... @@ -25,14 +25,13 @@
<navigator class='foot' wx:if='{{datalist.button_status == 3}}' url="/pages/word_report/word_report?id={{id}}" hover-class="none">工作汇报</navigator>
<view class='foot' wx:if='{{datalist.button_status == 4}}' style='background: #ccc;color: #fff;'>工作汇报</view>
<view class='foot' wx:if='{{datalist.button_status == 5}}' style='background: #ccc;color: #fff;'>已结束</view>
<navigator url='/pages/result/result' class='foot' wx:if='{{datalist.button_status == 6}}'>成为志愿者</navigator>
<navigator url='/pages/result/result' class='foot' wx:if='{{datalist.button_status == 6}}' hover-class="none">成为志愿者</navigator>
</view>
<view class="btn_box">
<navigator class="btn-item" style="background: url('https://volunteer.cnpu.org/static/images/index.png') no-repeat center;background-size: cover;" url="/pages/index/index" open-type="switchTab">首页</navigator>
<view class="btn-item" style="background: url('{{datalist.button_status == 2?'/imgs/edit.png':'https://volunteer.cnpu.org/static/images/edit@.png'}}') no-repeat center;background-size: cover;" bindtap="{{datalist.button_status == 2?'edit_info':''}}" wx:if="{{1<datalist.button_status<6 && datalist.admin !=1}}">编辑</view>
<view class="btn-item" style="background: url('{{datalist.button_status == 5?'https://volunteer.cnpu.org/static/images/out@.png':'https://volunteer.cnpu.org/static/images/out.png'}}') no-repeat center;background-size: cover;" wx:if="{{2<datalist.button_status<6 && datalist.admin !=1}}" bindtap="change_cover" data-id="1">退出</view>
<view class="btn-item" style="background: url('{{datalist.button_status == 2?'/imgs/edit.png':'https://volunteer.cnpu.org/static/images/edit@.png'}}') no-repeat center;background-size: cover;" bindtap="{{datalist.button_status == 2?'edit_info':''}}" wx:if="{{1< datalist.button_status && datalist.button_status<6 && datalist.admin !=1}}">编辑</view>
<view class="btn-item" style="background: url('{{datalist.button_status == 5?'https://volunteer.cnpu.org/static/images/out@.png':'https://volunteer.cnpu.org/static/images/out.png'}}') no-repeat center;background-size: cover;" wx:if="{{2<datalist.button_status && datalist.button_status<6 && datalist.admin !=1}}" bindtap="change_cover" data-id="1">退出</view>
<view class="btn-item" style="background: url('https://volunteer.cnpu.org/static/images/share.png') no-repeat center;background-size: cover;" bindtap="change_cover" data-id="2">分享</view>
</view>
... ...