businessApply.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. image-fit="widthFix"
  114. data-formkey="shop_img_url"
  115. bind:after-read="afterRead"
  116. bind:delete="delete"/>
  117. </view>
  118. </view>
  119. </view>
  120. <view
  121. class="form-item"
  122. data-formkey="shop_address"
  123. data-lat="{{form.shop_address.latitude}}"
  124. data-lon="{{form.shop_address.longitude}}"
  125. bind:tap="handleChooseLocation">
  126. <label>
  127. <text>详细地址</text>
  128. </label>
  129. <view class="value">
  130. <view
  131. class="shop-address"
  132. wx:if="{{form.shop_address.address_name}}">{{form.shop_address.address_name}}{{form.shop_address.name}}
  133. </view>
  134. <view
  135. class="shop-address"
  136. style="color: rgba(198, 202, 219, 1);"
  137. wx:else>请输入详细地址
  138. </view>
  139. </view>
  140. </view>
  141. <view class="form-item" style="padding-left: 0; border-bottom: none;">
  142. <label>
  143. <text>备注</text>
  144. </label>
  145. <view class="value">
  146. <textarea
  147. value="{{form.shop_remark}}"
  148. placeholder="请输入备注"
  149. placeholder-class="placeholder"
  150. maxlength="{{200}}"
  151. auto-height="{{true}}"
  152. data-formkey="shop_remark"
  153. bind:input="setFormValue"></textarea>
  154. <view class="words-limit">{{form.shop_remark.length}}/200</view>
  155. </view>
  156. </view>
  157. <view class="explain">*政府后台会审核村民信息是否真实,通过后就可发布</view>
  158. <button
  159. type="primary"
  160. disabled="{{booLock}}"
  161. bind:tap="onSubmit">成为农户
  162. </button>
  163. </view>
  164. <!--弹窗:村信息选择-->
  165. <van-popup
  166. show="{{ booCountryMsg }}"
  167. close-on-click-overlay="{{false}}"
  168. round
  169. position="bottom"
  170. bind:click-overlay="hideCountryMsg">
  171. <van-picker
  172. id="picker-country-msg"
  173. columns="{{ countryMsgList }}"
  174. show-toolbar
  175. default-index="{{ countryMsgInDefaultIndex }}"
  176. bind:cancel="hideCountryMsg"
  177. bind:confirm="confirmCountryMsg"/>
  178. </van-popup>