6f6c7894 by lttnew
2 parents 796774f2 4ffcd319
1 // dev 1 // dev
2 // const baseUrl_api = 'http://192.168.1.125:8787' 2 // const baseUrl_api = 'http://192.168.1.125:8787'
3 const baseUrl_api = 'https://tk001.wxjylt.com/stage-api/' 3 const baseUrl_api = 'https://tk001.wxjylt.com/stage-api/'
4 const loginImage_api = 'http://tk001.wxjylt.com/stage-api' 4 const loginImage_api = 'https://tk001.wxjylt.com/stage-api'
5 const payUrl = 'https://wxpay.cmbc.com.cn/mobilePlatform/appserver/lcbpPay.do' 5 const payUrl = 'https://wxpay.cmbc.com.cn/mobilePlatform/appserver/lcbpPay.do'
6 6
7 // prod 7 // prod
......
1 <template> 1 <template>
2 <view class="container"> 2 <view class="container">
3 <!-- 自定义弹窗 --> 3 <!-- 自定义弹窗 -->
4 <custom-modal ref="customModalRef" :title="modalConfig.title" :content="modalConfig.content" :showCancel="modalConfig.showCancel" :cancelText="modalConfig.cancelText" :confirmText="modalConfig.confirmText" @confirm="onModalConfirm" /> 4 <custom-modal ref="customModalRef" :cancelText="modalConfig.cancelText" :confirmText="modalConfig.confirmText"
5 :content="modalConfig.content" :showCancel="modalConfig.showCancel"
6 :title="modalConfig.title" @confirm="onModalConfirm"/>
5 7
6 <!-- 考官选择类型 --> 8 <!-- 考官选择类型 -->
7 <!-- <view class="radio-section"> 9 <!-- <view class="radio-section">
...@@ -19,12 +21,17 @@ ...@@ -19,12 +21,17 @@
19 21
20 <!-- 温馨提示 --> 22 <!-- 温馨提示 -->
21 <view v-if="form.selfSelect == '1'" class="tip-box"> 23 <view v-if="form.selfSelect == '1'" class="tip-box">
22 <text class="tip-text">温馨提示: 您可以自行录入考官信息,如果暂时没有合适的考官,也可以选择由省跆协指派(支持多选)进行考点申报,同时请尽快完成考点考官的认证。</text> 24 <text class="tip-text">温馨提示:
25 您可以自行录入考官信息,如果暂时没有合适的考官,也可以选择由省跆协指派(支持多选)进行考点申报,同时请尽快完成考点考官的认证。
26 </text>
23 </view> 27 </view>
24 28
25 <!-- 省跆协指派提示 --> 29 <!-- 省跆协指派提示 -->
26 <view v-if="form.selfSelect == '0'" class="tip-box"> 30 <view v-if="form.selfSelect == '0'" class="tip-box">
27 <text class="tip-text">温馨提示:关于考官指派,请联系{{ shenForm.baseName || '' }},联系电话:{{ shenForm.phone || '' }}</text> 31 <text class="tip-text">温馨提示:关于考官指派,请联系{{ shenForm.baseName || '' }},联系电话:{{
32 shenForm.phone || ''
33 }}
34 </text>
28 </view> 35 </view>
29 36
30 <view class="section"> 37 <view class="section">
...@@ -56,6 +63,7 @@ import {ref} from 'vue' ...@@ -56,6 +63,7 @@ import {ref} from 'vue'
56 import {onLoad, onShow} from '@dcloudio/uni-app' 63 import {onLoad, onShow} from '@dcloudio/uni-app'
57 import * as api from '@/common/api.js' 64 import * as api from '@/common/api.js'
58 import customModal from '@/components/custom-modal.vue' 65 import customModal from '@/components/custom-modal.vue'
66
59 const app = getApp(); 67 const app = getApp();
60 const form = ref({ 68 const form = ref({
61 selfSelect: '1' // 1:自行录入 0:省跆协指派 69 selfSelect: '1' // 1:自行录入 0:省跆协指派
...@@ -187,7 +195,7 @@ async function onModalConfirm() { ...@@ -187,7 +195,7 @@ async function onModalConfirm() {
187 } else if (modalAction === 'submitSuccess') { 195 } else if (modalAction === 'submitSuccess') {
188 uni.navigateBack() 196 uni.navigateBack()
189 } 197 }
190 modalAction = '' 198 // modalAction = ''
191 } 199 }
192 200
193 function confirmApply() { 201 function confirmApply() {
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
2 <view class="exam-point-list"> 2 <view class="exam-point-list">
3 <!-- 顶部申请按钮 --> 3 <!-- 顶部申请按钮 -->
4 <view class="apply-btn-box"> 4 <view class="apply-btn-box">
5 <button class="apply-btn" :disabled="memberInfo.isPoints==0||formInfo.auditStatus==2||formInfo.auditStatus==1" @click="goApply">申请考点</button> 5 <button :disabled="memberInfo.isPoints==0||formInfo.auditStatus==2||formInfo.auditStatus==1" class="apply-btn"
6 @click="goApply">申请考点
7 </button>
6 </view> 8 </view>
7 9
8 <!-- 列表 --> 10 <!-- 列表 -->
...@@ -14,8 +16,8 @@ ...@@ -14,8 +16,8 @@
14 <view 16 <view
15 v-for="(item, index) in list" 17 v-for="(item, index) in list"
16 :key="index" 18 :key="index"
17 class="list-item"
18 :class="{ 'success-row': item.shenAuditStatus == 2 }" 19 :class="{ 'success-row': item.shenAuditStatus == 2 }"
20 class="list-item"
19 > 21 >
20 <view class="item-row"> 22 <view class="item-row">
21 <text class="item-label">审核协会</text> 23 <text class="item-label">审核协会</text>
...@@ -27,8 +29,8 @@ ...@@ -27,8 +29,8 @@
27 </view> 29 </view>
28 <view class="item-row"> 30 <view class="item-row">
29 <text class="item-label">审核状态</text> 31 <text class="item-label">审核状态</text>
30 <text class="item-status" :class="getStatusClass(item.auditResult)"> 32 <text :class="getStatusClass(item.auditResult)" class="item-status">
31 {{ item.auditResult == 0 ? '审核未通过' : '审核通过' }} 33 {{ item.auditResult == 1 ? '审核通过' : item.auditResult == 0 ? '审核拒绝' : '待审核' }}
32 </text> 34 </text>
33 </view> 35 </view>
34 <view class="item-row"> 36 <view class="item-row">
...@@ -49,9 +51,11 @@ ...@@ -49,9 +51,11 @@
49 </template> 51 </template>
50 52
51 <script setup> 53 <script setup>
52 import { ref } from 'vue' 54 import {ref} from 'vue'
53 import { onLoad, onReachBottom } from '@dcloudio/uni-app' 55 import {onLoad, onReachBottom} from '@dcloudio/uni-app'
54 import { getMyRecentExam } from '@/common/api' 56 import {getMyRecentExam} from '@/common/api'
57 import {onShow} from "@/unpackage/dist/dev/mp-weixin/common/vendor";
58
55 const app = getApp() 59 const app = getApp()
56 const list = ref([]) 60 const list = ref([])
57 const loading = ref(false) 61 const loading = ref(false)
...@@ -60,6 +64,11 @@ const pageNum = ref(1) ...@@ -60,6 +64,11 @@ const pageNum = ref(1)
60 const pageSize = ref(10) 64 const pageSize = ref(10)
61 const memberInfo = app.globalData.memberInfo 65 const memberInfo = app.globalData.memberInfo
62 const formInfo = ref({}) 66 const formInfo = ref({})
67
68 onShow(() => {
69 loadData()
70 })
71
63 onLoad(() => { 72 onLoad(() => {
64 loadData() 73 loadData()
65 }) 74 })
...@@ -100,8 +109,8 @@ function goApply() { ...@@ -100,8 +109,8 @@ function goApply() {
100 109
101 function getStatusClass(status) { 110 function getStatusClass(status) {
102 return { 111 return {
112 'status-2': status == 1,
103 'status-1': status == 0, 113 'status-1': status == 0,
104 'status-2': status != 0,
105 } 114 }
106 } 115 }
107 116
...@@ -146,6 +155,7 @@ function formatDate(dateStr) { ...@@ -146,6 +155,7 @@ function formatDate(dateStr) {
146 opacity: 1; 155 opacity: 1;
147 } 156 }
148 } 157 }
158
149 .list-content { 159 .list-content {
150 padding: 0 20rpx 20rpx; 160 padding: 0 20rpx 20rpx;
151 } 161 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!