list.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <template>
  2. <view class="content">
  3. <view>
  4. <view class="active-title-box">
  5. <view class="header-title">活动名称XXXXXXX</view>
  6. <view style="color: gray;">2021.12.01 - 2022.1.31</view>
  7. </view>
  8. <view class="active-box" v-for="(item,index) in activiList" :key="index" style="flex-direction: column;">
  9. <view class="active-header">
  10. <view class="active-type">
  11. <text style="margin: 0 auto;">头像</text>
  12. </view>
  13. <view class="active-content-box">
  14. <view class="active-content margin-top-3">
  15. <view class="active-name">{{item.name}}</view>
  16. </view>
  17. <view class="active-content">
  18. <view class="active-date">{{item.date}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="active-content-box-img margin-top-3">
  23. <image :src="item.img_url" mode="aspectFit"></image>
  24. <image :src="item.img_url" mode="aspectFit"></image>
  25. <image :src="item.img_url" mode="aspectFit"></image>
  26. </view>
  27. <view class="margin-top-3" style="color: #007AFF;">
  28. {{item.link}}
  29. </view>
  30. <view class="edit-icon-box">
  31. <image src="/static/edit-icon.png" mode="aspectFit"></image>
  32. <image src="/static/del-icon.png" mode="aspectFit"></image>
  33. </view>
  34. </view>
  35. <button class="footer-box-record" @click="goRecord()">上传记录</button>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import md5 from "@/common/md5.js";
  41. export default {
  42. components: {
  43. },
  44. data() {
  45. return {
  46. isAuth:getApp().globalData.globalAuth,
  47. userHeadImg: getApp().globalData.user_headUrl,
  48. userNickName:getApp().globalData.user_name,
  49. array: ['全部', '浐灞一支部', '浐灞二支部'],
  50. index: 0,
  51. activiList:[
  52. {
  53. type:'组织建设',
  54. typeNum:'1',
  55. activi_name:'活动名称XXX',
  56. date:'2022.01.22 14:25:40',
  57. name:'路小路',
  58. department:'浐灞一支部',
  59. record_num:'22',
  60. num:'9',
  61. img_url:'/static/logo.png',
  62. link:'https://weread.qq.com/'
  63. },
  64. {
  65. type:'学习培训',
  66. typeNum:'2',
  67. activi_name:'活动名称XXX',
  68. date:'2022.01.15 09:31:55',
  69. name:'陈伟',
  70. department:'浐灞二支部',
  71. record_num:'22',
  72. num:'9',
  73. img_url:'/static/logo.png',
  74. link:'https://weread.qq.com/'
  75. },
  76. {
  77. type:'参政议政',
  78. typeNum:'3',
  79. activi_name:'活动名称XXX',
  80. date:'2022.01.15 18:55:33',
  81. name:'陈伟',
  82. department:'浐灞二支部',
  83. record_num:'22',
  84. num:'9',
  85. img_url:'/static/logo.png',
  86. link:'https://open.163.com/'
  87. },
  88. ]
  89. };
  90. },
  91. onShow() {
  92. },
  93. methods: {
  94. bindPickerChange: function(e) {
  95. console.log('picker发送选择改变,携带值为', e.target.value)
  96. this.index = e.target.value
  97. },
  98. change(e) {
  99. this.single = e;
  100. console.log("-change事件:", e);
  101. },
  102. publish(){
  103. uni.navigateTo({
  104. url:'./create1'
  105. })
  106. },
  107. goRecord(){
  108. uni.navigateTo({
  109. url:'./record'
  110. })
  111. }
  112. },
  113. };
  114. </script>
  115. <style lang="scss" scoped>
  116. .content {
  117. display: flex;
  118. flex-direction: column;
  119. .self-inf {
  120. // border-radius: 0rpx 0rpx 100% 100%;
  121. .img-name-box {
  122. height: 150rpx;
  123. margin-top: 20rpx;
  124. margin-bottom: 20rpx;
  125. display: flex;
  126. align-items: center;
  127. width: 85%;
  128. .auth-btn {
  129. margin-left: 30rpx;
  130. margin-top: 20rpx;
  131. font-size: 28rpx;
  132. background-color: #02a7f0;
  133. color: #fff;
  134. }
  135. .heade-img {
  136. z-index: 1;
  137. width: 100rpx;
  138. height: 100rpx;
  139. border-radius: 50%;
  140. // margin-left: 80rpx;
  141. }
  142. }
  143. .nickname {
  144. font-weight: 600;
  145. font-size: 28rpx;
  146. margin-left: 30rpx;
  147. margin-top: 20rpx;
  148. color: #555;
  149. letter-spacing: 1rpx;
  150. }
  151. }
  152. }
  153. .org-info-box {
  154. display: flex;
  155. justify-content: space-evenly;
  156. height: 80rpx;
  157. align-items: center;
  158. width: 100%;
  159. border-top: 1px solid #d4d4d4;
  160. color: #555;
  161. font-size: 28rpx;
  162. background: #fff;
  163. }
  164. .org-line {
  165. width: 1px;
  166. height: 82rpx;
  167. background: #d4d4d4;
  168. }
  169. .header-title {
  170. margin-top: 3%;
  171. margin-bottom: 1%;
  172. font-size: 32rpx;
  173. font-weight: bold
  174. }
  175. .active-title-box {
  176. padding-left: 5%;
  177. font-size: 26rpx;
  178. height: 100rpx;
  179. border-bottom: 4px solid #eeeeee;
  180. .time-select-box {
  181. width: 32%;
  182. margin-left: 5%;
  183. }
  184. picker {
  185. width: 25%;
  186. border: 1px solid #d7d7d7;
  187. height: 60rpx;
  188. line-height: 60rpx;
  189. border-radius: 10rpx;
  190. margin-left: 20rpx;
  191. padding: 0 10rpx;
  192. position: relative;
  193. image {
  194. width: 20rpx;
  195. height: 20rpx;
  196. position: absolute;
  197. top: 11px;
  198. right: 5px;
  199. }
  200. }
  201. button {
  202. width: 24%;
  203. font-size: 25rpx;
  204. background: #4988fd;
  205. color: #fff;
  206. margin-left: 25rpx;
  207. }
  208. }
  209. .margin-top-3 {
  210. margin-top: 3%;
  211. }
  212. .active-box {
  213. display: flex;
  214. position: relative;
  215. font-size: 28rpx;
  216. padding: 30rpx;
  217. border-bottom: 1px solid #d7d7d7;
  218. .active-header {
  219. display: flex;
  220. width: 100%;
  221. }
  222. .active-type {
  223. width: 100rpx;
  224. height: 100rpx;
  225. border-radius: 50%;
  226. background-color: #ccc;
  227. text-align: center;
  228. display: flex;
  229. align-items: center;
  230. font-size: 26rpx;
  231. color: #fff;
  232. }
  233. .active-content-box{
  234. display: flex;
  235. flex-direction: column;
  236. margin-left: 20rpx;
  237. }
  238. .active-content-box-img {
  239. display: flex;
  240. justify-content: space-around;
  241. image {
  242. width: 240rpx;
  243. height: 160rpx;
  244. }
  245. }
  246. .active-content {
  247. display: flex;
  248. align-items: center;
  249. height: 45rpx;
  250. font-size: 26rpx;
  251. .active-name {
  252. font-size: 30rpx;
  253. margin-right: 10rpx;
  254. }
  255. .active-date {
  256. color: #ccc;
  257. }
  258. }
  259. .edit-icon-box {
  260. position: absolute;
  261. right: 10px;
  262. top: 10px;
  263. image {
  264. width: 35rpx;
  265. height: 35rpx;
  266. margin-right: 10rpx;
  267. }
  268. }
  269. .bg-yellow {
  270. background-color: #ffdd40;
  271. }
  272. .bg-red {
  273. background-color: #ec808d;
  274. }
  275. .bg-blue {
  276. background-color: #81d3f8;
  277. }
  278. }
  279. .footer-box-record{
  280. position: fixed;
  281. bottom: 0;
  282. background-color:#f59a23;
  283. width: 100%;
  284. border-radius: 0;
  285. color: #fff;
  286. font-size: 32rpx;
  287. }
  288. </style>