106 lines
2.2 KiB
Vue
106 lines
2.2 KiB
Vue
|
<!-- 选择页 -->
|
||
|
<template>
|
||
|
<view class="content">
|
||
|
<view class="top-white">
|
||
|
请选择您需要的业务
|
||
|
</view>
|
||
|
<view class="box">
|
||
|
<view class="xz-box" v-if="sx1 == false" style="background-image: url('../../static/dljy.png');" @click="getsx()">
|
||
|
<view class="box-wenzi">道路救援</view>
|
||
|
</view>
|
||
|
|
||
|
<view class="xz-box" v-if="sx1 == true" style="background-image: url('../../static/xdljy.png');" @click="getsx()">
|
||
|
<view class="box-wenzi">道路救援</view>
|
||
|
</view>
|
||
|
|
||
|
<view class="xz-box" v-if="sx2 == false" style="background-image: url('../../static/qcjc.png');" @click="getsx2()">
|
||
|
<view class="box-wenzi">汽车检测</view>
|
||
|
</view>
|
||
|
|
||
|
<view class="xz-box" v-if="sx2 == true" style="background-image: url('../../static/xqcjc.png');" @click="getsx2()">
|
||
|
<view class="box-wenzi">汽车检测</view>
|
||
|
</view>
|
||
|
|
||
|
</view>
|
||
|
<view class="anniu" @click="goindex()">
|
||
|
<view class="">立即进入</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import request from '../../utils/request';
|
||
|
export default{
|
||
|
data(){
|
||
|
return{
|
||
|
sx1:true,
|
||
|
sx2:false,
|
||
|
}
|
||
|
},
|
||
|
methods:{
|
||
|
getsx(){
|
||
|
this.sx1 =! this.sx1
|
||
|
this.sx2 = false
|
||
|
},
|
||
|
getsx2(){
|
||
|
this.sx2 =! this.sx2
|
||
|
this.sx1 = false
|
||
|
},
|
||
|
goindex(){
|
||
|
uni.navigateTo({
|
||
|
url:'/pages/rescue/rescue'
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
.content{
|
||
|
width: 100%;
|
||
|
height: calc(100vh);
|
||
|
background: #282A32;
|
||
|
box-sizing: border-box;
|
||
|
padding: 18px;
|
||
|
}
|
||
|
.top-white{
|
||
|
color: white;
|
||
|
font-size: 19px;
|
||
|
font-weight: bold;
|
||
|
margin-top: 40px;
|
||
|
}
|
||
|
.box{
|
||
|
box-sizing: border-box;
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
flex-wrap: wrap;
|
||
|
}
|
||
|
.xz-box{
|
||
|
height: 80px;
|
||
|
width: 48%;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
font-size: 16px;
|
||
|
font-weight: 400;
|
||
|
color: #FFFFFF;
|
||
|
background-size: cover;
|
||
|
background-position: center;
|
||
|
margin-top: 14px;
|
||
|
|
||
|
}
|
||
|
.anniu{
|
||
|
background: linear-gradient(105deg, #FFE3AC 0%, #F3BA60 98%);
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
font-size: 16px;
|
||
|
font-weight: 400;
|
||
|
color: #542F0E;
|
||
|
width: 100%;
|
||
|
border-radius: 10rpx;
|
||
|
height: 45px;
|
||
|
margin-top: 40px;
|
||
|
}
|
||
|
</style>
|