feat: 添加商户端页面

This commit is contained in:
2026-07-07 10:42:09 +08:00
parent baf82cec86
commit 948957d805
9 changed files with 1026 additions and 1 deletions
+4
View File
@@ -23,6 +23,7 @@ const toErrorPage = (errCode = '', errMsg = '') => {
const app = defineStore({
id: 'app',
state: () => ({
bizMode: 'user',
info: {
// 应用信息
name: '', // 商城名称
@@ -61,6 +62,9 @@ const app = defineStore({
has_wechat_trade_managed: 0, // 小程序发货信息管理 0 没有 || 1 有
}),
actions: {
setBizMode(mode = 'user') {
this.bizMode = mode === 'merchant' ? 'merchant' : 'user';
},
// 获取Shopro应用配置和模板
async init(templateId = null) {
// 检查网络