Commit 2b080303 authored by 黄奎's avatar 黄奎

跳转考试

parent df074956
...@@ -1148,9 +1148,10 @@ ...@@ -1148,9 +1148,10 @@
</script> </script>
<style> <style>
.limit{ .limit {
margin-top: 20rpx; margin-top: 20rpx;
} }
.box-title { .box-title {
font-weight: bold; font-weight: bold;
} }
...@@ -1158,6 +1159,7 @@ ...@@ -1158,6 +1159,7 @@
.box-name { .box-name {
font-size: 22rpx; font-size: 22rpx;
} }
.the-top { .the-top {
position: absolute; position: absolute;
top: 82%; top: 82%;
......
<template> <template>
<web-view :src="url" v-if="!showPhone"></web-view> <web-view :src="url"></web-view>
<view v-else class="indexassembly" > <!-- <view v-else class="indexassembly" >
<u-popup v-model="showPhone" mode="center" length="auto"> <u-popup v-model="showPhone" mode="center" length="auto">
<view style="width: 70vw;" class="mask"> <view style="width: 70vw;" class="mask">
<view <view
...@@ -21,9 +21,10 @@ ...@@ -21,9 +21,10 @@
</view> </view>
</view> </view>
</u-popup> </u-popup>
</view> </view> -->
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
...@@ -45,15 +46,19 @@ ...@@ -45,15 +46,19 @@
this.getCode() this.getCode()
}, },
onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数 onLoad: function(option) { //option为object类型,会序列化上个页面传递的参数
this.url = decodeURIComponent(option.u) // this.url = decodeURIComponent(option.u)
if(option.auth||option.limit){ if(option.auth||option.limit){
this.showPhone =true this.showPhone =true
if(option.limit) { if(option.limit) {
this.info=option.limit this.info=option.limit
// console.log('参数',this.info) // console.log('参数',this.info)
let limiturls =`https://jj.kookaku.com?limit=${this.info}`
this.url=decodeURIComponent(limiturls)
console.log('要跳转的链接',this.url)
} }
} else { } else {
this.showPhone =false this.url = decodeURIComponent(option.u)
// this.showPhone =false
} }
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment