155 lines
2.9 KiB
Vue
155 lines
2.9 KiB
Vue
<!-- 选择页 -->
|
|
<template>
|
|
<view class="content">
|
|
<view class="bil">
|
|
<view class="top-icon" @click="getback()">
|
|
<uni-icons type="left" size="18"></uni-icons>
|
|
<view class="">返回</view>
|
|
</view>
|
|
<view class="top-white">
|
|
请选择您需要的业务
|
|
</view>
|
|
<view class="box">
|
|
<view class="xz-box" id="y3" @click="getsx(6)">
|
|
<view class="box-wenzi">事故救援</view>
|
|
</view>
|
|
<view class="xz-box" id="y3" @click="getsx(7)">
|
|
<view class="box-wenzi">秩序救援</view>
|
|
</view>
|
|
<view class="xz-box" id="y3" @click="getsx(5)">
|
|
<view class="box-wenzi">扣车</view>
|
|
</view>
|
|
<!-- <view class="xz-box" id="y4" @click="getsx(8)">
|
|
<view class="box-wenzi">放车</view>
|
|
</view> -->
|
|
|
|
</view>
|
|
<!-- <view class="anniu" @click="goindex()">
|
|
<view class="">立即进入</view>
|
|
</view> -->
|
|
</view>
|
|
<tabBar></tabBar>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import request from '../../utils/request';
|
|
import tabBar from'../../components/tabBar/tabBar.vue'
|
|
|
|
export default{
|
|
data(){
|
|
return{
|
|
sx1:true,
|
|
sx2:false,
|
|
isAppointment:'',
|
|
role:'',
|
|
}
|
|
},
|
|
components:{
|
|
tabBar,
|
|
},
|
|
onLoad(option) {
|
|
this.isAppointment = option.isAppointment
|
|
this.role = uni.getStorageSync('role')
|
|
},
|
|
methods:{
|
|
getback(){
|
|
uni.navigateBack({
|
|
delta:1,
|
|
})
|
|
},
|
|
getsx(id){
|
|
|
|
if(id==8){
|
|
uni.navigateTo({
|
|
url:'/pages/Detain/Detain'
|
|
})
|
|
}else{
|
|
uni.navigateTo({
|
|
url:'/pages/rescue/initiate?id='+id+'&isAppointment='+this.isAppointment
|
|
})
|
|
}
|
|
|
|
},
|
|
goindex(){
|
|
uni.navigateTo({
|
|
url:'/pages/index/index'
|
|
})
|
|
}
|
|
}
|
|
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content{
|
|
width: 100%;
|
|
height: calc(100vh);
|
|
background: white;
|
|
|
|
}
|
|
.bil{
|
|
box-sizing: border-box;
|
|
padding: 18px;
|
|
padding-top: 50px;
|
|
}
|
|
.top-icon{
|
|
display: flex;
|
|
color: #999999;
|
|
margin-bottom: 25px;
|
|
}
|
|
.top-white{
|
|
color: #333333;
|
|
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: 20px;
|
|
|
|
}
|
|
.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;
|
|
}
|
|
#y1{
|
|
background-image: url('../../static/tc.png');
|
|
}
|
|
#y2{
|
|
background-image: url('../../static/sy.png');
|
|
}
|
|
#y3{
|
|
background-image: url('../../static/dd.png');
|
|
}
|
|
#y4{
|
|
background-image: url('../../static/ht.png');
|
|
}
|
|
#y5{
|
|
background-image: url('../../static/kc.png');
|
|
}
|
|
</style> |