优化直播间以及分销

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 = {
// common: 'http://192.168.0.109:8890',
// buyer: 'http://192.168.0.109:8888',
common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn",
};

View File

@ -40,10 +40,7 @@
<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 File

@ -176,7 +176,7 @@ export default {
icon: "none",
});
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 });
if (result.data.success) {
let callback = result.data.result;

View File

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

View File

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