diff --git a/admin/src/app/api/diy.ts b/admin/src/app/api/diy.ts index 84274b1c0..0d5717790 100644 --- a/admin/src/app/api/diy.ts +++ b/admin/src/app/api/diy.ts @@ -189,4 +189,12 @@ export function changeTemplate(params: Record) { */ export function getApps(params: Record) { return request.get(`diy/apps`) +} + +/** + * 复制模版页面 + * @param params + */ +export function copyDiy(params: Record) { + return request.post(`diy/copy`, params, { showSuccessMessage: true }) } \ No newline at end of file diff --git a/admin/src/app/api/member.ts b/admin/src/app/api/member.ts index 1cf6b16e7..161986cf6 100644 --- a/admin/src/app/api/member.ts +++ b/admin/src/app/api/member.ts @@ -513,3 +513,26 @@ export function setSignConfig(params: Record) { export function getMemberSignList(params: Record) { return request.get(`member/sign`, { params }); } + +/***************************************************** 地址管理 ****************************************************/ + +/** + * 获取收货地址 + */ +export function getMemberAddress(params: Record) { + return request.get(`member/address`, { params }); +} + +/** + * 添加收货地址 + */ +export function addMemberAddress(params: Record) { + return request.post(`member/address`, params); +} + +/** + * 编辑收货地址 + */ +export function editMemberAddress(params: Record) { + return request.put(`member/address`, params); +} \ No newline at end of file diff --git a/admin/src/app/api/pay.ts b/admin/src/app/api/pay.ts index fd37d4cbd..74bdcb0f1 100644 --- a/admin/src/app/api/pay.ts +++ b/admin/src/app/api/pay.ts @@ -75,3 +75,26 @@ export function getRefundTransfer(params: Record) { export function getAllPayType() { return request.get(`pay/type/all`) } + +/** + * 支付列表 + */ +export function getPayList() { + return request.get(`pay/type/list`) +} + +/** + * 支付 + */ +export function pay(params: Record) { + return request.post(`pay`, params) +} + +/** +* 帮付 +* @param params +* @returns +*/ +export function getFriendsPay(tradeType : string, tradeId : number, channel: string) { + return request.get(`pay/friendspay/info/${tradeType}/${tradeId}/${channel}`, { showErrorMessage: false }) +} \ No newline at end of file diff --git a/admin/src/app/api/poster.ts b/admin/src/app/api/poster.ts index 4b902c22d..21d51fd4d 100644 --- a/admin/src/app/api/poster.ts +++ b/admin/src/app/api/poster.ts @@ -103,4 +103,13 @@ export function initPoster(params: Record) { */ export function getPreviewPoster(params: Record) { return request.get(`sys/poster/preview`, {params}) +} + +/** + * 下载 + * @param params + * @returns + */ +export function getPosterGenerate(params: Record) { + return request.get(`sys/poster/generate`, {params, showErrorMessage: false}) } \ No newline at end of file diff --git a/admin/src/app/lang/zh-cn/diy.list.json b/admin/src/app/lang/zh-cn/diy.list.json index 9618e3bf4..3e0ea985b 100644 --- a/admin/src/app/lang/zh-cn/diy.list.json +++ b/admin/src/app/lang/zh-cn/diy.list.json @@ -20,6 +20,7 @@ "titlePlaceholder": "请输入页面名称", "addDiyPage": "添加页面", "diyPageDeleteTips": "确定要删除该自定义页面吗?", + "diyPageCopyTips": "确定要复制该自定义页面吗?", "preview": "预览", "share": "分享", "shareSet": "分享设置", diff --git a/admin/src/app/lang/zh-cn/marketing.sign_config.json b/admin/src/app/lang/zh-cn/marketing.sign_config.json index 680cae55b..64b31e3e7 100644 --- a/admin/src/app/lang/zh-cn/marketing.sign_config.json +++ b/admin/src/app/lang/zh-cn/marketing.sign_config.json @@ -4,6 +4,8 @@ "isUse": "是否启用", "signPeriod": "签到周期", "signPeriodTip": "请输入签到周期", + "signPeriodLimitTips": "签到周期格式错误", + "signPeriodMustZeroTips": "签到周期必须大于0", "calendarSign": "日历签到", "periodSign": "周期签到", "daySignAward": "日签奖励", diff --git a/admin/src/app/lang/zh-cn/setting.pay.json b/admin/src/app/lang/zh-cn/setting.pay.json index 47f70cca9..c8a7ba006 100644 --- a/admin/src/app/lang/zh-cn/setting.pay.json +++ b/admin/src/app/lang/zh-cn/setting.pay.json @@ -13,9 +13,9 @@ "mchId": "商户号", "mchIdPlaceholder": "请输入商户号", "mchIdTips": "微信支付商户号(MCHID)", - "mchSecretKey": "API密钥", - "mchSecretKeyPlaceholder": "请输入API密钥", - "mchSecretKeyTips": "微信支付商户API密钥(paySignKey)", + "mchSecretKey": "APIv3密钥", + "mchSecretKeyPlaceholder": "请输入APIv3密钥", + "mchSecretKeyTips": "微信支付商户APIv3密钥(paySignKey)", "mchSecretCert": "商户私钥", "mchSecretCertPlaceholder": "请上传商户私钥", "mchSecretCertTips": "微信支付API证书(apiclient_key.pem)", @@ -65,5 +65,21 @@ "nativeDomain": "Native支付回调链接", "nativeDomainTips": "需在微信商户号>产品中心>开发配置>支付配置 Native支付回调链接中添加该链接", "wechatpayPublicCert": "微信支付公钥", - "wechatpayPublicCertId": "微信支付公钥ID" + "wechatpayPublicCertId": "微信支付公钥ID", + "updateFriendsPay":"找朋友帮忙付", + "friendsPaySwitch":"帮付说明", + "friendsPayTitle":"帮付说明标题", + "friendsPayTitlePlaceholder":"请输入帮付说明标题", + "desContent":"说明内容", + "friendsPayGoodsSwitch":"订单信息清单", + "friendsPayGoodsSwitchTips":"开启后,帮付人可以看到订单信息清单", + "friendsPayName":"支付方式名称", + "friendsPayNamePlaceholder":"请输入支付方式名称", + "desContentPlaceholder": "请输入说明内容", + "helpName":"帮付页面名称", + "helpNamePlaceholder":"请输入帮付页面名称", + "helpBtn":"帮付按钮名称", + "helpBtnPlaceholder":"请输入帮付按钮名称", + "remark":"发起帮付留言", + "remarkPlaceholder":"请输入留言备注" } diff --git a/admin/src/app/lang/zh-cn/setting.transfer.json b/admin/src/app/lang/zh-cn/setting.transfer.json index 6a27a5533..13d0b4b8a 100644 --- a/admin/src/app/lang/zh-cn/setting.transfer.json +++ b/admin/src/app/lang/zh-cn/setting.transfer.json @@ -4,9 +4,9 @@ "mchId": "商户号", "mchIdPlaceholder": "请输入商户号", "mchIdTips": "微信支付商户号(MCHID)", - "mchSecretKey": "API密钥", - "mchSecretKeyPlaceholder": "请输入API密钥", - "mchSecretKeyTips": "微信支付商户API密钥(paySignKey)", + "mchSecretKey": "APIv3密钥", + "mchSecretKeyPlaceholder": "请输入APIv3密钥", + "mchSecretKeyTips": "微信支付商户APIv3密钥(paySignKey)", "mchSecretCert": "商户私钥", "mchSecretCertPlaceholder": "请上传商户私钥", "mchSecretCertTips": "微信支付API证书(apiclient_key.pem)", @@ -28,4 +28,4 @@ "alipayPublicCertPathTips": "上传alipayCertPublicKey文件", "alipayRootCertPathTips": "上传alipayRootCert文件", "operationTip": "温馨提示:打款设置用于会员提现转账,发放红包等场景" -} \ No newline at end of file +} diff --git a/admin/src/app/views/channel/pc/config.vue b/admin/src/app/views/channel/pc/config.vue index f72a0fcab..f9d4e5212 100644 --- a/admin/src/app/views/channel/pc/config.vue +++ b/admin/src/app/views/channel/pc/config.vue @@ -22,7 +22,7 @@
{{ t('copy') }}
- {{t('clickVisit')}} + {{t('clickVisit')}} diff --git a/admin/src/app/views/diy/edit.vue b/admin/src/app/views/diy/edit.vue index 85c03d0d8..e317f7ea9 100644 --- a/admin/src/app/views/diy/edit.vue +++ b/admin/src/app/views/diy/edit.vue @@ -237,6 +237,8 @@ route.query.type = route.query.type || '' // 页面模板,新页面传入 route.query.title = route.query.title || '' route.query.back = route.query.back || '/site/diy/list' +console.log('route',route.path) + const backPath = route.query.back const template = ref(''); const oldTemplate = ref(''); @@ -298,6 +300,9 @@ const modulesFiles = import.meta.glob('./components/*.vue', { eager: true }) const addonModulesFiles = import.meta.glob('@/addon/**/views/diy/components/*.vue', { eager: true }) addonModulesFiles && Object.assign(modulesFiles, addonModulesFiles) +// todo 考虑用一个编辑页面实现,方便后期维护,根据路由判断,是微页面还是系统表单 +// todo 系统表单可以使用自定义组件,微页面不能用系统表单组件 + const modules = {} for (const [key, value] of Object.entries(modulesFiles)) { const moduleName = key.split('/').pop() diff --git a/admin/src/app/views/diy/index.vue b/admin/src/app/views/diy/index.vue index 1280b945b..7615e96ed 100644 --- a/admin/src/app/views/diy/index.vue +++ b/admin/src/app/views/diy/index.vue @@ -122,7 +122,7 @@ const refreshData = () => { if (import.meta.env.MODE == 'development') { // 开发模式情况下,并且未配置wap域名,则获取缓存域名 - if (wapDomain.value) { + if (wapDomain.value && wapDomain.value.indexOf('localhost') != -1) { page.wapUrl = wapDomain.value + '/wap' repeat = false setDomain() diff --git a/admin/src/app/views/diy/list.vue b/admin/src/app/views/diy/list.vue index 6dc9ad0ea..ac195e905 100644 --- a/admin/src/app/views/diy/list.vue +++ b/admin/src/app/views/diy/list.vue @@ -57,6 +57,7 @@ {{ t('shareSet') }} {{ t('edit') }} {{ t('delete') }} + {{ t('copy') }} @@ -126,7 +127,7 @@ + + diff --git a/admin/src/app/views/poster/components/edit-friendspay-money.vue b/admin/src/app/views/poster/components/edit-friendspay-money.vue new file mode 100644 index 000000000..39ea162a7 --- /dev/null +++ b/admin/src/app/views/poster/components/edit-friendspay-money.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/admin/src/app/views/poster/components/preview-friendspay-message.vue b/admin/src/app/views/poster/components/preview-friendspay-message.vue new file mode 100644 index 000000000..7de4d79bb --- /dev/null +++ b/admin/src/app/views/poster/components/preview-friendspay-message.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/admin/src/app/views/poster/components/preview-friendspay-money.vue b/admin/src/app/views/poster/components/preview-friendspay-money.vue new file mode 100644 index 000000000..7de4d79bb --- /dev/null +++ b/admin/src/app/views/poster/components/preview-friendspay-money.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/admin/src/app/views/poster/edit.vue b/admin/src/app/views/poster/edit.vue index 8a7f4e934..ba93fd6b1 100644 --- a/admin/src/app/views/poster/edit.vue +++ b/admin/src/app/views/poster/edit.vue @@ -134,7 +134,7 @@