businessApply.wxml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <view class="wrapper">
  2. <view class="form-item">
  3. <label>
  4. <text class="require">姓名</text>
  5. </label>
  6. <view class="value">
  7. <input
  8. value="{{form.user_name}}"
  9. placeholder="请输入姓名"
  10. placeholder-class="placeholder"
  11. data-formkey="user_name"
  12. bind:input="setFormValue"></input>
  13. </view>
  14. </view>
  15. <view class="form-item">
  16. <label>
  17. <text class="require">身份证</text>
  18. </label>
  19. <view class="value">
  20. <input
  21. value="{{form.user_card}}"
  22. placeholder="请输入身份证号码"
  23. placeholder-class="placeholder"
  24. data-formkey="user_card"
  25. bind:input="setFormValue"></input>
  26. </view>
  27. </view>
  28. <view class="form-item">
  29. <label>
  30. <text class="require">手机号</text>
  31. </label>
  32. <view class="value">
  33. <input
  34. type="number"
  35. maxlength="11"
  36. value="{{form.shop_phone}}"
  37. placeholder="请输入手机号"
  38. placeholder-class="placeholder"
  39. data-formkey="shop_phone"
  40. bind:input="setFormValue"></input>
  41. </view>
  42. </view>
  43. <view class="form-item">
  44. <label>
  45. <text class="require">村信息</text>
  46. </label>
  47. <view class="value">
  48. <input
  49. value="{{form.country_msg}}"
  50. placeholder="请选择村信息"
  51. placeholder-class="placeholder"
  52. data-formkey="country_msg"
  53. disabled="{{true}}"
  54. bind:tap="showCountryMsg"></input>
  55. </view>
  56. </view>
  57. <view class="form-item">
  58. <label>
  59. <text>个人二维码</text>
  60. </label>
  61. <view class="value">
  62. <view
  63. class="van-uploader-wrap">
  64. <van-uploader
  65. file-list="{{ form.user_code_url }}"
  66. max-count="{{1}}"
  67. multiple="{{false}}"
  68. accept="image"
  69. data-formkey="user_code_url"
  70. bind:after-read="afterRead"
  71. bind:delete="delete"/>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="form-item">
  76. <label>
  77. <text>微信号</text>
  78. </label>
  79. <view class="value">
  80. <input
  81. value="{{form.user_wechat_code}}"
  82. placeholder="请输入微信号"
  83. placeholder-class="placeholder"
  84. data-formkey="user_wechat_code"
  85. bind:input="setFormValue"></input>
  86. </view>
  87. </view>
  88. <view class="form-item">
  89. <label>
  90. <text>店铺名称</text>
  91. </label>
  92. <view class="value">
  93. <input
  94. value="{{form.shop_name}}"
  95. placeholder="请输入店铺名称"
  96. placeholder-class="placeholder"
  97. data-formkey="shop_name"
  98. bind:input="setFormValue"></input>
  99. </view>
  100. </view>
  101. <view class="form-item">
  102. <label>
  103. <text>店铺图片</text>
  104. </label>
  105. <view class="value">
  106. <view
  107. class="van-uploader-wrap">
  108. <van-uploader
  109. file-list="{{ form.shop_img_url }}"
  110. max-count="{{1}}"
  111. multiple="{{false}}"
  112. accept="image"
  113. data-formkey="shop_img_url"
  114. bind:after-read="afterRead"
  115. bind:delete="delete"/>
  116. </view>
  117. </view>
  118. </view>
  119. <view
  120. class="form-item"
  121. data-formkey="shop_address"
  122. data-lat="{{form.shop_address.latitude}}"
  123. data-lon="{{form.shop_address.longitude}}"
  124. bind:tap="handleChooseLocation">
  125. <label>
  126. <text>详细地址</text>
  127. </label>
  128. <view class="value">
  129. <view
  130. class="shop-address"
  131. wx:if="{{form.shop_address.address_name}}">{{form.shop_address.address_name}}{{form.shop_address.name}}
  132. </view>
  133. <view
  134. class="shop-address"
  135. style="color: rgba(198, 202, 219, 1);"
  136. wx:else>请输入详细地址
  137. </view>
  138. </view>
  139. </view>
  140. <view class="form-item" style="padding-left: 0; border-bottom: none;">
  141. <label>
  142. <text>备注</text>
  143. </label>
  144. <view class="value">
  145. <textarea
  146. value="{{form.shop_remark}}"
  147. placeholder="请输入备注"
  148. placeholder-class="placeholder"
  149. maxlength="{{200}}"
  150. auto-height="{{true}}"
  151. data-formkey="shop_remark"
  152. bind:input="setFormValue"></textarea>
  153. <view class="words-limit">{{form.shop_remark.length}}/200</view>
  154. </view>
  155. </view>
  156. <view class="explain">*政府后台会审核村民信息是否真实,通过后就可发布</view>
  157. <button
  158. type="primary"
  159. disabled="{{booLock}}"
  160. bind:tap="onSubmit">成为农户
  161. </button>
  162. </view>
  163. <!--弹窗:村信息选择-->
  164. <van-popup
  165. show="{{ booCountryMsg }}"
  166. close-on-click-overlay="{{false}}"
  167. round
  168. position="bottom"
  169. bind:click-overlay="hideCountryMsg">
  170. <van-picker
  171. id="picker-country-msg"
  172. columns="{{ countryMsgList }}"
  173. show-toolbar
  174. default-index="{{ countryMsgInDefaultIndex }}"
  175. bind:cancel="hideCountryMsg"
  176. bind:confirm="confirmCountryMsg"/>
  177. </van-popup>