a9508795 by lttnew

级位申请优化

1 parent f120f0ea
// dev
const baseUrl_api = 'http://192.168.1.222:8787'
// const baseUrl_api = 'http://192.168.1.222:8787'
// const baseUrl_api = 'http://47.98.186.233:8787'
// const baseUrl_api = 'https://tk001.wxjylt.com/stage-api/'
const baseUrl_api = 'https://tk001.wxjylt.com/stage-api/'
const loginImage_api = 'https://tk001.wxjylt.com/stage-api'
const payUrl = 'https://wxpay.cmbc.com.cn/mobilePlatform/appserver/lcbpPay.do'
......
......@@ -124,7 +124,9 @@
memId: memId,
examId: examId,
examType: examType,
name: searchName.value
name: searchName.value,
pageNum: pageNum.value,
pageSize: pageSize
}).then(res => {
const rows = res.rows || []
rows.forEach(item => {
......@@ -203,6 +205,7 @@
}).then(() => {
uni.hideLoading()
uni.showToast({ title: '添加成功', icon: 'success' })
emitStudentSelected()
setTimeout(() => {
uni.navigateBack()
}, 1500)
......@@ -211,6 +214,13 @@
})
}
function emitStudentSelected() {
const pages = getCurrentPages()
const currentPage = pages[pages.length - 1]
const eventChannel = currentPage?.getOpenerEventChannel?.()
eventChannel?.emit('studentSelected')
}
function goBack() {
uni.navigateBack()
}
......
......@@ -26,7 +26,9 @@
<view class="bottom-area">
<view class="selected-tip" v-if="selectedIds.length > 0">已选择 {{ selectedIds.length }} 位考官</view>
<view> <button class="add-btn" :disabled="selectedIds.length === 0" @click="handleAdd">添加</button></view>
<view class="add-btn-wrap">
<button class="add-btn" :disabled="selectedIds.length === 0" @click="handleAdd">添加</button>
</view>
</view>
</view>
......@@ -194,12 +196,17 @@ function handleAdd() {
border-top: 1rpx solid #eee;
display: flex;
align-items: center;
justify-content: space-between;
justify-content: flex-end;
}
.selected-tip {
font-size: 26rpx;
color: #666;
margin-right: auto;
}
.add-btn-wrap {
margin-left: auto;
}
.add-btn {
......
......@@ -304,7 +304,9 @@ async function onModalConfirm() {
uni.showToast({title: err.data?.msg || '提交失败', icon: 'none'})
}
} else if (modalAction === 'submitSuccess') {
uni.navigateBack()
uni.redirectTo({
url: '/myCenter/examPointApplyList'
})
}
// modalAction = ''
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!