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

76 lines
1.7 KiB

2 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. methods:{
  49. qiandaoClick(item) {
  50. uni.navigateTo({
  51. url:'/pages_my/qiandao-list'
  52. })
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss">
  58. page {
  59. background-color: #060504;
  60. }
  61. </style>
  62. <style lang="scss" scoped>
  63. .head-box {
  64. background: url('@/static/image/nav-bg.png') no-repeat;
  65. background-size: 100% 100%;
  66. width: 100%;
  67. height: 534rpx;
  68. position: absolute;
  69. }
  70. .content {
  71. padding: 0 30rpx;
  72. padding-top: calc(var(--status-bar-height) + 100rpx);
  73. }
  74. </style>