作者 niufei

补充

... ... @@ -131,7 +131,6 @@ Page({
if(status == 3){
params.refund_reason = that.data.word
}
console.log(params)
app.post(url, params, head).then((res) => {
wx.showToast({
title: '操作成功',
... ...
... ... @@ -208,7 +208,7 @@
</view>
<view>上传身份证正面</view>
</view>
<image src='{{front_card?front_card:"https://volunteer.cnpu.org/imgs/renzhengxinxi_fanmian_bg@2x.png"}}'></image>
<image src='{{front_card?front_card:"https://volunteer.cnpu.org/imgs/renzhengxinxi_fanmian_bg@2x.png"}}' mode="aspectFill"></image>
</view>
<view class='apply_idimg' bindtap="{{page_type?'':'uploadImages'}}" data-tem='3'>
<view class='apply_idimgmain' wx:if='{{!reverse_card}}'>
... ... @@ -251,3 +251,5 @@
</view>
</view>
</view>
<view class="kong" style="height:100rpx;" wx:if="{{page_type}}"/>
\ No newline at end of file
... ...
... ... @@ -57,7 +57,7 @@ Page({
'XX-Token': wx.getStorageSync('token')
}
let params = {
id: that.data.info.id,
id: that.data.user_id,
status: id
}
app.post(url, params, head).then((res) => {
... ... @@ -387,12 +387,13 @@ Page({
t_type: true,
z_type: true,
e_type: true,
page_type: options.type,
user_id: options.user_id ? options.user_id:null
page_type: options.type
})
}
this.setData({
id: options.id
id: options.id,
status: options.status ? options.status : null,
user_id: options.user_id ? options.user_id : null
})
this.get_info(options.id)
},
... ...
... ... @@ -19,7 +19,7 @@
<view class="left">
<image src="/imgs/must.png" /> 工作类型
</view>
<picker range="{{enroll_arr}}" value="{{type}}" bindchange="change_enroll" disabled="{{page_type == 0 || page_type == 1}}">
<picker range="{{enroll_arr}}" value="{{type}}" bindchange="change_enroll" disabled="{{status}}">
<view class="right">
<text>{{type?type:'请选择'}}</text>
<image src="/imgs/right.png" />
... ... @@ -30,7 +30,7 @@
<view class="left">
<image src="/imgs/must.png" /> 工作内容
</view>
<picker range="{{check_arr}}" value="{{check_item}}" bindchange="change_check" disabled="{{page_type == 0 || page_type == 1}}">
<picker range="{{check_arr}}" value="{{check_item}}" bindchange="change_check" disabled="{{status}}">
<view class="right" bindtap="show_cover">
<text>{{check?check:'请选择'}}</text>
<image src="/imgs/right.png" />
... ... @@ -45,7 +45,7 @@
<view class="left">
<image src="/imgs/must.png" /> 参加日期
</view>
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="1" disabled="{{page_type == 0 || page_type == 1}}">
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="1" disabled="{{status}}">
<view class="right">
<text>{{item.date?item.date:'请选择'}}</text>
<image src="/imgs/right.png" />
... ... @@ -56,14 +56,14 @@
<view class="left">
<image src="/imgs/must.png" /> 参加时间
</view>
<picker mode="selector" value="{{item.time}}" bindchange="change_time" range="{{time_arr}}" data-index="{{index}}" disabled="{{page_type == 0 || page_type == 1}}">
<picker mode="selector" value="{{item.time}}" bindchange="change_time" range="{{time_arr}}" data-index="{{index}}" disabled="{{status}}">
<view class="right">
<text>{{item.time?item.time:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
<view class="add" bindtap="add_item" data-id="1" wx:if="{{index == t_arr.length -1 && page_type!=0 && page_type!=1}}">+添加</view>
<view class="add" bindtap="add_item" data-id="1" wx:if="{{index == t_arr.length -1 && !status}}">+添加</view>
</view>
<view class="info_box" wx:for="{{z_arr}}" wx:key="index">
... ... @@ -74,7 +74,7 @@
<view class="left">
<image src="/imgs/must.png" /> 入住日期
</view>
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="2" disabled="{{page_type == 0 || page_type == 1}}">
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="2" disabled="{{status}}">
<view class="right">
<text>{{item.date?item.date:'请选择'}}</text>
<image src="/imgs/right.png" />
... ... @@ -83,9 +83,9 @@
</view>
<view class="item">
<text>入住人身份证号码</text>
<input placeholder="请输入" bindinput="get_card" value="{{item.idcard}}" maxlength="18" data-index="{{index}}" disabled="{{page_type == 0 || page_type == 1}}" />
<input placeholder="请输入" bindinput="get_card" value="{{item.idcard}}" maxlength="18" data-index="{{index}}" disabled="{{status}}" />
</view>
<view class="add" bindtap="add_item" data-id="2" wx:if="{{index == z_arr.length -1 && page_type!=0 && page_type!=1}}">+添加</view>
<view class="add" bindtap="add_item" data-id="2" wx:if="{{index == z_arr.length -1 && !status}}">+添加</view>
</view>
<view class="info_box" wx:for="{{e_arr}}" wx:key="index">
... ... @@ -94,7 +94,7 @@
<view class="left">
<image src="/imgs/must.png" /> 用餐日期
</view>
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="3" disabled="{{page_type == 0 || page_type == 1}}">
<picker mode="selector" value="{{item.date}}" bindchange="change_date" range="{{date_arr}}" data-index="{{index}}" data-id="3" disabled="{{status}}">
<view class="right">
<text>{{item.date?item.date:'请选择'}}</text>
<image src="/imgs/right.png" />
... ... @@ -105,23 +105,23 @@
<view class="left">
<image src="/imgs/must.png" /> 用餐时间
</view>
<picker mode="selector" value="{{item.time}}" bindchange="eat_time" range="{{eat_arr}}" data-index="{{index}}" disabled="{{page_type == 0 || page_type == 1}}">
<picker mode="selector" value="{{item.time}}" bindchange="eat_time" range="{{eat_arr}}" data-index="{{index}}" disabled="{{status}}">
<view class="right">
<text>{{item.time?item.time:'请选择'}}</text>
<image src="/imgs/right.png" />
</view>
</picker>
</view>
<view class="add" bindtap="add_item" data-id="3" wx:if="{{index == e_arr.length -1 && page_type!=0 && page_type!=1}}">+添加</view>
<view class="add" bindtap="add_item" data-id="3" wx:if="{{index == e_arr.length -1 && !status}}">+添加</view>
</view>
<view class="submit" bindtap="submit" wx:if="{{page_type!=0 && page_type!=1}}">确认</view>
<view class="submit" bindtap="submit" wx:if="{{!status}}">确认</view>
<view class="btn_box" wx:else>
<view class="look_table" catchtap="{{page_type == 1?'look_word':'look_register'}}">{{page_type == 1?'查看工作汇报':'查看注册信息'}}</view>
<view class="look_table" catchtap="{{status == 1 || status == 3?'look_word':'look_register'}}">{{status == 1 || status == 3?'查看工作汇报':'查看注册信息'}}</view>
<view class="fill_time" catchtap="change_cover" wx:if="{{page_type == 1}}">输入工时</view>
<view class="two_btn" wx:if="{{page_type == 0 && !two_type}}">
<view class="fill_time" catchtap="change_cover" wx:if="{{status == 1 || status == 3}}">输入工时</view>
<view class="two_btn" wx:if="{{status == 0 && !two_type}}">
<view catchtap="examine" data-id="2">不通过</view>
<view catchtap="examine" data-id="1">通过</view>
</view>
... ... @@ -131,7 +131,7 @@
<view class="cover_box" catchtouchmove="true" wx:if="{{cover_type}}">
<view class="show_box">
<view class="s_title">请输入工时</view>
<input placeholder="请输入..." class="word_area active" value="{{word}}" bindinput="get_word" type="number"/>
<input placeholder="请输入..." class="word_area active" value="{{word}}" bindinput="get_word" type="number" />
<view class="submit" catchtap="add_time">确认</view>
<image src="/imgs/close.png" class="close" catchtap="change_cover" />
</view>
... ...
... ... @@ -188,7 +188,9 @@ page {
.btn_box {
width: 100%;
margin-top: 226rpx;
height: 522rpx;
padding-top: 226rpx;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
justify-content: center;
... ...
... ... @@ -15,7 +15,7 @@ Page({
//查看更多报名用户信息(审核端)
look_more(e){
wx.navigateTo({
url: '/pages/enroll/enroll?type=' + e.currentTarget.dataset.type + '&id=' + this.data.id + '&user_id=' + e.currentTarget.dataset.user_id
url: '/pages/enroll/enroll?status=' + e.currentTarget.dataset.status + '&id=' + this.data.id + '&user_id=' + e.currentTarget.dataset.user_id
})
},
// 工作内容(管理员)
... ... @@ -29,7 +29,6 @@ Page({
id: that.data.id
}
app.post(url, params, head).then((res) => {
console.log(res)
that.setData({
join_info: res
})
... ... @@ -92,7 +91,7 @@ Page({
// 编辑报名信息
edit_info() {
wx.navigateTo({
url: '/pages/enroll/enroll?id=' + this.data.id + '&type=3'
url: '/pages/enroll/enroll?id=' + this.data.id + '&type=5'
})
},
get_poster() {
... ...
... ... @@ -52,18 +52,17 @@
</view>
</view>
<view class="c_item" wx:if="{{join_info.camera.length>0}}">
<view class="c_title">摄影(设备自带</view>
<view class="c_item" wx:for="{{join_info}}" wx:key="index">
<view class="c_title">{{item.title}}</view>
<view class="c_box">
<view class="i_info {{join_info.camera.length>3 && index<join_info.camera.length-2?'line':''}}" wx:for="{{join_info.camera}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
<image src="{{item.photo}}" mode="aspectFill" />
<view class="name">李强</view>
<view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
<view class="status" wx:else style="background: #F84141;">未通过</view>
<view class="i_info {{item.arr.length>3 && zindex<item.arr.length-1?'line':''}}" wx:for="{{item.arr}}" wx:for-item="zitem" wx:for-index="zindex" wx:key="zindex" data-status="{{zitem.status}}" data-user_id="{{zitem.id}}" bindtap="look_more">
<image src="{{zitem.photo}}" mode="aspectFill" />
<view class="name">{{zitem.name}}</view>
<view class="status {{zitem.status>1?(zitem.status == 2?'bgb':'bga'):'bgc'}}">{{zitem.status>1?(zitem.status == 2?'未通过':'已通过'):'待审核'}}</view>
</view>
</view>
</view>
<view class="c_item" wx:if="{{join_info.photo.length>0}}">
<!-- <view class="c_item" wx:if="{{join_info.photo.length>0}}">
<view class="c_title">摄像(设备自带</view>
<view class="c_box">
<view class="i_info {{join_info.photo.length>3 && index<join_info.photo.length-2?'line':''}}" wx:for="{{join_info.photo}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
... ... @@ -74,48 +73,3 @@
</view>
</view>
</view>
<view class="c_item" wx:if="{{join_info.motorcade.length>0}}">
<view class="c_title">爱心车队</view>
<view class="c_box">
<view class="i_info {{join_info.motorcade.length>3 && index<join_info.motorcade.length-2?'line':''}}" wx:for="{{join_info.motorcade}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
<image src="{{item.photo}}" mode="aspectFill" />
<view class="name">李强</view>
<view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
<view class="status" wx:else style="background: #F84141;">未通过</view>
</view>
</view>
</view>
<view class="c_item" wx:if="{{join_info.question.length>0}}">
<view class="c_title">线上答疑</view>
<view class="c_box">
<view class="i_info {{join_info.question.length>3 && index<join_info.question.length-2?'line':''}}" wx:for="{{join_info.question}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
<image src="{{item.photo}}" mode="aspectFill" />
<view class="name">李强</view>
<view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
<view class="status" wx:else style="background: #F84141;">未通过</view>
</view>
</view>
</view>
<view class="c_item" wx:if="{{join_info.ill.length>0}}">
<view class="c_title">门诊服务</view>
<view class="c_box">
<view class="i_info {{join_info.ill.length>3 && index<join_info.ill.length-2?'line':''}}" wx:for="{{join_info.ill}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
<image src="{{item.photo}}" mode="aspectFill" />
<view class="name">李强</view>
<view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
<view class="status" wx:else style="background: #F84141;">未通过</view>
</view>
</view>
</view>
<view class="c_item" wx:if="{{join_info.ill.service>0}}">
<view class="c_title">现场服务(签到、指引、礼仪等</view>
<view class="c_box">
<view class="i_info {{join_info.service.length>3 && index<join_info.service.length-2?'line':''}}" wx:for="{{join_info.service}}" wx:key="index" data-type="{{item.status =='已通过'?'1':0}}" data-user_id="{{item.user_id}}" bindtap="look_more">
<image src="{{item.photo}}" mode="aspectFill" />
<view class="name">李强</view>
<view class="status" wx:if="{{item.status =='已通过'}}" style="background: #41CD79;">已通过</view>
<view class="status" wx:else style="background: #F84141;">未通过</view>
</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -294,3 +294,12 @@ page {
border-bottom: 1px solid #e6e6e6;
}
.bga{
background: #41CD79;
}
.bgb{
background: #F84141;
}
.bgc{
background: #6495ED;
}
... ...
... ... @@ -120,7 +120,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
this.setData({
id: options.id,
user_id: options.user_id ? options.user_id:null
... ...