zhaojs
2023-06-21 9c2a58730eda1bab11cdce978df138fdb6f343b5
uniapp/pages/active/tmsearch.vue
@@ -76,15 +76,13 @@
               </block>
            </scroll-view>
         </view>
         <colGoodsImg :popBannerSList="popBannerSList"></colGoodsImg>
         <view class="goodsList-container colCen borderBox">
            <view class="goods-content rowStaBet">
               <view class="goods-items borderBox colCen">
                  <colGoodsImg :popBannerSList="popBannerSList"></colGoodsImg>
                  <view  v-for="(items,index) in goodsList" :key='index' @click="goDetail(items)">
                     <colGoods :items="items"></colGoods>
                  </view>
               <view class="goods-items borderBox colCen" v-for="(items,index) in goodsList" :key='index' @click="goDetail(items)">
                  <!-- <colGoodsImg :popBannerSList="popBannerSList"></colGoodsImg> -->
                    <colGoodsImg v-if="index==0" :popBannerSList="popBannerSList"></colGoodsImg>
                     <colGoods v-else :items="items"></colGoods>
               </view>
               <aLoadMore :status="loadstatus" mode="loading3" :showTitle='true' color="#999999"></aLoadMore>
            </view>
@@ -98,7 +96,8 @@
   import colGoodsImg from '../../components/colGoodsImg.vue'
   export default {
      components:{
         colGoods
         colGoods,
         colGoodsImg
      },
      data() {
         return {
@@ -114,6 +113,7 @@
            canloadmore: false,
            loadstatus: 'loading',
            nowsec:0,
            isinsert:false,
            secrendSearch:[
               {
                  id:0,
@@ -210,13 +210,20 @@
                  that.loadstatus = 'loading'
                  that.pageCurrent ++
               }
               if(!that.isinsert&&res&&res.length>0)
               {
                  that.goodsList.unshift(res[0]);
                  that.isinsert=true;
               }
               that.goodsList = that.goodsList.concat(res)
               console.log(that.goodsList);
            }).catch(function(err) {})
         },
         getPageImg()
         {
            var that=this;
            this.$u.api.getBanner({
               type: '12'
               type: '11,12'
            }).then(e => {
               console.log(e)
               if (e.code == 1) return that.$alert(e.msg);