diff --git a/admin/src/App.vue b/admin/src/App.vue index e5191849d..f56b86b2a 100644 --- a/admin/src/App.vue +++ b/admin/src/App.vue @@ -12,7 +12,6 @@ import useSystemStore from '@/stores/modules/system' import useAppStore from '@/stores/modules/app' import { useDark, useToggle } from '@vueuse/core' import { setThemeColor } from '@/utils/common' -import { language } from '@/lang' import { useRoute } from 'vue-router' const route = useRoute() @@ -20,15 +19,14 @@ const route = useRoute() // 初始化设置语言 const systemStore = useSystemStore() const locale = computed(() => (systemStore.lang === 'zh-cn' ? zhCn : en)) -language.loadLocaleMessages(route.path, systemStore.lang) const toggleDark = useToggle(useDark()) watch(route, () => { useAppStore().$patch(state => { - state.route = route.path + state.route = route.meta.view || route.path }) -}) +}, { immediate: true }) onMounted(() => { // 设置主题色 diff --git a/admin/src/api/diy.ts b/admin/src/api/diy.ts index 313e0bd75..df66a57a2 100644 --- a/admin/src/api/diy.ts +++ b/admin/src/api/diy.ts @@ -2,13 +2,22 @@ import request from '@/utils/request' /***************************************************** 自定义页面 ****************************************************/ +/** + * 获取自定义页面分页列表 + * @param params + * @returns + */ +export function getDiyPageList(params: Record) { + return request.get(`diy/diy`, {params}) +} + /** * 获取自定义页面列表 * @param params * @returns */ -export function getDiyPageList(params: Record) { - return request.get(`diy/diy`, { params }) +export function getDiyList(params: Record) { + return request.get(`diy/list`, {params}) } /** @@ -26,7 +35,7 @@ export function getDiyPageInfo(id: number) { * @returns */ export function addDiyPage(params: Record) { - return request.post('diy/diy', params, { showSuccessMessage: true }) + return request.post('diy/diy', params, {showSuccessMessage: true}) } /** @@ -34,7 +43,7 @@ export function addDiyPage(params: Record) { * @param params */ export function editDiyPage(params: Record) { - return request.put(`diy/diy/${params.id}`, params, { showSuccessMessage: true }) + return request.put(`diy/diy/${params.id}`, params, {showSuccessMessage: true}) } /** @@ -42,7 +51,7 @@ export function editDiyPage(params: Record) { * @param params */ export function setUseDiyPage(params: Record) { - return request.put(`diy/use`, params, { showSuccessMessage: true }) + return request.put(`diy/use`, params, {showSuccessMessage: true}) } /** @@ -50,7 +59,7 @@ export function setUseDiyPage(params: Record) { * @param params */ export function editDiyPageShare(params: Record) { - return request.put(`diy/diy/share`, params, { showSuccessMessage: true }) + return request.put(`diy/diy/share`, params, {showSuccessMessage: true}) } /** @@ -59,28 +68,28 @@ export function editDiyPageShare(params: Record) { * @returns */ export function deleteDiyPage(id: number) { - return request.delete(`diy/diy/${id}`, { showSuccessMessage: true }) + return request.delete(`diy/diy/${id}`, {showSuccessMessage: true}) } /** * 获取自定义页面初始化数据 */ export function initPage(params: Record) { - return request.get(`diy/init`, { params }) + return request.get(`diy/init`, {params}) } /** * 获取自定义链接列表 */ export function getLink(params: Record) { - return request.get(`diy/link`, { params }) + return request.get(`diy/link`, {params}) } /** * 获取底部导航数据 */ export function getDiyBottom(params: Record) { - return request.get(`diy/bottom`, { params }) + return request.get(`diy/bottom`, {params}) } /** @@ -89,14 +98,14 @@ export function getDiyBottom(params: Record) { * @returns */ export function setDiyBottom(params: Record) { - return request.post('diy/bottom', params, { showSuccessMessage: true }) + return request.post('diy/bottom', params, {showSuccessMessage: true}) } /** * 获取页面模板 */ export function getDiyTemplate(params: Record) { - return request.get(`diy/template`, { params }) + return request.get(`diy/template`, {params}) } /** @@ -105,7 +114,7 @@ export function getDiyTemplate(params: Record) { * @returns */ export function getDiyRouteList(params: Record) { - return request.get(`diy/route`, { params }) + return request.get(`diy/route`, {params}) } /** @@ -113,7 +122,7 @@ export function getDiyRouteList(params: Record) { * @param params */ export function getDiyRouteInfo(params: Record) { - return request.get(`diy/route/info`, { params }); + return request.get(`diy/route/info`, {params}); } /** @@ -121,5 +130,32 @@ export function getDiyRouteInfo(params: Record) { * @param params */ export function editDiyRouteShare(params: Record) { - return request.put(`diy/route/share`, params, { showSuccessMessage: true }) + return request.put(`diy/route/share`, params, {showSuccessMessage: true}) +} + +/** + * 获取自定义页面列表 + * @param params + * @returns + */ +export function getDecoratePage(params: Record) { + return request.get(`diy/decorate`, {params}) +} + +/** + * 切换模板 + * @param params + * @returns + */ +export function changeTemplate(params: Record) { + return request.put(`diy/change`, params, {showSuccessMessage: true}) +} + +/** + * 获取预览数据 + * @param params + * @returns + */ +export function getPreviewData(params: Record) { + return request.put(`diy/preview`, params, {showSuccessMessage: false}) } \ No newline at end of file diff --git a/admin/src/api/site.ts b/admin/src/api/site.ts index 8a57eee23..d4e89cb36 100644 --- a/admin/src/api/site.ts +++ b/admin/src/api/site.ts @@ -216,4 +216,39 @@ export function getLogList(params: Record) { */ export function getLogInfo(id: number) { return request.get(`site/log/${id}`) +} +/***************************************************** 账单列表 **************************************************/ + +/** + * 获取账单列表 + * @param params + * @returns + */ +export function getAccountList(params: Record) { + return request.get(`site/account`, { params }) +} + +/** + * 获取账单详情 + * @param params + * @returns + */ +export function getAccountInfo(id: number) { + return request.get(`site/account/${id}`) +} + +/** + * 获取账单统计 + * @returns + */ +export function getAccountStat() { + return request.get(`site/account/stat`) +} + +/** + * 获取账单类型 + * @returns + */ +export function getAccountType() { + return request.get(`site/account/type`) } \ No newline at end of file diff --git a/admin/src/api/sys.ts b/admin/src/api/sys.ts index 6ed0283fe..8d061e423 100644 --- a/admin/src/api/sys.ts +++ b/admin/src/api/sys.ts @@ -244,6 +244,26 @@ export function moveAttachment(params: Record) { return request.put(`sys/attachment/batchmove`, params) } +/** + * 获取menu菜单 + */ +export function getAuthMenu() { + return request.get(`auth/site/showmenu`) +} + +/** + * 获取快捷菜单 + */ +export function getShortcutMenu() { + return request.get(`sys/config/shortcut_menu`) +} + +/** + * 添加快捷菜单 + */ +export function setShortcutMenu(params: Record) { + return request.put(`sys/config/shortcut_menu`, params, { showSuccessMessage: true }) +} /***************************************************** 地址管理 ****************************************************/ @@ -265,6 +285,21 @@ export function getAreatree(level: number = 1) { return request.get(`sys/area/tree/${level}`) } + +/** + * 获取地址信息 + */ +export function getAddressInfo(params: any) { + return request.get(`sys/area/get_info`, { params }) +} + +/** + * 获取地址信息 + */ +export function getContraryAddress(params: any) { + return request.get(`sys/area/contrary`, { params }) +} + /***************************************************** 存储设置 ****************************************************/ /** @@ -345,7 +380,7 @@ export function setTransferInfo(params: Record) { * @returns */ export function getCronList(params: any) { - return request.get(`sys/cron`, { params }) + return request.get(`sys/schedule/list`, { params }) } /** @@ -481,5 +516,17 @@ export function getMap() { return request.get(`sys/config/map`) } +/***************************************************** 首页 ****************************************************/ +/** + * 获取首页列表 + */ +export function getIndexList() { + return request.get(`sys/config/site_index`) +} - +/** + * 设置首页模版 + */ +export function setIndexList(params: Record) { + return request.put(`sys/config/site_index`, params, { showSuccessMessage: true }) +} diff --git a/admin/src/assets/images/index/add_menu.png b/admin/src/assets/images/index/add_menu.png new file mode 100644 index 000000000..3bc05d8fc Binary files /dev/null and b/admin/src/assets/images/index/add_menu.png differ diff --git a/admin/src/assets/images/index/del_model.png b/admin/src/assets/images/index/del_model.png new file mode 100644 index 000000000..ac223b9ed Binary files /dev/null and b/admin/src/assets/images/index/del_model.png differ diff --git a/admin/src/assets/images/index/edit.png b/admin/src/assets/images/index/edit.png new file mode 100644 index 000000000..97f8eda29 Binary files /dev/null and b/admin/src/assets/images/index/edit.png differ diff --git a/admin/src/assets/images/index/model_tag.png b/admin/src/assets/images/index/model_tag.png new file mode 100644 index 000000000..01cfc40f7 Binary files /dev/null and b/admin/src/assets/images/index/model_tag.png differ diff --git a/admin/src/assets/images/index/site_img.png b/admin/src/assets/images/index/site_img.png new file mode 100644 index 000000000..9cb88f39f Binary files /dev/null and b/admin/src/assets/images/index/site_img.png differ diff --git a/admin/src/assets/images/iphone_bg.png b/admin/src/assets/images/iphone_bg.png new file mode 100644 index 000000000..3feb4143e Binary files /dev/null and b/admin/src/assets/images/iphone_bg.png differ diff --git a/admin/src/lang/language.ts b/admin/src/lang/language.ts index f62c565be..5d363f8cb 100644 --- a/admin/src/lang/language.ts +++ b/admin/src/lang/language.ts @@ -44,7 +44,6 @@ class Language { this.setI18nLanguage(locale) return nextTick() } catch (e) { - console.log(e) this.setI18nLanguage(locale) return nextTick() } diff --git a/admin/src/lang/zh-cn/app_store.json b/admin/src/lang/zh-cn/app.store.json similarity index 100% rename from admin/src/lang/zh-cn/app_store.json rename to admin/src/lang/zh-cn/app.store.json diff --git a/admin/src/lang/zh-cn/auth.menu.site.json b/admin/src/lang/zh-cn/auth.menu.site.json deleted file mode 100644 index b8d33d6ef..000000000 --- a/admin/src/lang/zh-cn/auth.menu.site.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "menuName": "菜单名称", - "menuType": "类型", - "authId": "权限标识", - "menuTypeDir": "目录", - "menuTypeMenu": "菜单", - "menuTypeButton": "按钮", - "menuDeleteTips": "确定要删除该菜单吗?", - "addMenu": "添加菜单", - "updateMenu": "编辑菜单", - "routePath": "路由路径", - "viewPath": "组件路径", - "parentMenu": "父级菜单", - "menuIcon": "菜单图标", - "sort":"权重", - "menuKey":"菜单标识", - "menuNamePlaceholder": "请输入菜单名称", - "menuKeyPlaceholder": "请输入菜单标识", - "menuKeyValidata":"菜单标识只能使用字母数字下划线并且开头不能为数字", - "routePathPlaceholder": "请输入路由路径", - "viewPathPlaceholder": "请输入组件路径", - "authIdPlaceholder": "请输入权限标识", - "selectIconPlaceholder": "请选择菜单图标", - "topLevel": "顶级" -} \ No newline at end of file diff --git a/admin/src/lang/zh-cn/auth.menu.admin.json b/admin/src/lang/zh-cn/auth.site_menu.json similarity index 100% rename from admin/src/lang/zh-cn/auth.menu.admin.json rename to admin/src/lang/zh-cn/auth.site_menu.json diff --git a/admin/src/lang/zh-cn/channel.weapp.message.json b/admin/src/lang/zh-cn/channel.weapp.template.json similarity index 100% rename from admin/src/lang/zh-cn/channel.weapp.message.json rename to admin/src/lang/zh-cn/channel.weapp.template.json diff --git a/admin/src/lang/zh-cn/channel.wechat.message.json b/admin/src/lang/zh-cn/channel.wechat.template.json similarity index 100% rename from admin/src/lang/zh-cn/channel.wechat.message.json rename to admin/src/lang/zh-cn/channel.wechat.template.json diff --git a/admin/src/lang/zh-cn/common.json b/admin/src/lang/zh-cn/common.json index 516e2635f..c22ab7c96 100644 --- a/admin/src/lang/zh-cn/common.json +++ b/admin/src/lang/zh-cn/common.json @@ -90,7 +90,9 @@ "503": "服务不可用", "504": "网络超时", "505": "http版本不支持该请求", - "timeout": "网络请求超时!" + "timeout": "网络请求超时!", + "requestError": "请求错误", + "errNetwork": "网络请求错误" }, "linkPlaceholder": "请选择跳转链接", "selectLinkTips": "链接选择", @@ -105,5 +107,8 @@ "emptyApp": "暂未安装任何应用", "newInfo": "最新消息", "mapSetting": "地图设置", - "mapKey": "腾讯地图KEY" + "mapKey": "腾讯地图KEY", + "indexTemplate": "首页模版", + "indexSwitch": "切换首页", + "indexWarning": "你确定要切换首页吗?" } \ No newline at end of file diff --git a/admin/src/lang/zh-cn/decorate.preview.json b/admin/src/lang/zh-cn/decorate.preview.json new file mode 100644 index 000000000..b706dee11 --- /dev/null +++ b/admin/src/lang/zh-cn/decorate.preview.json @@ -0,0 +1,12 @@ +{ + "preview": "预览", + "weapp": "微信小程序", + "wechat": "微信公众号", + "link": "链接", + "copy": "复制", + "copySuccess": "复制成功", + "weappNotSet": "小程序未配置", + "developTitle": "开发环境配置", + "wapDomain": "wap域名(WAP_DOMAIN)", + "wapDomainPlaceholder": "请输入wap域名" +} \ No newline at end of file diff --git a/admin/src/lang/zh-cn/diy.member.json b/admin/src/lang/zh-cn/diy.edit.json similarity index 77% rename from admin/src/lang/zh-cn/diy.member.json rename to admin/src/lang/zh-cn/diy.edit.json index 512921482..a38a6a6a8 100644 --- a/admin/src/lang/zh-cn/diy.member.json +++ b/admin/src/lang/zh-cn/diy.edit.json @@ -1,9 +1,26 @@ { + "developTitle": "开发环境配置", + "wapDomain": "wap域名(WAP_DOMAIN)", + "wapDomainPlaceholder": "请输入wap域名", "pageSet": "页面设置", + "tabEditContent": "内容", + "tabEditStyle": "样式", + "pageStyle": "页面样式", "pageContent": "页面内容", "pageName": "页面名称", "pageNamePlaceholder": "请输入页面名称", "pageBgColor": "页面颜色", + "bgUrl": "背景图片", + "marginSet": "边距设置", + "componentStyleTitle": "组件样式", + "bottomBgColor": "底部背景", + "bottomBgTips": "底部背景包含边距和圆角", + "componentBgColor": "组件背景", + "marginTop": "上边距", + "marginBottom": "下边距", + "marginBoth": "左右边距", + "topRounded": "上圆角", + "bottomRounded": "下圆角", "warmPrompt": "温馨提示", "leavePageTitleTips": "确定离开此页面?", "leavePageContentTips": "系统可能不会保存您所做的更改。", @@ -27,7 +44,12 @@ "imageAdsTips": "建议上传尺寸相同的图片,推荐尺寸750*350", "addImageAd": "添加图片", "imageUrlTip": "请上传图片", + "imageHeight": "图片高度", + "imageHeightPlaceholder": "请输入图片高度", + "imageHeightRegNum": "图片高度格式错误,请输入数字", "articleData": "文章数据", + "articleStyle": "文章样式", + "articleBgColor": "文章背景", "dataSources": "数据来源", "defaultSources": "默认", "manualSelectionSources": "手动选择", @@ -65,6 +87,7 @@ "addGraphicNav": "添加导航", "blankHeightSet": "高度设置", "blankHeight": "空白高度", + "styleSet": "风格设置", "titleStyle": "标题样式", "selectStyle": "风格选择", "titleContent": "标题内容", @@ -73,6 +96,7 @@ "textAlign": "对齐方式", "textAlignLeft": "居左", "textAlignCenter": "居中", + "textSet": "文字设置", "textFontSize": "文字大小", "textFontWeight": "文字粗细", "fontWeightBold": "加粗", @@ -84,5 +108,6 @@ "moreContent": "“更多”按钮内容", "more": "文字", "morePlaceholder": "请输入文字", - "moreIsShow": "是否显示" + "moreIsShow": "是否显示", + "memberStyle": "会员样式" } \ No newline at end of file diff --git a/admin/src/lang/zh-cn/diy.index.json b/admin/src/lang/zh-cn/diy.index.json index 4c5e1f486..bac301df5 100644 --- a/admin/src/lang/zh-cn/diy.index.json +++ b/admin/src/lang/zh-cn/diy.index.json @@ -1,12 +1,19 @@ { "decorate": "装修", + "pageDecorate": "页面装修", + "changeTemplate": "切换模板", + "templateName": "模板名称", "preview": "预览", - "weapp": "微信小程序", - "wechat": "微信公众号", - "link": "链接", - "copy": "复制", - "copySuccess": "复制成功", - "weappNotSet": "小程序未配置", + "hopeBeforeTip": "我希望把", + "hopeAfterTip": "切换成其他样式", + "changeTemplateTip": "选择", + "template": "模板", + "changeMyPageTip": "选择微页面作为", + "createPage": "创建微页面", + "myPage": "我的微页面", + "refreshPage": "刷新", + "placeholderTemplate": "请选择一个模板", + "placeholderMyPage": "请选择一个微页面", "developTitle": "开发环境配置", "wapDomain": "wap域名(WAP_DOMAIN)", "wapDomainPlaceholder": "请输入wap域名" diff --git a/admin/src/lang/zh-cn/diy.list.json b/admin/src/lang/zh-cn/diy.list.json index e951cb26b..c3ec6aa73 100644 --- a/admin/src/lang/zh-cn/diy.list.json +++ b/admin/src/lang/zh-cn/diy.list.json @@ -1,11 +1,12 @@ { "title": "页面名称", "typeName": "页面模板", + "addType": "页面类型", "addPageTips": "创建新页面", - "pageTemplatePlaceholder": "请选择页面模板", + "pageTypePlaceholder": "请选择页面模板", "nameMax": "名称不能超过12个字符", - "templateName": "模板名称", - "empty": "空白", + "templateName": "已有模板", + "emptyTemplate": "空模板", "status": "状态", "updateTime": "更新时间", "use": "使用", diff --git a/admin/src/lang/zh-cn/diy.preview.json b/admin/src/lang/zh-cn/diy.preview.json new file mode 100644 index 000000000..b706dee11 --- /dev/null +++ b/admin/src/lang/zh-cn/diy.preview.json @@ -0,0 +1,12 @@ +{ + "preview": "预览", + "weapp": "微信小程序", + "wechat": "微信公众号", + "link": "链接", + "copy": "复制", + "copySuccess": "复制成功", + "weappNotSet": "小程序未配置", + "developTitle": "开发环境配置", + "wapDomain": "wap域名(WAP_DOMAIN)", + "wapDomainPlaceholder": "请输入wap域名" +} \ No newline at end of file diff --git a/admin/src/lang/zh-cn/diy.route.json b/admin/src/lang/zh-cn/diy.route.json new file mode 100644 index 000000000..e951cb26b --- /dev/null +++ b/admin/src/lang/zh-cn/diy.route.json @@ -0,0 +1,36 @@ +{ + "title": "页面名称", + "typeName": "页面模板", + "addPageTips": "创建新页面", + "pageTemplatePlaceholder": "请选择页面模板", + "nameMax": "名称不能超过12个字符", + "templateName": "模板名称", + "empty": "空白", + "status": "状态", + "updateTime": "更新时间", + "use": "使用", + "isUse": "使用中", + "unused": "未使用", + "all": "全部", + "basicRoute": "基础页面", + "diyPage": "自定义页面", + "wapUrl": "wap链接", + "weappUrl": "小程序链接", + "shareLink": "分享链接", + "copy": "复制", + "copySuccess": "复制成功", + "titlePlaceholder": "请输入页面名称", + "addDiyPage": "添加页面", + "diyPageDeleteTips": "确定要删除该自定义页面吗?", + "promote": "推广", + "share": "分享", + "shareSet": "分享设置", + "sharePage": "分享页面", + "wechat": "微信公众号", + "weapp": "微信小程序", + "shareTitle": "分享标题", + "shareTitlePlaceholder": "请输入分享标题", + "shareDesc": "分享描述", + "shareDescPlaceholder": "请输入分享描述", + "shareImageUrl": "分享图片" +} \ No newline at end of file diff --git a/admin/src/lang/zh-cn/finance.account.json b/admin/src/lang/zh-cn/finance.account.json new file mode 100644 index 000000000..6d91b5570 --- /dev/null +++ b/admin/src/lang/zh-cn/finance.account.json @@ -0,0 +1,33 @@ +{ + "id":"主键", + "accountDetail":"账单详情", + "detail":"详情", + "idPlaceholder":"请输入主键", + "siteId":"站点id", + "siteIdPlaceholder":"请输入站点id", + "type":"账单类型", + "money":"账单金额", + "moneyPlaceholder":"请输入账单金额", + "tradeNo":"账单编号", + "tradeNoPlaceholder":"请输入账单编号", + "createTime":"添加时间", + "createTimePlaceholder":"请输入添加时间", + "addSiteAccountLog":"添加站点账单记录", + "updateSiteAccountLog":"编辑站点账单记录", + "siteAccountLogDeleteTips":"确定要删除该站点账单记录吗?", + "totalPay":"累计收款(元)", + "totalRefund":"累计退款(元)", + "totalTransfer":"累计转账(元)", + "accountType": "请选择退款类型", + "startDate": "开始时间", + "endDate": "结束时间", + "transferNo" : "转账单号", + "transferTime": "转账时间", + "transferType": "转账类型", + "transferMoney": "转账金额", + "transferRemark": "转账说明", + "outTradeNo": "单号", + "refundMoney": "退款金额", + "failReason": "退款说明", + "body": "说明" +} \ No newline at end of file diff --git a/admin/src/lang/zh-cn/index.json b/admin/src/lang/zh-cn/index.index.json similarity index 100% rename from admin/src/lang/zh-cn/index.json rename to admin/src/lang/zh-cn/index.index.json diff --git a/admin/src/lang/zh-cn/siteindex.json b/admin/src/lang/zh-cn/index.site_index.json similarity index 66% rename from admin/src/lang/zh-cn/siteindex.json rename to admin/src/lang/zh-cn/index.site_index.json index e3058ad30..8aae3b0b0 100644 --- a/admin/src/lang/zh-cn/siteindex.json +++ b/admin/src/lang/zh-cn/index.site_index.json @@ -40,5 +40,28 @@ "accumulative":"累计", "officialAccount": "Niucloud官方公众号", "officialAccountDesc": "微信扫码关注", - "WeCom": "添加企业微信群" + "WeCom": "添加企业微信群", + "path": "地址", + "menuName": "名称", + "menuNamePlaceholder": "模版名称", + "menuBgColor": "背景颜色", + "menuImg": "选择图标", + "menuDesc": "描述", + "addShortcutMenu": "添加快捷模版", + "appTemplate": "应用模块", + "siteType": "站点类型", + "periodTime": "有效期", + "renew": "续费", + "selectModel": "选择模版", + "addMenu": "添加模块", + "shortcutLink": "链接", + "emptyMenu": "暂无快捷模块", + "select": "选择", + "custom": "自定义", + "accessSite": "访问站点", + "pathSelect": "选择链接", + "bgColorPlaceholder": "请选择背景色", + "iconPlaceholder": "请选择图标", + "pathPlaceholder": "请选择链接", + "descPlaceholder": "输入描述语…" } \ No newline at end of file diff --git a/admin/src/lang/zh-cn/member.detail.json b/admin/src/lang/zh-cn/member.member_detail.json similarity index 100% rename from admin/src/lang/zh-cn/member.detail.json rename to admin/src/lang/zh-cn/member.member_detail.json diff --git a/admin/src/lang/zh-cn/order.recharge.order.json b/admin/src/lang/zh-cn/order.recharge.list.json similarity index 100% rename from admin/src/lang/zh-cn/order.recharge.order.json rename to admin/src/lang/zh-cn/order.recharge.list.json diff --git a/admin/src/lang/zh-cn/setting.notice.template.json b/admin/src/lang/zh-cn/setting.notice.json similarity index 94% rename from admin/src/lang/zh-cn/setting.notice.template.json rename to admin/src/lang/zh-cn/setting.notice.json index f2f25cd8a..2ce179c98 100644 --- a/admin/src/lang/zh-cn/setting.notice.template.json +++ b/admin/src/lang/zh-cn/setting.notice.json @@ -17,6 +17,5 @@ "weappTempKey" : "模板编号", "smsId":"短信模版ID", "smsIdPlaceholder":"短信模版ID", - "noticeType":"消息类型" - + "noticeType":"消息类型" } \ No newline at end of file diff --git a/admin/src/lang/zh-cn/setting.notice.records.json b/admin/src/lang/zh-cn/setting.notice_records.json similarity index 100% rename from admin/src/lang/zh-cn/setting.notice.records.json rename to admin/src/lang/zh-cn/setting.notice_records.json diff --git a/admin/src/lang/zh-cn/setting.pay.channel.json b/admin/src/lang/zh-cn/setting.pay.json similarity index 100% rename from admin/src/lang/zh-cn/setting.pay.channel.json rename to admin/src/lang/zh-cn/setting.pay.json diff --git a/admin/src/lang/zh-cn/setting.sms.setting.json b/admin/src/lang/zh-cn/setting.sms.json similarity index 100% rename from admin/src/lang/zh-cn/setting.sms.setting.json rename to admin/src/lang/zh-cn/setting.sms.json diff --git a/admin/src/lang/zh-cn/setting.sms.records.json b/admin/src/lang/zh-cn/setting.sms_records.json similarity index 100% rename from admin/src/lang/zh-cn/setting.sms.records.json rename to admin/src/lang/zh-cn/setting.sms_records.json diff --git a/admin/src/lang/zh-cn/setting.pay.transfer.json b/admin/src/lang/zh-cn/setting.transfer.json similarity index 100% rename from admin/src/lang/zh-cn/setting.pay.transfer.json rename to admin/src/lang/zh-cn/setting.transfer.json diff --git a/admin/src/lang/zh-cn/setting.oplatform.json b/admin/src/lang/zh-cn/setting.wxoplatform.json similarity index 100% rename from admin/src/lang/zh-cn/setting.oplatform.json rename to admin/src/lang/zh-cn/setting.wxoplatform.json diff --git a/admin/src/lang/zh-cn/tools.code.edit.json b/admin/src/lang/zh-cn/tools.code.edit.json index 535e9410f..56c0fe9c5 100644 --- a/admin/src/lang/zh-cn/tools.code.edit.json +++ b/admin/src/lang/zh-cn/tools.code.edit.json @@ -34,6 +34,8 @@ "columnComment": "字段描述", "columnType": "类型", "fieldAttribute": "字段属性", + "addAndEdit":"添加编辑", + "listSearch":"列表查询", "isPk":"是否主键", "isRequired":"是否必填", "isInsert":"是否添加", @@ -41,7 +43,7 @@ "isLists":"列表展示", "isSearch":"是否搜索", "isQuery":"是否查询", - "queryType":"查询方式", + "queryType":"搜索方式", "viewType":"显示方式", "pkRepeatTip": "只能添加一个主键", "formInput":"文本框", diff --git a/admin/src/lang/zh-cn/tools.code.json b/admin/src/lang/zh-cn/tools.code.index.json similarity index 100% rename from admin/src/lang/zh-cn/tools.code.json rename to admin/src/lang/zh-cn/tools.code.index.json diff --git a/admin/src/lang/zh-cn/tools.cron.json b/admin/src/lang/zh-cn/tools.schedule.json similarity index 79% rename from admin/src/lang/zh-cn/tools.cron.json rename to admin/src/lang/zh-cn/tools.schedule.json index 62a72e664..c9ad30da8 100644 --- a/admin/src/lang/zh-cn/tools.cron.json +++ b/admin/src/lang/zh-cn/tools.schedule.json @@ -13,5 +13,8 @@ "nextTime":"下次执行时间", "task":"任务命令", "data":"附加参数", - "statusDesc":"最后执行结果" + "statusDesc":"最后执行结果", + "key": "key", + "timeClass": "时间类型", + "executeTime": "执行时间" } \ No newline at end of file diff --git a/admin/src/lang/zh-cn/tools.update.json b/admin/src/lang/zh-cn/tools.updatecache.json similarity index 100% rename from admin/src/lang/zh-cn/tools.update.json rename to admin/src/lang/zh-cn/tools.updatecache.json diff --git a/admin/src/layout/default/components/aside/menu-item.vue b/admin/src/layout/default/components/aside/menu-item.vue index 1e8476c01..8b0b09df3 100644 --- a/admin/src/layout/default/components/aside/menu-item.vue +++ b/admin/src/layout/default/components/aside/menu-item.vue @@ -14,7 +14,12 @@ @@ -23,13 +28,35 @@ + +
+
+
+ {{ items.name }} +
+
+
+
+ {{ itemTo.name }} +
+
+
+ +
diff --git a/admin/src/layout/default/components/header/index.vue b/admin/src/layout/default/components/header/index.vue index be886629b..edebf1b6e 100644 --- a/admin/src/layout/default/components/header/index.vue +++ b/admin/src/layout/default/components/header/index.vue @@ -23,7 +23,12 @@
+ + + diff --git a/admin/src/views/index/site_index__.vue b/admin/src/views/index/site_index__.vue new file mode 100644 index 000000000..ddc4975dd --- /dev/null +++ b/admin/src/views/index/site_index__.vue @@ -0,0 +1,340 @@ + + + + + diff --git a/admin/src/views/setting/map.vue b/admin/src/views/setting/map.vue index 56c750e1f..58dd41716 100644 --- a/admin/src/views/setting/map.vue +++ b/admin/src/views/setting/map.vue @@ -25,6 +25,7 @@ import { setMap, getMap } from '@/api/sys' import { FormInstance, } from 'element-plus' const loading = ref(false) +const formRef = ref() const formData = reactive>({ key : '' }) @@ -39,7 +40,6 @@ setFormData() */ const save = async (formEl: FormInstance | undefined) => { if (loading.value || !formEl) return - setMap(formData).then(() => { loading.value = false }).catch(() => { diff --git a/admin/src/views/setting/notice.vue b/admin/src/views/setting/notice.vue index a64bb52ea..349ff4373 100644 --- a/admin/src/views/setting/notice.vue +++ b/admin/src/views/setting/notice.vue @@ -101,10 +101,10 @@ const loadNoticeList = () => { item.sms_type = item.support_type.indexOf('sms') !== -1 ? 1 : 0; item.wechat_type = item.support_type.indexOf('wechat') !== -1 ? 1 : 0; item.weapp_type = item.support_type.indexOf('weapp') !== -1 ? 1 : 0; - if(item.receiver_type == 1){ + if(item.receiver_type == 0){ noticeTableData.buyer.push(item) } - if(item.receiver_type == 2){ + if(item.receiver_type == 1){ noticeTableData.seller.push(item) } }) diff --git a/admin/src/views/setting/notice_records.vue b/admin/src/views/setting/notice_records.vue index 0987630de..93e257c68 100644 --- a/admin/src/views/setting/notice_records.vue +++ b/admin/src/views/setting/notice_records.vue @@ -110,7 +110,7 @@ const setTemplateList = async () => { Object.keys(res.data).forEach(key => { const item = res.data[key] const value = { value: key, name: item.name } - item.receiver_type == 1 ? templateList.buyer.list.push(value) : templateList.seller.list.push(value) + item.receiver_type == 0 ? templateList.buyer.list.push(value) : templateList.seller.list.push(value) }) }).catch(() => { diff --git a/admin/src/views/setting/sms_records.vue b/admin/src/views/setting/sms_records.vue index e2a1445d3..5ec406e07 100644 --- a/admin/src/views/setting/sms_records.vue +++ b/admin/src/views/setting/sms_records.vue @@ -111,7 +111,7 @@ const setTemplateList = async () => { Object.keys(res.data).forEach(key => { const item = res.data[key] const value = { value: key, name: item.name } - item.receiver_type == 1 ? templateList.buyer.list.push(value) : templateList.seller.list.push(value) + item.receiver_type == 0 ? templateList.buyer.list.push(value) : templateList.seller.list.push(value) }) }).catch(() => { diff --git a/admin/src/views/tools/code/edit.vue b/admin/src/views/tools/code/edit.vue index 892d67822..c243b3985 100644 --- a/admin/src/views/tools/code/edit.vue +++ b/admin/src/views/tools/code/edit.vue @@ -126,20 +126,20 @@
- - {{ t('commentField') }} -
-
{{ t('isRequired') }}: +
{{ t('viewType') }}:
- - {{ t('yes') }} - {{ t('no') }} - + + +
+
+ {{t('addAndEdit')}} +
{{ t('isInsert') }}:
@@ -162,6 +162,21 @@
+
+
{{ t('isRequired') }}: +
+
+ + {{ t('yes') }} + {{ t('no') }} + +
+
+
+ {{t('listSearch')}} +
+
{{ t('isLists') }}:
@@ -204,17 +219,7 @@
-
-
{{ t('viewType') }}: -
-
- - - -
-
+
diff --git a/admin/src/views/tools/cron.vue b/admin/src/views/tools/cron.vue deleted file mode 100644 index eeedb02d9..000000000 --- a/admin/src/views/tools/cron.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - - - diff --git a/admin/src/views/tools/schedule.vue b/admin/src/views/tools/schedule.vue new file mode 100644 index 000000000..6ec468fd4 --- /dev/null +++ b/admin/src/views/tools/schedule.vue @@ -0,0 +1,101 @@ + + + + +