ui
叶富雄
2026-03-14 b23c41dd8f3096eec2f94931d88f5be297cc9de1
pages/cates/cates.vue
@@ -2,7 +2,7 @@
   <view>
      <view class="search">
         <view class="searchView">
            <image src="/static/imgs/search.png" ></image>
            <image src="/static/imgs/search.png" mode=""></image>
            <input type="text" v-model="keyword" placeholder="搜索您想要的商品" @confirm="searchGoods" />
            <view class="searchBtn" @tap="searchGoods">搜索</view>
         </view>
@@ -14,11 +14,11 @@
               <view v-for="(item, index) in catesData" @click="catesClick(item)" :class="catesId == item.id ? 'active' : ''">{{item.title}}</view>
            </scroll-view>
         </view>
         <view class="cates-right" :style="'width:' + goodsWidth + 'px;height:' + (scrollHeight - 10) + 'px;margin-top: 20rpx'" v-if="goodsData.length > 0">
         <view class="cates-right" :style="'width:' + goodsWidth + 'px;height:' + (scrollHeight - 10) + 'px;margin-top: 20upx'" v-if="goodsData.length > 0">
            <scroll-view scroll-y="true" class="scroll-Y">
               <view class="goods-list">
                  <view class="goods-item" v-for="(item, index) in goodsData" :style="'width:' + goodsItemWidth + 'px;'" @click="$util.goPages('/pages/ginfo/ginfo?id=' + item.id)">
                     <image class="goods-icon" :src="item.icon" ></image>
                     <image class="goods-icon" :src="item.icon" mode=""></image>
                     <view class="goods-title">{{item.title}}</view>
                     <view class="goods-price">
                        <view>¥</view>
@@ -29,8 +29,8 @@
            </scroll-view>
         </view>
         <view class="noData" v-else>
            <image src="/static/imgs/noData.png" style="margin-left: 50%;" ></image>
            <view class="" style="margin-left: 120rpx; width: auto;">没有商品信息</view>
            <image src="/static/imgs/noData.png" style="margin-left: 50%;" mode=""></image>
            <view class="" style="margin-left: 120upx; width: auto;">没有商品信息</view>
         </view>
         
      </view>