info.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. <template>
  2. <view class="page-wrap">
  3. <view class="tabs-panel">
  4. <view :class="{ item: true, active: tabActive === item.value }" v-for="(item, index) in tabList" :key="index" @click="tabActive = item.value">
  5. {{ item.label }}
  6. </view>
  7. </view>
  8. <!-- 基础资料 -->
  9. <view v-if="tabActive === 1" class="info-panel">
  10. <view class="space"></view>
  11. <view class="row">
  12. <view class="label">企业Logo</view>
  13. <image class="avatar" src="../../../static/auth-icon.png" mode="aspectFill"></image>
  14. </view>
  15. <view class="row">
  16. <view class="label">企业全称</view>
  17. <input class="text" type="text" placeholder="请输入" v-model="testValue1" />
  18. </view>
  19. <view class="row">
  20. <view class="label">企业简称</view>
  21. <input class="text" type="text" placeholder="选填" v-model="testValue2" />
  22. </view>
  23. <view class="row">
  24. <view class="label">统一信用代码</view>
  25. <input class="text" type="text" placeholder="选填" v-model="testValue2" />
  26. </view>
  27. <view class="row">
  28. <view class="label">注册资本</view>
  29. <input class="text" type="text" placeholder="选填" v-model="testValue2" />
  30. </view>
  31. <view class="row">
  32. <view class="label">注册地址</view>
  33. <input class="text" type="text" placeholder="选填" v-model="testValue2" />
  34. </view>
  35. <view class="space"></view>
  36. <view class="row">
  37. <view class="label">企业类型</view>
  38. <view class="text">有限责任公司</view>
  39. <image class="arrow" src="../../../static/svg/arrow.svg"></image>
  40. </view>
  41. <view class="row">
  42. <view class="label">纳税性质</view>
  43. <view class="text">一般纳税人</view>
  44. <image class="arrow" src="../../../static/svg/arrow.svg"></image>
  45. </view>
  46. <view class="row">
  47. <view class="label">所属地区</view>
  48. <view class="text">天津市</view>
  49. <image class="arrow" src="../../../static/svg/arrow.svg"></image>
  50. </view>
  51. <view class="row">
  52. <view class="label">所属行业</view>
  53. <view class="text">网络技术</view>
  54. <image class="arrow" src="../../../static/svg/arrow.svg"></image>
  55. </view>
  56. <view class="row">
  57. <view class="label">人员规模</view>
  58. <view class="text">50~100人</view>
  59. <image class="arrow" src="../../../static/svg/arrow.svg"></image>
  60. </view>
  61. <view class="space"></view>
  62. <view class="row">
  63. <view class="label">联系人</view>
  64. <input class="text" type="text" placeholder="选填" v-model="testValue2" />
  65. </view>
  66. <view class="row">
  67. <view class="label">联系电话</view>
  68. <input class="text" type="text" placeholder="选填" v-model="testValue2" />
  69. </view>
  70. <view class="row">
  71. <view class="label">电子件接收邮箱</view>
  72. <input class="text" type="text" placeholder="选填" v-model="testValue2" />
  73. </view>
  74. </view>
  75. <!-- 资金账户 -->
  76. <view v-if="tabActive === 2" class="info-panel">
  77. <view class="title">银行公户</view>
  78. <view class="row">
  79. <view class="label">户名</view>
  80. <view class="text">天津超易达胜科技发展有限公司</view>
  81. </view>
  82. <view class="row">
  83. <view class="label">开户行</view>
  84. <view class="text">招商银行天津河西支行</view>
  85. </view>
  86. <view class="row">
  87. <view class="label">开户行账号</view>
  88. <view class="text">70260122000076868</view>
  89. </view>
  90. <view class="row">
  91. <view class="label">银行电话</view>
  92. <view class="text">023-85206639</view>
  93. </view>
  94. <view class="title">其他账号</view>
  95. <view class="row">
  96. <view class="label">建行善付通</view>
  97. <view class="text">6222 8042 5063 2401 868</view>
  98. <image class="arrow" src="../../../static/svg/arrow.svg"></image>
  99. </view>
  100. <view class="row">
  101. <view class="label">绑定微信</view>
  102. <view class="text">18863100789</view>
  103. <image class="arrow" src="../../../static/svg/arrow.svg"></image>
  104. </view>
  105. </view>
  106. <!-- 认证信息 -->
  107. <view v-if="tabActive === 3" class="info-panel">
  108. <view class="row">
  109. <view class="label">认证类型</view>
  110. <view class="radio-group">
  111. <view :class="{ item: true, active: authType === 1 }" @click="authType = 1">
  112. <image class="radio" src="../../../static/icon_checkbox.png"></image>
  113. 企业认证
  114. </view>
  115. <view :class="{ item: true, active: authType === 2 }" @click="authType = 2">
  116. <image class="radio" src="../../../static/icon_checkbox.png"></image>
  117. 个人认证
  118. </view>
  119. </view>
  120. </view>
  121. <view v-show="authType === 1">
  122. <view class="space"></view>
  123. <view class="row">
  124. <view class="label">法人</view>
  125. <view class="text">张无忌</view>
  126. </view>
  127. <view class="row">
  128. <view class="label">法人身份证号</view>
  129. <view class="text">610110199012310987</view>
  130. </view>
  131. </view>
  132. <view class="space"></view>
  133. <view class="row">
  134. <view class="label">{{ authType === 1 ? '代表人' : '姓名' }}</view>
  135. <view class="text">李四</view>
  136. </view>
  137. <view class="row">
  138. <view class="label">证件类型</view>
  139. <view class="text">大陆身份证</view>
  140. </view>
  141. <view class="row">
  142. <view class="label">证件号</view>
  143. <view class="text">610110199012310980</view>
  144. </view>
  145. <view class="row">
  146. <view class="label">手机号</view>
  147. <view class="text">18992804987</view>
  148. </view>
  149. <view class="row">
  150. <view class="label">验证码</view>
  151. <view class="text">6234</view>
  152. <view class="code">获取验证码</view>
  153. </view>
  154. <view class="row">
  155. <view class="label">邮箱</view>
  156. <view class="text">156306621@qq.com</view>
  157. </view>
  158. <button class="submit-btn">提交认证信息</button>
  159. </view>
  160. <!-- 团队成员 -->
  161. <view v-if="tabActive === 4" class="list-panel">
  162. <view class="item">
  163. <image class="avatar" src="../../../static/auth-icon.png" mode="aspectFill"></image>
  164. <view class="text">
  165. 张无忌 18991397914
  166. <text class="sub">总经办·总经理</text>
  167. </view>
  168. <button class="btn" @click="handleOpenAuthSetting">权限设置</button>
  169. <button class="btn">删除</button>
  170. </view>
  171. <view class="item">
  172. <image class="avatar" src="../../../static/auth-icon.png" mode="aspectFill"></image>
  173. <view class="text">
  174. 张无忌 18991397914
  175. <text class="sub">财务部·财务主管</text>
  176. </view>
  177. <button class="btn">权限设置</button>
  178. <button class="btn">删除</button>
  179. </view>
  180. <view class="item">
  181. <image class="avatar" src="../../../static/auth-icon.png" mode="aspectFill"></image>
  182. <view class="text">
  183. 张无忌 18991397914
  184. <text class="sub">财务部·财务专员</text>
  185. </view>
  186. <button class="btn">权限设置</button>
  187. <button class="btn">删除</button>
  188. </view>
  189. <button class="add-btn" @click="handleOpenAddMember">+ 添加团队成员</button>
  190. </view>
  191. <!-- 资质文件 -->
  192. <!-- <view v-if="tabActive === 4" class="file-panel">
  193. <view class="file-item">
  194. <view class="upload">
  195. <image class="upload-icon" src="../../static/icon_plus_large.png" mode="aspectFill"></image>
  196. </view>
  197. <view class="name">营业执照</view>
  198. </view>
  199. <view class="file-item">
  200. <view class="upload">
  201. <image class="upload-icon" src="../../static/icon_plus_large.png" mode="aspectFill"></image>
  202. </view>
  203. <view class="name">其他</view>
  204. </view>
  205. </view> -->
  206. <!-- 添加成员弹窗 -->
  207. <uni-popup ref="memberDialog" type="dialog">
  208. <uni-popup-dialog ref="inputClose" type="info" title="添加成员" @confirm="dialogInputConfirm">
  209. <view class="popup-form">
  210. <view class="popup-form-item">
  211. <view class="label">姓名</view>
  212. <input class="input" type="text" placeholder="请输入" maxlength="20" />
  213. </view>
  214. <view class="popup-form-item">
  215. <view class="label">手机号</view>
  216. <input class="input" type="text" placeholder="请输入" maxlength="11" />
  217. </view>
  218. <view class="popup-form-item">
  219. <view class="label">部门</view>
  220. <picker class="picker" @change="bindPickerChange" :value="index" :range="array">
  221. <input class="input" type="text" placeholder="请选择" maxlength="11" :value="test" disabled />
  222. </picker>
  223. </view>
  224. <view class="popup-form-item">
  225. <view class="label">职务</view>
  226. <input class="input" type="text" placeholder="请输入" maxlength="11" />
  227. </view>
  228. </view>
  229. </uni-popup-dialog>
  230. </uni-popup>
  231. </view>
  232. </template>
  233. <script>
  234. import { getDict } from '@/api/system.js';
  235. export default {
  236. data() {
  237. return {
  238. tabActive: 1,
  239. tabList: [
  240. {
  241. label: '基础资料',
  242. value: 1
  243. },
  244. {
  245. label: '资金账户',
  246. value: 2
  247. },
  248. {
  249. label: '认证信息',
  250. value: 3
  251. },
  252. {
  253. label: '团队成员',
  254. value: 4
  255. }
  256. ],
  257. authType: 1,
  258. array: ['总经办', '财务部', '行政部'],
  259. test: '',
  260. testValue1: '',
  261. testValue2: ''
  262. };
  263. },
  264. onLoad() {
  265. this.getOptionsConfig();
  266. },
  267. methods: {
  268. // 获取选项配置
  269. async getOptionsConfig() {
  270. const { rows: companyTypeList } = await getDict('biz_company_type');
  271. const { rows: companyTaxList } = await getDict('biz_company_tax ');
  272. const { rows: companyIndustryList } = await getDict('biz_company_industry');
  273. const { rows: companySizeList } = await getDict('biz_company_size');
  274. console.log(companyTypeList, companyTaxList, companyIndustryList, companySizeList);
  275. },
  276. handleOpenAddMember() {
  277. this.$refs.memberDialog.open();
  278. },
  279. bindPickerChange(e) {
  280. this.test = this.array[e.detail.value];
  281. },
  282. dialogInputConfirm() {},
  283. //打开权限设置
  284. handleOpenAuthSetting() {
  285. uni.navigateTo({
  286. url: 'authSetting'
  287. });
  288. }
  289. }
  290. };
  291. </script>
  292. <style lang="scss" scoped>
  293. .page-wrap {
  294. padding-top: 82.42rpx;
  295. }
  296. .tabs-panel {
  297. position: fixed;
  298. left: 0;
  299. top: 0;
  300. right: 0;
  301. height: 82.42rpx;
  302. background: #fff;
  303. display: flex;
  304. z-index: 1;
  305. &::before,
  306. &::after {
  307. content: '';
  308. position: absolute;
  309. left: 0;
  310. right: 0;
  311. height: 1rpx;
  312. background: #e0e0e0;
  313. }
  314. &::before {
  315. top: 0;
  316. }
  317. &::after {
  318. bottom: 0;
  319. }
  320. .item {
  321. flex: 1;
  322. text-align: center;
  323. font-size: 27.47rpx;
  324. color: #999;
  325. line-height: 82.42rpx;
  326. position: relative;
  327. & + .item::before {
  328. content: '';
  329. position: absolute;
  330. left: 0;
  331. top: 0;
  332. bottom: 0;
  333. width: 1rpx;
  334. background: #e0e0e0;
  335. }
  336. }
  337. .active {
  338. color: #00bcd2;
  339. &::after {
  340. content: '';
  341. position: absolute;
  342. left: 0%;
  343. right: 0%;
  344. bottom: 0%;
  345. height: 5.49rpx;
  346. background: #00bcd2;
  347. z-index: 1;
  348. }
  349. }
  350. }
  351. .info-panel {
  352. font-size: 27.47rpx;
  353. .row {
  354. min-height: 96.15rpx;
  355. display: flex;
  356. align-items: center;
  357. justify-content: space-between;
  358. padding: 20.6rpx 41.21rpx;
  359. box-sizing: border-box;
  360. background: #fff;
  361. position: relative;
  362. color: #515151;
  363. &:first-child::before,
  364. & + .row::before {
  365. content: '';
  366. position: absolute;
  367. left: 0;
  368. right: 0;
  369. top: 0;
  370. height: 1px;
  371. background: #e0e0e0;
  372. transform: scaleY(0.5);
  373. }
  374. .label {
  375. white-space: nowrap;
  376. margin-right: 54.95rpx;
  377. }
  378. .text {
  379. flex: 1;
  380. text-align: right;
  381. }
  382. .arrow {
  383. width: 27.47rpx;
  384. height: 27.47rpx;
  385. margin-left: 6.87rpx;
  386. }
  387. .avatar {
  388. width: 82.42rpx;
  389. height: 82.42rpx;
  390. border-radius: 50%;
  391. }
  392. }
  393. .title {
  394. color: #666666;
  395. padding: 0 41.21rpx;
  396. line-height: 82.42rpx;
  397. }
  398. .space {
  399. background: #f3f3f3;
  400. height: 13.74rpx;
  401. }
  402. .radio-group {
  403. display: flex;
  404. .item {
  405. position: relative;
  406. padding-left: 43.96rpx;
  407. line-height: 32.97rpx;
  408. margin-left: 41.21rpx;
  409. &:before {
  410. content: '';
  411. position: absolute;
  412. left: 0%;
  413. top: 50%;
  414. transform: translateY(-50%);
  415. width: 30.22rpx;
  416. height: 30.22rpx;
  417. border: 1rpx solid #ddd;
  418. border-radius: 50%;
  419. box-sizing: border-box;
  420. }
  421. .radio {
  422. width: 32.97rpx;
  423. height: 32.97rpx;
  424. position: absolute;
  425. left: 0;
  426. top: 50%;
  427. transform: translateY(-50%);
  428. display: none;
  429. z-index: 1;
  430. }
  431. &.active .radio {
  432. display: block;
  433. }
  434. }
  435. }
  436. }
  437. .submit-btn {
  438. width: 549.45rpx;
  439. height: 75.55rpx;
  440. background: #079eff;
  441. font-size: 27.47rpx;
  442. color: #fff;
  443. border-radius: 8.24rpx;
  444. margin: 54.95rpx auto;
  445. }
  446. .list-panel {
  447. margin-top: 13.74rpx;
  448. .item {
  449. display: flex;
  450. align-items: center;
  451. padding: 16.48rpx 27.47rpx;
  452. min-height: 96.15rpx;
  453. box-sizing: border-box;
  454. position: relative;
  455. background: #fff;
  456. & + .item::before {
  457. content: '';
  458. position: absolute;
  459. left: 0%;
  460. right: 0%;
  461. top: 0%;
  462. height: 1rpx;
  463. transform: scaleY(0.5);
  464. background: #e0e0e0;
  465. }
  466. }
  467. .avatar {
  468. width: 76.92rpx;
  469. height: 76.92rpx;
  470. }
  471. .text {
  472. flex: 1;
  473. font-size: 27.47rpx;
  474. color: #545e8f;
  475. margin-left: 13.74rpx;
  476. }
  477. .sub {
  478. display: block;
  479. font-size: 24.73rpx;
  480. color: #999999;
  481. }
  482. .btn {
  483. background: none;
  484. border: none;
  485. font-size: 27.47rpx;
  486. color: #f97631;
  487. white-space: nowrap;
  488. padding: 0;
  489. margin-left: 13.74rpx;
  490. }
  491. .add-btn {
  492. margin-top: 27.47rpx;
  493. font-size: 27.47rpx;
  494. color: #00bcd2;
  495. height: 82.42rpx;
  496. line-height: 82.42rpx;
  497. display: block;
  498. text-align: left;
  499. padding: 0 0 0 54.95rpx;
  500. background: #fff;
  501. border: none;
  502. border-radius: 13.74rpx;
  503. }
  504. }
  505. .popup-form {
  506. width: 100%;
  507. font-size: 27.47rpx;
  508. &-item {
  509. display: flex;
  510. align-items: center;
  511. height: 82.42rpx;
  512. position: relative;
  513. &::before {
  514. content: '';
  515. position: absolute;
  516. left: 0;
  517. right: 0;
  518. bottom: 0;
  519. height: 1rpx;
  520. background: #e0e0e0;
  521. }
  522. }
  523. .label {
  524. white-space: nowrap;
  525. margin-right: 13.74rpx;
  526. }
  527. .input {
  528. flex: 1;
  529. text-align: right;
  530. }
  531. .picker {
  532. flex: 1;
  533. }
  534. }
  535. // .file-panel {
  536. // padding: 27.47rpx;
  537. // .file-item {
  538. // width: 192.31rpx;
  539. // .upload {
  540. // width: 192.31rpx;
  541. // height: 192.31rpx;
  542. // box-sizing: border-box;
  543. // border: 1px solid #ddd;
  544. // background: #fff;
  545. // display: flex;
  546. // align-items: center;
  547. // justify-content: center;
  548. // &-icon {
  549. // width: 137.36rpx;
  550. // height: 137.36rpx;
  551. // }
  552. // }
  553. // .name {
  554. // font-size: 27.47rpx;
  555. // text-align: center;
  556. // line-height: 86.54rpx;
  557. // }
  558. // }
  559. // }
  560. </style>