| | |
| | | </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> |
| | |
| | | import colGoodsImg from '../../components/colGoodsImg.vue' |
| | | export default { |
| | | components:{ |
| | | colGoods |
| | | colGoods, |
| | | colGoodsImg |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | canloadmore: false, |
| | | loadstatus: 'loading', |
| | | nowsec:0, |
| | | isinsert:false, |
| | | secrendSearch:[ |
| | | { |
| | | id:0, |
| | |
| | | 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); |