a9508795 by lttnew

级位申请优化

1 parent f120f0ea
1 // dev 1 // dev
2 const baseUrl_api = 'http://192.168.1.222:8787' 2 // const baseUrl_api = 'http://192.168.1.222:8787'
3 // const baseUrl_api = 'http://47.98.186.233:8787' 3 // const baseUrl_api = 'http://47.98.186.233:8787'
4 // const baseUrl_api = 'https://tk001.wxjylt.com/stage-api/' 4 const baseUrl_api = 'https://tk001.wxjylt.com/stage-api/'
5 const loginImage_api = 'https://tk001.wxjylt.com/stage-api' 5 const loginImage_api = 'https://tk001.wxjylt.com/stage-api'
6 const payUrl = 'https://wxpay.cmbc.com.cn/mobilePlatform/appserver/lcbpPay.do' 6 const payUrl = 'https://wxpay.cmbc.com.cn/mobilePlatform/appserver/lcbpPay.do'
7 7
......
...@@ -124,7 +124,9 @@ ...@@ -124,7 +124,9 @@
124 memId: memId, 124 memId: memId,
125 examId: examId, 125 examId: examId,
126 examType: examType, 126 examType: examType,
127 name: searchName.value 127 name: searchName.value,
128 pageNum: pageNum.value,
129 pageSize: pageSize
128 }).then(res => { 130 }).then(res => {
129 const rows = res.rows || [] 131 const rows = res.rows || []
130 rows.forEach(item => { 132 rows.forEach(item => {
...@@ -203,6 +205,7 @@ ...@@ -203,6 +205,7 @@
203 }).then(() => { 205 }).then(() => {
204 uni.hideLoading() 206 uni.hideLoading()
205 uni.showToast({ title: '添加成功', icon: 'success' }) 207 uni.showToast({ title: '添加成功', icon: 'success' })
208 emitStudentSelected()
206 setTimeout(() => { 209 setTimeout(() => {
207 uni.navigateBack() 210 uni.navigateBack()
208 }, 1500) 211 }, 1500)
...@@ -211,6 +214,13 @@ ...@@ -211,6 +214,13 @@
211 }) 214 })
212 } 215 }
213 216
217 function emitStudentSelected() {
218 const pages = getCurrentPages()
219 const currentPage = pages[pages.length - 1]
220 const eventChannel = currentPage?.getOpenerEventChannel?.()
221 eventChannel?.emit('studentSelected')
222 }
223
214 function goBack() { 224 function goBack() {
215 uni.navigateBack() 225 uni.navigateBack()
216 } 226 }
......
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
26 26
27 <view class="bottom-area"> 27 <view class="bottom-area">
28 <view class="selected-tip" v-if="selectedIds.length > 0">已选择 {{ selectedIds.length }} 位考官</view> 28 <view class="selected-tip" v-if="selectedIds.length > 0">已选择 {{ selectedIds.length }} 位考官</view>
29 <view> <button class="add-btn" :disabled="selectedIds.length === 0" @click="handleAdd">添加</button></view> 29 <view class="add-btn-wrap">
30 <button class="add-btn" :disabled="selectedIds.length === 0" @click="handleAdd">添加</button>
31 </view>
30 32
31 </view> 33 </view>
32 </view> 34 </view>
...@@ -194,12 +196,17 @@ function handleAdd() { ...@@ -194,12 +196,17 @@ function handleAdd() {
194 border-top: 1rpx solid #eee; 196 border-top: 1rpx solid #eee;
195 display: flex; 197 display: flex;
196 align-items: center; 198 align-items: center;
197 justify-content: space-between; 199 justify-content: flex-end;
198 } 200 }
199 201
200 .selected-tip { 202 .selected-tip {
201 font-size: 26rpx; 203 font-size: 26rpx;
202 color: #666; 204 color: #666;
205 margin-right: auto;
206 }
207
208 .add-btn-wrap {
209 margin-left: auto;
203 } 210 }
204 211
205 .add-btn { 212 .add-btn {
......
...@@ -304,7 +304,9 @@ async function onModalConfirm() { ...@@ -304,7 +304,9 @@ async function onModalConfirm() {
304 uni.showToast({title: err.data?.msg || '提交失败', icon: 'none'}) 304 uni.showToast({title: err.data?.msg || '提交失败', icon: 'none'})
305 } 305 }
306 } else if (modalAction === 'submitSuccess') { 306 } else if (modalAction === 'submitSuccess') {
307 uni.navigateBack() 307 uni.redirectTo({
308 url: '/myCenter/examPointApplyList'
309 })
308 } 310 }
309 // modalAction = '' 311 // modalAction = ''
310 } 312 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!