org_member.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <template>
  2. <view class="content">
  3. <view>
  4. <view class="active-title-box">
  5. <picker @change="bindPickerChange" :value="index" :range="array">
  6. <view class="uni-input">{{array[index]}}</view>
  7. <image src="/static/arrow_down.svg" mode="aspectFit"></image>
  8. </picker>
  9. </view>
  10. <view class="active-box" v-for="(item,index) in orgList" :key="index">
  11. <view class="active-content-box">
  12. <view class="active-content">
  13. <view class="active-name">{{item.name}}</view>
  14. <view class="active-date">({{item.company}})</view>
  15. </view>
  16. <view class="active-content" style="margin-top: 10rpx">
  17. <view>{{item.phone}}</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import md5 from "@/common/md5.js";
  26. export default {
  27. components: {
  28. },
  29. data() {
  30. return {
  31. isAuth:getApp().globalData.globalAuth,
  32. userHeadImg: getApp().globalData.user_headUrl,
  33. userNickName:getApp().globalData.user_name,
  34. array: ['全部', '浐灞一支部', '浐灞二支部'],
  35. index: 0,
  36. orgList:[
  37. {
  38. name:'路小路',
  39. company:'西安芝麻开花科技有限公司',
  40. phone:'18442712329'
  41. },
  42. {
  43. name:'肖阳',
  44. company:'西安芝麻开花科技有限公司',
  45. phone:'18765670560'
  46. },
  47. {
  48. name:'刘森宇',
  49. company:'西安芝麻开花科技有限公司',
  50. phone:'13991322329'
  51. },
  52. {
  53. name:'张琪',
  54. company:'西安芝麻开花科技有限公司',
  55. phone:'15902958809'
  56. },
  57. ]
  58. };
  59. },
  60. onShow() {
  61. },
  62. methods: {
  63. bindPickerChange: function(e) {
  64. console.log('picker发送选择改变,携带值为', e.target.value)
  65. this.index = e.target.value
  66. },
  67. change(e) {
  68. this.single = e;
  69. console.log("-change事件:", e);
  70. },
  71. },
  72. };
  73. </script>
  74. <style lang="scss" scoped>
  75. .content {
  76. display: flex;
  77. flex-direction: column;
  78. .self-inf {
  79. // border-radius: 0rpx 0rpx 100% 100%;
  80. .img-name-box {
  81. height: 150rpx;
  82. margin-top: 20rpx;
  83. margin-bottom: 20rpx;
  84. display: flex;
  85. align-items: center;
  86. width: 85%;
  87. .auth-btn {
  88. margin-left: 30rpx;
  89. margin-top: 20rpx;
  90. font-size: 28rpx;
  91. background-color: #02a7f0;
  92. color: #fff;
  93. }
  94. .heade-img {
  95. z-index: 1;
  96. width: 100rpx;
  97. height: 100rpx;
  98. border-radius: 50%;
  99. // margin-left: 80rpx;
  100. }
  101. }
  102. .nickname {
  103. font-weight: 600;
  104. font-size: 28rpx;
  105. margin-left: 30rpx;
  106. margin-top: 20rpx;
  107. color: #555;
  108. letter-spacing: 1rpx;
  109. }
  110. }
  111. }
  112. .antu-box {
  113. display: flex;
  114. flex-direction: column;
  115. align-items: center;
  116. background: #fff;
  117. margin-left: 5%;
  118. margin-top: 50rpx;
  119. border-radius: 10rpx;
  120. width: 90%;
  121. color: #555;
  122. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.2);
  123. }
  124. .org-info-box {
  125. display: flex;
  126. justify-content: space-evenly;
  127. height: 80rpx;
  128. align-items: center;
  129. width: 100%;
  130. border-top: 1px solid #d4d4d4;
  131. color: #555;
  132. font-size: 28rpx;
  133. background: #fff;
  134. }
  135. .org-line {
  136. width: 1px;
  137. height: 82rpx;
  138. background: #d4d4d4;
  139. }
  140. .active-title-box {
  141. display: flex;
  142. align-items: center;
  143. margin-top: 10rpx;
  144. font-size: 26rpx;
  145. height: 100rpx;
  146. border-bottom: 1px solid #d7d7d7;
  147. margin-top: 10rpx;
  148. .time-select-box {
  149. width: 32%;
  150. margin-left: 5%;
  151. }
  152. picker {
  153. width: 25%;
  154. border: 1px solid #d7d7d7;
  155. height: 60rpx;
  156. line-height: 60rpx;
  157. border-radius: 10rpx;
  158. margin-left: 20rpx;
  159. padding: 0 10rpx;
  160. position: relative;
  161. image {
  162. width: 20rpx;
  163. height: 20rpx;
  164. position: absolute;
  165. top: 11px;
  166. right: 5px;
  167. }
  168. }
  169. button {
  170. width: 24%;
  171. font-size: 25rpx;
  172. background: #4988fd;
  173. color: #fff;
  174. margin-left: 25rpx;
  175. }
  176. }
  177. .active-box {
  178. display: flex;
  179. align-items: center;
  180. position: relative;
  181. font-size: 28rpx;
  182. padding: 15rpx;
  183. border-bottom: 1px solid #d7d7d7;
  184. .active-type {
  185. width: 100rpx;
  186. height: 100rpx;
  187. border-radius: 50%;
  188. background-color: yellow;
  189. text-align: center;
  190. display: flex;
  191. align-items: center;
  192. font-size: 26rpx;
  193. color: #fff;
  194. }
  195. .active-content-box {
  196. display: flex;
  197. flex-direction: column;
  198. margin-left: 10rpx;
  199. width: 100%;
  200. }
  201. .active-content {
  202. display: flex;
  203. align-items: center;
  204. height: 45rpx;
  205. font-size: 28rpx;
  206. .active-name {
  207. font-size: 30rpx;
  208. width: 18%;
  209. }
  210. .active-date {
  211. color: #999;
  212. }
  213. }
  214. .edit-icon-box {
  215. position: absolute;
  216. right: 10px;
  217. top: 10px;
  218. image {
  219. width: 35rpx;
  220. height: 35rpx;
  221. margin-right: 10rpx;
  222. }
  223. }
  224. .bg-yellow {
  225. background-color: #ffdd40;
  226. }
  227. .bg-red {
  228. background-color: #ec808d;
  229. }
  230. .bg-blue {
  231. background-color: #81d3f8;
  232. }
  233. }
  234. </style>