From 079dd1e75e37147cca657e1e5cb68ddec3edc16e Mon Sep 17 00:00:00 2001 From: yulixing Date: Thu, 27 Jun 2019 16:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=20=E7=BC=96=E8=BE=91=E9=A1=B5=E3=80=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mp_share.js | 37 +++ src/router/modules/games.js | 10 +- src/views/games/details/mp/edit.vue | 292 +++++++++++++++--- src/views/games/details/mp/index.vue | 443 +++++++++++++++++++++++++++ 4 files changed, 734 insertions(+), 48 deletions(-) create mode 100644 src/views/games/details/mp/index.vue diff --git a/src/api/mp_share.js b/src/api/mp_share.js index 0f48f3e..1ee16ee 100644 --- a/src/api/mp_share.js +++ b/src/api/mp_share.js @@ -7,3 +7,40 @@ export function getPic(data) { data }) } +export function saveTpl(data) { + return request({ + url: '/games/mp_share/save_tpl', + method: 'post', + data + }) +} +export function getTpl(params) { + return request({ + url: '/games/mp_share/get_tpl', + method: 'get', + params + }) +} +export function getTpls(params) { + return request({ + url: '/games/mp_share/get_tpls', + method: 'get', + params + }) +} +export function updateTpl(data) { + return request({ + url: '/games/mp_share/update_tpl', + method: 'post', + data + }) +} +export function delTpl(data) { + return request({ + url: '/games/mp_share/del_tpl', + method: 'post', + data + }) +} + + diff --git a/src/router/modules/games.js b/src/router/modules/games.js index f7f1b7f..9c39dec 100644 --- a/src/router/modules/games.js +++ b/src/router/modules/games.js @@ -246,8 +246,14 @@ const gamesRouter = { path: 'mp/edit', component: () => import('@/views/games/details/mp/edit'), name: 'GameDetailsMpEdit', - meta: { title: '小程序编辑' } - } + meta: { title: '分享小程序模板编辑' } + }, + { + path: 'mp/index', + component: () => import('@/views/games/details/mp/index'), + name: 'GameDetailsMp', + meta: { title: '分享小程序模板列表' } + }, ] } ] diff --git a/src/views/games/details/mp/edit.vue b/src/views/games/details/mp/edit.vue index a3283a0..84eb3dc 100644 --- a/src/views/games/details/mp/edit.vue +++ b/src/views/games/details/mp/edit.vue @@ -10,6 +10,15 @@ class="mgb-20" show-icon /> + 快速导入 + 快速导出 - + - + - + - + - + - + - - + + @@ -305,15 +388,47 @@ 取 消 - 保存 + 保存 + + + + + + + + + 取 消 + 确 定 + + +