铝交易,微信公众号
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.

364 lines
9.1 KiB

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