unknown
12 months ago
14 changed files with 360 additions and 157 deletions
-
21config/api.js
-
10pages.json
-
4pages/indexEntry/enroll/enroll.vue
-
29pages/indexEntry/enroll/realName/realName.vue
-
85pages/indexEntry/enroll/realName/webView.vue
-
6pages/indexEntry/webView/webView.vue
-
9pages/mineEntry/myOrder/comp/opera.vue
-
17pages/mineEntry/myOrder/detail/comp/refundInfo.vue
-
52pages/mineEntry/myOrder/detail/detail.vue
-
17pages/mineEntry/myOrder/myOrder.vue
-
122pages/mineEntry/refund/comp/myform.vue
-
68pages/mineEntry/refund/refund - 副本.vue
-
28pages/mineEntry/refund/refund.vue
-
15pages/userCenter/login/loginByPhone.vue
@ -0,0 +1,85 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<topNavbar title="学员报名"></topNavbar> |
||||
|
<!-- <web-view :webview-styles="webviewStyles" src="http://192.168.1.44:92/question/?uniItem=%7B%22phone%22%3A%2218267103167%22%2C%22cityCode%22%3A%223311%22%2C%22isUni%22%3A1%7D"></web-view> --> |
||||
|
<web-view :webview-styles="webviewStyles" class="custom-webview" :src="link" :update-title="true"></web-view> |
||||
|
<!-- <iframe src="https://your-h5-url.com" frameborder="0"></iframe> --> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { getApplyStep } from "@/config/api.js" |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
webviewStyles: { |
||||
|
progress: { |
||||
|
color: '#3877ff' |
||||
|
}, |
||||
|
width: '100vw', // 设置 WebView 宽度为100%,占满整个屏幕宽度 |
||||
|
height: '100vh', // 设置 WebView 高度为100vh,占满整个屏幕高度 |
||||
|
}, |
||||
|
link: '', |
||||
|
ok: false, |
||||
|
getApplyStepApi: null |
||||
|
} |
||||
|
}, |
||||
|
onLoad() { |
||||
|
this.link = this.$store.state.webViewUrl |
||||
|
console.log('噜噜哇'+ this.$store.state.webViewUrl) |
||||
|
// http://192.168.1.44:92/question/?uniItem=%7B%22phone%22%3A%2218267103167%22%2C%22cityCode%22%3A%223311%22%2C%22isUni%22%3A1%7D |
||||
|
// uni.hideNavigationBarLoading() |
||||
|
}, |
||||
|
beforeDestroy() { |
||||
|
clearInterval(this.timer) |
||||
|
this.timer = null |
||||
|
}, |
||||
|
onHide() { |
||||
|
clearInterval(this.timer) |
||||
|
this.timer = null |
||||
|
}, |
||||
|
onShow() { |
||||
|
this.timer = setInterval(async () => { |
||||
|
const res = await this.getApplyStepFn() |
||||
|
console.log(res) |
||||
|
if(res==2) { |
||||
|
clearInterval(this.timer) |
||||
|
this.timer = null |
||||
|
let redirectUrl = '/pages/indexEntry/enroll/registInfo/registInfo' |
||||
|
if(this.$store.state.user.NonPlatformStudent) { |
||||
|
redirectUrl = '/pages/indexEntry/NonPlatformStudent/NonPlatformStudent' |
||||
|
} |
||||
|
this.$goPage(redirectUrl) |
||||
|
} |
||||
|
}, 2000) |
||||
|
}, |
||||
|
methods: { |
||||
|
getApplyStepFn() { |
||||
|
let _this = this |
||||
|
if(this.ok) return this.getApplyStepApi |
||||
|
this.ok =true |
||||
|
return new Promise((reslove,reject)=>{ |
||||
|
_this.getApplyStepApi = getApplyStep({userId: this.userId}).then((res)=>{ |
||||
|
_this.ok = false |
||||
|
// console.log(res) |
||||
|
reslove(res.data) |
||||
|
}).catch(()=>{ |
||||
|
_this.ok = false |
||||
|
reject(0) |
||||
|
}) |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
.custom-webview::after { |
||||
|
content: none !important; /* 隐藏返回按钮 */ |
||||
|
} |
||||
|
.iframe { |
||||
|
display: block; |
||||
|
width: 100vw; |
||||
|
height: 100vh; |
||||
|
} |
||||
|
</style> |
@ -1,68 +0,0 @@ |
|||||
<template> |
|
||||
<view class="pageBgImg"> |
|
||||
<topNavbar title="同城转校"></topNavbar> |
|
||||
<view class="pad"> |
|
||||
<view class="card"> |
|
||||
<view class="tpsBox"> |
|
||||
<view class="row"> |
|
||||
<view class="icon"> |
|
||||
<image src="@/static/images/userCenter/warn.png" mode=""></image> |
|
||||
</view> |
|
||||
<view class="tps">请与教练协商,确认达成一致后填写协商好的退款金额</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
<myform></myform> |
|
||||
<view class="btnBg">提交</view> |
|
||||
</view> |
|
||||
</view> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import myform from './comp/myform' |
|
||||
export default { |
|
||||
components: { myform }, |
|
||||
data() { |
|
||||
return { |
|
||||
|
|
||||
} |
|
||||
}, |
|
||||
methods: { |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style lang="scss" scoped> |
|
||||
.card { |
|
||||
padding: 12rpx 28rpx; |
|
||||
margin-bottom: 24rpx; |
|
||||
.tpsBox { |
|
||||
height: 140rpx; |
|
||||
background: #FFFFFF; |
|
||||
border-radius: 16rpx; |
|
||||
.row { |
|
||||
height: 100%; |
|
||||
display: flex; |
|
||||
align-items: center; |
|
||||
.icon { |
|
||||
width: 36rpx; |
|
||||
height: 36rpx; |
|
||||
} |
|
||||
|
|
||||
.tps { |
|
||||
padding-left: 26rpx; |
|
||||
font-size: 28rpx; |
|
||||
font-weight: 600; |
|
||||
color: $themC; |
|
||||
line-height: 1.2em; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
.btnBg { |
|
||||
width: 396rpx; |
|
||||
margin: 94rpx auto; |
|
||||
} |
|
||||
</style> |
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue