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">
|
|
|
|
<view v-if="index !== 4 || role[0] == 'jjdd'" :key="index" class="xz-box" :class="{ checked: busiType === index + 1 }" @click="getsx(index + 1)">
|
|
|
|
<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>
|
|
|
|
<!-- <view class="xz-box" :class="{ checked: busiType === 1 }" id="y1" @click="getsx(1)">
|
|
|
|
<image class="xz-box-icon" src="@/static/icons/order/tuoche.png" mode="aspectFit"></image>
|
2024-08-20 20:02:05 +08:00
|
|
|
<view class="box-wenzi">拖车</view>
|
2024-08-22 19:34:47 +08:00
|
|
|
</view> -->
|
|
|
|
<!-- <view class="xz-box" :class="{ checked: busiType === 2 }" id="y2" @click="getsx(2)">
|
|
|
|
<image class="xz-box-icon" src="@/static/icons/order/songyou.png" mode="aspectFit"></image>
|
2024-08-20 20:02:05 +08:00
|
|
|
<view class="box-wenzi">送油</view>
|
|
|
|
</view>
|
2024-08-22 19:34:47 +08:00
|
|
|
<view class="xz-box" :class="{ checked: busiType === 3 }" id="y3" @click="getsx(3)">
|
|
|
|
<image class="xz-box-icon" src="@/static/icons/order/dadian.png" mode="aspectFit"></image>
|
2024-08-20 20:02:05 +08:00
|
|
|
<view class="box-wenzi">搭电</view>
|
|
|
|
</view>
|
2024-08-22 19:34:47 +08:00
|
|
|
<view class="xz-box" :class="{ checked: busiType === 4 }" id="y4" @click="getsx(4)">
|
|
|
|
<image class="xz-box-icon" src="@/static/icons/order/huantai.png" mode="aspectFit"></image>
|
2024-08-20 20:02:05 +08:00
|
|
|
<view class="box-wenzi">换胎</view>
|
|
|
|
</view>
|
2024-08-22 19:34:47 +08:00
|
|
|
<view class="xz-box" :class="{ checked: busiType === 5 }" v-if="role[0] == 'jjdd' " id="y5" @click="getsx(5)">
|
2024-08-20 20:02:05 +08:00
|
|
|
<view class="box-wenzi">扣车</view>
|
2024-08-22 19:34:47 +08:00
|
|
|
</view> -->
|
2024-08-20 20:02:05 +08:00
|
|
|
</view>
|
2024-08-22 19:34:47 +08:00
|
|
|
<!-- <view class="anniu" @click="goindex()">
|
2024-08-20 20:02:05 +08:00
|
|
|
<view class="">立即进入</view>
|
|
|
|
</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';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
sx1: true,
|
|
|
|
sx2: false,
|
|
|
|
isAppointment: '',
|
|
|
|
role: '',
|
|
|
|
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
|
|
|
this.role = uni.getStorageSync('role')
|
2024-08-20 20:02:05 +08:00
|
|
|
},
|
2024-08-22 19:34:47 +08:00
|
|
|
methods: {
|
|
|
|
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>
|