lin
2026-05-11 d6eb6e240b91d3b68e28a4e37328d20d9bda2e91
pages/index/index.vue
@@ -29,15 +29,23 @@
         </view>
      </view>
      <view class="cates" v-if="catesNavData">
         <view class="cates-v" v-for="(item, index) in catesNavData" @tap="$util.goPages('/pages/catesList/catesList?catesId=' + item.id + '&title=' + item.title)">
      <!-- <view class="cates" v-if="catesNavData">
         <view class="cates-v" v-for="(item, index) in catesNavData" :key="item.id" @tap="$util.goPages('/pages/catesList/catesList?catesId=' + item.id + '&title=' + item.title)">
            <image class="cates-v-icon" :src="item.icon" mode=""></image>
            <view class="">{{item.title}}</view>
         </view>
         <!-- <view class="cates-v" @tap="$util.goSwitch('/pages/cates/cates')">
         <view class="cates-v" @tap="$util.goSwitch('/pages/cates/cates')">
            <image class="cates-v-icon" src="/static/imgs/more.png" mode=""></image>
            <view class="">更多</view>
         </view> -->
         </view>
      </view> -->
      <view v-if="catesNavData" style="padding: 0 30rpx;background-color: #ffffff;margin-top: 422rpx;">
         <uv-scroll-list>
            <view class="cates-v" v-for="(item, index) in catesNavData" :key="item.id" @tap="$util.goPages('/pages/catesList/catesList?catesId=' + item.id + '&title=' + item.title)">
               <image class="cates-v-icon" :src="item.icon" mode="heightFix"></image>
               <view class="">{{item.title}}</view>
            </view>
         </uv-scroll-list>
      </view>
      
      <!-- <view class="ad1" @tap="$util.goPages('/pages/catesList/catesList?catesId=11' + '&title=' + '服装鞋包')">
@@ -161,6 +169,18 @@
  },
  data() {
    return {
      list: [{
                     image: "https://via.placeholder.com/200x200.png/3c9cff/fff"
                  }, {
                     image: "https://via.placeholder.com/200x200.png/f9ae3d/fff"
                  }, {
                     image: "https://via.placeholder.com/200x200.png/5ac725/fff"
                  }, {
                     image: "https://via.placeholder.com/200x200.png/f56c6c/fff"
                  }, {
                     image: "https://via.placeholder.com/200x200.png/909399/fff"
                  }],
      indicator: true,
      contactsFlag: false,
      staHeight: 0,
      paddingHeight: 0,
@@ -189,8 +209,8 @@
         {
            title: '精选',
            desc: '猜你喜欢',
            skey: '手机数码',
            catesId: 3,
            skey: '服装鞋包',
            catesId: 11,
         },{
            title: '人气',
            desc: '好物精选',
@@ -220,6 +240,7 @@
   // #endif
  },
  created() {
      this.catesId = 11
     this.catesGoods()
  },
  onLoad() {
@@ -439,11 +460,11 @@
      }
      .cateNav-item.active {
         .cateNav-title {
            color: #4766FE;
            color: #37AA25;
         }
         .cateNav-desc {
            color: #ffffff;
            background-color: #4766FE;
            background-color: #37AA25;
            border-radius: 50rpx;
            padding: 12rpx 0;
         }