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

跳转考试

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