activityManage.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view>
  3. <view class="top-fixed">
  4. <view class="search-box ddflex">
  5. <view class="search-input ddflex fflex">
  6. <image src="/static/images/ssico.png"></image>
  7. <input @confirm="searchFn" confirm-type="search" @input="searchFn" v-model="searchVal" class="fflex"
  8. placeholder="请输入关键词" />
  9. </view>
  10. </view>
  11. </view>
  12. <view style="height: 150rpx;"></view>
  13. <view class="title">
  14. 我的活动<text>共3个</text>
  15. </view>
  16. <view class="padd30">
  17. <view class="act-bar ddflex" v-for="item in 3">
  18. <view class="act-pic">
  19. <image src="/static/images/lj_img.png"></image>
  20. <view class="act-pic-tag">审核中</view>
  21. </view>
  22. <view class="flex">
  23. <view class="act-title tovers">保险大家谈 2023·山东青岛</view>
  24. <view class="act-time">活动时间:2023.10.07</view>
  25. <view class="act-bottom ddflex">
  26. <view class="act-bottom-look ddflex">
  27. <image src="../../static/pages/images/fw_hui.png"></image>
  28. 0人
  29. </view>
  30. <view class="act-edit" @click="jumpUrl('/match/activityEdit/activityEdit')">修改</view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. const app = getApp();
  39. const req = require("../../utils/request.js");
  40. export default {
  41. components: {},
  42. props: {},
  43. data() {
  44. return {
  45. systems: {},
  46. isTop:0,
  47. }
  48. },
  49. onLoad(options) {
  50. },
  51. onShow() {
  52. },
  53. methods: {
  54. jumpUrl(url){
  55. uni.navigateTo({
  56. url:url
  57. })
  58. }
  59. },
  60. mounted() {
  61. const systemInfo = uni.getSystemInfoSync();
  62. // px转换到rpx的比例
  63. let pxToRpxScale = 750 / systemInfo.windowWidth;
  64. let systems = {
  65. ktxStatusHeight: systemInfo.statusBarHeight * pxToRpxScale, // 状态栏的高度
  66. navigationHeight: 44 * pxToRpxScale // 导航栏的高度
  67. };
  68. systems.barHeight = systems.ktxStatusHeight + systems.navigationHeight;
  69. this.systems = systems;
  70. },
  71. onPageScroll: function(e) {
  72. if (e.scrollTop > this.systems.barHeight) {
  73. this.isTop = 1;
  74. } else {
  75. this.isTop = 0;
  76. }
  77. }
  78. }
  79. </script>
  80. <style>
  81. @import "./activityManage.css";
  82. </style>