serviceApply.wxml
5.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<wxs src="./serviceApply.wxs" module="filterUtils" />
<!-- 门店信息 -->
<view class="store-box" style="background-image: url({{IMGURL}}equity/claims/service_bg_icon.png?v={{img_version}});">
<view wx:if="{{target}}" class="store-info">
<view class="store-name">{{infoData.merchantName}}</view>
<view class="store-address">{{infoData.merchantAddress}}</view>
<view class="store-operate">
<view class="operate-left">
<image webp class="address-img" src="{{IMGURL}}equity/claims/km_icom.png?v={{img_version}}" />
<text bind:tap="openMap" wx:if="{{myLocation.lat}}" class="operate-text">{{infoData.kilomiter}}</text>
<text wx:else class="operate-text" bind:tap="authFail">重新定位</text>
</view>
<view bindtap="callPhone" data-item="{{infoData.merchantPhone}}">
<image webp class="phone-img" src="{{IMGURL}}equity/claims/phone_icon.png?v={{img_version}}" />
<text class="operate-text">{{infoData.merchantPhone}}</text>
</view>
</view>
</view>
</view>
<!-- 核销码 -->
<view class="code-box">
<view class="code-info">
<view class="code-title">
<text class="code-title-left">核销码</text>
<text class="code-title-right">过期后需重新申请服务</text>
</view>
<view class="code-num-box">
<view class="code-number {{!codeStatus ? 'code-number-inactive' : 'code-number-active'}}">
{{infoData.writeOffCodeInfo.writeOffCode}}
</view>
<view wx:if="{{codeStatus}}" class="code-copy" data-item="{{infoData.writeOffCodeInfo.writeOffCode}}" bind:tap="setCopyData">
<image webp class="copy-img" src="{{IMGURL}}equity/claims/pre_copy_icon.png?v={{img_version}}" />
<text class="copy-text">复制</text>
</view>
<view class="code-time">
<block wx:if="{{codeStatus}}">
<text class="code-time-num">{{expiredTime}}</text>
<text class="code-text">后失效</text>
</block>
<block wx:else>
<text class="code-number-inactive">已过期</text>
</block>
</view>
</view>
</view>
</view>
<!-- 车辆信息填写 -->
<view class="apply-box">
<form>
<view class="apply-info">
<view class='info-list'>
<text class="info-lable">报损车辆</text>
<input class="int-style" name="vehicleName" bindinput="toVehicleName" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' maxlength="20" placeholder='请输入' value="{{applyInfo.vehicleName}}"></input>
</view>
<!-- 出险时间 -->
<view class='info-list' bindtap="changeDate">
<text class="info-lable">出险时间</text>
<view class="info-content">
<view class="province-placeholder">{{applyInfo.reimbursementDate || '请选择'}}</view>
<view>
<image webp class="select-img" src="{{IMGURL}}equity/claims/pre_date_icon.png?v={{img_version}}" />
</view>
</view>
</view>
<!-- 出险地点 -->
<view style="border-bottom: 1rpx solid #F0F0F0;">
<view class='info-list address-info' bindtap="showProvince">
<text class="info-lable">出险地点</text>
<view>
<view class="info-content">
<block wx:if="{{!applyInfo.address.length}}">
<view class="province-placeholder">请选择</view>
</block>
<block wx:else>
<view>{{filterUtils.regionText(applyInfo, 'address')}}</view>
</block>
<view>
<image webp class="select-img" src="{{IMGURL}}equity/claims/pre_icon_arrow.png?v={{img_version}}" />
</view>
</view>
</view>
</view>
<!-- </picker> -->
<textarea name="detailAddress" bindinput="toFillAdress" class="detail-address" placeholder-style='font-size:28rpx;color: #DFDFDF;' placeholder='详细地点' maxlength="140" value="{{applyInfo.detailAddress}}"></textarea>
</view>
<!-- 车辆图片信息 -->
<view class="photo-info">信息填报</view>
<block wx:for="{{carImgInfo}}" wx:key="index">
<view class="photo-text">{{item.secondClassifyName}}</view>
<view class="photo-img-box">
<view data-item="{{index}}" catch:tap="toUploadImage" class="image-box">
<image webp wx:if="{{!item.url}}" class="camera-img" src="{{IMGURL}}equity/claims/pre_photo_icon.png?v={{img_version}}" />
<image webp wx:else catch:tap="previewImage" data-current="{{item.url}}" class=" image_up_load" src="{{item.url}}" />
<!-- 图片删除 -->
<image webp wx:if="{{item.url}}" data-item="{{index}}" catch:tap="delUploadImage" class="del-img" src="{{IMGURL}}equity/claims/pre_del_icon.png?v={{img_version}}" />
</view>
<view class="image-box">
<image webp bindtap="previewImage" data-current="{{item.exampleUrl}}" src="{{item.exampleUrl}}" />
<image webp class="example-img" src="{{IMGURL}}equity/claims/pre_eg_icon.png?v={{img_version}}" />
</view>
</view>
</block>
<button class="submit-btn" bindtap="submit">下一步</button>
</view>
</form>
</view>
<!-- 重新授权定位 -->
<block wx:if="{{showAuth}}">
<authorize scopeType="userLocation" buttonType="openSetting" bindfail="authFail" bindsuccess="authSuccess" show="{{showAuth}}"></authorize>
</block>
<van-popup
show="{{ areaVisible }}"
position="bottom"
bind:close="showAreaFun">
<van-area
area-list="{{ areaDataObj }}"
bind:confirm="confirmArea"
bind:cancel="cancel"
bind:change="changeArea"
/>
</van-popup>
<van-popup
show="{{ timeVisible }}"
position="bottom"
bind:close="cancelTime">
<van-datetime-picker
title="日期时分"
type="datetime"
value="{{ currentDate }}"
bind:input="changeTime"
bind:confirm="confirmTime"
bind:cancel="cancel"
/>
</van-popup>
<glsx-privacy appletName="车生活助手"></glsx-privacy>