mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-11 11:56:48 +08:00
feat:修改面授课报名
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-02-08 09:50:10
|
* @Date: 2023-02-08 09:50:10
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-03-06 18:36:53
|
* @LastEditTime: 2023-03-07 12:53:34
|
||||||
* @FilePath: /stu_h5/src/router/index.js
|
* @FilePath: /stu_h5/src/router/index.js
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
*/
|
*/
|
||||||
@@ -26,9 +26,9 @@ router.beforeEach((to, from, next) => {
|
|||||||
console.log('toooooooo', to)
|
console.log('toooooooo', to)
|
||||||
if (!getCookie('token')) {
|
if (!getCookie('token')) {
|
||||||
if (import.meta.env.MODE === "development" || import.meta.env.MODE === "test") {
|
if (import.meta.env.MODE === "development" || import.meta.env.MODE === "test") {
|
||||||
to.path.includes('/login') ? next() : next({ path: '/login', query: { returnUrl: to.fullPath } })
|
to.path.includes('/login') ? next() : next({ path: '/login', query: { returnUrl: import.meta.env.VITE_BASE + to.fullPath } })
|
||||||
} else {
|
} else {
|
||||||
window.location.href = window.location.protocol + import.meta.env.VITE_BASE_LOGIN_URL + import.meta.env.VITE_BASE + to.fullPath
|
window.location.href = window.location.protocol + import.meta.env.VITE_BASE_LOGIN_URL + window.location.protocol + import.meta.env.VITE_BOE_BASE_URL + import.meta.env.VITE_BASE + to.fullPath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
next()
|
next()
|
||||||
|
|||||||
@@ -48,7 +48,21 @@
|
|||||||
:style="{
|
:style="{
|
||||||
background: data.isSignUp ? '#999' : 'rgb(57, 146, 249)',
|
background: data.isSignUp ? '#999' : 'rgb(57, 146, 249)',
|
||||||
}"
|
}"
|
||||||
>{{ data.isSignUp ? "已报名" : "立即报名" }}
|
>{{
|
||||||
|
data.isRefused
|
||||||
|
? "审核拒绝"
|
||||||
|
: data.isSignUp
|
||||||
|
? "已报名"
|
||||||
|
: "立即报名"
|
||||||
|
}}
|
||||||
|
</botton>
|
||||||
|
<botton
|
||||||
|
v-if="data.isRefused"
|
||||||
|
class="titlebtn"
|
||||||
|
style="background: rgb(57, 146, 249)"
|
||||||
|
@click="onLineSignUp(true)"
|
||||||
|
>
|
||||||
|
重新报名
|
||||||
</botton>
|
</botton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -211,7 +225,7 @@ let timer = null;
|
|||||||
|
|
||||||
// 报名
|
// 报名
|
||||||
function onLineSignUp() {
|
function onLineSignUp() {
|
||||||
if (data.value.isSignUp) {
|
if (data.value.isSignUp && data.value.isSignUp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
request(FACETEACH_SIGNUP, { courseId });
|
request(FACETEACH_SIGNUP, { courseId });
|
||||||
|
|||||||
Reference in New Issue
Block a user