businessInfo.wxml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <view class="wrapper">
  2. <view class="form-item">
  3. <label>
  4. <text>店铺名称</text>
  5. </label>
  6. <view class="value">
  7. <input
  8. value="{{form.shop_name}}"
  9. placeholder="请输入店铺名称"
  10. placeholder-class="placeholder"
  11. data-formkey="shop_name"
  12. bind:input="setFormValue"></input>
  13. </view>
  14. </view>
  15. <view class="form-item">
  16. <label>
  17. <text>店铺图片</text>
  18. </label>
  19. <view class="value">
  20. <view
  21. class="van-uploader-wrap">
  22. <van-uploader
  23. file-list="{{ form.shop_img_url }}"
  24. max-count="{{1}}"
  25. multiple="{{false}}"
  26. accept="image"
  27. image-fit="widthFix"
  28. data-formkey="shop_img_url"
  29. bind:after-read="afterRead"
  30. bind:delete="delete"/>
  31. </view>
  32. </view>
  33. </view>
  34. <view
  35. class="form-item"
  36. data-formkey="shop_address"
  37. data-lat="{{form.shop_address.latitude}}"
  38. data-lon="{{form.shop_address.longitude}}"
  39. bind:tap="handleChooseLocation">
  40. <label>
  41. <text>地址</text>
  42. </label>
  43. <view class="value">
  44. <view
  45. class="shop-address"
  46. wx:if="{{form.shop_address.address_name}}">{{form.shop_address.address_name}}{{form.shop_address.name}}
  47. </view>
  48. <view
  49. class="shop-address"
  50. style="color: rgba(198, 202, 219, 1);"
  51. wx:else>请输入详细地址
  52. </view>
  53. </view>
  54. </view>
  55. <view class="form-item">
  56. <label>
  57. <text class="require">姓名</text>
  58. </label>
  59. <view class="value">
  60. <input
  61. value="{{form.user_name}}"
  62. placeholder="请输入姓名"
  63. placeholder-class="placeholder"
  64. data-formkey="user_name"
  65. bind:input="setFormValue"></input>
  66. </view>
  67. </view>
  68. <view class="form-item">
  69. <label>
  70. <text class="require">身份证号码</text>
  71. </label>
  72. <view class="value">
  73. <input
  74. value="{{form.user_card}}"
  75. placeholder="请输入身份证号码"
  76. placeholder-class="placeholder"
  77. data-formkey="user_card"
  78. bind:input="setFormValue"></input>
  79. </view>
  80. </view>
  81. <view class="form-item">
  82. <label>
  83. <text class="require">手机号</text>
  84. </label>
  85. <view class="value">
  86. <input
  87. type="number"
  88. maxlength="11"
  89. value="{{form.shop_phone}}"
  90. placeholder="请输入手机号"
  91. placeholder-class="placeholder"
  92. data-formkey="shop_phone"
  93. bind:input="setFormValue"></input>
  94. </view>
  95. </view>
  96. <view class="form-item">
  97. <label>
  98. <text class="require">村信息</text>
  99. </label>
  100. <view class="value">
  101. <input
  102. value="{{form.country_msg}}"
  103. placeholder="请选择村信息"
  104. placeholder-class="placeholder"
  105. data-formkey="country_msg"
  106. disabled="{{true}}"
  107. bind:tap="showCountryMsg"></input>
  108. </view>
  109. </view>
  110. <view class="form-item">
  111. <label>
  112. <text>微信号</text>
  113. </label>
  114. <view class="value">
  115. <input
  116. value="{{form.user_wechat_code}}"
  117. placeholder="请输入微信号"
  118. placeholder-class="placeholder"
  119. data-formkey="user_wechat_code"
  120. bind:input="setFormValue"></input>
  121. </view>
  122. </view>
  123. <view class="form-item">
  124. <label>
  125. <text>个人二维码</text>
  126. </label>
  127. <view class="value">
  128. <view
  129. class="van-uploader-wrap">
  130. <van-uploader
  131. file-list="{{ form.user_code_url }}"
  132. max-count="{{1}}"
  133. multiple="{{false}}"
  134. accept="image"
  135. data-formkey="user_code_url"
  136. bind:after-read="afterRead"
  137. bind:delete="delete"/>
  138. </view>
  139. </view>
  140. </view>
  141. <view class="form-item">
  142. <label>
  143. <text>企业名称</text>
  144. </label>
  145. <view class="value">
  146. <input
  147. value="{{form.company_name}}"
  148. placeholder="请输入企业名称"
  149. placeholder-class="placeholder"
  150. data-formkey="company_name"
  151. bind:input="setFormValue"></input>
  152. </view>
  153. </view>
  154. <view class="form-item">
  155. <label>
  156. <text>企业成立日期</text>
  157. </label>
  158. <view class="value">
  159. <input
  160. value="{{tools.formatTs(form.company_created_at, 'YYYY-MM-DD')}}"
  161. placeholder="请选择企业成立日期"
  162. placeholder-class="placeholder"
  163. data-formkey="company_created_at"
  164. disabled="{{true}}"
  165. bind:tap="showCompanyCreatedAt"></input>
  166. </view>
  167. </view>
  168. <view class="form-item">
  169. <label>
  170. <text>所属行业</text>
  171. </label>
  172. <view class="value">
  173. <input
  174. value="{{form.company_hangye}}"
  175. placeholder="请输入所属行业"
  176. placeholder-class="placeholder"
  177. data-formkey="company_hangye"
  178. bind:input="setFormValue"></input>
  179. </view>
  180. </view>
  181. <view
  182. class="form-item"
  183. style="padding-left: 0; border-bottom: none;">
  184. <label>
  185. <text>经营范围</text>
  186. </label>
  187. <view class="value">
  188. <textarea
  189. value="{{form.company_jingying_fanwei}}"
  190. placeholder="请输入经营范围"
  191. placeholder-class="placeholder"
  192. auto-height="{{true}}"
  193. data-formkey="company_jingying_fanwei"
  194. bind:input="setFormValue"></textarea>
  195. </view>
  196. </view>
  197. <view class="form-item">
  198. <label>
  199. <text>基地规模</text>
  200. </label>
  201. <view class="value">
  202. <input
  203. value="{{form.shop_jidi_guimo}}"
  204. placeholder="请输入基地规模"
  205. placeholder-class="placeholder"
  206. data-formkey="shop_jidi_guimo"
  207. bind:input="setFormValue"></input>
  208. </view>
  209. </view>
  210. <view class="form-item">
  211. <label>
  212. <text>产品上市时间</text>
  213. </label>
  214. <view class="value">
  215. <input
  216. value="{{form.shop_product_time}}"
  217. placeholder="请输入产品上市时间"
  218. placeholder-class="placeholder"
  219. data-formkey="shop_product_time"
  220. bind:input="setFormValue"></input>
  221. </view>
  222. </view>
  223. <view class="form-item">
  224. <label>
  225. <text>注册商标</text>
  226. </label>
  227. <view class="value">
  228. <view
  229. class="van-uploader-wrap">
  230. <van-uploader
  231. file-list="{{ form.shop_shangbiao }}"
  232. max-count="{{1}}"
  233. multiple="{{false}}"
  234. accept="image"
  235. image-fit="widthFix"
  236. data-formkey="shop_shangbiao"
  237. bind:after-read="afterRead"
  238. bind:delete="delete"/>
  239. </view>
  240. </view>
  241. </view>
  242. <view class="form-item" style="padding-left: 0; border-bottom: none;">
  243. <label>
  244. <text>备注</text>
  245. </label>
  246. <view class="value">
  247. <textarea
  248. value="{{form.shop_remark}}"
  249. placeholder="请输入备注"
  250. placeholder-class="placeholder"
  251. maxlength="{{200}}"
  252. auto-height="{{true}}"
  253. data-formkey="shop_remark"
  254. bind:input="setFormValue"></textarea>
  255. <view class="words-limit">{{form.shop_remark.length}}/200</view>
  256. </view>
  257. </view>
  258. <view class="explain">*政府后台会审核村民信息是否真实,通过后就可发布</view>
  259. <button
  260. type="primary"
  261. disabled="{{booLock}}"
  262. bind:tap="onSubmit">修改完成
  263. </button>
  264. </view>
  265. <!--弹窗:村信息选择-->
  266. <van-popup
  267. show="{{ booCountryMsg }}"
  268. close-on-click-overlay="{{false}}"
  269. round
  270. position="bottom"
  271. bind:click-overlay="hideCountryMsg">
  272. <van-picker
  273. id="picker-country-msg"
  274. columns="{{ countryMsgList }}"
  275. show-toolbar
  276. default-index="{{ countryMsgInDefaultIndex }}"
  277. bind:cancel="hideCountryMsg"
  278. bind:confirm="confirmCountryMsg"/>
  279. </van-popup>
  280. <!--弹窗:企业成立日期选择-->
  281. <van-popup
  282. show="{{ booCompanyCreatedAt }}"
  283. close-on-click-overlay="{{false}}"
  284. round
  285. position="bottom"
  286. bind:click-overlay="hideCompanyCreatedAt">
  287. <van-datetime-picker
  288. type="date"
  289. value="{{ currentDate }}"
  290. min-date="{{ minDate }}"
  291. max-date="{{ maxDate }}"
  292. bind:cancel="hideCompanyCreatedAt"
  293. bind:confirm="confirmCompanyCreatedAt"/>
  294. </van-popup>
  295. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>