2024-08-20 20:02:05 +08:00
|
|
|
<!-- 选择页 -->
|
|
|
|
<template>
|
|
|
|
<view class="content">
|
2024-08-22 19:34:47 +08:00
|
|
|
<v-navigation-bar-vue title="立即救援"></v-navigation-bar-vue>
|
2024-08-20 20:02:05 +08:00
|
|
|
<view class="bil">
|
|
|
|
<view class="top-white">
|
|
|
|
请选择您需要的业务
|
|
|
|
</view>
|
|
|
|
<view class="box">
|
2024-08-22 19:34:47 +08:00
|
|
|
<template v-for="(item, index) in busiTypeList">
|
2024-08-27 21:45:25 +08:00
|
|
|
<view v-if="index !== 4 || hasRole('jjdd')" :key="index" class="xz-box" :class="{ checked: busiType === index + 1 }" @click="getsx(index + 1)">
|
2024-08-22 19:34:47 +08:00
|
|
|
<image class="xz-box-icon" :src="item.icon" mode="aspectFit"></image>
|
|
|
|
<view class="box-wenzi">{{item.label}}</view>
|
|
|
|
<view class="checkedFlag">
|
|
|
|
</view>
|
|
|
|
<!-- <uni-icons type="plus"></uni-icons> -->
|
|
|
|
<uni-icons class="checkedFlagIcon" type="checkmarkempty" size="22" color="#fff"></uni-icons>
|
|
|
|
</view>
|
|
|
|
</template>
|
2024-08-20 20:02:05 +08:00
|
|
|
</view>
|
2024-08-22 19:34:47 +08:00
|
|
|
<view class="submitBtn" @click="hanleOkBusiType">下一步</view>
|
|
|
|
</view>
|
|
|
|
<tabBar msg="1"></tabBar>
|
2024-08-20 20:02:05 +08:00
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import request from '../../utils/request';
|
2024-08-22 19:34:47 +08:00
|
|
|
import tabBar from '../../components/tabBar/tabBar.vue'
|
|
|
|
import VNavigationBarVue from '../../components/VNavigationBar.vue';
|
2024-08-27 21:45:25 +08:00
|
|
|
import {hasRole} from "@/utils/auth";
|
2024-08-22 19:34:47 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
sx1: true,
|
|
|
|
sx2: false,
|
|
|
|
isAppointment: '',
|
|
|
|
busiType: '',
|
|
|
|
busiTypeList: [{
|
|
|
|
label: '拖车',
|
|
|
|
icon: require('@/static/icons/order/tuoche.png')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '送油',
|
|
|
|
icon: require('@/static/icons/order/songyou.png')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '搭电',
|
|
|
|
icon: require('@/static/icons/order/dadian.png')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '换胎',
|
|
|
|
icon: require('@/static/icons/order/huantai.png')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '扣车',
|
|
|
|
icon: require('@/static/icons/order/tuoche.png')
|
|
|
|
},
|
|
|
|
]
|
2024-08-20 20:02:05 +08:00
|
|
|
}
|
|
|
|
},
|
2024-08-22 19:34:47 +08:00
|
|
|
components: {
|
2024-08-20 20:02:05 +08:00
|
|
|
tabBar,
|
2024-08-22 19:34:47 +08:00
|
|
|
VNavigationBarVue
|
2024-08-20 20:02:05 +08:00
|
|
|
},
|
|
|
|
onLoad(option) {
|
|
|
|
this.isAppointment = option.isAppointment
|
|
|
|
},
|
2024-08-22 19:34:47 +08:00
|
|
|
methods: {
|
2024-08-27 21:45:25 +08:00
|
|
|
hasRole,
|
2024-08-22 19:34:47 +08:00
|
|
|
getback() {
|
|
|
|
uni.navigateBack({
|
|
|
|
delta: 1,
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getsx(id) {
|
|
|
|
this.busiType = id
|
|
|
|
// uni.navigateTo({
|
|
|
|
// url: '/pages/rescue/initiate?id=' + id + '&isAppointment=' + this.isAppointment
|
|
|
|
// })
|
2024-08-20 20:02:05 +08:00
|
|
|
},
|
2024-08-22 19:34:47 +08:00
|
|
|
hanleOkBusiType() {
|
2024-08-20 20:02:05 +08:00
|
|
|
uni.navigateTo({
|
2024-08-22 19:34:47 +08:00
|
|
|
url: '/pages/rescue/initiate?id=' + this.busiType + '&isAppointment=' + this.isAppointment
|
2024-08-20 20:02:05 +08:00
|
|
|
})
|
|
|
|
},
|
2024-08-22 19:34:47 +08:00
|
|
|
goindex() {
|
2024-08-20 20:02:05 +08:00
|
|
|
uni.navigateTo({
|
2024-08-22 19:34:47 +08:00
|
|
|
url: '/pages/index/index'
|
2024-08-20 20:02:05 +08:00
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
2024-08-22 19:34:47 +08:00
|
|
|
|
2024-08-20 20:02:05 +08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2024-08-22 19:34:47 +08:00
|
|
|
.content {
|
2024-08-20 20:02:05 +08:00
|
|
|
width: 100%;
|
|
|
|
height: calc(100vh);
|
2024-08-22 19:34:47 +08:00
|
|
|
background: #F7F8FC;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-08-20 20:02:05 +08:00
|
|
|
}
|
2024-08-22 19:34:47 +08:00
|
|
|
|
|
|
|
.bil {
|
|
|
|
flex: 1;
|
|
|
|
height: 0;
|
2024-08-20 20:02:05 +08:00
|
|
|
box-sizing: border-box;
|
2024-08-22 19:34:47 +08:00
|
|
|
padding: 30rpx 36rpx;
|
|
|
|
overflow: auto;
|
|
|
|
padding-bottom: 120rpx;
|
2024-08-20 20:02:05 +08:00
|
|
|
}
|
2024-08-22 19:34:47 +08:00
|
|
|
|
|
|
|
.top-icon {
|
2024-08-20 20:02:05 +08:00
|
|
|
display: flex;
|
|
|
|
color: #999999;
|
|
|
|
margin-bottom: 25px;
|
|
|
|
}
|
2024-08-22 19:34:47 +08:00
|
|
|
|
|
|
|
.top-white {
|
2024-08-20 20:02:05 +08:00
|
|
|
color: #333333;
|
|
|
|
font-size: 19px;
|
|
|
|
font-weight: bold;
|
|
|
|
// margin-top: 40px;
|
|
|
|
}
|
2024-08-22 19:34:47 +08:00
|
|
|
|
|
|
|
.box {
|
2024-08-20 20:02:05 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
2024-08-22 19:34:47 +08:00
|
|
|
|
|
|
|
.xz-box {
|
|
|
|
width: 330rpx;
|
|
|
|
height: 396rpx;
|
|
|
|
background: #FFFFFF;
|
|
|
|
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.06);
|
|
|
|
border-radius: 16rpx;
|
2024-08-20 20:02:05 +08:00
|
|
|
display: flex;
|
2024-08-22 19:34:47 +08:00
|
|
|
flex-direction: column;
|
2024-08-20 20:02:05 +08:00
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #FFFFFF;
|
2024-08-22 19:34:47 +08:00
|
|
|
margin-top: 36rpx;
|
|
|
|
transition: all ease 400ms;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.checkedFlagIcon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.checked {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: relative;
|
|
|
|
border: 2rpx solid #478AFA;
|
|
|
|
|
|
|
|
.checkedFlag {
|
|
|
|
background-color: #478AFA;
|
|
|
|
width: 120rpx;
|
|
|
|
height: 120rpx;
|
|
|
|
position: absolute;
|
|
|
|
right: -60rpx;
|
|
|
|
bottom: -60rpx;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.checkedFlagIcon {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 2;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.xz-box-icon {
|
|
|
|
width: 130rpx;
|
|
|
|
height: 130rpx;
|
|
|
|
margin-bottom: 26rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.box-wenzi {
|
|
|
|
font-size: 28rpx;
|
|
|
|
color: #000000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.submitBtn {
|
|
|
|
margin-top: 30rpx;
|
|
|
|
background: #327DFB;
|
|
|
|
border-radius: 12rpx;
|
|
|
|
padding: 24rpx;
|
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 32rpx;
|
2024-08-20 20:02:05 +08:00
|
|
|
}
|
2024-08-22 19:34:47 +08:00
|
|
|
|
|
|
|
.anniu {
|
2024-08-20 20:02:05 +08:00
|
|
|
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;
|
|
|
|
}
|
2024-08-22 19:34:47 +08:00
|
|
|
|
|
|
|
// #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');
|
|
|
|
// }
|
2024-08-20 20:02:05 +08:00
|
|
|
</style>
|