铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

365 lines
8.8 KiB

  1. <template>
  2. <view class="registerShop">
  3. <navbar :title="titleList[titleIndex]" leftClick @leftClick="$utils.navigateBack"/>
  4. <view class="frame">
  5. <!--基本信息-->
  6. <view class="basicInfo">
  7. <view class="item">
  8. <view>用户名</view>
  9. <view>
  10. <input v-model="form.name" placeholder="请输入用户名称" clearable></input>
  11. </view>
  12. </view>
  13. <view class="item">
  14. <view>密码</view>
  15. <view>
  16. <input v-model="form.userName" password clearable placeholder="请输入您的密码" clearable></input>
  17. </view>
  18. </view>
  19. <view class="item">
  20. <view>公司名称</view>
  21. <view>
  22. <input v-model="form.phone" type="number" placeholder="请输入公司名称" clearable></input>
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view>税收编码</view>
  27. <view>
  28. <input v-model="form.address" placeholder="请输入税收编码" clearable></input>
  29. </view>
  30. </view>
  31. <view class="item">
  32. <view>公司地址</view>
  33. <view>
  34. <input v-model="form.address" placeholder="请输入开户行名称" clearable></input>
  35. </view>
  36. </view>
  37. <view class="item">
  38. <view>联系电话</view>
  39. <view>
  40. <input v-model="form.address" placeholder="请输入联系电话" clearable></input>
  41. </view>
  42. </view>
  43. <view class="item">
  44. <view>公司账户</view>
  45. <view>
  46. <input v-model="form.address" placeholder="请输入公司账户" clearable></input>
  47. </view>
  48. </view>
  49. <view class="item">
  50. <view>开户行</view>
  51. <view>
  52. <input v-model="form.address" placeholder="请输入开户行名称" clearable></input>
  53. </view>
  54. </view>
  55. <view class="item">
  56. <view>税收编码</view>
  57. <view>
  58. <input v-model="form.address" placeholder="详细地址" clearable></input>
  59. </view>
  60. </view>
  61. </view>
  62. <!--证件信息-->
  63. <view class="certificateInfo">
  64. <!--营业执照-->
  65. <view class="certificateInfoItem">
  66. <view class="title">
  67. <span
  68. style="width: 10rpx;height: 40rpx;background-color: #f78142;border-radius: 10rpx;overflow: hidden;"></span>
  69. <span>营业执照</span>
  70. </view>
  71. <view class="upload">
  72. <uv-upload
  73. :fileList="yyzzfileList"
  74. :maxCount="4"
  75. multiple
  76. width="150rpx"
  77. height="150rpx"
  78. @delete="(file) => deleteImage(0, file)"
  79. @afterRead="(file) => afterRead(0, file)"
  80. :previewFullImage="true"></uv-upload>
  81. </view>
  82. </view>
  83. <!--基本户信息-->
  84. <view class="certificateInfoItem">
  85. <view class="title">
  86. <span
  87. style="width: 10rpx;height: 40rpx;background-color: #f78142;border-radius: 10rpx;overflow: hidden;"></span>
  88. <span>基本户信息</span>
  89. </view>
  90. <view class="upload">
  91. <uv-upload
  92. :fileList="jbhxxfileList"
  93. :maxCount="4"
  94. multiple
  95. width="150rpx"
  96. height="150rpx"
  97. @delete="(file) => deleteImage(1, file)"
  98. @afterRead="(file) => afterRead(1, file)"
  99. :previewFullImage="true"></uv-upload>
  100. </view>
  101. </view>
  102. <!--收款银行-->
  103. <view class="certificateInfoItem">
  104. <view class="title">
  105. <span
  106. style="width: 10rpx;height: 40rpx;background-color: #f78142;border-radius: 10rpx;overflow: hidden;"></span>
  107. <span>收款银行</span>
  108. </view>
  109. <view class="upload">
  110. <uv-upload
  111. :fileList="skyhfileList"
  112. :maxCount="4"
  113. multiple
  114. width="150rpx"
  115. height="150rpx"
  116. @delete="(file) => deleteImage(2, file)"
  117. @afterRead="(file) => afterRead(2, file)"
  118. :previewFullImage="true"></uv-upload>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. <view class="bottom">
  124. <view class="btns">
  125. <span @click="applyReview" class="sqsh">
  126. 申请审核
  127. </span>
  128. <span @click="contactUs" class="lxwm">
  129. 联系我们
  130. </span>
  131. </view>
  132. <view class="others">
  133. <span @click="applyReview" class="zcxz">
  134. 注册须知
  135. </span>
  136. <span @click="contactUs" class="kjhtyl">
  137. 框架合同预览
  138. </span>
  139. </view>
  140. </view>
  141. </view>
  142. </template>
  143. <script>
  144. export default {
  145. onLoad(option) {
  146. this.titleIndex = option.identity
  147. },
  148. data() {
  149. return {
  150. titleIndex: 0,
  151. titleList: ['采购商注册', '供应商注册','国内清关申请'],
  152. form: {
  153. userName: '',
  154. name: '',
  155. phone: '',
  156. currentRegion: '',
  157. address: '',
  158. latitude: '',
  159. longitude: '',
  160. },
  161. yyzzfileList: [],
  162. jbhxxfileList: [],
  163. skyhfileList: [],
  164. }
  165. },
  166. methods: {
  167. // 申请审核
  168. applyReview() {
  169. },
  170. // 联系我们
  171. contactUs() {
  172. },
  173. // 上传图片
  174. afterRead(type, e) {
  175. let self = this
  176. e.file.forEach(file => {
  177. self.$Oss.ossUpload(file.url).then(url => {
  178. if (type == 0) {
  179. self.yyzzfileList.push({url})
  180. } else if (type == 1) {
  181. self.jbhxxfileList.push({url})
  182. } else if (type == 2) {
  183. self.skyhfileList.push({url})
  184. }
  185. })
  186. })
  187. },
  188. // 删除图片
  189. deleteImage(type, e) {
  190. console.log(e, type, "===========")
  191. if (type == 0) {
  192. this.yyzzfileList.splice(e.index, 1)
  193. } else if (type == 1) {
  194. this.jbhxxfileList.splice(e.index, 1)
  195. } else if (type == 2) {
  196. this.skyhfileList.splice(e.index, 1)
  197. }
  198. },
  199. }
  200. }
  201. </script>
  202. <style scoped lang="scss">
  203. .registerShop {
  204. .frame {
  205. height: 79vh;
  206. overflow: auto;
  207. .basicInfo {
  208. display: flex;
  209. flex-direction: column;
  210. gap: 5rpx;
  211. background-color: #FFF;
  212. margin-top: 20rpx;
  213. padding: 20rpx;
  214. .item {
  215. display: flex;
  216. align-items: center;
  217. background-color: #FFF;
  218. height: 80rpx;
  219. // margin: 10rpx 0 0 0;
  220. padding: 10rpx 0 0 20rpx;
  221. > view:nth-of-type(1) {
  222. width: 30%;
  223. // font-weight: 700;
  224. }
  225. > view:nth-of-type(2) {
  226. width: 70%;
  227. border-radius: 10rpx;
  228. overflow: hidden;
  229. input {
  230. background-color: #f5f5f5;
  231. font-size: 28rpx;
  232. padding: 16rpx 8rpx 16rpx 15rpx;
  233. }
  234. }
  235. }
  236. }
  237. .certificateInfo {
  238. display: flex;
  239. flex-direction: column;
  240. gap: 20rpx;
  241. background-color: #FFF;
  242. margin-top: 20rpx;
  243. padding: 20rpx;
  244. .certificateInfoItem {
  245. .title {
  246. display: flex;
  247. // padding-top: 40rpx;
  248. font-size: 30rpx;
  249. font-weight: 700;
  250. padding: 0 0 0 20rpx;
  251. > span:nth-of-type(1) {
  252. margin: 4rpx 0 0 8rpx;
  253. background-color: #FFF;
  254. }
  255. > span:nth-of-type(2) {
  256. margin: 0 0 0 8rpx;
  257. background-color: #FFF;
  258. }
  259. }
  260. .upload {
  261. margin: 5rpx 0 0 40rpx;
  262. }
  263. }
  264. }
  265. }
  266. .bottom {
  267. position: fixed;
  268. bottom: 10rpx;
  269. left: 0;
  270. right: 0;
  271. background-color: #FFF;
  272. .btns {
  273. display: flex;
  274. justify-content: center;
  275. align-items: center;
  276. gap: 40rpx;
  277. .sqsh {
  278. display: flex;
  279. align-items: center;
  280. justify-content: center;
  281. width: 30%;
  282. height: 70rpx;
  283. border-radius: 40rpx;
  284. color: white;
  285. font-size: 28rpx;
  286. margin: 20rpx 10rpx 0 0;
  287. background: #293143;
  288. //margin-top: 20rpx;
  289. border-radius: 40rpx;
  290. }
  291. .lxwm {
  292. display: flex;
  293. align-items: center;
  294. justify-content: center;
  295. width: 30%;
  296. height: 70rpx;
  297. border-radius: 40rpx;
  298. color: #000000;
  299. font-size: 28rpx;
  300. margin: 20rpx 10rpx 0 0;
  301. background: #f2f2f2;
  302. //margin-top: 20rpx;
  303. border-radius: 40rpx;
  304. }
  305. }
  306. .others {
  307. display: flex;
  308. justify-content: center;
  309. align-items: center;
  310. gap: 200rpx;
  311. color: #707070;
  312. font-size: 24rpx;
  313. .zcxz {
  314. text-decoration: underline;
  315. }
  316. .kjhtyl {
  317. text-decoration: underline;
  318. }
  319. }
  320. }
  321. }
  322. </style>