123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <view class="wrapper">
- <view class="form-item">
- <label>
- <text>姓名</text>
- </label>
- <view class="value">
- <input
- value="{{form.user_name}}"
- placeholder="请输入姓名"
- placeholder-class="placeholder"
- data-formkey="user_name"
- bind:input="setFormValue"></input>
- </view>
- </view>
- <view class="form-item">
- <label>
- <text>身份证</text>
- </label>
- <view class="value">
- <input
- value="{{form.user_card}}"
- placeholder="请输入身份证号码"
- placeholder-class="placeholder"
- data-formkey="user_card"
- bind:input="setFormValue"></input>
- </view>
- </view>
- <view class="form-item">
- <label>
- <text>手机号</text>
- </label>
- <view class="value">
- <input
- type="number"
- maxlength="11"
- value="{{form.shop_phone}}"
- placeholder="请输入手机号"
- placeholder-class="placeholder"
- data-formkey="shop_phone"
- bind:input="setFormValue"></input>
- </view>
- </view>
- <view class="form-item">
- <label>
- <text>村信息</text>
- </label>
- <view class="value">
- <input
- value="{{form.country_msg}}"
- placeholder="请选择村信息"
- placeholder-class="placeholder"
- data-formkey="country_msg"
- disabled="{{true}}"
- bind:tap="showCountryMsg"></input>
- </view>
- </view>
- <view class="form-item">
- <label>
- <text>个人二维码</text>
- </label>
- <view class="value">
- <view
- class="van-uploader-wrap">
- <van-uploader
- file-list="{{ form.user_code_url }}"
- max-count="{{1}}"
- multiple="{{false}}"
- accept="image"
- data-formkey="user_code_url"
- bind:click-preview="uploadImg"
- bind:after-read="afterRead"
- bind:delete="delete"/>
- </view>
- </view>
- </view>
- <view class="form-item">
- <label>
- <text>微信号</text>
- </label>
- <view class="value">
- <input
- value="{{form.user_wechat_code}}"
- placeholder="请输入微信号"
- placeholder-class="placeholder"
- data-formkey="user_wechat_code"
- bind:input="setFormValue"></input>
- </view>
- </view>
- <view class="form-item">
- <label>
- <text>店铺名称</text>
- </label>
- <view class="value">
- <input
- value="{{form.shop_name}}"
- placeholder="请输入店铺名称"
- placeholder-class="placeholder"
- data-formkey="shop_name"
- bind:input="setFormValue"></input>
- </view>
- </view>
- <view class="form-item">
- <label>
- <text>店铺图片</text>
- </label>
- <view class="value">
- <view
- class="van-uploader-wrap">
- <van-uploader
- file-list="{{ form.shop_img_url }}"
- max-count="{{1}}"
- multiple="{{false}}"
- accept="image"
- data-formkey="shop_img_url"
- bind:click-preview="uploadImg"
- bind:after-read="afterRead"
- bind:delete="delete"/>
- </view>
- </view>
- </view>
- <view
- class="form-item"
- data-formkey="shop_address"
- data-lat="{{form.shop_address.latitude}}"
- data-lon="{{form.shop_address.longitude}}"
- bind:tap="handleChooseLocation">
- <label>
- <text>详细地址</text>
- </label>
- <view class="value">
- <view
- class="shop-address"
- wx:if="{{form.shop_address.address_name}}">{{form.shop_address.address_name}}{{form.shop_address.name}}
- </view>
- <view
- class="shop-address"
- style="color: rgba(198, 202, 219, 1);"
- wx:else>请输入详细地址
- </view>
- </view>
- </view>
- <view class="form-item" style="padding-left: 0; border-bottom: none;">
- <label>
- <text>备注</text>
- </label>
- <view class="value">
- <textarea
- value="{{form.shop_remark}}"
- placeholder="请输入备注"
- placeholder-class="placeholder"
- maxlength="{{200}}"
- auto-height="{{true}}"
- data-formkey="shop_remark"
- bind:input="setFormValue"></textarea>
- <view class="words-limit">{{form.shop_remark.length}}/200</view>
- </view>
- </view>
- <view class="explain">*政府后台会审核村民信息是否真实,通过后就可发布</view>
- <button
- type="primary"
- disabled="{{booLock}}"
- bind:tap="onSubmit">成为农户
- </button>
- </view>
- <!--弹窗:村信息选择-->
- <van-popup
- show="{{ booCountryMsg }}"
- close-on-click-overlay="{{false}}"
- round
- position="bottom"
- bind:click-overlay="hideCountryMsg">
- <van-picker
- id="picker-country-msg"
- columns="{{ countryMsgList }}"
- show-toolbar
- default-index="{{ countryMsgInDefaultIndex }}"
- bind:cancel="hideCountryMsg"
- bind:confirm="confirmCountryMsg"/>
- </van-popup>
|