From 916aaa94e83fe2e7e82f99a15ab4190f14f123fb Mon Sep 17 00:00:00 2001 From: Achen Date: Thu, 24 May 2018 11:28:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Add=20=E6=94=AF=E4=BB=98=E5=AE=9D=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/centerUserAliappKey.js | 24 +++++ src/icons/svg/alipaySR.svg | 1 + src/router/index.js | 20 ++++ src/views/centerUserAliappKey/list.vue | 144 +++++++++++++++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 src/api/centerUserAliappKey.js create mode 100644 src/icons/svg/alipaySR.svg create mode 100644 src/views/centerUserAliappKey/list.vue diff --git a/src/api/centerUserAliappKey.js b/src/api/centerUserAliappKey.js new file mode 100644 index 00000000..4c118108 --- /dev/null +++ b/src/api/centerUserAliappKey.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +export function info() { + return request({ + url: '/user/centerUserAliappKey/info', + method: 'get' + }) +} + +export function delData(id) { + return request({ + url: '/user/centerUserAliappKey/del', + method: 'post', + data: { id } + }) +} + +export function saveData(data) { + return request({ + url: '/user/centerUserAliappKey/save', + method: 'post', + data: { ...data } + }) +} diff --git a/src/icons/svg/alipaySR.svg b/src/icons/svg/alipaySR.svg new file mode 100644 index 00000000..dd943c0a --- /dev/null +++ b/src/icons/svg/alipaySR.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 5312e2e9..716c02b7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -170,6 +170,26 @@ export const constantRouterMap = [ meta: { title: '拼团记录', icon: 'pingtuan' } }] }, + { + name: '支付宝小程序', + path: '/user', + component: Layout, + redirect: '/user/centerUserAliappKey/info', + meta: { title: '支付宝小程序', icon: 'alipaySR' }, + children: [{ + name: 'Appid配置', + path: 'centerUserAliappKey/info', + component: () => import('@/views/centerUserAliappKey/info'), + meta: { title: 'Appid配置', icon: 'alipaySR' } + }, + { + name: '我的资源包2', + path: 'dashboard3', + component: () => import('@/views/dashboard/index'), + meta: { title: '我的资源包2', icon: 'setting' } + }] + }, + { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/views/centerUserAliappKey/list.vue b/src/views/centerUserAliappKey/list.vue new file mode 100644 index 00000000..8adeb9d5 --- /dev/null +++ b/src/views/centerUserAliappKey/list.vue @@ -0,0 +1,144 @@ + + + From 79b376a548a53b627526bd4661ed874a30a464fd Mon Sep 17 00:00:00 2001 From: Achen Date: Thu, 24 May 2018 11:30:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Add=20=E6=94=AF=E4=BB=98=E5=AE=9D=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 6 +++--- src/views/centerUserAliappKey/list.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 716c02b7..d7f7d11f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -174,12 +174,12 @@ export const constantRouterMap = [ name: '支付宝小程序', path: '/user', component: Layout, - redirect: '/user/centerUserAliappKey/info', + redirect: '/user/centerUserAliappKey/list', meta: { title: '支付宝小程序', icon: 'alipaySR' }, children: [{ name: 'Appid配置', - path: 'centerUserAliappKey/info', - component: () => import('@/views/centerUserAliappKey/info'), + path: 'centerUserAliappKey/list', + component: () => import('@/views/centerUserAliappKey/list'), meta: { title: 'Appid配置', icon: 'alipaySR' } }, { diff --git a/src/views/centerUserAliappKey/list.vue b/src/views/centerUserAliappKey/list.vue index 8adeb9d5..dc47a9b8 100644 --- a/src/views/centerUserAliappKey/list.vue +++ b/src/views/centerUserAliappKey/list.vue @@ -111,7 +111,7 @@ export default { this.$nextTick(() => { this.$refs['addEditPopForm'].clearValidate() }) - } + }, handleCreateSave(){ this.$refs['addEditPopForm'].validate((valid) => { if (valid) {