修改直播间时间没有判断bug,店铺后台,批量发货没有跳转bug,直播后台添加小程序直播,前台显示小程序直播

master
lemon橪 2021-06-21 18:11:46 +08:00
parent 2b85a5aba1
commit d89b984344
5 changed files with 39 additions and 20 deletions

View File

@ -21,10 +21,10 @@ export default {
// buyer: "https://buyer-api.pickmall.cn", // buyer: "https://buyer-api.pickmall.cn",
// seller: "https://store-api.pickmall.cn", // seller: "https://store-api.pickmall.cn",
// manager: "https://admin-api.pickmall.cn" // manager: "https://admin-api.pickmall.cn"
common: 'http://192.168.0.109:8890', common: 'http://192.168.0.100:8890',
buyer: 'http://192.168.0.109:8888', buyer: 'http://192.168.0.100:8888',
seller: 'http://192.168.0.109:8889', seller: 'http://192.168.0.100:8889',
manager: 'http://192.168.0.109:8887' manager: 'http://192.168.0.100:8887'
}, },
api_prod: { api_prod: {
common: "https://common-api.pickmall.cn", common: "https://common-api.pickmall.cn",

View File

@ -74,6 +74,11 @@ export default {
icon: "md-happy", icon: "md-happy",
___type: "sign", ___type: "sign",
}, },
{
title: "小程序直播",
icon: "ios-videocam",
___type: "live",
},
], ],
linkItem: { linkItem: {

View File

@ -230,7 +230,7 @@ export default {
title: "操作", title: "操作",
key: "action", key: "action",
align: "center", align: "center",
width: 100, width: 150,
render: (h, params) => { render: (h, params) => {
return h("div", [ return h("div", [
h( h(

View File

@ -22,10 +22,10 @@ export default {
// buyer: 'https://buyer-api.pickmall.cn', // buyer: 'https://buyer-api.pickmall.cn',
// seller: 'https://store-api.pickmall.cn', // seller: 'https://store-api.pickmall.cn',
// manager: 'https://admin-api.pickmall.cn', // manager: 'https://admin-api.pickmall.cn',
common: 'http://192.168.0.109:8890', common: 'http://192.168.0.100:8890',
buyer: 'http://192.168.0.109:8888', buyer: 'http://192.168.0.100:8888',
seller: 'http://192.168.0.109:8889', seller: 'http://192.168.0.100:8889',
manager: 'http://192.168.0.109:8887' manager: 'http://192.168.0.100:8887'
}, },
api_prod: { api_prod: {
common: 'https://common-api.pickmall.cn', common: 'https://common-api.pickmall.cn',

View File

@ -328,20 +328,34 @@ export default {
this.$set(this, "liveData", way); this.$set(this, "liveData", way);
}, },
/**
* 提交直播间商品
*/
addGoods() {
addLiveGoods({
roomId: this.$route.query.roomId,
liveGoodsId: item.liveGoodsId,
});
},
/** /**
* dialog点击确定时判断 * dialog点击确定时判断
*/ */
addGoods() { addGoods() {
console.log(this.commodityList);
this.liveData.forEach((item, index) => { this.liveData.forEach((item, index) => {
this.commodityList.forEach((oldVal, i) => { if (this.commodityList.length == 1 && this.liveData.length == 1) {
// addLiveGoods({
if (oldVal.liveGoodsId != item.liveGoodsId) { roomId: this.$route.query.roomId,
addLiveGoods({ liveGoodsId: item.liveGoodsId,
roomId: this.$route.query.roomId, });
liveGoodsId: item.liveGoodsId, } else {
}); this.commodityList.forEach((oldVal, i) => {
} //
}); if (oldVal.liveGoodsId != item.liveGoodsId) {
}
});
}
}); });
}, },