Browse Source

修改志愿者加入组织审核状态

feature/societyOrg
ZhaoTongYao 4 years ago
parent
commit
a63b2f61c3
  1. 8
      epdc-resident-mp-yushan/subpages/heart/pages/joinVolunteerOrg/joinVolunteerOrg.js
  2. 10
      epdc-resident-mp-yushan/subpages/heart/pages/joinVolunteerOrg/joinVolunteerOrg.wxml
  3. 18
      epdc-resident-mp-yushan/subpages/heart/pages/joinVolunteerOrg/joinVolunteerOrg.wxss

8
epdc-resident-mp-yushan/subpages/heart/pages/joinVolunteerOrg/joinVolunteerOrg.js

@ -10,7 +10,6 @@ Page({
introduceInfo: '', introduceInfo: '',
volunteerOrgNames: '', // 组织名称 volunteerOrgNames: '', // 组织名称
stateName: '', // 审核状态名称
state: '', // 审核状态 state: '', // 审核状态
reason: '', // 审核理由 reason: '', // 审核理由
lock: false, // 防止重复点击 lock: false, // 防止重复点击
@ -62,10 +61,9 @@ Page({
realName: res.data.realName, realName: res.data.realName,
idCard: res.data.idCard, idCard: res.data.idCard,
mobile: res.data.mobile, mobile: res.data.mobile,
volunteerOrgIds: res.data.volunteerOrgIds, volunteerOrgIds: res.data.volunteerOrgIds || [],
introduceInfo: res.data.introduceInfo, introduceInfo: res.data.introduceInfo,
volunteerOrgNames: res.data.volunteerOrgNames, volunteerOrgNames: res.data.volunteerOrgNames || [],
stateName: res.data.stateName,
state: res.data.state, state: res.data.state,
reason: res.data.reason reason: res.data.reason
}) })
@ -115,7 +113,7 @@ Page({
} }
api.applyVolunteer(params).then(res => { api.applyVolunteer(params).then(res => {
if (res.code == 0 && res.msg == 'success') { if (res.code == 0 && res.msg == 'success') {
this.showToast('组织申请已提交') this.showToast('提交成功')
setTimeout(() => { setTimeout(() => {
wx.navigateBack() wx.navigateBack()
this.setData({ this.setData({

10
epdc-resident-mp-yushan/subpages/heart/pages/joinVolunteerOrg/joinVolunteerOrg.wxml

@ -37,12 +37,12 @@
<view class="label">自我介绍</view> <view class="label">自我介绍</view>
<textarea class="value" placeholder="请输入自我介绍,不超过100个字" maxlength="100" value="{{introduceInfo}}" bindinput="onInputValue" data-code="introduceInfo"></textarea> <textarea class="value" placeholder="请输入自我介绍,不超过100个字" maxlength="100" value="{{introduceInfo}}" bindinput="onInputValue" data-code="introduceInfo"></textarea>
</view> </view>
<view class="data-form-item" wx:if="{{state != ''}}"> <view class="data-form-item sub-item" wx:if="{{state != ''}}">
<view class="item-label">审核状态</view> <view class="item-label sub-label">审核状态</view>
<view class="item-value"> {{stateName}} </view> <view class="item-value state-{{state}}"> {{state == '0' ? '审核中' : state == '5' ? '未通过' : '已通过'}} </view>
</view> </view>
<view class="data-form-item" wx:if="{{state && reason}}"> <view class="data-form-item sub-item" wx:if="{{state=='5' && reason}}">
<view class="item-label">审核理由</view> <view class="item-label sub-label">未通过原因</view>
<view class="item-value"> {{reason}} </view> <view class="item-value"> {{reason}} </view>
</view> </view>
</view> </view>

18
epdc-resident-mp-yushan/subpages/heart/pages/joinVolunteerOrg/joinVolunteerOrg.wxss

@ -9,6 +9,11 @@
height: 110rpx; height: 110rpx;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.sub-item {
border-bottom: none;
font-size: 28rpx;
height: 60rpx;
}
.introduce { .introduce {
display: flex; display: flex;
height: 320rpx; height: 320rpx;
@ -17,6 +22,7 @@
padding-top: 20rpx; padding-top: 20rpx;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
margin-bottom: 10rpx;
} }
.introduce .label { .introduce .label {
width: 150rpx; width: 150rpx;
@ -34,6 +40,9 @@
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
} }
.sub-item .sub-label {
font-size: 28rpx;
}
.data-form-item .item-value { .data-form-item .item-value {
width: 500rpx; width: 500rpx;
} }
@ -46,6 +55,15 @@
.data-form-item .item-value .placeholder { .data-form-item .item-value .placeholder {
color: #666666; color: #666666;
} }
.data-form-item .state-0 {
color: #ffae00;
}
.data-form-item .state-5 {
color: #d42f11;
}
.data-form-item .state-10 {
color: #109c5b;
}
.data-form-item .item-select { .data-form-item .item-select {
width: 50rpx; width: 50rpx;
height: 100%; height: 100%;

Loading…
Cancel
Save