|
|
@@ -4,7 +4,7 @@
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no, viewport-fit=cover" />
|
|
|
<title>点亮五菱</title>
|
|
|
<!--引入 element-ui 的样式,-->
|
|
|
<link rel="stylesheet"
|
|
|
@@ -15,10 +15,10 @@
|
|
|
<!-- 引入element 的组件库-->
|
|
|
<script
|
|
|
src="https://wl-1306604067.cos.ap-guangzhou.myqcloud.com/production/ct/103548289110001/1742017747738/element-ui.js"></script>
|
|
|
- <script src="https://unpkg.com/vconsole/dist/vconsole.min.js"></script>
|
|
|
+ <!-- <script src="https://unpkg.com/vconsole/dist/vconsole.min.js"></script>
|
|
|
<script>
|
|
|
var vConsole = new window.VConsole();
|
|
|
- </script>
|
|
|
+ </script> -->
|
|
|
</head>
|
|
|
<style>
|
|
|
body {
|
|
|
@@ -28,17 +28,18 @@
|
|
|
|
|
|
.box {
|
|
|
width: 100vw;
|
|
|
- height: 100vh;
|
|
|
+ height: 100%;
|
|
|
box-sizing: border-box;
|
|
|
background: #FAFAFA;
|
|
|
}
|
|
|
|
|
|
.page6 {
|
|
|
width: 100vw;
|
|
|
- height: 100vh;
|
|
|
+ height: 100%;
|
|
|
background: url('./img/wl_carOwner.png') no-repeat center;
|
|
|
- background-size: 100vw 100vh;
|
|
|
+ background-size: 100vw 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
|
|
|
.page6s {
|
|
|
@@ -90,17 +91,20 @@
|
|
|
}
|
|
|
|
|
|
.page_foot {
|
|
|
- position: fixed;
|
|
|
+ position: absolute;
|
|
|
bottom: 20px;
|
|
|
width: 100%;
|
|
|
+ padding: 0 35px;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.foot_btn {
|
|
|
+ height: 52px;
|
|
|
+ line-height: 52px;
|
|
|
+ width: 100%;
|
|
|
font-weight: 500;
|
|
|
font-size: 16px;
|
|
|
color: #222222;
|
|
|
- padding: 15px 0;
|
|
|
- margin: 0 35px;
|
|
|
background: #FFFFFF;
|
|
|
text-align: center;
|
|
|
border-radius: 20px;
|
|
|
@@ -317,10 +321,13 @@
|
|
|
selectData: 'one',
|
|
|
isWlCar: false,
|
|
|
filter: 1,
|
|
|
- noTestDrive: false
|
|
|
+ noTestDrive: false,
|
|
|
+ originalScrollY: 0
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
+ var hrt = document.documentElement.clientHeight; //获取当前可视区域的高度存到hrt变量
|
|
|
+ document.getElementById('box').style.height = hrt + 'px'//把获取到的高度赋值给根div
|
|
|
this.bId = this.getQueryParam('bId')
|
|
|
this.env = this.getQueryParam('env')
|
|
|
if (!this.env || this.env === 'prod') {
|
|
|
@@ -413,7 +420,17 @@
|
|
|
}).then(result => {
|
|
|
let { data, code, msg } = result
|
|
|
if (code === 1) {
|
|
|
- this.lightData = data
|
|
|
+ if (data.client.state === 2) {
|
|
|
+ let url = ''
|
|
|
+ if (!this.env || this.env === 'prod') {
|
|
|
+ url = `https://lottery.camlook.cn/?bId=${data.raffle1BizId}&h5Type=30`
|
|
|
+ } else {
|
|
|
+ url = `https://lottery.camlook.cn/?bId=${data.raffle1BizId}&env=dev&h5Type=30`
|
|
|
+ }
|
|
|
+ window.location.replace(url)
|
|
|
+ } else {
|
|
|
+ this.lightData = data
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: msg,
|