|
@@ -21,7 +21,7 @@
|
|
<view class="goods-list">
|
|
<view class="goods-list">
|
|
<view v-for="(item, index) in goodsList" :key="index" class="goods-item" @click="navToDetailPage(item)">
|
|
<view v-for="(item, index) in goodsList" :key="index" class="goods-item" @click="navToDetailPage(item)">
|
|
<view class="image-wrapper"><image :src="item.image" mode="aspectFill"></image></view>
|
|
<view class="image-wrapper"><image :src="item.image" mode="aspectFill"></image></view>
|
|
- <text class="title clamp">{{ item.title }}</text>
|
|
|
|
|
|
+ <text class="title clamp">{{ item.store_name }}</text>
|
|
<view class="price-box">
|
|
<view class="price-box">
|
|
<text class="price">{{ item.price }}</text>
|
|
<text class="price">{{ item.price }}</text>
|
|
<text>已售 {{ item.sales }}</text>
|
|
<text>已售 {{ item.sales }}</text>
|
|
@@ -49,6 +49,11 @@
|
|
import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
|
|
import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
|
|
import { getProducts } from '@/api/product.js';
|
|
import { getProducts } from '@/api/product.js';
|
|
import { getCategoryList } from '@/api/product.js';
|
|
import { getCategoryList } from '@/api/product.js';
|
|
|
|
+ // #ifdef H5
|
|
|
|
+ import {
|
|
|
|
+ shareLoad
|
|
|
|
+ } from '@/utils/wxAuthorized';
|
|
|
|
+ // #endif
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
uniLoadMore
|
|
uniLoadMore
|
|
@@ -77,6 +82,9 @@ export default {
|
|
this.cateId = options.tid;
|
|
this.cateId = options.tid;
|
|
this.loadCateList(options.fid, options.sid);
|
|
this.loadCateList(options.fid, options.sid);
|
|
this.loadData();
|
|
this.loadData();
|
|
|
|
+ // #ifdef H5
|
|
|
|
+ shareLoad()
|
|
|
|
+ // #endif
|
|
},
|
|
},
|
|
onPageScroll(e) {
|
|
onPageScroll(e) {
|
|
//兼容iOS端下拉时顶部漂移
|
|
//兼容iOS端下拉时顶部漂移
|