Commit 2fa238f2 by liwk

测试环境

1 parent 2e99667e
# 所有环境默认 # 所有环境默认
# 网络请求公用地址(正式环境) # 网络请求公用地址(正式环境)
#正式环境 #正式环境
VUE_APP_API=https://wx.glsx.com.cn/rop-ddh-carlife/router #VUE_APP_API=https://wx.glsx.com.cn/rop-ddh-carlife/router
VUE_APP_KEY=d7ffc3346fc9a45bccaaa35300d59022 #VUE_APP_KEY=d7ffc3346fc9a45bccaaa35300d59022
VUE_APP_SECRET=4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353 #VUE_APP_SECRET=4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353
VUE_APP_ID=wx3ef8920491efbe46 #VUE_APP_ID=wx3ef8920491efbe46
#测试环境 #测试环境
#VUE_APP_API=https://qcwx.glsx.com.cn/rop-ddh-carlife/router #VUE_APP_API=https://qcwx.glsx.com.cn/rop-ddh-carlife/router
#VUE_APP_API=http://r2j7.branch.glsx.com.cn/rop-ddh-carlife/router VUE_APP_KEY=48e5e13229b82c1b4e6e8c96151f0637
#VUE_APP_KEY=48e5e13229b82c1b4e6e8c96151f0637 VUE_APP_SECRET=c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b
#VUE_APP_SECRET=c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b VUE_APP_ID=wx91ef13a183a554f5
#VUE_APP_ID=wx91ef13a183a554f5 VUE_APP_API=http://fi69.branch.glsx.com.cn/rop-ddh-carlife/router
#测试登录
#VUE_APP_API=http://fi69.branch.glsx.com.cn/rop-ddh-carlife/router
...@@ -5,9 +5,11 @@ const pages = { ...@@ -5,9 +5,11 @@ const pages = {
{ name: 'activate', title: '激活权益' }, { name: 'activate', title: '激活权益' },
{ name: 'explain', title: '常见疑问' }, { name: 'explain', title: '常见疑问' },
{ name: 'phoneLogin', title: '登录' }, { name: 'phoneLogin', title: '登录' },
{ name: 'web-view' }
], ],
car: [{ car: [{
name: 'marketing',
title: '绑定挪车码'
}, {
name: 'index', name: 'index',
hasAuth: true, hasAuth: true,
title: '绑定挪车码' title: '绑定挪车码'
......
<template>
<div class="marketing">
<div class="banner">
<img src="@a/images/marketing/banner.png">
</div>
<div class="tips">
现在绑定挪车贴送
<span>无忧车主权益</span>
</div>
<div
class="marketing-btn"
@touchstart="touchstart"
@touchend="touchend"
@click="jump"
>
绑定挪车贴
</div>
<div class="marketing-box page">
<div class="title">现实中的困扰</div>
<div class="page-items">
<template v-for="(i,index) in page1">
<div
class="page-item"
:key="index"
>
<div class="page-item-img">
<img :src="i.icon">
</div>
{{i.name}}
</div>
</template>
</div>
<div class="title">我们的优势</div>
<div class="page-items page-icon">
<template v-for="(i,index) in page2">
<div
class="page-item "
:key="index"
>
<div class="page-item-img">
<img :src="i.icon">
</div>
{{i.name}}
<div
class="description"
v-html="i.description"
></div>
</div>
</template>
</div>
</div>
<div class="marketing-box equity">
<div class="bg">
<img src="@a/images/marketing/bg.png">
<div class="title">无忧车主权益</div>
</div>
<div class="info">
<div class="tips">
特价加油优惠、全国特价景区门票、超值外卖红包、特价视频会员
</div>
<div class="title">百余种优惠 覆盖您的衣食住行</div>
<div class="line"></div>
<div class="icon-items">
<template v-for="(i,index) in iconItems">
<div
class="item"
:key="index"
>
<div class="icon">
<img :src="i.icon">
</div>
{{i.name}}
</div>
</template>
</div>
</div>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'marketing',
data () {
return {
page1: [
{ name: '号码暴露遭骚扰', icon: require('@a/images/marketing/page1.png') },
{ name: '临时停车被涂鸦', icon: require('@a/images/marketing/page2.png') }
],
page2: [
{ name: '号码隐藏', description: '虚拟号转接<br>告别电话骚扰', icon: require('@a/images/marketing/icon0.png') },
{ name: '永久免费', description: '终身服务<br>无需额外续费', icon: require('@a/images/marketing/icon1.png') },
{ name: '赠送权益', description: '百种权益<br>覆盖衣食住行', icon: require('@a/images/marketing/icon2.png') },
],
iconItems: [{
name: '加油优惠',
icon: require('@a/images/marketing/icon-0.png')
},
{
name: '特价门票',
icon: require('@a/images/marketing/icon-1.png')
},
{
name: '外卖红包',
icon: require('@a/images/marketing/icon-2.png')
},
{
name: '视频会员',
icon: require('@a/images/marketing/icon-3.png')
}],
}
},
mounted () {
},
methods: {
jump () {
window.location.href = `${window.location.href.split('#')[0]}/#/car/index`
}
}
}
</script>
<style scoped lang='scss'>
.marketing {
background: #168ae5;
padding-bottom: 20px;
.banner {
width: 100%;
height: 190px;
}
.tips {
font-size: 12px;
color: #ffffff;
text-align: center;
margin: 10px auto;
span {
color: #ffec06;
}
}
.marketing-btn {
margin: 0 auto 24px;
width: 179px;
height: 32px;
display: flex;
justify-content: center;
align-items: center;
font-size: 16px;
background: #ffffff;
box-shadow: 0 2px 4px 0 #0063b1;
border-radius: 25.5px;
color: #008fff;
}
&-box {
background: #ffffff;
border-radius: 10px;
margin: 0 20px;
}
.page {
padding: 20px;
.title {
font-size: 16px;
color: #7c7c7c;
text-align: center;
margin-bottom: 10px;
}
.page-items {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
.page-item {
font-size: 14px;
color: #7c7c7c;
text-align: center;
&-img {
width: 108px;
height: 70px;
margin-bottom: 6px;
}
}
}
.page-icon {
margin-bottom: 1px;
.page-item {
color: #666666;
&-img {
width: 50px;
height: 50px;
margin: 0 auto 8px;
}
.description {
font-size: 12px;
color: #b7b7b7;
margin-top: 11px;
}
}
}
}
.equity {
position: relative;
height: 237px;
margin-top: 64px;
.bg {
position: absolute;
top: -44px;
left: 50%;
transform: translateX(-50%);
width: 309px;
height: 265px;
.title {
font-size: 16px;
color: #168ae5;
position: absolute;
top: 6px;
left: 50%;
transform: translateX(-50%);
}
}
.info {
position: relative;
z-index: 2;
.tips {
width: 216px;
text-align: center;
font-size: 12px;
color: #606060;
padding-top: 27px;
line-height: 16px;
margin-bottom: 20px;
}
.title {
font-size: 18px;
color: #008fff;
text-align: center;
font-weight: 700;
}
.line {
width: 200px;
height: 1px;
margin: 12px auto 24px;
background-color: #168ae5;
}
.icon-items {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
color: #f4a346;
text-align: center;
padding: 0 43px;
.icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
}
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="web-view">
<iframe :src="url"></iframe>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
url: ''
}
},
mounted () {
console.log(this.$route)
let { params: { url } } = this.$route
this.url = decodeURIComponent(url)
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.web-view {
width: 100%;
height: 100vh;
iframe {
width: 100%;
height: 100%;
border: none;
}
}
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!