From ebcc0075ceb20deb0762b6d77131d69557a4d892 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Wed, 26 Aug 2026 10:59:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(setting):=20=E6=B7=BB=E5=8A=A0=E5=BA=97?= =?UTF-8?q?=E9=93=BAH5=E5=92=8C=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=E5=B1=95=E7=A4=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting-manage/setting/BASE_SETTING.vue | 20 +- seller/src/api/index.js | 5 + seller/src/views/Main.vue | 3 + .../views/main-components/store-qrcode.vue | 202 ++++++++++++++++++ 4 files changed, 229 insertions(+), 1 deletion(-) create mode 100644 seller/src/views/main-components/store-qrcode.vue diff --git a/manager/src/views/sys/setting-manage/setting/BASE_SETTING.vue b/manager/src/views/sys/setting-manage/setting/BASE_SETTING.vue index a010652e..27dc87df 100644 --- a/manager/src/views/sys/setting-manage/setting/BASE_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/BASE_SETTING.vue @@ -64,6 +64,14 @@ + + + 开启后,商家后台顶栏展示 H5 店铺首页二维码,需先填写上方「wap站点地址」 + + + + 开启后,商家后台顶栏展示小程序店铺首页码,需先配置微信小程序,且小程序已发布店铺页 +
保存
@@ -106,6 +114,8 @@ export default { siteName: "", staticPageAddress: "", staticPageWapAddress: "", + showStoreH5Address: false, + showStoreMpAddress: false, }, selected: "", ruleValidate: {}, @@ -150,8 +160,16 @@ export default { }, init() { this.result = JSON.parse(this.res); - this.formValidate = { ...this.result }; + this.formValidate = { + ...this.formValidate, + ...this.result, + showStoreH5Address: this.result.showStoreH5Address === true, + showStoreMpAddress: this.result.showStoreMpAddress === true, + }; Object.keys(this.result).forEach((item) => { + if (item === "showStoreH5Address" || item === "showStoreMpAddress") { + return; + } this.ruleValidate[item] = [ { required: true, diff --git a/seller/src/api/index.js b/seller/src/api/index.js index 57076ef7..b5ed0a0c 100644 --- a/seller/src/api/index.js +++ b/seller/src/api/index.js @@ -55,6 +55,11 @@ export const userInfo = params => { export const userMsg = params => { return getRequest('/settings/storeSettings', params) } + +/** 当前店铺首页小程序码 */ +export const getStoreMpQrcode = () => { + return getRequest("/settings/storeSettings/mp-qrcode"); +}; //验证短信验证码 export const validateCode = params => { return postRequestWithNoToken("/passport/login/resetByMobile", params); diff --git a/seller/src/views/Main.vue b/seller/src/views/Main.vue index a3636657..83575b3c 100644 --- a/seller/src/views/Main.vue +++ b/seller/src/views/Main.vue @@ -20,6 +20,7 @@ align="middle" class="user-dropdown-innercon" > +