enterpriseTeam.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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"
  5. @click="tabActive =item.value">
  6. {{item.label}}
  7. </view>
  8. </view>
  9. <!-- 团队成员 -->
  10. <view v-if="tabActive === 1" class="list-panel">
  11. <view class="item">
  12. <image class="avatar" src="../../static/auth-icon.png" mode="aspectFill"></image>
  13. <view class="text">
  14. 张无忌 18991397914
  15. <text class="sub">总经办</text>
  16. </view>
  17. <button class="btn">权限设置</button>
  18. <button class="btn">删除</button>
  19. </view>
  20. <view class="item">
  21. <image class="avatar" src="../../static/auth-icon.png" mode="aspectFill"></image>
  22. <view class="text">
  23. 张无忌 18991397914
  24. <text class="sub">总经办</text>
  25. </view>
  26. <button class="btn">权限设置</button>
  27. <button class="btn">删除</button>
  28. </view>
  29. <view class="item">
  30. <image class="avatar" src="../../static/auth-icon.png" mode="aspectFill"></image>
  31. <view class="text">
  32. 张无忌 18991397914
  33. <text class="sub">总经办</text>
  34. </view>
  35. <button class="btn">待审核</button>
  36. <button class="btn">删除</button>
  37. </view>
  38. <button class="add-btn">+ 添加团队成员</button>
  39. </view>
  40. <!-- 部门管理 -->
  41. <view v-if="tabActive === 2" class="list-panel">
  42. <view class="item">
  43. <view class="text">总经办</view>
  44. <button class="btn">删除</button>
  45. </view>
  46. <view class="item">
  47. <view class="text">财务部</view>
  48. <button class="btn">删除</button>
  49. </view>
  50. <view class="item">
  51. <view class="text">行政部</view>
  52. <button class="btn">删除</button>
  53. </view>
  54. <view class="item">
  55. <view class="text">后勤部</view>
  56. <button class="btn">删除</button>
  57. </view>
  58. <button class="add-btn">+ 添加新部门</button>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. export default {
  64. data() {
  65. return {
  66. tabActive: 1,
  67. tabList: [{
  68. label: '团队成员',
  69. value: 1
  70. }, {
  71. label: '部门管理',
  72. value: 2
  73. }]
  74. };
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .page-wrap {
  80. padding-top: 82.42rpx;
  81. overflow: hidden;
  82. // .submit-btn{
  83. // width: 549.45rpx;
  84. // height: 75.55rpx;
  85. // background: #00BCD2;
  86. // font-size: 27.47rpx;
  87. // color: #fff;
  88. // border-radius: 8.24rpx;
  89. // margin: 54.95rpx auto;
  90. // }
  91. }
  92. .tabs-panel {
  93. position: fixed;
  94. left: 0;
  95. top: 0;
  96. right: 0;
  97. height: 82.42rpx;
  98. background: #fff;
  99. display: flex;
  100. padding: 0 41.21rpx;
  101. z-index: 1;
  102. &::before,
  103. &::after {
  104. content: '';
  105. position: absolute;
  106. left: 0;
  107. right: 0;
  108. height: 1rpx;
  109. background: #e0e0e0;
  110. }
  111. &::before {
  112. top: 0;
  113. }
  114. &::after {
  115. bottom: 0;
  116. }
  117. .item {
  118. padding: 0 9.62rpx;
  119. text-align: center;
  120. font-size: 27.47rpx;
  121. color: #999;
  122. line-height: 82.42rpx;
  123. position: relative;
  124. &+.item {
  125. margin-left: 27.47rpx;
  126. }
  127. }
  128. .active {
  129. color: #00BCD2;
  130. &::after {
  131. content: '';
  132. position: absolute;
  133. left: 0%;
  134. right: 0%;
  135. bottom: 0%;
  136. height: 5.49rpx;
  137. background: #00BCD2;
  138. z-index: 1;
  139. }
  140. }
  141. }
  142. .list-panel {
  143. margin-top: 13.74rpx;
  144. .item {
  145. display: flex;
  146. align-items: center;
  147. padding: 16.48rpx 27.47rpx;
  148. min-height: 96.15rpx;
  149. box-sizing: border-box;
  150. position: relative;
  151. background: #fff;
  152. &+.item::before {
  153. content: '';
  154. position: absolute;
  155. left: 0%;
  156. right: 0%;
  157. top: 0%;
  158. height: 1rpx;
  159. transform: scaleY(.5);
  160. background: #e0e0e0;
  161. }
  162. }
  163. .avatar {
  164. width: 76.92rpx;
  165. height: 76.92rpx;
  166. }
  167. .text {
  168. flex: 1;
  169. font-size: 27.47rpx;
  170. color: #545E8F;
  171. margin-left: 13.74rpx;
  172. }
  173. .sub {
  174. display: block;
  175. font-size: 24.73rpx;
  176. color: #999999;
  177. }
  178. .btn {
  179. background: none;
  180. border: none;
  181. font-size: 27.47rpx;
  182. color: #F97631;
  183. white-space: nowrap;
  184. padding: 0;
  185. margin-left: 13.74rpx;
  186. &::after {
  187. display: none;
  188. }
  189. }
  190. .add-btn{
  191. margin-top: 27.47rpx;
  192. font-size: 27.47rpx;
  193. color: #00BCD2;
  194. height: 82.42rpx;
  195. line-height: 82.42rpx;
  196. display: block;
  197. text-align: left;
  198. padding: 0 0 0 54.95rpx;
  199. background: #fff;
  200. border: none;
  201. border-radius: 13.74rpx;
  202. &::after {
  203. display: none;
  204. }
  205. }
  206. }
  207. </style>