zyPayPopup.wxml
2.81 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
<!--packageEquity/pages/carQuotation/components/zyPayPopup/zyPayPopup.wxml-->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block wx:if="{{!showChangeFileType && !loadingFlag}}">
<popup
title="{{'上传延保协议'}}"
show="{{show}}"
bindconfirm="confirm"
bindcancel="close"
cancelText="稍后补录"
cancelStyle="color: #347BFF;"
notCloseOnClickOverlay="{{true}}"
height="auto">
<view class="content">
<block wx:if="{{!fileList.length}}">
<view class="tips-text"><image src="{{IMG_URL}}zy_tips_icon.png"></image>事系提成核算,务必提供</view>
<view class="upload_content" bindtap="selectUplaodType">
<image src="{{IMG_URL}}zy-upload_icon.png"></image>
<text class="text">图片或PDF</text>
</view>
</block>
<block wx:else>
<view class="tips-text">已上传</view>
<block wx:if="{{fileType == 'image'}}">
<view class="content_box">
<view class="image_content" wx:for="{{fileList}}" wx:key="index">
<image bindtap="previewImage" class="image_box" data-url="{{fileList}}" data-index="{{index}}" src="{{item.url}}"/>
<image class="del_icon" src="{{IMG_URL}}zy_del_icon.png" mode="" bindtap="deleteFile" data-index="{{index}}" />
</view>
<view class="upload_content" bindtap="uploadImages" wx:if="{{fileList.length < 9}}">
<image src="{{IMG_URL}}zy-upload_icon.png"></image>
<text class="text">最多9张</text>
</view>
</view>
</block>
<block wx:else>
<view class="file_content" wx:for="{{fileList}}" wx:key="index">
<view class="file_box">
<image class="pdf_icon" src="{{IMG_URL}}zy_upload_pdf.png" mode=""/>
<text class="file_name">{{item.fileName}}</text>
</view>
<image class="del_icon" src="{{IMG_URL}}zy_paf_del_icon.png" mode="" bindtap="deleteFile"/>
</view>
</block>
</block>
</view>
</popup>
</block>
<block wx:if="{{showChangeFileType && !loadingFlag}}">
<van-popup
class="file-type-popup"
show="{{show}}"
position="bottom"
bind:close="closeChangeUploadType"
round
>
<view class="popup-content">
<view class="title">请选择</view>
<view class="popup-item" bindtap="uploadImages">上传图片</view>
<view class="popup-item" bindtap="uploadPDFs">上传PDF</view>
</view>
</van-popup>
</block>
<block wx:if="{{loadingFlag}}">
<van-popup show="{{show}}" close-on-click-overlay="{{false}}" >
<van-loading custom-class="loading-box" color="#FFFFFF" type="spinner" size="45px" vertical>上传中</van-loading>
</van-popup>
</block>