兼兼街公众号代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
2.6 KiB

  1. <template>
  2. <view class="my-baoming">
  3. <view class="search-box flex align-center justify-between">
  4. <u-search placeholder="输入活动主标题进行搜索" @search="searchClick" searchIconSize="16" :showAction="false" :searchIcon="searchIcon" v-model="params.search"></u-search>
  5. </view>
  6. <view class="content">
  7. <view class="course-box-item flex" @click="seeDetail(item)" v-for="(item,i) in 3" :key="i">
  8. <!-- <u--image :showLoading="true" src="@/static/img/my/dianhua-bg.png" width="281rpx" height="256rpx"></u--image> -->
  9. <view class="box-right">
  10. <view class="active-title">2021 想象力大会 想象力智造 数字板块位移</view>
  11. <view class="active-time">
  12. <text>2021/03/22 13:30</text>
  13. </view>
  14. <view class="active-add">
  15. <text>湖南省长沙市雨花区人民东路111号</text>
  16. </view>
  17. <view class="user-img flex justify-end">
  18. <view class="menu-btn" @click="seeDetail">报名详情</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default{
  27. data(){
  28. return{
  29. searchIcon: require('@/static/img/search-icon.png'),
  30. params:{
  31. pageNo:1,
  32. pageSize:10,
  33. search:''
  34. }
  35. }
  36. },
  37. // 隐藏微信h5的标题栏
  38. onReady() {
  39. this.$com.displayNav()
  40. },
  41. methods:{
  42. seeDetail(){
  43. uni.navigateTo({
  44. url:`/pages/my/baoming-detail`
  45. })
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss">
  51. page {
  52. background-color: #EEEEEE;
  53. }
  54. </style>
  55. <style lang="scss" scoped>
  56. .my-baoming {
  57. .search-box {
  58. margin-bottom: 22rpx;
  59. background-color: #fff;
  60. height: 128rpx;
  61. padding: 0 56rpx;
  62. }
  63. .content {
  64. padding: 0 12rpx;
  65. .course-box-item {
  66. background: #ffffff;
  67. border-radius: 12rpx;
  68. box-shadow: 0px 3rpx 6rpx 0px rgba(0,0,0,0.16);
  69. padding: 33rpx 13rpx;
  70. margin-bottom:17rpx;
  71. .box-right {
  72. margin-left: 16rpx;
  73. .active-title {
  74. font-size: 30rpx;
  75. color: #000;
  76. line-height: 40rpx;
  77. overflow: hidden;
  78. display: -webkit-box;
  79. -webkit-box-orient: vertical;
  80. -webkit-line-clamp: 2;
  81. }
  82. .active-time {
  83. color: #707070;
  84. font-size: 26rpx;
  85. margin: 10rpx 0 14rpx 0;
  86. }
  87. .active-add {
  88. color: #707070;
  89. font-size: 26rpx;
  90. }
  91. .user-img {
  92. .menu-btn {
  93. width: 213rpx;
  94. height: 79rpx;
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. background-color: #ED1450;
  99. color: #FFFFFF;
  100. font-size: 26rpx;
  101. border-radius: 40rpx;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }
  108. </style>