推广小程序前端代码
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.

85 lines
1.9 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view>
  3. <view class="head-box"></view>
  4. <uv-navbar autoBack title="主理人签到" leftIconColor="#fff" :bgColor="bgColor" height="100rpx" :titleStyle="{color:'#fff'}"></uv-navbar>
  5. <view class="content">
  6. <zlx-item :cardListData="cardListData" @qiandaoClick="qiandaoClick"></zlx-item>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. import zlxItem from '@/components/zhaomu/zlx-item.vue'
  12. export default{
  13. components:{
  14. zlxItem
  15. },
  16. data() {
  17. return {
  18. bgColor:'transparent',
  19. cardListData: [
  20. {
  21. imgUrl: 'https://up.zhuoku.org/22/a4/60/50/fc3bd0b4e656911fccdde4383637c1cd.jpg',
  22. orderTime: '2024.08.23 12:00',
  23. state: 'U',
  24. stateText: '待参加',
  25. title: '夏日去撒野旅游计划~',
  26. time: '2024.10.28 10:00',
  27. address: '成都市东丽湖露营地32号',
  28. },
  29. {
  30. imgUrl: 'https://up.zhuoku.org/22/a4/60/50/fc3bd0b4e656911fccdde4383637c1cd.jpg',
  31. orderTime: '2024.08.23 12:00',
  32. state: 'S',
  33. stateText: '已完成',
  34. title: '夏日去撒野旅游计划~',
  35. time: '2024.10.28 10:00',
  36. address: '成都市东丽湖露营地32号',
  37. },
  38. ]
  39. }
  40. },
  41. onPageScroll(e) {
  42. if(e.scrollTop > 50) {
  43. this.bgColor = '#49070c'
  44. }else{
  45. this.bgColor = 'transparent'
  46. }
  47. },
  48. onLoad() {
  49. this.getactivityMemberPageList()
  50. },
  51. methods:{
  52. getactivityMemberPageList(){
  53. this.$api('activityMemberPageList',{type:0},res=>{
  54. this.cardListData = res.result.records;
  55. })
  56. },
  57. qiandaoClick() {
  58. uni.navigateTo({
  59. url:'/pages_my/qiandao-list'
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. page {
  67. background-color: #060504;
  68. }
  69. </style>
  70. <style lang="scss" scoped>
  71. .head-box {
  72. background: url('@/static/image/nav-bg.png') no-repeat;
  73. background-size: 100% 100%;
  74. width: 100%;
  75. height: 534rpx;
  76. position: absolute;
  77. z-index: -1;
  78. }
  79. .content {
  80. padding: 0 30rpx;
  81. padding-top: calc(var(--status-bar-height) + 110rpx);
  82. }
  83. </style>