From 9fd0b4e631e78cdcb3a20ca060c3b23d1e1d80b4 Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Tue, 11 Aug 2020 19:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E6=B7=BB=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yxWechatLive.js | 8 +- src/api/yxWechatLiveGoods.js | 27 ++++ src/views/components/good/index.vue | 144 +++++++++++++++++++ src/views/wechat/goods/index.vue | 210 ++++++++++++++++++++++++++++ src/views/wechat/live/index.vue | 54 +++++-- 5 files changed, 434 insertions(+), 9 deletions(-) create mode 100644 src/api/yxWechatLiveGoods.js create mode 100644 src/views/components/good/index.vue create mode 100644 src/views/wechat/goods/index.vue diff --git a/src/api/yxWechatLive.js b/src/api/yxWechatLive.js index 641f85a..aa92c51 100644 --- a/src/api/yxWechatLive.js +++ b/src/api/yxWechatLive.js @@ -24,4 +24,10 @@ export function edit(data) { }) } -export default { add, edit, del } +export function sync() { + return request({ + url: 'api/yxWechatLive/synchro', + method: 'get' + }) +} +export default { add, edit, del, sync } diff --git a/src/api/yxWechatLiveGoods.js b/src/api/yxWechatLiveGoods.js new file mode 100644 index 0000000..ef575b0 --- /dev/null +++ b/src/api/yxWechatLiveGoods.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/yxWechatLiveGoods', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/yxWechatLiveGoods/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/yxWechatLiveGoods', + method: 'put', + data + }) +} + +export default { add, edit, del } diff --git a/src/views/components/good/index.vue b/src/views/components/good/index.vue new file mode 100644 index 0000000..2c784d7 --- /dev/null +++ b/src/views/components/good/index.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/wechat/goods/index.vue b/src/views/wechat/goods/index.vue new file mode 100644 index 0000000..94218a8 --- /dev/null +++ b/src/views/wechat/goods/index.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/src/views/wechat/live/index.vue b/src/views/wechat/live/index.vue index fb5c05e..0378971 100644 --- a/src/views/wechat/live/index.vue +++ b/src/views/wechat/live/index.vue @@ -3,7 +3,19 @@
- + + + 同步 + + @@ -82,7 +94,20 @@ 点击打开 - + + + + @@ -96,7 +121,7 @@ @@ -104,7 +129,7 @@ @@ -112,7 +137,7 @@ @@ -120,7 +145,7 @@ @@ -128,7 +153,7 @@ @@ -148,6 +173,7 @@