info.vue 11 KB

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