vr-shopxo-source/sourcecode/qq/default/pages/user-address-save/user-address-save.qml

88 lines
6.7 KiB
QML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<view class="page">
<form bindsubmit="form_submit" class="form-container oh">
<view class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips"></text></view>
<input type="text" name="alias" value="{{address_data.alias || ''}}" maxlength="16" placeholder-class="cr-ccc" class="cr-666" placeholder="别名格式最多 16 个字符" />
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips-must"></text></view>
<input type="text" name="name" value="{{address_data.name || ''}}" maxlength="16" placeholder-class="cr-ccc" class="cr-666" placeholder="联系人格式 2~16 个字符之间" />
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips-must"></text></view>
<input type="text" name="tel" value="{{address_data.tel || ''}}" maxlength="30" placeholder-class="cr-ccc" class="cr-666" placeholder="座机 或 手机" />
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips-must"></text></view>
<view class="select-address oh">
<view class="section fl">
<picker name="province" bindchange="select_province_event" value="{{province_value}}" range="{{province_list}}" range-key="name">
<view class="name {{(province_value == null) ? 'cr-ccc' : 'cr-666' }}">{{province_list[province_value].name || default_province}}</view>
</picker>
</view>
<view class="section fl">
<picker qq:if="{{(province_id || null) != null}}" name="city" bindchange="select_city_event" value="{{city_value}}" range="{{city_list}}" range-key="name">
<view class="name {{(city_value == null) ? 'cr-ccc' : 'cr-666' }}">{{city_list[city_value].name || default_city}}</view>
</picker>
<text qq:else class="cr-ccc" bindtap="region_select_error_event" data-value="请先选择省份"></text>
</view>
<view class="section fl">
<picker qq:if="{{(city_id || null) != null}}" name="county" bindchange="select_county_event" value="{{county_value}}" range="{{county_list}}" range-key="name">
<view class="name {{(county_value == null) ? 'cr-ccc' : 'cr-666' }}">{{county_list[county_value].name || default_county}}</view>
</picker>
<text qq:else class="cr-ccc" bindtap="region_select_error_event" data-value="请先选择城市"></text>
</view>
</view>
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips-must"></text></view>
<input type="text" name="address" value="{{address_data.address || ''}}" maxlength="80" placeholder-class="cr-ccc" class="cr-666" placeholder="详细地址格式 1~80 个字符之间" />
</view>
<view qq:if="{{home_user_address_map_status == 1}}" class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips-must"></text></view>
<view bindtap="choose_location_event" class="form-gorup-text">
<view qq:if="{{(user_location || null) == null && (address_data.address || null) == null}}" class="cr-888"></view>
<view qq:else class="cr-666">{{((user_location || null) != null && (user_location.name || null) != null) ? user_location.name+' ' : ''}}{{user_location.address || address_data.address || ''}}</view>
</view>
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips"></text></view>
<view class="switch">
<switch name="is_default" checked="{{address_data.is_default == 1 ? true : false}}" color="#04BE02" />
</view>
</view>
<!-- -->
<view qq:if="{{home_user_address_idcard_status == 1}}" class="idcard-container">
<view class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips-must"></text><text class="form-group-tips"></text></view>
<input type="text" name="idcard_name" value="{{address_data.idcard_name || ''}}" maxlength="16" placeholder-class="cr-ccc" class="cr-666" placeholder="身份证姓名格式 2~16 个字符之间" />
</view>
<view class="form-gorup bg-white">
<view class="form-gorup-title"><text class="form-group-tips-must"></text><text class="form-group-tips"></text></view>
<input type="idcard" name="idcard_number" value="{{address_data.idcard_number || ''}}" maxlength="18" placeholder-class="cr-ccc" class="cr-666" placeholder="身份证号码格式最多18个字符" />
</view>
<view class="form-gorup bg-white form-container-upload oh">
<view class="form-gorup-title"><text class="form-group-tips-must"></text><text class="form-group-tips">使</text></view>
<view class="form-upload-data">
<view class="item fl">
<text qq:if="{{(idcard_images_data.idcard_front || null) != null}}" class="delete-icon" bindtap="upload_delete_event" data-value="idcard_front">x</text>
<image src="{{(idcard_images_data.idcard_front || null) != null ? idcard_images_data.idcard_front : '/images/default-idcard-front.jpg'}}" data-value="idcard_front" mode="aspectFill" bindtap="file_upload_event" />
</view>
<view class="item fl">
<text qq:if="{{(idcard_images_data.idcard_back || null) != null}}" class="delete-icon" bindtap="upload_delete_event" data-value="idcard_back">x</text>
<image src="{{(idcard_images_data.idcard_back || null) != null ? idcard_images_data.idcard_back : '/images/default-idcard-back.jpg'}}" data-value="idcard_back" mode="aspectFill" bindtap="file_upload_event" />
</view>
</view>
</view>
</view>
<button class="submit-fixed submit-bottom" type="default" formType="submit" hover-class="none" disabled="{{form_submit_disabled_status}}"></button>
</form>
</view>