提交 543d1732 authored 作者: 杨斌基's avatar 杨斌基

feat(上报内容): 调整交违法各表单项顺序

上级 724c84c9
......@@ -2,8 +2,75 @@
<view>
<view class="detail_container">
<view v-if="IllegalShow" class="content">
<!-- 违法时间-->
<view class="step_box" style="margin-top: 0;">
<view class="tep_one">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_neirong@2x.png" />
<view class="one">{{ '违法时间' }}</view>
</view>
<view class="report_title">
<input
:maxlength="20"
:placeholder="'违法时间'"
:value="$u.timeFormat(IllegalForm.illegal_time, 'yyyy-mm-dd hh:MM:ss')"
readonly
class="title_input"
@click="showIllegalTime = true"
/>
<!-- <view class="clear">-->
<!-- <text style="float: right; font-size: 28rpx; font-weight: 400; color: #656565; margin-right: 5px">{{ IllegalForm.illegal_time.length }}/{{ maxWord }}</text>-->
<!-- <image v-if="IllegalForm.illegal_time" @click="IllegalForm.illegal_time = ''" mode="aspectFill" class="tep_icon" src="/static/icon/ic_bt_del@2x.png" />-->
<!-- </view>-->
</view>
</view>
<!-- 违法地点-->
<view class="step_box">
<view class="tep_one">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_didian@2x.png" />
<view class="one">{{ '违法地点' }}</view>
</view>
<view class="photo_list">
<view v-if="address === '点击授权获取位置信息'" class="address" @click="getAddress">{{ address }}</view>
<view v-else class="address2" @click="getAddress">{{ address }}</view>
<view v-if="address === '点击授权获取位置信息'" class="address_tip">{{ !showActive ? null : `提示:请授权获取位置信息后${uploadTitle}` }}</view>
</view>
</view>
<!-- 号牌种类-->
<!--
<view class="step_box">
<view class="tep_one">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_neirong@2x.png" />
<view class="one">{{ '号牌种类' }}</view>
</view>
<view class="report_title">
<input :maxlength="20" :placeholder="'号牌种类'" v-model="IllegalForm.number_plate" class="title_input" />
<view class="clear">
<text style="float: right; font-size: 28rpx; font-weight: 400; color: #656565; margin-right: 5px">{{ IllegalForm.number_plate.length }}/{{ maxWord }}</text>
<image v-if="IllegalForm.number_plate" @click="IllegalForm.number_plate = ''" mode="aspectFill" class="tep_icon" src="/static/icon/ic_bt_del@2x.png" />
</view>
</view>
</view>
-->
<!-- 号牌号码-->
<view class="step_box">
<view class="tep_one">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_neirong@2x.png" />
<view class="one">{{ '号牌号码' }}</view>
</view>
<view class="report_title">
<input :maxlength="20" :placeholder="'号牌号码'" v-model="IllegalForm.license_plate" class="title_input" />
<view class="clear">
<text style="float: right; font-size: 28rpx; font-weight: 400; color: #656565; margin-right: 5px">{{ IllegalForm.license_plate.length }}/{{ maxWord }}</text>
<image v-if="IllegalForm.license_plate" @click="IllegalForm.license_plate = ''" mode="aspectFill" class="tep_icon" src="/static/icon/ic_bt_del@2x.png" />
</view>
</view>
</view>
<!-- 上报类型-->
<view class="report_box">
<view class="report_box" style="margin-top: 52rpx;">
<view class="report_one" @click="/* 暂时不给选择其它类型 choice */">
<view class="report_left">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_zhixing@2x.png" />
......@@ -31,19 +98,6 @@
</view>
</view>
<!-- 违法地点-->
<view class="step_box">
<view class="tep_one">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_didian@2x.png" />
<view class="one">{{ '违法地点' }}</view>
</view>
<view class="photo_list">
<view v-if="address === '点击授权获取位置信息'" class="address" @click="getAddress">{{ address }}</view>
<view v-else class="address2" @click="getAddress">{{ address }}</view>
<view v-if="address === '点击授权获取位置信息'" class="address_tip">{{ !showActive ? null : `提示:请授权获取位置信息后${uploadTitle}` }}</view>
</view>
</view>
<!-- 所属辖区-->
<!--
<view class="step_box">
......@@ -112,60 +166,6 @@
</view>
-->
<!-- 号牌号码-->
<view class="step_box">
<view class="tep_one">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_neirong@2x.png" />
<view class="one">{{ '号牌号码' }}</view>
</view>
<view class="report_title">
<input :maxlength="20" :placeholder="'号牌号码'" v-model="IllegalForm.license_plate" class="title_input" />
<view class="clear">
<text style="float: right; font-size: 28rpx; font-weight: 400; color: #656565; margin-right: 5px">{{ IllegalForm.license_plate.length }}/{{ maxWord }}</text>
<image v-if="IllegalForm.license_plate" @click="IllegalForm.license_plate = ''" mode="aspectFill" class="tep_icon" src="/static/icon/ic_bt_del@2x.png" />
</view>
</view>
</view>
<!-- 号牌种类-->
<!--
<view class="step_box">
<view class="tep_one">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_neirong@2x.png" />
<view class="one">{{ '号牌种类' }}</view>
</view>
<view class="report_title">
<input :maxlength="20" :placeholder="'号牌种类'" v-model="IllegalForm.number_plate" class="title_input" />
<view class="clear">
<text style="float: right; font-size: 28rpx; font-weight: 400; color: #656565; margin-right: 5px">{{ IllegalForm.number_plate.length }}/{{ maxWord }}</text>
<image v-if="IllegalForm.number_plate" @click="IllegalForm.number_plate = ''" mode="aspectFill" class="tep_icon" src="/static/icon/ic_bt_del@2x.png" />
</view>
</view>
</view>
-->
<!-- 违法时间-->
<view class="step_box">
<view class="tep_one">
<image mode="aspectFill" class="tep_icon" src="/static/icon/ic_rw_neirong@2x.png" />
<view class="one">{{ '违法时间' }}</view>
</view>
<view class="report_title">
<input
:maxlength="20"
:placeholder="'违法时间'"
:value="$u.timeFormat(IllegalForm.illegal_time, 'yyyy-mm-dd hh:MM:ss')"
readonly
class="title_input"
@click="showIllegalTime = true"
/>
<!-- <view class="clear">-->
<!-- <text style="float: right; font-size: 28rpx; font-weight: 400; color: #656565; margin-right: 5px">{{ IllegalForm.illegal_time.length }}/{{ maxWord }}</text>-->
<!-- <image v-if="IllegalForm.illegal_time" @click="IllegalForm.illegal_time = ''" mode="aspectFill" class="tep_icon" src="/static/icon/ic_bt_del@2x.png" />-->
<!-- </view>-->
</view>
</view>
<!-- 违法行为描述-->
<view class="step_box">
<view class="tep_one">
......@@ -833,13 +833,13 @@ export default {
const t = (text = '') => uni.$u.toast(text);
const { activeMap, isIncivility, isFault, isDispersion } = this
if (this.IllegalShow) {
if (!this.IllegalForm.illegal_time) return t('请输入违法时间');
if (!this.longitude) return t('请选择位置');
if (!this.IllegalForm.license_plate) return t('请输入号牌号码');
// if (!this.IllegalForm.jurisdiction) return t('请输入所属辖区');
// if (!this.IllegalForm.IllegalType) return t('请输入违法类型');
if (!this.IllegalForm.illegal_time) return t('请输入违法时间');
if (!this.IllegalForm.content) return t('请输入违法行为描述');
// if (!this.IllegalForm.number_plate) return t('请输入号牌种类');
if (!this.IllegalForm.license_plate) return t('请输入号牌号码');
if (!this.photoList.length) return t(`${this.uploadTitle}`);
if (!this.realForm.name) return t('请输入真实姓名');
if (!this.realForm.phone) return t('请输入电话号码');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论