meeting_arrangements.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view>
  3. <view class="list">
  4. <view class="item" v-for="(item,index) in list" :key="index" @click="go_detail(item.id,item.title)">
  5. <view class="line">
  6. <!-- <view class="tip">未举办</view> -->
  7. <!-- <view class="tip" style="background-color: #009FE8;">开会中</view> -->
  8. <!-- <view class="tip" style="background-color: #BEBEBE;">已过期</view> -->
  9. <view class="title">{{item.title}}</view>
  10. </view>
  11. <view class="text">时间:{{item.time}}</view>
  12. <view class="text">地点:{{item.place}}</view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. list:[]
  22. };
  23. },
  24. onLoad() {
  25. this.get_list()
  26. },
  27. methods:{
  28. // 会议列表
  29. get_list(){
  30. this.$api.conference_list({
  31. }).then((res)=>{
  32. console.log(res.data.data)
  33. this.list = res.data.data
  34. if(this.list.length == 0){
  35. uni.showToast({
  36. icon:"none",
  37. title:"暂无会议"
  38. })
  39. setTimeout(()=>{
  40. uni.navigateBack()
  41. },1500)
  42. }
  43. })
  44. },
  45. go_detail(id,title){
  46. uni.navigateTo({
  47. url:"./detail/detail?id=" + id + "&title=" + title
  48. })
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss">
  54. page{
  55. box-sizing: border-box;
  56. padding: 25rpx;
  57. }
  58. .list{
  59. .item{
  60. margin-bottom: 20rpx;
  61. padding-bottom: 20rpx;
  62. border-bottom: 1rpx solid #F0F0F0;
  63. .line{
  64. display: flex;
  65. align-items: center;
  66. height: 60rpx;
  67. .tip{
  68. width: 100rpx;
  69. text-align: center;
  70. color: #FFFFFF;
  71. font-size: 26rpx;
  72. background-color: #2ABD62;
  73. border-radius: 10rpx;
  74. }
  75. .title{
  76. margin-left: 20rpx;
  77. font-size: 34rpx;
  78. }
  79. }
  80. .text{
  81. // margin-left: 120rpx;
  82. margin-left: 20rpx;
  83. font-size: 26rpx;
  84. color: #666;
  85. }
  86. }
  87. }
  88. </style>