114 lines
5.5 KiB
Plaintext
114 lines
5.5 KiB
Plaintext
<view class="box">
|
|
|
|
<!-- 报修 -->
|
|
<view wx:if="{{!sucess}}">
|
|
<view class="information">
|
|
<view class="title">基本信息</view>
|
|
<view class="information_row" bindtap="headerEquipmentPopupClick">
|
|
<view class="information_tit">设备型号</view>
|
|
<view class="information_ipt">
|
|
<input type="text" value="{{selectEquipment.device_code}}" placeholder="请填写您的设备型号" disabled placeholder-class="information_ipt_pla" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="information_row">
|
|
<view class="information_tit">联系人</view>
|
|
<view class="information_ipt">
|
|
<input type="text" placeholder="请填写联系人" placeholder-class="information_ipt_pla" value="{{name}}" bindinput="ipt1" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="information_row">
|
|
<view class="information_tit">联系电话</view>
|
|
<view class="information_ipt">
|
|
<input type="number" maxlength="11" placeholder="请填写您的联系电话" placeholder-class="information_ipt_pla" value="{{phone}}" bindinput="ipt2" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="information_row">
|
|
<view class="information_tit">省市区</view>
|
|
<view class="information_ipt">
|
|
<input type="number" bind:tap="choseRegion" disabled placeholder="请选择省市区" placeholder-class="information_ipt_pla" value="{{region}}" bindinput="ipt2" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="information_row">
|
|
<view class="information_tit">详细地址</view>
|
|
<view class="information_ipt">
|
|
<input type="text" placeholder="请填写您的详细地址" placeholder-class="information_ipt_pla" value="{{address}}" bindinput="ipt4" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="information_row noneBorder">
|
|
<view class="information_tit">期望上门时间</view>
|
|
|
|
<view style="flex: 1;text-align: right;" bindtap="switchShow">
|
|
{{time}}
|
|
<van-icon name="arrow" size="16" color="#D5AC66" />
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
<view class="gray"></view>
|
|
<view class="containerMsg">
|
|
<view class="title">报修内容</view>
|
|
<van-field value="{{ message }}" bindinput="ipt3" autosize show-word-limit maxlength="50" type="textarea" placeholder="请输入留言" border="{{ false }}" />
|
|
</view>
|
|
<view class="gray"></view>
|
|
<view class="uploadImg">
|
|
<view class="title">图片上传</view>
|
|
<view style="margin-top: 20rpx;">
|
|
<van-uploader file-list="{{ fileList }}" max-count="1" before-read="beforeRead" bind:after-read="beforeRead" bind:delete="deleteImg" upload-icon="plus" />
|
|
</view>
|
|
|
|
|
|
</view>
|
|
<view class="btn" bind:tap="submit">
|
|
提交
|
|
</view>
|
|
</view>
|
|
<!-- 报修成功 -->
|
|
<view wx:if="{{sucess}}" class="sucess">
|
|
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/maintenance_sucess.png" mode="widthFix" id="sucess" />
|
|
<view class="sucess_msgTit">提交成功</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<van-popup show="{{ DoorTimeShow }}" close-on-click-overlay position="bottom" custom-style="height: 40%;" bind:close="onClose">
|
|
<van-datetime-picker formatter="{{ formatter }}" type="datetime" min-date="{{ minDate }}" bind:confirm="onInput" bind:cancel="onClose" />
|
|
</van-popup>
|
|
|
|
<van-popup show="{{ equipmentShow }}" close-on-click-overlay position="bottom" round custom-style="height: 40%;" bind:close="onClosePopup">
|
|
<view class="equipment">
|
|
<view class="equipment_title" bindtap="headerCancelClick">
|
|
<text>取消</text>
|
|
</view>
|
|
<view class="equip_item {{index === equipmentList.length -1 && 'no_bottom'}}" wx:for="{{equipmentList}}" wx:key="index" bindtap="headerSelectClick" data-item="{{item}}">
|
|
<image class="equip_pic" src="{{item.product_icon}}" mode="" />
|
|
<view class="equip_desc">{{item.device_code}}</view>
|
|
</view>
|
|
</view>
|
|
</van-popup>
|
|
|
|
<!-- 省市区 -->
|
|
<van-popup show="{{ show2 }}" custom-style="height: 40%;" safe-area-inset-bottom lock-scroll bind:close="onClose2" round close-on-click-overlay position="bottom">
|
|
<view class="popup_title">
|
|
<view class="popup_label" bind:tap="onClose2">取消</view>
|
|
<view class="popup_label color_blue" bind:tap="onOk">确认</view>
|
|
</view>
|
|
<picker-view indicator-style="height: 50px;" style="width: 100%; height: 500rpx;" value="{{value}}" bindchange="bindChange">
|
|
<picker-view-column>
|
|
<view wx:for="{{cityList}}" wx:key="index" style="line-height: 50px; text-align: center;">{{item.name}}</view>
|
|
</picker-view-column>
|
|
<picker-view-column>
|
|
<view wx:for="{{newAreaList}}" wx:key="index" style="line-height: 50px; text-align: center;">{{item.name}}</view>
|
|
</picker-view-column>
|
|
<picker-view-column>
|
|
<view wx:for="{{newBusiness}}" wx:key="index" style="line-height: 50px; text-align: center;">{{item.business_name}}</view>
|
|
</picker-view-column>
|
|
</picker-view>
|
|
</van-popup> |