绿满眶商城微信小程序-uniapp
peng
2025-06-27 8d2b832907a387bfc872703ac5e694edbc532f81
pages/commodity-square/commoditySquare.vue
@@ -2,7 +2,7 @@
   <view class="container">
      <top-bar selectedTitleIndex="shop" textColor="black" @changeTab="topBarChange" class="topBar"></top-bar>
      <input type="text" v-show="false" v-model="flushDom" />
      <view class="search" :style="{marginTop: buttonHeight+10+'px',}">
      <view class="search" :style="{marginTop: buttonHeight+'px',}">
         <u-search class="nav-search" @blur='searchGoods' placeholder="搜索商品" :show-action="false"></u-search>
      </view>
      <scroll-view class="scrollContainer"  :scroll-y="true" @scrolltolower="loadMoreData" >
@@ -21,7 +21,7 @@
                  <view class="goodsName">{{item.goodsName}}</view>
                  <view class="priceInfo">
                     <view class="goodsPrice">¥{{item.price}}</view>
                     <view class="">已售1: {{item.buyCount}}</view>
                     <view class="">已售: {{item.buyCount}}</view>
                  </view>
               </view>
            </view>
@@ -40,7 +40,7 @@
                  <view class="goodsName">{{item.goodsName}}</view>
                  <view class="priceInfo">
                     <view class="goodsPrice">¥{{item.price}}</view>
                     <view class="">已售2: {{item.buyCount}}</view>
                     <view class="">已售: {{item.buyCount}}</view>
                  </view>
               </view>
            </view>
@@ -254,7 +254,7 @@
      async onLoad() {
         // 获取状态栏高度
         const systemInfo = uni.getSystemInfoSync();
         this.buttonHeight = systemInfo.statusBarHeight +80;
         this.buttonHeight = systemInfo.statusBarHeight +40;
         console.log('-------------------------------->',this.buttonHeight)
         await this.loadCategoryList();
         this.getGoodsParam.pageNumber = 1
@@ -403,6 +403,7 @@
      width: 100%;
      display: flex;
      flex-direction: column;
      height: 200rpx;
   }
   .goodsName{
      display: flex;