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,