From 0f82d48ef89e6766c90df6dccd1071d8c64cc709 Mon Sep 17 00:00:00 2001 From: Wayne Hsu Date: Fri, 9 Jun 2023 12:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=96=A6=E5=88=97=E8=A1=A8=E5=8F=8A?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/affiliate.js | 8 ++ src/assets/css/common.less | 7 ++ src/pages/affiliate/Index.vue | 21 +++- src/pages/affiliate/Info.vue | 178 +++++++++++++++++++++++++++++++++- vite.config.js | 1 + 5 files changed, 207 insertions(+), 8 deletions(-) diff --git a/src/api/affiliate.js b/src/api/affiliate.js index be83888..af0c1c1 100644 --- a/src/api/affiliate.js +++ b/src/api/affiliate.js @@ -1,5 +1,13 @@ import { request } from '@/utils/request' +export function getAffiliateConfig() { + return request('/affiliate/getAffiliateConfig') +} + +export function setAffiliateConfig(params) { + return request('/affiliate/setAffiliateConfig','post',params) +} + export function getAffiliateList(params) { return request('/affiliate/getAffiliateList', 'post', params) } diff --git a/src/assets/css/common.less b/src/assets/css/common.less index 3c5e220..4e7c16a 100644 --- a/src/assets/css/common.less +++ b/src/assets/css/common.less @@ -55,4 +55,11 @@ body { .el-drawer__header{ margin-bottom: 0 !important; +} + +.list-div { + font-size: 14px; + color: #606266; + border: 0; + width: 100%; } \ No newline at end of file diff --git a/src/pages/affiliate/Index.vue b/src/pages/affiliate/Index.vue index 137c1d6..15d851d 100644 --- a/src/pages/affiliate/Index.vue +++ b/src/pages/affiliate/Index.vue @@ -53,17 +53,32 @@ const handleDelete = (row) => {
- + + + + + + + + + + +
+ +
diff --git a/src/pages/affiliate/Info.vue b/src/pages/affiliate/Info.vue index 8e781eb..32b36d6 100644 --- a/src/pages/affiliate/Info.vue +++ b/src/pages/affiliate/Info.vue @@ -1,10 +1,178 @@ - -import { ref, reactive, watch, onMounted } from "vue"; - + +
+ + + + + + +
+ + + + 開啟 + 關閉 + + + + + 確定 + + +
+ \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index bedb734..f55d4da 100644 --- a/vite.config.js +++ b/vite.config.js @@ -39,6 +39,7 @@ export default defineConfig(({ mode }) => { shipping: resolve(__dirname, 'shipping.html'), order: resolve(__dirname, 'order.html'), bonus: resolve(__dirname, 'bonus.html'), + bonus: resolve(__dirname, 'affiliate.html'), }, }, emptyOutDir: true,