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

94 lines
2.1 KiB

2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
1 month ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
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. <uv-sticky offsetTop="350rpx" :bgColor="bgColor">
  6. <uv-tabs :scrollable="false" @click="tabs" :list="tabList" lineWidth="40" :current="tabCurrent"
  7. :lineColor="`url(${lineBg}) 100% 100%`"
  8. :activeStyle="{color: '#FD5C5C', fontWeight: 'bold',transform: 'scale(1.05)'}"
  9. :inactiveStyle="{color: '#999', transform: 'scale(1)'}"
  10. itemStyle="padding-left: 15px; padding-right: 15px; height: 44px;"></uv-tabs>
  11. </uv-sticky>
  12. <view class="content">
  13. <zlx-item
  14. v-for="(item, index) in list"
  15. :key="index"
  16. :item="item"
  17. showBottom
  18. @qiandaoClick="qiandaoClick(item.id)"></zlx-item>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import zlxItem from '@/components/zhaomu/zlx-item.vue'
  24. import listMixin from '@/mixins/list.js'
  25. export default{
  26. mixins: [listMixin],
  27. components:{
  28. zlxItem
  29. },
  30. data() {
  31. return {
  32. lineBg: require('@/static/image/cart/tabIcon.png'),
  33. bgColor:'transparent',
  34. mixinsListApi : 'activityMemberPageList',//activityMemberPageList getTwoPageList
  35. tabCurrent : 0,
  36. tabList: [
  37. {
  38. id: 0,
  39. name: '活动'
  40. },
  41. {
  42. id: 1,
  43. name: '旅行'
  44. },
  45. ],
  46. }
  47. },
  48. onPageScroll(e) {
  49. if(e.scrollTop > 50) {
  50. this.bgColor = '#49070c'
  51. }else{
  52. this.bgColor = 'transparent'
  53. }
  54. },
  55. onLoad() {
  56. this.queryParams.type = 0
  57. },
  58. methods:{
  59. tabs(e) {
  60. this.tabCurrent = e.index
  61. this.queryParams.type = e.id
  62. this.getData()
  63. },
  64. qiandaoClick(id) {
  65. uni.navigateTo({
  66. url:`/pages_my/qiandao-list?id=${id}&type=${this.queryParams.type}`
  67. })
  68. },
  69. }
  70. }
  71. </script>
  72. <style lang="scss">
  73. page {
  74. background-color: #060504;
  75. }
  76. </style>
  77. <style lang="scss" scoped>
  78. .head-box {
  79. background: url('@/static/image/nav-bg.png') no-repeat;
  80. background-size: 100% 100%;
  81. width: 100%;
  82. height: 534rpx;
  83. position: absolute;
  84. z-index: -1;
  85. }
  86. .content {
  87. margin-top: 40rpx;
  88. padding: 0 30rpx;
  89. padding-top: calc(var(--status-bar-height) + 110rpx);
  90. }
  91. </style>