You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
157 lines
2.8 KiB
157 lines
2.8 KiB
<template>
|
|
<view class="content">
|
|
<view class="main_form">
|
|
<view class="phone">
|
|
紧急救援电话: 17716516136
|
|
</view>
|
|
<view class="tips">
|
|
温馨提示: 准确的上报让我们更好的为您服务
|
|
</view>
|
|
<view class="scan_code">
|
|
<input type="text" placeholder="请输入车辆编码或扫描车身二维码"
|
|
style="font-size: 12px; letter-spacing: 3rpx; width: 80%;" />
|
|
<u-icon name="scan" color="#54a7d9" size="40"></u-icon>
|
|
</view>
|
|
<!-- -->
|
|
<view class="choose_error">
|
|
<text>选择遇到的故障 (可多选)</text>
|
|
<view class="choose_list">
|
|
<view v-for="(item,index) in choose_list" :key="index" @click="handle_choose(index)"
|
|
:class="item.check? 'ischeck_choose': '' ">
|
|
{{item.label}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- -->
|
|
<view class="choose_error">
|
|
<text>拍摄照片</text>
|
|
<view>
|
|
<u-upload :action="action" :file-list="fileList" ></u-upload>
|
|
</view>
|
|
</view>
|
|
<view class="submit_btn">
|
|
提交
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
choose_list: [{
|
|
label: '断电',
|
|
check: false,
|
|
id: 0
|
|
},
|
|
{
|
|
label: '爆胎',
|
|
check: false,
|
|
id: 1
|
|
},
|
|
{
|
|
label: '事故',
|
|
check: false,
|
|
id: 2
|
|
},
|
|
{
|
|
label: '其他',
|
|
check: false,
|
|
id: 3
|
|
},
|
|
],
|
|
action:'',
|
|
fileList:[]
|
|
}
|
|
},
|
|
methods: {
|
|
handle_choose(index) {
|
|
// console.log(index, '----');
|
|
this.choose_list[index].check = !this.choose_list[index].check
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.content {
|
|
height: 100vh;
|
|
background: #f8f8f8;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.main_form {
|
|
height: 800rpx;
|
|
background: #ffffff;
|
|
width: 100%;
|
|
border-radius: 10rpx;
|
|
padding: 15rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.phone {
|
|
color: #44c159;
|
|
font-size: 12px;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.tips {
|
|
margin-top: 30rpx;
|
|
color: #b6b6b6;
|
|
font-size: 12px;
|
|
margin-left: 30rpx;
|
|
}
|
|
|
|
.scan_code {
|
|
margin-top: 20rpx;
|
|
height: 120rpx;
|
|
background: #f4f4f4;
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 10rpx;
|
|
}
|
|
|
|
.choose_error {
|
|
margin-top: 30rpx;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #202020;
|
|
}
|
|
|
|
.choose_list {
|
|
margin-top: 20rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-evenly;
|
|
|
|
>view {
|
|
width: 140rpx;
|
|
line-height: 60rpx;
|
|
border-radius: 8rpx;
|
|
font-size: 12px;
|
|
border: 1px solid #d8d8d8;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.ischeck_choose {
|
|
background: #8ee49a;
|
|
opacity: 0.8;
|
|
}
|
|
.submit_btn {
|
|
line-height: 80rpx;
|
|
width: 80%;
|
|
margin: 20rpx auto;
|
|
background: #44c159;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
border-radius: 40rpx;
|
|
}
|
|
</style> |