优化直播间以及分销

master
lemon橪 2021-06-29 11:58:06 +08:00
parent 8239aad928
commit 73c307173b
5 changed files with 12 additions and 12 deletions

View File

@ -9,8 +9,6 @@ const dev = {
}; };
// 生产环境 // 生产环境
const prod = { const prod = {
// common: 'http://192.168.0.109:8890',
// buyer: 'http://192.168.0.109:8888',
common: "https://common-api.pickmall.cn", common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn", buyer: "https://buyer-api.pickmall.cn",
}; };

View File

@ -40,10 +40,7 @@
<view>提现</view> <view>提现</view>
</view> </view>
<view class="nav-item" @click="handleClick('/pages/mine/distribution/list')">
<u-icon size="50" color="#1e9ff2" name="home-fill"></u-icon>
<view>选品库</view>
</view>
</view> </view>
</view> </view>

View File

@ -176,7 +176,7 @@ export default {
icon: "none", icon: "none",
}); });
let page = `pages/product/goods`; let page = `pages/product/goods`;
let scene = `${goods.skuId},${goods.id},${this.routers.id}`; let scene = `${goods.skuId},${goods.goodsId},${this.routers.id}`;
let result = await getMpCode({ page, scene }); let result = await getMpCode({ page, scene });
if (result.data.success) { if (result.data.success) {
let callback = result.data.result; let callback = result.data.result;

View File

@ -514,9 +514,7 @@ export default {
let response = await getGoods(id, goodsId); let response = await getGoods(id, goodsId);
if (!response.data.success) { if (!response.data.success) {
uni.navigateBack({ uni.navigateBack();
delta: 2,
});
return false; return false;
} }

View File

@ -41,7 +41,7 @@
</div> </div>
</div> </div>
</div> </div>
<u-loadmore bg-color="transparent" :status="status" /> <u-loadmore v-if="liveList.length > 10" bg-color="#f8f8f8" :status="status" />
</div> </div>
</div> </div>
</template> </template>
@ -101,7 +101,10 @@ export default {
}; };
}, },
onShow() { onShow() {
this.params[this.current].pageNumber = 1;
this.liveList = [];
this.getLives(); this.getLives();
this.getRecommendLives(); this.getRecommendLives();
}, },
onReachBottom() { onReachBottom() {
@ -137,7 +140,7 @@ export default {
* 点击顶部推荐直播间 * 点击顶部推荐直播间
*/ */
clickSwiper(val) { clickSwiper(val) {
console.log(this.swiperImg[val]) console.log(this.swiperImg[val]);
this.handleLivePlayer(this.swiperImg[val]); this.handleLivePlayer(this.swiperImg[val]);
}, },
@ -145,6 +148,7 @@ export default {
* 搜索直播间 * 搜索直播间
*/ */
searchLive(val) { searchLive(val) {
this.params[this.current].pageNumber = 1;
this.params[this.current].name = val; this.params[this.current].name = val;
this.init(); this.init();
}, },
@ -264,6 +268,9 @@ export default {
.live-cover-img { .live-cover-img {
position: relative; position: relative;
} }
.swiper {
margin: 20rpx 0;
}
.live-goods { .live-goods {
position: relative; position: relative;