Files
HnyhuaXCX/pages/mydata/index.wxml

136 lines
7.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="container">
<view class="mydata-box">
<view class="frombody">
<form bindsubmit='saveaddress'>
<view>
<text>您的账号:</text><input name="username" type="text" placeholder="请填写您的用户名" value="{{username}}" disabled="disabled" style="width:8em;" /><text style="float:right; color:#ff0000;">不可更改</text>
</view>
<view wx:if="{{umoney>0||umoney0>0}}">
<text>您的姓名:</text><input name="contact" type="text" placeholder="请填写您的姓名" value="{{contact}} "disabled="disabled" style="width:8em;" /><text style="float:right; color:#ff0000;">不可更改</text>
</view>
<view wx:if="{{utype==0}}">
<text style="width:8em;">头像图片:</text>
<view class="pic_box">
<image src="{{addpic1}}" bindtap="onaddpic1"></image>
</view>
</view>
<view wx:if="{{utype==0}}">
<text>您的昵称:</text><input name="ncname" type="text" placeholder="请填写昵称" value="{{ncname}}" />
</view>
<view wx:if="{{utype==0}}" wx:if="{{umoney>0||umoney0>0}}">
<text>身份证号码:</text><input name="sfz" type="text" placeholder="请填写您的身份证号码" value="{{sfz}}" />
</view>
<view wx:if="{{utype>0}}">
<text>{{utype==1?"商家":"企业"}}名称:</text><input name="CompanyName" type="text" placeholder='请填写{{utype==1?"商家":"企业"}}名称' value="{{CompanyName}}" />
</view>
<view wx:if="{{utype>0}}">
<text style="width:8em;">上传预览图片:</text>
<view class="pic_box">
<image src="{{addpic0}}" bindtap="onaddpic0"></image>
</view>
</view>
<view wx:if="{{utype>0}}">
<text>{{utype==1?"证件号码":"营业执照"}}</text><input name="CompanyNumber" type="text"
placeholder='请填写{{utype==1?"证件号码":"信用代码(营业执照号)"}}' value="{{CompanyNumber}}" />
</view>
<view wx:if="{{utype>0}}">
<text style="width:8em;">上传{{utype==1?"证件图片":"营业执照"}}</text>
<view class="pic_box">
<image src="{{addpic}}" bindtap="onaddpic"></image>
</view>
</view>
<view class="area" wx:if="{{umoney>0||umoney0>0}}">
<text>所在地区:</text>
<view class="area_box" bindtap="onarea">
<input name="area" type="text" disabled="disabled" placeholder="请选择地区" value="{{area}}"/><image src="../../images/icon-arrowdown.png"></image>
</view>
</view>
<view wx:if="{{umoney>0||umoney0>0}}">
<text>详细地址:</text><input name="address" type="text" placeholder="请填写您的详细地址" value="{{address}}" />
</view>
<view class="area" wx:if="{{utype>0}}">
<text>标注地图:</text>
<view class="area_box" bindtap="onmap">
<input name="map" type="text" disabled="disabled" placeholder="请标注地图" value="{{mapmsg}}"/><image src="../../images/icon-arrowdown.png"></image>
</view>
</view>
<view class="button" wx:if="{{umoney>0||umoney0>0}}">
<button form-type="submit">{{savebutton}}</button>
</view>
</form>
</view>
</view>
<view class="Hidden_box" hidden="{{sectionHidden}}" bindtap="closesection">
<view class="section" catchtap="insection">
<view class="section-title">省市区选择器</view>
<view class="close" bindtap="closesection"><image src="../../images/close.png" /></view>
<view class="section-body">
<view>
<text>省份:</text>
<picker class="picker_hx" name="picker_hx" value="{{Provinces[hx_index].ProvinceID}}" data-selecthx="{{Provinces[hx_index].ProvinceName}}" range="{{Provinces}}" range-key="{{'ProvinceName'}}" bindchange="ProvinceChange">
<view class="picker">
<text hidden='{{Provinces[hx_index].ProvinceName==null}}'>{{Provinces[hx_index].ProvinceName}}</text>
<text hidden='{{Provinces[hx_index].ProvinceName!=null}}'>==请选择==</text>
<image src="../../images/icon-arrowdown1.png"></image>
</view>
</picker>
</view>
<view>
<text>城市:</text>
<picker class="picker_hx" name="picker_hx" value="{{Citys[hx_index0].CityID}}" data-selecthx="{{Citys[hx_index0].CityName}}" range="{{Citys}}" range-key="{{'CityName'}}" bindchange="CityChange">
<view class="picker">
<text hidden='{{Citys[hx_index0].CityName==null}}'>{{Citys[hx_index0].CityName}}</text>
<text hidden='{{Citys[hx_index0].CityName!=null}}'>==请选择==</text>
<image src="../../images/icon-arrowdown1.png"></image>
</view>
</picker>
</view>
<view>
<text>县区:</text>
<picker class="picker_hx" name="picker_hx" value="{{Countys[hx_index1].CountyID}}" data-selecthx="{{Countys[hx_index1].CountyName}}" range="{{Countys}}" range-key="{{'CountyName'}}" bindchange="CountyChange">
<view class="picker">
<text hidden='{{Countys[hx_index1].CountyName==null}}'>{{Countys[hx_index1].CountyName}}</text>
<text hidden='{{Countys[hx_index1].CountyName!=null}}'>==请选择==</text>
<image src="../../images/icon-arrowdown1.png"></image>
</view>
</picker>
</view>
</view>
</view>
</view>
<view class="Hidden_box" hidden="{{sectionHidden0}}" bindtap="closesection0">
<view class="section" catchtap="insection" style="width:100%">
<view class="section-title">点击地图标注位置</view>
<view class="close" bindtap="closesection0"><image src="../../images/close.png" /></view>
<view class="section-body">
<view class="map_container">
<map class="map" id="myMap" longitude="{{clongitude}}" latitude="{{clatitude}}" scale="16" show-location="true" markers="{{markers}}" bindtap="maptap" bindupdated="onupdated">
<cover-image class="cover-image" bindtap="my_location" src="../../images/my_location.png" />
<!--<cover-view class='mapPic'>
<cover-image src='/images/position-picker2.png'></cover-image>
</cover-view>
<cover-view class="map-prompt">您可拖动地图, 标记准确位置</cover-view>
-->
</map>
</view>
<view class="button">
<button bindtap="qcbz">清除标注</button><button bindtap="qybz">标注好了</button>
</view>
</view>
</view>
</view>
</view>
<loading hidden="{{loadingHidden}}">
加载中...
</loading>