From fe702a1c946afcbb4049d751f26d28d179378bb2 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Thu, 8 Feb 2024 20:25:08 +0800 Subject: [PATCH] 1 --- package.json | 6 +- src/api/invite/invite.js | 28 +++++++ src/components/GlobalFooter/index.vue | 14 ++-- src/config/router.config.js | 112 ++++++++++++++------------ src/views/market/Invite.vue | 109 +++++++++++++++++++++++++ 5 files changed, 206 insertions(+), 63 deletions(-) create mode 100644 src/api/invite/invite.js create mode 100644 src/views/market/Invite.vue diff --git a/package.json b/package.json index 03a04a7..3489356 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,10 @@ "version": "3.0.0", "private": true, "scripts": { - "serve": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", - "build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", + "serve": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", + "build": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", "test:unit": "vue-cli-service test:unit", - "lint": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint", + "lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint", "build:preview": "vue-cli-service build --mode preview", "lint:nofix": "vue-cli-service lint --no-fix" }, diff --git a/src/api/invite/invite.js b/src/api/invite/invite.js new file mode 100644 index 0000000..1f838be --- /dev/null +++ b/src/api/invite/invite.js @@ -0,0 +1,28 @@ +import { axios } from '@/utils/request' + +// api接口列表 +const api = { + info: '/invite/getConfig', + edit: '/invite/editConfig', +} + +// 列表记录 +export function info(params) { + return axios({ + url: api.info, + method: 'post', + params, + }) +} + +/** + * 更新 + * @param {*} data + */ +export function edit(data) { + return axios({ + url: api.edit, + method: 'post', + data, + }) +} diff --git a/src/components/GlobalFooter/index.vue b/src/components/GlobalFooter/index.vue index 8d9c80f..b051d97 100644 --- a/src/components/GlobalFooter/index.vue +++ b/src/components/GlobalFooter/index.vue @@ -18,17 +18,17 @@ import { GlobalFooter } from '@/layouts/ProLayout' export default { name: 'ProGlobalFooter', components: { - GlobalFooter + GlobalFooter, }, - data () { + data() { return { visibility: false, - copyright: 'Copyright © 2021 萤火科技 |', + copyright: 'Copyright © 2024 仁舟网络 |', link: { - text: 'YIOVO.COM', - url: 'https://www.yiovo.com' - } + text: 'njrenzhou.com', + url: 'https://www.saas.njrenzhou.com/', + }, } - } + }, } diff --git a/src/config/router.config.js b/src/config/router.config.js index e770616..1063401 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -580,6 +580,12 @@ export const asyncRouterMap = [ meta: { title: '满额包邮', keepAlive: false, permission: ['/market/full-free'] }, moduleKey: 'market-fullFree', }, + + { + path: '/market/Invite', + component: () => import(/* webpackChunkName: "market" */ '@/views/market/Invite'), + meta: { title: '邀请设置', keepAlive: false, permission: ['/market/Invite'] }, + }, ], }, @@ -624,39 +630,39 @@ export const asyncRouterMap = [ }, ], }, - { - path: '/client/wxofficial', - component: RouteView, - redirect: '/client/wxofficial/setting', - meta: { title: '微信公众号', keepAlive: false, permission: ['/client/wxofficial'] }, - moduleKey: 'client-wxofficial', - children: [ - { - path: '/client/wxofficial/setting', - component: () => import(/* webpackChunkName: "client" */ '@/views/client/wxofficial/Setting'), - meta: { title: '公众号设置', keepAlive: false, permission: ['/client/wxofficial/setting'] }, - }, - { - path: '/client/wxofficial/share', - component: () => import(/* webpackChunkName: "client" */ '@/views/client/wxofficial/Share'), - meta: { title: '分享设置', keepAlive: false, permission: ['/client/wxofficial/share'] }, - }, - ], - }, - { - path: '/client/h5', - component: RouteView, - redirect: '/client/h5/setting', - meta: { title: 'H5端', keepAlive: false, permission: ['/client/h5'] }, - moduleKey: 'client-h5', - children: [ - { - path: '/client/h5/setting', - component: () => import(/* webpackChunkName: "client" */ '@/views/client/h5/Setting'), - meta: { title: '站点设置', keepAlive: false, permission: ['/client/h5/setting'] }, - }, - ], - }, + // { + // path: '/client/wxofficial', + // component: RouteView, + // redirect: '/client/wxofficial/setting', + // meta: { title: '微信公众号', keepAlive: false, permission: ['/client/wxofficial'] }, + // moduleKey: 'client-wxofficial', + // children: [ + // { + // path: '/client/wxofficial/setting', + // component: () => import(/* webpackChunkName: "client" */ '@/views/client/wxofficial/Setting'), + // meta: { title: '公众号设置', keepAlive: false, permission: ['/client/wxofficial/setting'] }, + // }, + // { + // path: '/client/wxofficial/share', + // component: () => import(/* webpackChunkName: "client" */ '@/views/client/wxofficial/Share'), + // meta: { title: '分享设置', keepAlive: false, permission: ['/client/wxofficial/share'] }, + // }, + // ], + // }, + // { + // path: '/client/h5', + // component: RouteView, + // redirect: '/client/h5/setting', + // meta: { title: 'H5端', keepAlive: false, permission: ['/client/h5'] }, + // moduleKey: 'client-h5', + // children: [ + // { + // path: '/client/h5/setting', + // component: () => import(/* webpackChunkName: "client" */ '@/views/client/h5/Setting'), + // meta: { title: '站点设置', keepAlive: false, permission: ['/client/h5/setting'] }, + // }, + // ], + // }, { path: '/client/mp/alipay', isPlugin: true, @@ -939,26 +945,26 @@ export const asyncRouterMap = [ }, ], }, - { - path: '/apps/collector', - component: RouteView, - redirect: '/apps/collector/index', - meta: { title: '商品采集', keepAlive: false, permission: ['/apps/collector'] }, - moduleKey: 'apps-collector', - isHideChildren: true, - children: [ - { - path: '/apps/collector/index', - component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Index'), - meta: { title: '一键采集', keepAlive: false, permission: ['/apps/collector/index'] }, - }, - { - path: '/apps/collector/setting', - component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Setting'), - meta: { title: '接口配置', keepAlive: false, permission: ['/apps/collector/setting'] }, - }, - ], - }, + // { + // path: '/apps/collector', + // component: RouteView, + // redirect: '/apps/collector/index', + // meta: { title: '商品采集', keepAlive: false, permission: ['/apps/collector'] }, + // moduleKey: 'apps-collector', + // isHideChildren: true, + // children: [ + // { + // path: '/apps/collector/index', + // component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Index'), + // meta: { title: '一键采集', keepAlive: false, permission: ['/apps/collector/index'] }, + // }, + // { + // path: '/apps/collector/setting', + // component: () => import(/* webpackChunkName: "collector" */ '@/views/apps/collector/Setting'), + // meta: { title: '接口配置', keepAlive: false, permission: ['/apps/collector/setting'] }, + // }, + // ], + // }, ], }, diff --git a/src/views/market/Invite.vue b/src/views/market/Invite.vue new file mode 100644 index 0000000..f69c02d --- /dev/null +++ b/src/views/market/Invite.vue @@ -0,0 +1,109 @@ + + + +