diff --git a/admin/components.d.ts b/admin/components.d.ts index 742487129..67d2c4edc 100644 --- a/admin/components.d.ts +++ b/admin/components.d.ts @@ -9,6 +9,7 @@ declare module '@vue/runtime-core' { export interface GlobalComponents { Attachment: typeof import('./src/components/upload-attachment/attachment.vue')['default'] DiyLink: typeof import('./src/components/diy-link/index.vue')['default'] + DiyPage: typeof import('./src/components/diy-page/index.vue')['default'] Editor: typeof import('./src/components/editor/index.vue')['default'] ElAlert: typeof import('element-plus/es')['ElAlert'] ElAside: typeof import('element-plus/es')['ElAside'] @@ -91,6 +92,7 @@ declare module '@vue/runtime-core' { SelectIcon: typeof import('./src/components/select-icon/index.vue')['default'] SpreadPopup: typeof import('./src/components/spread-popup/index.vue')['default'] UploadAttachment: typeof import('./src/components/upload-attachment/index.vue')['default'] + UploadAudio: typeof import('./src/components/upload-audio/index.vue')['default'] UploadFile: typeof import('./src/components/upload-file/index.vue')['default'] UploadImage: typeof import('./src/components/upload-image/index.vue')['default'] UploadVideo: typeof import('./src/components/upload-video/index.vue')['default'] diff --git a/admin/public/ueditor/lang/zh-cn/zh-cn.js b/admin/public/ueditor/lang/zh-cn/zh-cn.js index a49e91d82..7527c3177 100644 --- a/admin/public/ueditor/lang/zh-cn/zh-cn.js +++ b/admin/public/ueditor/lang/zh-cn/zh-cn.js @@ -157,7 +157,7 @@ UE.I18N['zh-cn'] = { 'elementPathTip': "元素路径", 'wordCountTip': "字数统计", 'wordCountMsg': '{#count} / {#leave}', - 'wordOverFlowMsg': '字数超出最大允许值,服务器可能拒绝保存!', + 'wordOverFlowMsg': '字数超出最大允许值!', 'ok': "确认", 'cancel': "取消", 'closeDialog': "关闭对话框", diff --git a/admin/src/App.vue b/admin/src/App.vue index 49dd8d6ce..49fb912e3 100644 --- a/admin/src/App.vue +++ b/admin/src/App.vue @@ -13,6 +13,7 @@ import useAppStore from '@/stores/modules/app' import { useDark, useToggle } from '@vueuse/core' import { setThemeColor } from '@/utils/common' import { useRoute } from 'vue-router' +import { getSiteAllowChange} from '@/app/api/site' const route = useRoute() @@ -24,7 +25,14 @@ systemStore.getWebsiteInfo() systemStore.getWebsiteLayout() const toggleDark = useToggle(useDark()) - +const getSiteAllowChangeFn = ()=>{ + getSiteAllowChange().then(({data})=>{ + let isAllowChange = data.is_allow ? true : false + localStorage.setItem('isAllowChange',isAllowChange.toString()) + }) + +} +getSiteAllowChangeFn() watch(route, () => { useAppStore().$patch(state => { state.route = route @@ -39,3 +47,9 @@ onMounted(() => { + diff --git a/admin/src/app/api/addon.ts b/admin/src/app/api/addon.ts index fd9774c7e..2bdd6d5d3 100644 --- a/admin/src/app/api/addon.ts +++ b/admin/src/app/api/addon.ts @@ -103,3 +103,6 @@ export function getAppIndex() { return request.get('app/index') } +export function getAdvList() { + return request.get('index/adv_list') +} diff --git a/admin/src/app/api/diy.ts b/admin/src/app/api/diy.ts index c1aa6f43c..ab9fb5e8f 100644 --- a/admin/src/app/api/diy.ts +++ b/admin/src/app/api/diy.ts @@ -199,6 +199,12 @@ export function copyDiy(params: Record) { return request.post(`diy/copy`, params, { showSuccessMessage: true }) } +/** + * 获取自定义页面选择列表 + */ +export function getPageLink(params: Record) { + return request.get(`diy/page_link`, { params }) +} /***************************************************** 主题风格 ****************************************************/ diff --git a/admin/src/app/api/poster.ts b/admin/src/app/api/poster.ts index 8c6ca639d..775f355ee 100644 --- a/admin/src/app/api/poster.ts +++ b/admin/src/app/api/poster.ts @@ -113,3 +113,7 @@ export function getPreviewPoster(params: Record) { export function getPosterGenerate(params: Record) { return request.get(`sys/poster/generate`, { params, showErrorMessage: false }) } +// 判断是否安装imagemagick扩展 +export function checkImagick() { + return request.get(`sys/check_imagick`, { showErrorMessage: false }) +} \ No newline at end of file diff --git a/admin/src/app/api/verify.ts b/admin/src/app/api/verify.ts index be897fd64..e61305004 100644 --- a/admin/src/app/api/verify.ts +++ b/admin/src/app/api/verify.ts @@ -21,6 +21,23 @@ export function getVerifyDetail(verifyCode: string) { return request.get(`verify/verify/${ verifyCode }`) } +/** + * 获取核销详情 + * @param verifyCode + * @returns + */ +export function getVerifyDetailInfo(verifyCode: string) { + return request.get(`verify/detail/${ verifyCode }`) +} + +/** + * 核销 + * @param verifyCode + * @returns + */ +export function verify(verifyCode: string, params: Record) { + return request.post(`verify/verify/${ verifyCode }`,params,{ showSuccessMessage: true}) +} /***************************************************** 核销员 ****************************************************/ /** diff --git a/admin/src/app/assets/images/goods_default.png b/admin/src/app/assets/images/goods_default.png new file mode 100644 index 000000000..4a4c75bdc Binary files /dev/null and b/admin/src/app/assets/images/goods_default.png differ diff --git a/admin/src/app/assets/images/icon-addon-one.png b/admin/src/app/assets/images/icon-addon-one.png new file mode 100644 index 000000000..30cde7880 Binary files /dev/null and b/admin/src/app/assets/images/icon-addon-one.png differ diff --git a/admin/src/app/assets/images/write.png b/admin/src/app/assets/images/write.png new file mode 100644 index 000000000..1f45bf6b8 Binary files /dev/null and b/admin/src/app/assets/images/write.png differ diff --git a/admin/src/app/views/app/marketing.vue b/admin/src/app/views/app/marketing.vue index 58c4c135e..50cd8f845 100644 --- a/admin/src/app/views/app/marketing.vue +++ b/admin/src/app/views/app/marketing.vue @@ -13,7 +13,7 @@
- + diff --git a/admin/src/app/views/diy/components/edit-text.vue b/admin/src/app/views/diy/components/edit-text.vue index 225ce11d4..60a867bcd 100644 --- a/admin/src/app/views/diy/components/edit-text.vue +++ b/admin/src/app/views/diy/components/edit-text.vue @@ -7,7 +7,7 @@ {{ diyStore.editComponent.styleName }} - + diff --git a/admin/src/app/views/diy_form/list.vue b/admin/src/app/views/diy_form/list.vue index 2cfe1c933..b16cdcf19 100644 --- a/admin/src/app/views/diy_form/list.vue +++ b/admin/src/app/views/diy_form/list.vue @@ -510,12 +510,12 @@ const spreadPopupRef = ref(null) const spreadEvent = (data: any) => { const pagePath = '/app/pages/index/diy_form' - const columnName = 'form_id' - const columnValue = data.form_id + const paramsArr = [ + { name: 'form_id', value: data.form_id }, + ]; const title = '表单推广' const folder = 'diy_form' - - spreadPopupRef.value?.show(pagePath, columnName, columnValue, title, folder) + spreadPopupRef.value?.show(pagePath, paramsArr, title, folder); } // 表单提交成功页弹出框 diff --git a/admin/src/app/views/finance/components/refund-detail.vue b/admin/src/app/views/finance/components/refund-detail.vue index 2b0a44e6b..c7e0020a4 100644 --- a/admin/src/app/views/finance/components/refund-detail.vue +++ b/admin/src/app/views/finance/components/refund-detail.vue @@ -1,5 +1,5 @@