yuminge-app/yun-min-program-plugin-master/packageF/debt/debtapply/debtapply.wxml

130 lines
9.7 KiB
Plaintext

<!--packageF/debt/debtapply/debtapply.wxml-->
<view id="debtapply">
<view class="topBanner">
<image src="{{settingInfo.apply_top_image}}"></image>
</view>
<view class="fromBox">
<view class="toptitle">
<view class="line"></view>
申请信息
</view>
<view class="flexFrom">
<!-- 使用 title 插槽来自定义标题 required='true'-->
<block wx:if="{{member_type != 3}}">
<van-field required="{{true}}" model:value="{{name}}" label="姓名" placeholder="请输入您的姓名" input-align="right" />
<van-cell required="{{true}}" title="性别" is-link value="{{sex == 1 ? '男' : sex == 2 ? '女' : '请选择性别'}}" class="aCell" catchtap="openSex" />
<van-cell required="{{true}}" title="常驻地址" is-link value="{{addressOne?addressOne:'请选择所在区域'}}" class="aCell" catchtap="tapShowAdd" />
<van-cell required="{{true}}" wx:if="{{settingInfo.is_street == 1}}" title="请选择街道" is-link value="{{street?street:'请选择所在街道'}}" class="aCell" catchtap="tapStreetShow" />
<van-field required="{{true}}" model:value="{{live_address}}" label="详细地址" placeholder="街道门牌号等" input-align="right" />
<van-cell required="{{true}}" title="户籍地址" is-link value="{{addressTwo?addressTwo:'请选择所在区域'}}" class="aCell" catchtap="tapShowAdd" data-key="two" />
<van-cell required="{{true}}" wx:if="{{settingInfo.is_street == 1}}" title="请选择街道" is-link value="{{streettwo?streettwo:'请选择所在街道'}}" class="aCell" data-key="two" catchtap="tapStreetShow" />
<van-field required="{{true}}" model:value="{{source_address}}" label="户籍详细地址" placeholder="街道门牌号等" input-align="right" />
</block>
<van-field required="{{true}}" type='idcard' model:value="{{identity_number}}" label="身份证号码" placeholder="请输入身份证号码" input-align="right" />
<view class="is_card">
<view>
<van-cell required="{{true}}" title="上传证件" class="aCell" />
</view>
<view class="is_cardUploadBox">
<view class="is_cardUploadBoxLeft">
<image src="{{identity_front_image_show?identity_front_image_show:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/debt%2Fcard.png'}}" alt="" />
<view class="txta">上传身份证人像面</view>
<van-icon name='close' color="red" catchtap="delIntu_1" wx:if="{{identity_front_image_show}}"></van-icon>
<view class="posUpload">
<yz_uploader bind:updateImages="getIDcardZ" bind:inputimg='getIMg' max_count='1' customBoxStyle='padding:30rpx 0;' customStyle='width: 168rpx;height: 168rpx;border-radius: 9.92rpx;border: dashed 0.96rpx #a1a1a1;display: flex;align-items: center;justify-content: center;'></yz_uploader>
</view>
</view>
<view class="is_cardUploadBoxRight">
<image src="{{identity_back_image_show?identity_back_image_show:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/debt%2FcardF.png'}}" alt="" />
<view class="txta">上传身份证国徽面</view>
<van-icon name='close' color="red" catchtap="delIntu_2" wx:if="{{identity_back_image_show}}"></van-icon>
<view class="posUpload">
<yz_uploader bind:updateImages="getIDcardF" bind:inputimg='getIMgF' max_count='1' customBoxStyle='padding:30rpx 0;' customStyle='width: 168rpx;height: 168rpx;border-radius: 9.92rpx;border: dashed 0.96rpx #a1a1a1;display: flex;align-items: center;justify-content: center;'></yz_uploader>
</view>
</view>
</view>
</view>
<view class="is_card" wx:if="{{member_type != 3}}">
<view>
<van-cell required="{{true}}" title="和解协议" class="aCell" />
</view>
<yz_uploader bind:inputimg='updateImages' data-key="agreement" customBoxStyle='padding:30rpx 0;' customStyle='width: 168rpx;height: 168rpx;border-radius: 9.92rpx;border: dashed 0.96rpx #a1a1a1;display: flex;align-items: center;justify-content: center;'></yz_uploader>
</view>
<view class="is_card" wx:if="{{member_type == 2}}">
<view>
<van-cell required="{{true}}" title="营业执照" class="aCell" />
</view>
<yz_uploader bind:inputimg='updateImages' max_count='1' data-key="getIMgbusiness" customBoxStyle='padding:30rpx 0;' customStyle='width: 168rpx;height: 168rpx;border-radius: 9.92rpx;border: dashed 0.96rpx #a1a1a1;display: flex;align-items: center;justify-content: center;'></yz_uploader>
</view>
<view class="is_card" wx:if="{{member_type != 3}}">
<view>
<van-cell required="{{true}}" title="补充材料" class="aCell" />
</view>
<yz_uploader bind:inputimg='updateImages' data-key="getIMganother" customBoxStyle='padding:30rpx 0;' customStyle='width: 168rpx;height: 168rpx;border-radius: 9.92rpx;border: dashed 0.96rpx #a1a1a1;display: flex;align-items: center;justify-content: center;'></yz_uploader>
</view>
<block wx:if="{{member_type == 1}}">
<van-field bind:blur='searchInp' bind:confirm='searchInp' required="{{true}}" type='number' model:value="{{debtor_uid}}" label="绑定债务人" placeholder="请输入债务人会员ID" input-align="right" />
<van-cell required="{{true}}" title="债务人名称" value="{{showUserC.nickname}}" class="aCell" />
</block>
<block wx:if="{{member_type == 3}}">
<!-- 只用来展示 -->
<van-field required="{{true}}" readonly="{{true}}" type='number' model:value="{{Vip_uid.uid}}" label="联名消费的债权人" placeholder="请输入债权人会员ID" input-align="right" />
<van-cell required="{{true}}" title="债权人名称" value="{{Vip_uid.nickname}}" class="aCell" />
</block>
</view>
</view>
<view class="btnA">
<van-checkbox wx:if="{{settingInfo.apply_desc}}" icon-size="16px" value="{{checked}}" bind:change="onChange">
<view class="agreement_txt" catchtap='tapDescOpen'>阅读并同意《申请协议》</view>
</van-checkbox>
</view>
<view class="submitBtn set-pc-style">
<view class="sub" catchtap="submit">提交</view>
</view>
<yzArea show="{{showAdd}}" bind:confirm="resultAdd"></yzArea>
<yzArea show="{{showAddTwo}}" bind:confirm="resultAdd" data-key="two"></yzArea>
<van-popup show="{{sexShow}}" custom-style="width: 580rpx; height: 380rpx" round="true" closeable="true" bind:close='sexShowClose'>
<view class="sexShowBox">
<view class="sexShowTxt">请选择性别</view>
<view class="sexShowflex">
<view class="sexShowflex_is {{sex == 1 ? 'sexShowflex_isColor' : ''}}" catchtap="selectSex" data-ind='1'>
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/debt%2FmanYes.png" alt="" wx:if="{{sex == 1}}" />
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/debt%2FmanNo.png" alt="" wx:else />
</view>
<view class="sexShowflex_txt">或</view>
<view class="sexShowflex_is {{sex == 2 ? 'sexShowflex_isColor' : ''}}" catchtap="selectSex" data-ind='2'>
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/debt%2FwomenYes.png" alt="" wx:if="{{sex == 2}}" />
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/debt%2FwomenNo.png" alt="" wx:else />
</view>
</view>
</view>
</van-popup>
<van-popup custom-style="width:100%;height:100%;" show="{{streetShow}}" position="right" overlay="{{false}}" dataList='{{true}}' wx:if="{{streetShow}}">
<view class="streetContent">
<van-nav-bar title="选择街道" left-text="" right-text="" left-arrow bind:click-left="streetClose" />
<van-cell-group>
<van-cell wx:for="{{districtVal}}" wx:key="index" data-key='one' title="{{item.areaname}}" data-strname="{{item.areaname}}" data-id="{{item.id}}" is-link bindtap="streetConfirm" />
</van-cell-group>
</view>
</van-popup>
<van-popup custom-style="width:100%;height:100%;" show="{{streetShowtwo}}" position="right" overlay="{{false}}" dataList='{{true}}' wx:if="{{streetShowtwo}}">
<view class="streetContent">
<van-nav-bar title="选择街道" left-text="" right-text="" left-arrow bind:click-left="streetClose" />
<van-cell-group>
<van-cell wx:for="{{districtVal}}" wx:key="index" data-key='two' title="{{item.areaname}}" data-strname="{{item.areaname}}" data-id="{{item.id}}" is-link bindtap="streetConfirm" />
</van-cell-group>
</view>
</van-popup>
<van-popup show="{{descShow}}" custom-style="width: 75vw; height: 60vh" round="true" closeable="true" bind:close='sdescShowClose'>
<view class="descBox">
<view class="descHead">申请协议</view>
<view class="descConten">
<mp-html content="{{settingInfo.apply_desc}}"></mp-html>
</view>
</view>
</van-popup>
</view>