考点
Showing
4 changed files
with
23 additions
and
9 deletions
| ... | @@ -100,13 +100,14 @@ const handleClick = (index, url) => { | ... | @@ -100,13 +100,14 @@ const handleClick = (index, url) => { |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | .dg-tab-icon { | 102 | .dg-tab-icon { |
| 103 | width: 50rpx; | 103 | width: 40rpx; |
| 104 | height: 50rpx; | 104 | height: 40rpx; |
| 105 | margin-bottom: 4rpx; | 105 | margin-bottom: 10rpx; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | .dg-tab-text { | 108 | .dg-tab-text { |
| 109 | font-size: 20rpx; | 109 | font-size: 22rpx; |
| 110 | // margin-top: 10rpx; | ||
| 110 | color: #666; | 111 | color: #666; |
| 111 | } | 112 | } |
| 112 | 113 | ... | ... |
| ... | @@ -40,7 +40,7 @@ | ... | @@ -40,7 +40,7 @@ |
| 40 | <button class="add-btn" @click="addExaminer">+ 添加考官</button> | 40 | <button class="add-btn" @click="addExaminer">+ 添加考官</button> |
| 41 | </view> | 41 | </view> |
| 42 | <view v-else class="section examiner-section"> | 42 | <view v-else class="section examiner-section"> |
| 43 | <button class="add-btn" @click="addExaminer">+ 选择考官</button> | 43 | <button class="add-btn" @click="handelAddExamine">+ 选择考官</button> |
| 44 | </view> | 44 | </view> |
| 45 | 45 | ||
| 46 | <view class="examiner-list"> | 46 | <view class="examiner-list"> |
| ... | @@ -161,6 +161,12 @@ async function getShenMemberInfoFn() { | ... | @@ -161,6 +161,12 @@ async function getShenMemberInfoFn() { |
| 161 | const res = await api.getShenMemberInfo() | 161 | const res = await api.getShenMemberInfo() |
| 162 | shenForm.value = res.data ?? {} | 162 | shenForm.value = res.data ?? {} |
| 163 | } | 163 | } |
| 164 | function handelAddExamine() { | ||
| 165 | const chosenStr = JSON.stringify(list.value) | ||
| 166 | uni.navigateTo({ | ||
| 167 | url: `/myCenter/chooseExaminer?memId=${memId.value}&chosen=${chosenStr}` | ||
| 168 | }) | ||
| 169 | } | ||
| 164 | 170 | ||
| 165 | // 删除考官:打开自定义弹窗 | 171 | // 删除考官:打开自定义弹窗 |
| 166 | function handleDel(row) { | 172 | function handleDel(row) { | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <view class="exam-point-list"> | 2 | <view class="exam-point-list"> |
| 3 | <!-- 顶部申请按钮 --> | 3 | <!-- 顶部申请按钮 --> |
| 4 | <view v-if="status==0" class="apply-btn-box"> | 4 | <view v-if="status==0" class="apply-btn-box"> |
| 5 | <button :disabled="memberInfo.isPoints==0&&(formInfo.auditStatus==2||formInfo.auditStatus==1)" class="apply-btn" | 5 | <button :disabled="memberInfo.isPoints==0 || formInfo.auditStatus==1" class="apply-btn" |
| 6 | @click="goApply">申请考点 | 6 | @click="goApply">申请考点 |
| 7 | </button> | 7 | </button> |
| 8 | </view> | 8 | </view> | ... | ... |
| ... | @@ -398,11 +398,18 @@ function checkDialogs() { | ... | @@ -398,11 +398,18 @@ function checkDialogs() { |
| 398 | passwordTipPopup.value?.open() | 398 | passwordTipPopup.value?.open() |
| 399 | } | 399 | } |
| 400 | } | 400 | } |
| 401 | console.log('checkDialogs',app.globalData.memberInfo?.activeStatus,app.globalData.authenticationStatus,app.globalData.deptType,memberInfoData.isPoints) | 401 | checkExamPointDialog() |
| 402 | if (app.globalData.memberInfo?.activeStatus == 1 && | 402 | } |
| 403 | |||
| 404 | async function checkExamPointDialog() { | ||
| 405 | const [err, res] = await to(api.getMyRecentExam()) | ||
| 406 | if (err || !res?.data) return | ||
| 407 | const status = res.data?.auditStatus | ||
| 408 | if ((status == 0 || status == 3) && | ||
| 409 | app.globalData.memberInfo?.activeStatus == 1 && | ||
| 403 | app.globalData.authenticationStatus == 2 && | 410 | app.globalData.authenticationStatus == 2 && |
| 404 | app.globalData.deptType == 6 && | 411 | app.globalData.deptType == 6 && |
| 405 | memberInfoData.isPoints == 1 ) { | 412 | app.globalData.memberInfo?.isPoints == 1) { |
| 406 | examPointPopup.value?.open() | 413 | examPointPopup.value?.open() |
| 407 | } | 414 | } |
| 408 | } | 415 | } | ... | ... |
-
Please register or sign in to post a comment