|
|
@ -70,7 +70,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="blank"></view> |
|
|
|
<view class="blank" :style="{'height': blheight+'px'}"></view> |
|
|
|
<!-- 商品列表 --> |
|
|
|
<!-- 商品列表 --> |
|
|
|
<view class="goods-list clearfix" :class="['column-' + (showView ? '1' : '2')]"> |
|
|
|
<view class="goods-list clearfix" :class="['column-' + (showView ? '1' : '2')]"> |
|
|
|
<view v-if="showView"> |
|
|
|
<view v-if="showView"> |
|
|
@ -233,6 +233,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
|
|
|
|
let selectorQuery = uni.createSelectorQuery(); |
|
|
|
import WxofficialMixin from '@/core/mixins/wxofficial' |
|
|
|
import WxofficialMixin from '@/core/mixins/wxofficial' |
|
|
|
import MescrollMixin from '@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins' |
|
|
|
import MescrollMixin from '@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins' |
|
|
|
import * as GoodsApi from '@/api/goods' |
|
|
|
import * as GoodsApi from '@/api/goods' |
|
|
@ -299,6 +300,7 @@ |
|
|
|
name: 'ZC' |
|
|
|
name: 'ZC' |
|
|
|
}], |
|
|
|
}], |
|
|
|
multiIndex: -1, |
|
|
|
multiIndex: -1, |
|
|
|
|
|
|
|
blheight: 0, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -315,6 +317,8 @@ |
|
|
|
this.setWxofficialShareData() |
|
|
|
this.setWxofficialShareData() |
|
|
|
if (options.categoryId != 'undefined') { |
|
|
|
if (options.categoryId != 'undefined') { |
|
|
|
this.getGoodsTypeList(options.categoryId) |
|
|
|
this.getGoodsTypeList(options.categoryId) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.mescroll.resetUpScroll() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
@ -450,6 +454,10 @@ |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
GoodsApi.list(param) |
|
|
|
GoodsApi.list(param) |
|
|
|
.then(result => { |
|
|
|
.then(result => { |
|
|
|
|
|
|
|
selectorQuery.selectAll('.head').boundingClientRect((rects) => { |
|
|
|
|
|
|
|
console.log("rects",rects) |
|
|
|
|
|
|
|
app.blheight = rects[0].height |
|
|
|
|
|
|
|
}).exec(); |
|
|
|
// 合并新数据 |
|
|
|
// 合并新数据 |
|
|
|
console.log(app.list) |
|
|
|
console.log(app.list) |
|
|
|
const newList = result.data.list |
|
|
|
const newList = result.data.list |
|
|
@ -570,7 +578,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.blank { |
|
|
|
.blank { |
|
|
|
height: 416rpx; |
|
|
|
height: 26rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 页面头部 |
|
|
|
// 页面头部 |
|
|
|