diff --git a/manager/src/config/index.js b/manager/src/config/index.js index 8b6b162f..1a28698c 100644 --- a/manager/src/config/index.js +++ b/manager/src/config/index.js @@ -21,10 +21,10 @@ export default { // buyer: "https://buyer-api.pickmall.cn", // seller: "https://store-api.pickmall.cn", // manager: "https://admin-api.pickmall.cn" - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', - seller: 'http://192.168.0.109:8889', - manager: 'http://192.168.0.109:8887' + common: 'http://192.168.0.100:8890', + buyer: 'http://192.168.0.100:8888', + seller: 'http://192.168.0.100:8889', + manager: 'http://192.168.0.100:8887' }, api_prod: { common: "https://common-api.pickmall.cn", diff --git a/manager/src/views/lili-dialog/template/other.vue b/manager/src/views/lili-dialog/template/other.vue index 2e44016b..709e28d6 100644 --- a/manager/src/views/lili-dialog/template/other.vue +++ b/manager/src/views/lili-dialog/template/other.vue @@ -18,7 +18,7 @@ - + @@ -74,7 +74,12 @@ export default { icon: "md-happy", ___type: "sign", }, - + { + title: "小程序直播", + icon: "ios-videocam", + ___type: "live", + }, + ], linkItem: { title: "外部链接", diff --git a/manager/src/views/order/order/orderList.vue b/manager/src/views/order/order/orderList.vue index 19bb9905..03b982b8 100644 --- a/manager/src/views/order/order/orderList.vue +++ b/manager/src/views/order/order/orderList.vue @@ -230,7 +230,7 @@ export default { title: "操作", key: "action", align: "center", - width: 100, + width: 150, render: (h, params) => { return h("div", [ h( diff --git a/seller/src/config/index.js b/seller/src/config/index.js index 27da5927..17f824e8 100644 --- a/seller/src/config/index.js +++ b/seller/src/config/index.js @@ -22,10 +22,10 @@ export default { // buyer: 'https://buyer-api.pickmall.cn', // seller: 'https://store-api.pickmall.cn', // manager: 'https://admin-api.pickmall.cn', - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', - seller: 'http://192.168.0.109:8889', - manager: 'http://192.168.0.109:8887' + common: 'http://192.168.0.100:8890', + buyer: 'http://192.168.0.100:8888', + seller: 'http://192.168.0.100:8889', + manager: 'http://192.168.0.100:8887' }, api_prod: { common: 'https://common-api.pickmall.cn', diff --git a/seller/src/views/promotion/live/addLive.vue b/seller/src/views/promotion/live/addLive.vue index 5b5d0090..8f1ee673 100644 --- a/seller/src/views/promotion/live/addLive.vue +++ b/seller/src/views/promotion/live/addLive.vue @@ -328,20 +328,34 @@ export default { this.$set(this, "liveData", way); }, + /** + * 提交直播间商品 + */ + addGoods() { + addLiveGoods({ + roomId: this.$route.query.roomId, + liveGoodsId: item.liveGoodsId, + }); + }, + /** * dialog点击确定时判断 */ addGoods() { + console.log(this.commodityList); this.liveData.forEach((item, index) => { - this.commodityList.forEach((oldVal, i) => { - // 如果商品里面没有商品,以及添加商品为第一次的话 - if (oldVal.liveGoodsId != item.liveGoodsId) { - addLiveGoods({ - roomId: this.$route.query.roomId, - liveGoodsId: item.liveGoodsId, - }); - } - }); + if (this.commodityList.length == 1 && this.liveData.length == 1) { + addLiveGoods({ + roomId: this.$route.query.roomId, + liveGoodsId: item.liveGoodsId, + }); + } else { + this.commodityList.forEach((oldVal, i) => { + // 如果商品里面没有商品,以及添加商品为第一次的话 + if (oldVal.liveGoodsId != item.liveGoodsId) { + } + }); + } }); },