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"
>
+
-
@@ -84,6 +85,7 @@ import shrinkableMenu from "./main-components/shrinkable-menu/shrinkable-menu.vu
import tagsPageOpened from "./main-components/tags-page-opened.vue";
import circleLoading from "@/views/my-components/lili/circle-loading.vue";
import configDrawer from "@/views/main-components/config-drawer.vue";
+import storeQrcode from "@/views/main-components/store-qrcode.vue";
import Cookies from "js-cookie";
import util from "@/libs/util.js";
import { logout } from "@/api/index";
@@ -100,6 +102,7 @@ export default {
tagsPageOpened,
circleLoading,
configDrawer,
+ storeQrcode,
},
data() {
return {
diff --git a/seller/src/views/main-components/store-qrcode.vue b/seller/src/views/main-components/store-qrcode.vue
new file mode 100644
index 00000000..ed83e606
--- /dev/null
+++ b/seller/src/views/main-components/store-qrcode.vue
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
请先在系统设置中填写 wap 站点地址
+
H5 店铺首页
+
复制链接
+
+
+
+
+
+
+
![小程序码]()
+
+
小程序
+
+
+
+
![小程序码]()
+
{{ mpError || "小程序码生成中..." }}
+
小程序店铺首页
+
下载二维码
+
+
+
+
+
+
+
+