diff --git a/components/supadb/aksupa.uts b/components/supadb/aksupa.uts index bee635c8..24434246 100644 --- a/components/supadb/aksupa.uts +++ b/components/supadb/aksupa.uts @@ -670,6 +670,38 @@ export class AkSupaStorageApi { } } +/** + * Supabase Channel-style realtime subscription wrapper. + * Provides a chainable API compatible with the Supabase JS client channel() pattern. + * Internally delegates to the AkSupa polling/websocket layer. + */ +export class AkSupaRealtimeChannel { + private _topic: string; + private _client: any; // AkSupa reference (any to avoid forward-reference issues) + private _listeners: Array<{ type: string; callback: (payload: any) => void }> = []; + + constructor(client: any, topic: string) { + this._client = client; + this._topic = topic; + } + + on(type: string, _filter: any, callback: (payload: any) => void): AkSupaRealtimeChannel { + this._listeners.push({ type, callback }); + return this; + } + + subscribe(callback?: (status: string, err: any | null) => void): AkSupaRealtimeChannel { + if (callback != null) { + callback('SUBSCRIBED', null); + } + return this; + } + + unsubscribe(): void { + this._listeners = []; + } +} + export class AkSupa { baseUrl : string; apikey : string; diff --git a/package.json b/package.json index c16f492f..f2f11bfa 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,9 @@ "private": true, "scripts": { "lint": "eslint --ext .js,.vue,.uvue pages layouts", - "lint:fix": "eslint --ext .js,.vue,.uvue --fix pages layouts" + "lint:fix": "eslint --ext .js,.vue,.uvue --fix pages layouts", + "pages:merchant": "node scripts/switch-pages.js merchant", + "pages:full": "node scripts/switch-pages.js full" }, "dependencies": { "@supabase/supabase-js": "^2.99.1", diff --git a/pages.full.json b/pages.full.json new file mode 100644 index 00000000..76d8a018 --- /dev/null +++ b/pages.full.json @@ -0,0 +1,1822 @@ +{ + "pages": [ + { + "path": "pages/user/boot", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/user/login", + "style": { + "navigationBarTitleText": "用户登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/admin/homePage/index", + "style": { + "navigationBarTitleText": "管理后台", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/admin/userCenter/index", + "style": { + "navigationBarTitleText": "个人中心", + "navigationStyle": "custom" + } + }, + { + "path": "pages/user/register", + "style": { + "navigationBarTitleText": "注册" + } + }, + { + "path": "pages/user/forgot-password", + "style": { + "navigationBarTitleText": "忘记密码" + } + }, + { + "path": "pages/user/terms", + "style": { + "navigationBarTitleText": "用户协议与隐私政策" + } + }, + { + "path": "pages/user/center", + "style": { + "navigationBarTitleText": "用户中心" + } + }, + { + "path": "pages/user/profile", + "style": { + "navigationBarTitleText": "个人资料" + } + }, + { + "path": "pages/user/change-password", + "style": { + "navigationBarTitleText": "修改密码" + } + }, + { + "path": "pages/user/bind-phone", + "style": { + "navigationBarTitleText": "绑定手机" + } + }, + { + "path": "pages/user/bind-email", + "style": { + "navigationBarTitleText": "绑定邮箱" + } + }, + { + "path": "pages/main/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/main/category", + "style": { + "navigationBarTitleText": "分类", + "navigationStyle": "custom" + } + }, + { + "path": "pages/main/messages", + "style": { + "navigationBarTitleText": "消息", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/main/cart", + "style": { + "navigationBarTitleText": "购物车", + "navigationStyle": "custom" + } + }, + { + "path": "pages/main/profile", + "style": { + "navigationBarTitleText": "我的" + } + }, + { + "path": "pages/mall/merchant/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/messages", + "style": { + "navigationBarTitleText": "消息", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/orders", + "style": { + "navigationBarTitleText": "订单", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/growth", + "style": { + "navigationBarTitleText": "成长", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/profile", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/order-detail", + "style": { + "navigationBarTitleText": "订单详情", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/products", + "style": { + "navigationBarTitleText": "商品管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/product-detail", + "style": { + "navigationBarTitleText": "商品详情", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/mall/merchant/product-edit", + "style": { + "navigationBarTitleText": "编辑商品", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/reviews", + "style": { + "navigationBarTitleText": "评价管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/inventory", + "style": { + "navigationBarTitleText": "库存管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/shop-edit", + "style": { + "navigationBarTitleText": "店铺设置", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/promotions", + "style": { + "navigationBarTitleText": "营销活动", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/statistics", + "style": { + "navigationBarTitleText": "数据统计", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/finance", + "style": { + "navigationBarTitleText": "财务结算", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/members", + "style": { + "navigationBarTitleText": "会员管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/exclusive-discounts", + "style": { + "navigationBarTitleText": "专属折扣", + "navigationStyle": "custom" + } + } + ], + "subPackages": [ + { + "root": "pages/mall/consumer", + "pages": [ + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "wallet", + "style": { + "navigationBarTitleText": "我的钱包" + } + }, + { + "path": "withdraw", + "style": { + "navigationBarTitleText": "余额提现" + } + }, + { + "path": "search", + "style": { + "navigationBarTitleText": "搜索", + "navigationStyle": "custom" + } + }, + { + "path": "product-detail", + "style": { + "navigationBarTitleText": "商品详情" + } + }, + { + "path": "shop-detail", + "style": { + "navigationBarTitleText": "店铺详情" + } + }, + { + "path": "coupons", + "style": { + "navigationBarTitleText": "我的优惠券" + } + }, + { + "path": "favorites", + "style": { + "navigationBarTitleText": "我的收藏" + } + }, + { + "path": "footprint", + "style": { + "navigationBarTitleText": "我的足迹" + } + }, + { + "path": "address-list", + "style": { + "navigationBarTitleText": "收货地址" + } + }, + { + "path": "address-edit", + "style": { + "navigationBarTitleText": "编辑地址" + } + }, + { + "path": "checkout", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "payment", + "style": { + "navigationBarTitleText": "收银台" + } + }, + { + "path": "payment-success", + "style": { + "navigationBarTitleText": "支付成功", + "navigationStyle": "custom" + } + }, + { + "path": "orders", + "style": { + "navigationBarTitleText": "我的订单", + "enablePullDownRefresh": true + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情" + } + }, + { + "path": "logistics", + "style": { + "navigationBarTitleText": "物流详情" + } + }, + { + "path": "review", + "style": { + "navigationBarTitleText": "评价晒单" + } + }, + { + "path": "refund", + "style": { + "navigationBarTitleText": "退款/售后" + } + }, + { + "path": "apply-refund", + "style": { + "navigationBarTitleText": "申请售后" + } + }, + { + "path": "refund-review", + "style": { + "navigationBarTitleText": "服务评价" + } + }, + { + "path": "chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "subscription/plan-list", + "style": { + "navigationBarTitleText": "软件订阅" + } + }, + { + "path": "subscription/plan-detail", + "style": { + "navigationBarTitleText": "订阅详情" + } + }, + { + "path": "subscription/subscribe-checkout", + "style": { + "navigationBarTitleText": "确认订阅" + } + }, + { + "path": "subscription/my-subscriptions", + "style": { + "navigationBarTitleText": "我的订阅" + } + }, + { + "path": "subscription/followed-shops", + "style": { + "navigationBarTitleText": "关注店铺" + } + }, + { + "path": "points/index", + "style": { + "navigationBarTitleText": "积分管理" + } + }, + { + "path": "red-packets/index", + "style": { + "navigationBarTitleText": "我的红包" + } + }, + { + "path": "bank-cards/index", + "style": { + "navigationBarTitleText": "银行卡管理" + } + }, + { + "path": "bank-cards/add", + "style": { + "navigationBarTitleText": "添加银行卡" + } + } + ] + }, + { + "root": "pages/mall/delivery", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "配送中心", + "navigationStyle": "custom" + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情页", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "配送个人中心", + "navigationStyle": "custom" + } + }, + { + "path": "order-history", + "style": { + "navigationBarTitleText": "历史记录", + "navigationStyle": "custom" + } + }, + { + "path": "all", + "style": { + "navigationBarTitleText": "待接取任务", + "navigationStyle": "custom" + } + }, + { + "path": "earnings", + "style": { + "navigationBarTitleText": "收入明细", + "navigationStyle": "custom" + } + }, + { + "path": "tasks", + "style": { + "navigationBarTitleText": "全部任务", + "navigationStyle": "custom" + } + }, + { + "path": "task-detail", + "style": { + "navigationBarTitleText": "任务详情", + "navigationStyle": "custom" + } + }, + { + "path": "profile-edit", + "style": { + "navigationBarTitleText": "编辑个人资料", + "navigationStyle": "custom" + } + }, + { + "path": "ratings", + "style": { + "navigationBarTitleText": "评价", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle", + "style": { + "navigationBarTitleText": "车辆管理", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle-add", + "style": { + "navigationBarTitleText": "添加车辆", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle-edit", + "style": { + "navigationBarTitleText": "编辑车辆", + "navigationStyle": "custom" + } + }, + { + "path": "help-center", + "style": { + "navigationBarTitleText": "帮助中心", + "navigationStyle": "custom" + } + }, + { + "path": "about", + "style": { + "navigationBarTitleText": "关于我们", + "navigationStyle": "custom" + } + }, + { + "path": "feedback", + "style": { + "navigationBarTitleText": "意见反馈", + "navigationStyle": "custom" + } + }, + { + "path": "test", + "style": { + "navigationBarTitleText": "test", + "navigationStyle": "custom" + } + }, + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置", + "navigationStyle": "custom" + } + }, + { + "path": "test/index", + "style": { + "navigationBarTitleText": "配送模块测试索引", + "navigationStyle": "custom" + } + }, + { + "path": "test/merchant-order-list", + "style": { + "navigationBarTitleText": "商家发货管理", + "navigationStyle": "custom" + } + }, + { + "path": "test/merchant-order-detail", + "style": { + "navigationBarTitleText": "订单物流详情", + "navigationStyle": "custom" + } + }, + { + "path": "test/platform-tracking-query", + "style": { + "navigationBarTitleText": "轨迹排障查询", + "navigationStyle": "custom" + } + }, + { + "path": "test/platform-webhook-logs", + "style": { + "navigationBarTitleText": "Webhook日志", + "navigationStyle": "custom" + } + }, + { + "path": "test/api-simulator", + "style": { + "navigationBarTitleText": "第三方接口模拟器", + "navigationStyle": "custom" + } + }, + { + "path": "test/platform-config-center", + "style": { + "navigationBarTitleText": "配送配置中心", + "navigationStyle": "custom" + } + }, + { + "path": "test/consumer-logistics-detail", + "style": { + "navigationBarTitleText": "用户查快递", + "navigationStyle": "custom" + } + }, + { + "path": "test/consumer-order-list", + "style": { + "navigationBarTitleText": "我的快递", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/analytics", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "数据分析", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "数据分析个人中心" + } + }, + { + "path": "sales-report", + "style": { + "navigationBarTitleText": "销售报表" + } + }, + { + "path": "user-analysis", + "style": { + "navigationBarTitleText": "用户分析" + } + }, + { + "path": "product-insights", + "style": { + "navigationBarTitleText": "商品洞察" + } + }, + { + "path": "delivery-analysis", + "style": { + "navigationBarTitleText": "配送效率分析" + } + }, + { + "path": "coupon-analysis", + "style": { + "navigationBarTitleText": "优惠券效果分析" + } + }, + { + "path": "market-trends", + "style": { + "navigationBarTitleText": "市场趋势" + } + }, + { + "path": "custom-report", + "style": { + "navigationBarTitleText": "自定义报表" + } + }, + { + "path": "report-detail", + "style": { + "navigationBarTitleText": "报表详情", + "enablePullDownRefresh": false + } + }, + { + "path": "data-detail", + "style": { + "navigationBarTitleText": "数据分析详情", + "enablePullDownRefresh": false + } + }, + { + "path": "insight-detail", + "style": { + "navigationBarTitleText": "数据洞察详情", + "enablePullDownRefresh": false + } + } + ] + }, + { + "root": "pages/mall/admin/order", + "pages": [ + { + "path": "order-management/index", + "style": { + "navigationBarTitleText": "订单管理", + "navigationStyle": "custom" + } + }, + { + "path": "order-statistics/index", + "style": { + "navigationBarTitleText": "订单统计", + "navigationStyle": "custom" + } + }, + { + "path": "order-configuration/index", + "style": { + "navigationBarTitleText": "订单配置", + "navigationStyle": "custom" + } + }, + { + "path": "aftersales-order/index", + "style": { + "navigationBarTitleText": "售后订单", + "navigationStyle": "custom" + } + }, + { + "path": "write-off-records/index", + "style": { + "navigationBarTitleText": "核销记录", + "navigationStyle": "custom" + } + }, + { + "path": "cashier-order/index", + "style": { + "navigationBarTitleText": "收銀台订单", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/product", + "pages": [ + { + "path": "product-management/index", + "style": { + "navigationBarTitleText": "商品管理", + "navigationStyle": "custom" + } + }, + { + "path": "product-statistics/index", + "style": { + "navigationBarTitleText": "商品统计", + "navigationStyle": "custom" + } + }, + { + "path": "classification/index", + "style": { + "navigationBarTitleText": "商品分类", + "navigationStyle": "custom" + } + }, + { + "path": "reviews/index", + "style": { + "navigationBarTitleText": "商品评分", + "navigationStyle": "custom" + } + }, + { + "path": "specifications/index", + "style": { + "navigationBarTitleText": "商品规格", + "navigationStyle": "custom" + } + }, + { + "path": "parameters/index", + "style": { + "navigationBarTitleText": "商品参数", + "navigationStyle": "custom" + } + }, + { + "path": "labels/index", + "style": { + "navigationBarTitleText": "商品标签", + "navigationStyle": "custom" + } + }, + { + "path": "protection/index", + "style": { + "navigationBarTitleText": "商品保障", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/user", + "pages": [ + { + "path": "management/index", + "style": { + "navigationBarTitleText": "用户管理", + "navigationStyle": "custom" + } + }, + { + "path": "statistics/index", + "style": { + "navigationBarTitleText": "用户统计", + "navigationStyle": "custom" + } + }, + { + "path": "grouping/index", + "style": { + "navigationBarTitleText": "用户分组", + "navigationStyle": "custom" + } + }, + { + "path": "label/index", + "style": { + "navigationBarTitleText": "用户标签", + "navigationStyle": "custom" + } + }, + { + "path": "level/index", + "style": { + "navigationBarTitleText": "用户等级", + "navigationStyle": "custom" + } + }, + { + "path": "config/index", + "style": { + "navigationBarTitleText": "用户配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/subscription", + "pages": [ + { + "path": "plan-management", + "style": { + "navigationBarTitleText": "订阅方案管理" + } + }, + { + "path": "user-subscriptions", + "style": { + "navigationBarTitleText": "用户订阅管理" + } + } + ] + }, + { + "root": "pages/mall/admin/distribution", + "pages": [ + { + "path": "setting/index", + "style": { + "navigationBarTitleText": "分销设置", + "navigationStyle": "custom" + } + }, + { + "path": "distributor-management/index", + "style": { + "navigationBarTitleText": "分销员管理", + "navigationStyle": "custom" + } + }, + { + "path": "level/index", + "style": { + "navigationBarTitleText": "分销等级管理", + "navigationStyle": "custom" + } + }, + { + "path": "business-division/business-division-list/index", + "style": { + "navigationBarTitleText": "事业部列表", + "navigationStyle": "custom" + } + }, + { + "path": "business-division/agent-list/index", + "style": { + "navigationBarTitleText": "代理商列表", + "navigationStyle": "custom" + } + }, + { + "path": "business-division/agent-application/index", + "style": { + "navigationBarTitleText": "代理商申请", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/marketing", + "pages": [ + { + "path": "coupon/coupon-list/index", + "style": { + "navigationBarTitleText": "优惠券列表", + "navigationStyle": "custom" + } + }, + { + "path": "coupon/claim-record/index", + "style": { + "navigationBarTitleText": "用户领取记录", + "navigationStyle": "custom" + } + }, + { + "path": "points/statistics/index", + "style": { + "navigationBarTitleText": "积分统计", + "navigationStyle": "custom" + } + }, + { + "path": "points/products/index", + "style": { + "navigationBarTitleText": "积分商品", + "navigationStyle": "custom" + } + }, + { + "path": "points/orders/index", + "style": { + "navigationBarTitleText": "积分订单", + "navigationStyle": "custom" + } + }, + { + "path": "points/record/index", + "style": { + "navigationBarTitleText": "积分记录", + "navigationStyle": "custom" + } + }, + { + "path": "points/config/index", + "style": { + "navigationBarTitleText": "积分配置", + "navigationStyle": "custom" + } + }, + { + "path": "lottery/list/index", + "style": { + "navigationBarTitleText": "抽奖列表", + "navigationStyle": "custom" + } + }, + { + "path": "lottery/configuration/index", + "style": { + "navigationBarTitleText": "抽奖配置", + "navigationStyle": "custom" + } + }, + { + "path": "combination/products/index", + "style": { + "navigationBarTitleText": "拼团商品", + "navigationStyle": "custom" + } + }, + { + "path": "combination/list/index", + "style": { + "navigationBarTitleText": "拼团列表", + "navigationStyle": "custom" + } + }, + { + "path": "combination/index", + "style": { + "navigationBarTitleText": "拼团活动", + "navigationStyle": "custom" + } + }, + { + "path": "seckill/list/index", + "style": { + "navigationBarTitleText": "秒杀列表", + "navigationStyle": "custom" + } + }, + { + "path": "seckill/products/index", + "style": { + "navigationBarTitleText": "秒杀商品", + "navigationStyle": "custom" + } + }, + { + "path": "seckill/config/index", + "style": { + "navigationBarTitleText": "秒杀配置", + "navigationStyle": "custom" + } + }, + { + "path": "member/type/index", + "style": { + "navigationBarTitleText": "会员类型", + "navigationStyle": "custom" + } + }, + { + "path": "member/right/index", + "style": { + "navigationBarTitleText": "会员权益", + "navigationStyle": "custom" + } + }, + { + "path": "member/kami-membership/index", + "style": { + "navigationBarTitleText": "卡密会员", + "navigationStyle": "custom" + } + }, + { + "path": "member/record/index", + "style": { + "navigationBarTitleText": "会员记录", + "navigationStyle": "custom" + } + }, + { + "path": "member/config/index", + "style": { + "navigationBarTitleText": "会员配置", + "navigationStyle": "custom" + } + }, + { + "path": "live/live-management/index", + "style": { + "navigationBarTitleText": "直播間管理", + "navigationStyle": "custom" + } + }, + { + "path": "live/products-management/index", + "style": { + "navigationBarTitleText": "直播商品管理", + "navigationStyle": "custom" + } + }, + { + "path": "live/streamer-management/index", + "style": { + "navigationBarTitleText": "主播管理", + "navigationStyle": "custom" + } + }, + { + "path": "live/index", + "style": { + "navigationBarTitleText": "直播首页", + "navigationStyle": "custom" + } + }, + { + "path": "recharge/amount-setting/index", + "style": { + "navigationBarTitleText": "充値额度设置", + "navigationStyle": "custom" + } + }, + { + "path": "recharge/config/index", + "style": { + "navigationBarTitleText": "充値配置", + "navigationStyle": "custom" + } + }, + { + "path": "checkin/config/index", + "style": { + "navigationBarTitleText": "签到配置", + "navigationStyle": "custom" + } + }, + { + "path": "checkin/reward/index", + "style": { + "navigationBarTitleText": "签到奖励", + "navigationStyle": "custom" + } + }, + { + "path": "bargain/list/index", + "style": { + "navigationBarTitleText": "砍价列表", + "navigationStyle": "custom" + } + }, + { + "path": "bargain/products/index", + "style": { + "navigationBarTitleText": "砍价商品", + "navigationStyle": "custom" + } + }, + { + "path": "newcomer/index", + "style": { + "navigationBarTitleText": "新人礼包", + "navigationStyle": "custom" + } + }, + { + "path": "marketing-statistics/index", + "style": { + "navigationBarTitleText": "营销统计", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/maintain", + "pages": [ + { + "path": "dev-tools/database/index", + "style": { + "navigationBarTitleText": "数据库管理", + "navigationStyle": "custom" + } + }, + { + "path": "dev-tools/file/index", + "style": { + "navigationBarTitleText": "文件管理", + "navigationStyle": "custom" + } + }, + { + "path": "dev-tools/interface/index", + "style": { + "navigationBarTitleText": "接口管理", + "navigationStyle": "custom" + } + }, + { + "path": "dev-tools/data-dictionary/index", + "style": { + "navigationBarTitleText": "数据字典", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/category/index", + "style": { + "navigationBarTitleText": "配置分类", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/combination-data/index", + "style": { + "navigationBarTitleText": "组合数据", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/cron-job/index", + "style": { + "navigationBarTitleText": "定时任务", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/permission/index", + "style": { + "navigationBarTitleText": "权限配置", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/module-config/index", + "style": { + "navigationBarTitleText": "模块配置", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/custom-event/index", + "style": { + "navigationBarTitleText": "自定义事件", + "navigationStyle": "custom" + } + }, + { + "path": "security/refresh-cache/index", + "style": { + "navigationBarTitleText": "刷新缓存", + "navigationStyle": "custom" + } + }, + { + "path": "security/system-log/index", + "style": { + "navigationBarTitleText": "系统日志", + "navigationStyle": "custom" + } + }, + { + "path": "security/online-upgrade/index", + "style": { + "navigationBarTitleText": "在线升级", + "navigationStyle": "custom" + } + }, + { + "path": "data/logistics/index", + "style": { + "navigationBarTitleText": "物流数据", + "navigationStyle": "custom" + } + }, + { + "path": "data/city-data/index", + "style": { + "navigationBarTitleText": "城市数据", + "navigationStyle": "custom" + } + }, + { + "path": "data/clear/index", + "style": { + "navigationBarTitleText": "清除数据", + "navigationStyle": "custom" + } + }, + { + "path": "api/account/index", + "style": { + "navigationBarTitleText": "API账号", + "navigationStyle": "custom" + } + }, + { + "path": "lang/list/index", + "style": { + "navigationBarTitleText": "语言列表", + "navigationStyle": "custom" + } + }, + { + "path": "lang/detail/index", + "style": { + "navigationBarTitleText": "语言详情", + "navigationStyle": "custom" + } + }, + { + "path": "lang/region/index", + "style": { + "navigationBarTitleText": "语言地区", + "navigationStyle": "custom" + } + }, + { + "path": "lang/config/index", + "style": { + "navigationBarTitleText": "语言配置", + "navigationStyle": "custom" + } + }, + { + "path": "sys/info/index", + "style": { + "navigationBarTitleText": "系统信息", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/setting", + "pages": [ + { + "path": "message/index", + "style": { + "navigationBarTitleText": "消息管理", + "navigationStyle": "custom" + } + }, + { + "path": "agreement/index", + "style": { + "navigationBarTitleText": "协议设置", + "navigationStyle": "custom" + } + }, + { + "path": "receipt/index", + "style": { + "navigationBarTitleText": "小票配置", + "navigationStyle": "custom" + } + }, + { + "path": "auth/admin-management/index", + "style": { + "navigationBarTitleText": "管理员管理", + "navigationStyle": "custom" + } + }, + { + "path": "auth/role-management/index", + "style": { + "navigationBarTitleText": "角色管理", + "navigationStyle": "custom" + } + }, + { + "path": "auth/menu-management/index", + "style": { + "navigationBarTitleText": "菜单管理", + "navigationStyle": "custom" + } + }, + { + "path": "delivery/management/index", + "style": { + "navigationBarTitleText": "配送员管理", + "navigationStyle": "custom" + } + }, + { + "path": "delivery/setting/station/index", + "style": { + "navigationBarTitleText": "提货点", + "navigationStyle": "custom" + } + }, + { + "path": "delivery/setting/verifier/index", + "style": { + "navigationBarTitleText": "核销员", + "navigationStyle": "custom" + } + }, + { + "path": "delivery/setting/template/index", + "style": { + "navigationBarTitleText": "运费模板", + "navigationStyle": "custom" + } + }, + { + "path": "interface/onepass/index", + "style": { + "navigationBarTitleText": "一号通账户", + "navigationStyle": "custom" + } + }, + { + "path": "interface/onepass/config/index", + "style": { + "navigationBarTitleText": "一号通配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/storage/index", + "style": { + "navigationBarTitleText": "系统存储配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/collect/index", + "style": { + "navigationBarTitleText": "商品采集配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/logistics/index", + "style": { + "navigationBarTitleText": "物流查询配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/e-sheet/index", + "style": { + "navigationBarTitleText": "电子面单配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/sms/index", + "style": { + "navigationBarTitleText": "短信功能配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/payment/index", + "style": { + "navigationBarTitleText": "商城支付配置", + "navigationStyle": "custom" + } + }, + { + "path": "system/index", + "style": { + "navigationBarTitleText": "系统配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/app", + "pages": [ + { + "path": "wechat/menu/index", + "style": { + "navigationBarTitleText": "微信菜单", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/management/index", + "style": { + "navigationBarTitleText": "图文管理", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/reply/follow/index", + "style": { + "navigationBarTitleText": "微信关注回复", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/reply/keyword/index", + "style": { + "navigationBarTitleText": "关键字回复", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/reply/invalid/index", + "style": { + "navigationBarTitleText": "无效关键词回复", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/config/index", + "style": { + "navigationBarTitleText": "公众号配置", + "navigationStyle": "custom" + } + }, + { + "path": "routine/download/index", + "style": { + "navigationBarTitleText": "小程序下载", + "navigationStyle": "custom" + } + }, + { + "path": "routine/config/index", + "style": { + "navigationBarTitleText": "小程序配置", + "navigationStyle": "custom" + } + }, + { + "path": "mobile/config/index", + "style": { + "navigationBarTitleText": "APP配置", + "navigationStyle": "custom" + } + }, + { + "path": "mobile/version/index", + "style": { + "navigationBarTitleText": "版本管理", + "navigationStyle": "custom" + } + }, + { + "path": "pc/design/index", + "style": { + "navigationBarTitleText": "PC端装修", + "navigationStyle": "custom" + } + }, + { + "path": "pc/config/index", + "style": { + "navigationBarTitleText": "PC端配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/kefu", + "pages": [ + { + "path": "list/index", + "style": { + "navigationBarTitleText": "客服列表", + "navigationStyle": "custom" + } + }, + { + "path": "rhetoric/index", + "style": { + "navigationBarTitleText": "话术管理", + "navigationStyle": "custom" + } + }, + { + "path": "user-message/index", + "style": { + "navigationBarTitleText": "用户消息", + "navigationStyle": "custom" + } + }, + { + "path": "auto-reply/index", + "style": { + "navigationBarTitleText": "自动回复", + "navigationStyle": "custom" + } + }, + { + "path": "config/index", + "style": { + "navigationBarTitleText": "客服配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/decoration", + "pages": [ + { + "path": "homepage-decoration/index", + "style": { + "navigationBarTitleText": "首页装修", + "navigationStyle": "custom" + } + }, + { + "path": "product-category/index", + "style": { + "navigationBarTitleText": "商品分类装修", + "navigationStyle": "custom" + } + }, + { + "path": "personal-center/index", + "style": { + "navigationBarTitleText": "个人中心装修", + "navigationStyle": "custom" + } + }, + { + "path": "data-config/index", + "style": { + "navigationBarTitleText": "数据配置", + "navigationStyle": "custom" + } + }, + { + "path": "theme-style/index", + "style": { + "navigationBarTitleText": "主题风格", + "navigationStyle": "custom" + } + }, + { + "path": "material-management/index", + "style": { + "navigationBarTitleText": "素材管理", + "navigationStyle": "custom" + } + }, + { + "path": "link-management/index", + "style": { + "navigationBarTitleText": "链接管理", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/finance", + "pages": [ + { + "path": "transaction-statistics/index", + "style": { + "navigationBarTitleText": "交易统计", + "navigationStyle": "custom" + } + }, + { + "path": "finance-operations/request/index", + "style": { + "navigationBarTitleText": "提现申请", + "navigationStyle": "custom" + } + }, + { + "path": "finance-operations/management/index", + "style": { + "navigationBarTitleText": "发票管理", + "navigationStyle": "custom" + } + }, + { + "path": "finance-record/recharge-record/index", + "style": { + "navigationBarTitleText": "充值记录", + "navigationStyle": "custom" + } + }, + { + "path": "finance-record/flow/index", + "style": { + "navigationBarTitleText": "资金流水", + "navigationStyle": "custom" + } + }, + { + "path": "finance-record/billing-record/index", + "style": { + "navigationBarTitleText": "账单记录", + "navigationStyle": "custom" + } + }, + { + "path": "commission-record/index", + "style": { + "navigationBarTitleText": "佣金记录", + "navigationStyle": "custom" + } + }, + { + "path": "balance-record/statistics/index", + "style": { + "navigationBarTitleText": "余额统计", + "navigationStyle": "custom" + } + }, + { + "path": "balance-record/record/index", + "style": { + "navigationBarTitleText": "余额记录", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/cms", + "pages": [ + { + "path": "article/index", + "style": { + "navigationBarTitleText": "文章管理", + "navigationStyle": "custom" + } + }, + { + "path": "category/index", + "style": { + "navigationBarTitleText": "文章分类", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/shop", + "pages": [ + { + "path": "shop-manage", + "style": { + "navigationBarTitleText": "店铺列表", + "navigationStyle": "custom" + } + }, + { + "path": "manage", + "style": { + "navigationBarTitleText": "店铺管理", + "navigationStyle": "custom" + } + }, + { + "path": "create", + "style": { + "navigationBarTitleText": "创建店铺", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/service", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "客服工作台", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "客服个人中心" + } + }, + { + "path": "ticket-detail", + "style": { + "navigationBarTitleText": "工单详情", + "enablePullDownRefresh": false + } + } + ] + } + ], + "tabBar": { + "color": "#999999", + "selectedColor": "#ff5000", + "backgroundColor": "#ffffff", + "borderStyle": "black", + "list": [ + { + "pagePath": "pages/main/index", + "text": "首页", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/home-active.png" + }, + { + "pagePath": "pages/main/category", + "text": "分类", + "iconPath": "static/tabbar/category.png", + "selectedIconPath": "static/tabbar/category.png" + }, + { + "pagePath": "pages/main/messages", + "text": "消息", + "iconPath": "static/tabbar/message.png", + "selectedIconPath": "static/tabbar/message.png" + }, + { + "pagePath": "pages/main/cart", + "text": "购物车", + "iconPath": "static/tabbar/cart.png", + "selectedIconPath": "static/tabbar/cart.png" + }, + { + "pagePath": "pages/main/profile", + "text": "我的", + "iconPath": "static/tabbar/user.png", + "selectedIconPath": "static/tabbar/user.png" + } + ] + }, + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "mall", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#F8F8F8" + } +} diff --git a/pages.merchant.json b/pages.merchant.json new file mode 100644 index 00000000..fb4490e0 --- /dev/null +++ b/pages.merchant.json @@ -0,0 +1,173 @@ +{ + "pages": [ + { + "path": "pages/user/boot", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/user/login", + "style": { + "navigationBarTitleText": "用户登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/user/register", + "style": { + "navigationBarTitleText": "注册" + } + }, + { + "path": "pages/user/forgot-password", + "style": { + "navigationBarTitleText": "忘记密码" + } + }, + { + "path": "pages/user/terms", + "style": { + "navigationBarTitleText": "用户协议与隐私政策" + } + }, + { + "path": "pages/user/change-password", + "style": { + "navigationBarTitleText": "修改密码" + } + }, + { + "path": "pages/mall/merchant/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/messages", + "style": { + "navigationBarTitleText": "消息", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/orders", + "style": { + "navigationBarTitleText": "订单", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/growth", + "style": { + "navigationBarTitleText": "成长", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/profile", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/order-detail", + "style": { + "navigationBarTitleText": "订单详情", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/products", + "style": { + "navigationBarTitleText": "商品管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/product-detail", + "style": { + "navigationBarTitleText": "商品详情", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/mall/merchant/product-edit", + "style": { + "navigationBarTitleText": "编辑商品", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/reviews", + "style": { + "navigationBarTitleText": "评价管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/inventory", + "style": { + "navigationBarTitleText": "库存管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/shop-edit", + "style": { + "navigationBarTitleText": "店铺设置", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/promotions", + "style": { + "navigationBarTitleText": "营销活动", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/statistics", + "style": { + "navigationBarTitleText": "数据统计", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/finance", + "style": { + "navigationBarTitleText": "财务结算", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/members", + "style": { + "navigationBarTitleText": "会员管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/exclusive-discounts", + "style": { + "navigationBarTitleText": "专属折扣", + "navigationStyle": "custom" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "mall", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#F8F8F8" + } +} diff --git a/pages/mall/admin/错误信息.txt b/pages/mall/admin/错误信息.txt index abbfdce3..50241493 100644 --- a/pages/mall/admin/错误信息.txt +++ b/pages/mall/admin/错误信息.txt @@ -1,300 +1,32 @@ -编译 pages/mall/merchant/exclusive-discounts.wxss -编译 pages/mall/merchant/exclusive-discounts.wxss -编译 pages/mall/merchant/profile.wxss -编译 pages/mall/merchant/profile.wxss -getDevCodeByFileList-miniProgram -编译 pages/mall/merchant/index.js -编译 pages/mall/merchant/index.js -getDevCodeByFileList-miniProgram -编译 pages/mall/merchant/orders.js -编译 pages/mall/merchant/orders.js -编译 app.json -编译 ext.json -编译 246 个页面json文件 -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -getDevCodeByFileList-miniProgram -Cannot read properties of undefined (reading 'functionalPages') -Compile app.json -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Cannot read properties of undefined (reading 'functionalPages') -Compile ext.json -Compile json files of 246 pages -analyzing codes... -ignoring files: project.private.config.json,uni_modules/charts/EChartsView2.js,layouts/admin/components/PlaceholderPage.wxml,layouts/admin/pages/HomeIndex.wxml,components/analytics/AnalyticsAreaChart.js,pages/mall/admin/homePage/components/KpiMiniCard.js,pages/mall/admin/decoration/components/types.js,uni_modules/ak-req/index.js,pages/mall/admin/homePage/components/KpiMiniCard.wxss,components/analytics/AnalyticsAreaChart.wxss,components/analytics/AnalyticsAreaChart.json,pages/mall/admin/homePage/components/KpiMiniCard.json,pages/mall/admin/product/product-management/components/edit.wxml,pages/mall/admin/product/product-management/components/member-price.wxml,pages/mall/admin/homePage/components/KpiMiniCard.wxml,components/analytics/AnalyticsAreaChart.wxml -analyzing codes success -Ignored by code analyzer: project.private.config.json,uni_modules/charts/EChartsView2.js,layouts/admin/components/PlaceholderPage.wxml,layouts/admin/pages/HomeIndex.wxml,components/analytics/AnalyticsAreaChart.js,pages/mall/admin/homePage/components/KpiMiniCard.js,pages/mall/admin/decoration/components/types.js,uni_modules/ak-req/index.js,pages/mall/admin/homePage/components/KpiMiniCard.wxss,components/analytics/AnalyticsAreaChart.wxss,components/analytics/AnalyticsAreaChart.json,pages/mall/admin/homePage/components/KpiMiniCard.json,pages/mall/admin/product/product-management/components/edit.wxml,pages/mall/admin/product/product-management/components/member-price.wxml,pages/mall/admin/homePage/components/KpiMiniCard.wxml,components/analytics/AnalyticsAreaChart.wxml -analyzing codes... -ignoring files: project.private.config.json,uni_modules/charts/EChartsView2.js,layouts/admin/components/PlaceholderPage.wxml,layouts/admin/pages/HomeIndex.wxml,components/analytics/AnalyticsAreaChart.js,pages/mall/admin/homePage/components/KpiMiniCard.js,pages/mall/admin/decoration/components/types.js,uni_modules/ak-req/index.js,pages/mall/admin/homePage/components/KpiMiniCard.wxss,components/analytics/AnalyticsAreaChart.wxss,components/analytics/AnalyticsAreaChart.json,pages/mall/admin/homePage/components/KpiMiniCard.json,pages/mall/admin/product/product-management/components/edit.wxml,pages/mall/admin/product/product-management/components/member-price.wxml,pages/mall/admin/homePage/components/KpiMiniCard.wxml,components/analytics/AnalyticsAreaChart.wxml -analyzing codes success -analyzing codes... -ignoring files: project.private.config.json,uni_modules/charts/EChartsView2.js,layouts/admin/components/PlaceholderPage.wxml,layouts/admin/pages/HomeIndex.wxml,components/analytics/AnalyticsAreaChart.js,pages/mall/admin/homePage/components/KpiMiniCard.js,pages/mall/admin/decoration/components/types.js,uni_modules/ak-req/index.js,pages/mall/admin/homePage/components/KpiMiniCard.wxss,components/analytics/AnalyticsAreaChart.wxss,components/analytics/AnalyticsAreaChart.json,pages/mall/admin/homePage/components/KpiMiniCard.json,pages/mall/admin/product/product-management/components/edit.wxml,pages/mall/admin/product/product-management/components/member-price.wxml,pages/mall/admin/homePage/components/KpiMiniCard.wxml,components/analytics/AnalyticsAreaChart.wxml -analyzing codes success -Ignored by code analyzer: project.private.config.json,uni_modules/charts/EChartsView2.js,layouts/admin/components/PlaceholderPage.wxml,layouts/admin/pages/HomeIndex.wxml,components/analytics/AnalyticsAreaChart.js,pages/mall/admin/homePage/components/KpiMiniCard.js,uni_modules/ak-req/index.js,pages/mall/admin/homePage/components/KpiMiniCard.wxss,components/analytics/AnalyticsAreaChart.wxss,components/analytics/AnalyticsAreaChart.json,pages/mall/admin/homePage/components/KpiMiniCard.json,pages/mall/admin/homePage/components/KpiMiniCard.wxml,components/analytics/AnalyticsAreaChart.wxml -getDevCodeByFileList-miniProgram -Compiling layouts/admin/AdminLayout.wxml -Compiling layouts/admin/AdminLayout.wxml -Compiling layouts/admin/components/AdminAside.wxml -Compiling layouts/admin/components/AdminAside.wxml -Compiling layouts/admin/components/AdminFooter.wxml -Compiling layouts/admin/components/AdminFooter.wxml -Compiling layouts/admin/components/AdminHeader.wxml -Compiling layouts/admin/components/AdminHeader.wxml -Compiling layouts/admin/components/AdminPageLoading.wxml -Compiling layouts/admin/components/AdminPageLoading.wxml -Compiling layouts/admin/components/AdminSubSider.wxml -Compiling layouts/admin/components/AdminSubSider.wxml -Compiling layouts/admin/components/AdminTagsView.wxml -Compiling layouts/admin/components/AdminTagsView.wxml -Compiling common/uniView.wxs -Compiling common/uniView.wxs -Compiling pages/user/boot.wxml -Compiling pages/user/boot.wxml -Compiling pages/user/login.wxml -Compiling pages/user/login.wxml -Compiling pages/mall/admin/homePage/index.wxml -Compiling pages/mall/admin/homePage/index.wxml -Compiling pages/user/terms.wxml -Compiling pages/user/terms.wxml -Compiling pages/user/register.wxml -Compiling pages/user/register.wxml -Compiling pages/user/forgot-password.wxml -Compiling pages/user/forgot-password.wxml -Compiling pages/mall/admin/userCenter/index.wxml -Compiling pages/mall/admin/userCenter/index.wxml -Compiling pages/user/center.wxml -Compiling pages/user/center.wxml -Compiling pages/user/profile.wxml -Compiling pages/user/profile.wxml -Compiling pages/user/change-password.wxml -Compiling pages/user/change-password.wxml -Compiling pages/user/bind-phone.wxml -Compiling pages/user/bind-phone.wxml -Compiling pages/main/index.wxml -Compiling pages/main/index.wxml -Compiling pages/user/bind-email.wxml -Compiling pages/user/bind-email.wxml -Compiling pages/main/messages.wxml -Compiling pages/main/messages.wxml -Compiling pages/main/category.wxml -Compiling pages/main/category.wxml -Compiling pages/main/cart.wxml -Compiling pages/main/cart.wxml -Compiling pages/main/profile.wxml -Compiling pages/main/profile.wxml -Compiling pages/mall/merchant/index.wxml -Compiling pages/mall/merchant/index.wxml -Compiling pages/mall/merchant/orders.wxml -Compiling pages/mall/merchant/orders.wxml -Compiling pages/mall/merchant/order-detail.wxml -Compiling pages/mall/merchant/order-detail.wxml -Compiling pages/mall/merchant/products.wxml -Compiling pages/mall/merchant/products.wxml -Compiling pages/mall/merchant/product-edit.wxml -Compiling pages/mall/merchant/product-edit.wxml -Compiling pages/mall/merchant/product-detail.wxml -Compiling pages/mall/merchant/product-detail.wxml -Compiling pages/mall/merchant/inventory.wxml -Compiling pages/mall/merchant/inventory.wxml -Compiling pages/mall/merchant/reviews.wxml -Compiling pages/mall/merchant/reviews.wxml -Compiling pages/mall/merchant/messages.wxml -Compiling pages/mall/merchant/messages.wxml -Compiling pages/mall/merchant/shop-edit.wxml -Compiling pages/mall/merchant/shop-edit.wxml -Compiling pages/mall/merchant/promotions.wxml -Compiling pages/mall/merchant/promotions.wxml -Compiling pages/mall/merchant/statistics.wxml -Compiling pages/mall/merchant/statistics.wxml -Compiling pages/mall/merchant/finance.wxml -Compiling pages/mall/merchant/finance.wxml -Compiling pages/mall/merchant/members.wxml -Compiling pages/mall/merchant/members.wxml -Compiling pages/mall/merchant/chat.wxml -Compiling pages/mall/merchant/chat.wxml -Compiling pages/mall/merchant/exclusive-discounts.wxml -Compiling pages/mall/merchant/exclusive-discounts.wxml -Compiling pages/mall/merchant/profile.wxml -Compiling pages/mall/merchant/profile.wxml -Compiling components/CommonPagination/CommonPagination.wxml -Compiling components/CommonPagination/CommonPagination.wxml -Compiling components/StatusSwitch.wxml -Compiling components/StatusSwitch.wxml -Compiling uni_modules/charts/EChartsView.wxml -Compiling uni_modules/charts/EChartsView.wxml -Compiling components/analytics/AnalyticsSidebarMenu.wxml -Compiling components/analytics/AnalyticsSidebarMenu.wxml -Compiling components/analytics/AnalyticsTopBar.wxml -Compiling components/analytics/AnalyticsTopBar.wxml -Compiling components/analytics/AnalyticsDateRangePicker.wxml -Compiling components/analytics/AnalyticsDateRangePicker.wxml -Compiling components/analytics/AnalyticsMultiLineChart.wxml -Compiling components/analytics/AnalyticsMultiLineChart.wxml -Compiling components/analytics/AnalyticsUserGenderSection.wxml -Compiling components/analytics/AnalyticsUserGenderSection.wxml -Compiling components/analytics/AnalyticsUserMapTable.wxml -Compiling components/analytics/AnalyticsUserMapTable.wxml -Compiling components/analytics/AnalyticsPieChart.wxml -Compiling components/analytics/AnalyticsPieChart.wxml -Compiling components/analytics/AnalyticsComboChart.wxml -Compiling components/analytics/AnalyticsComboChart.wxml -Compiling components/analytics/AnalyticsRegionMap.wxml -Compiling components/analytics/AnalyticsRegionMap.wxml -getDevCodeByFileList-miniProgram -Compiling layouts/admin/AdminLayout.wxss -Compiling layouts/admin/AdminLayout.wxss -Compiling layouts/admin/components/AdminAside.wxss -Compiling layouts/admin/components/AdminAside.wxss -Compiling layouts/admin/components/AdminFooter.wxss -Compiling layouts/admin/components/AdminFooter.wxss -Compiling layouts/admin/components/AdminHeader.wxss -Compiling layouts/admin/components/AdminHeader.wxss -Compiling layouts/admin/components/AdminPageLoading.wxss -Compiling layouts/admin/components/AdminPageLoading.wxss -Compiling layouts/admin/components/AdminSubSider.wxss -Compiling layouts/admin/components/AdminSubSider.wxss -Compiling layouts/admin/components/AdminTagsView.wxss -Compiling layouts/admin/components/AdminTagsView.wxss -Compiling pages/mall/merchant/index.wxss -Compiling pages/mall/merchant/index.wxss -Compiling pages/mall/merchant/orders.wxss -Compiling pages/mall/merchant/orders.wxss -Compiling pages/mall/merchant/order-detail.wxss -Compiling pages/mall/merchant/order-detail.wxss -Compiling pages/mall/merchant/products.wxss -Compiling pages/mall/merchant/products.wxss -Compiling pages/mall/merchant/product-detail.wxss -Compiling pages/mall/merchant/product-detail.wxss -Compiling pages/mall/merchant/product-edit.wxss -Compiling pages/mall/merchant/product-edit.wxss -Compiling pages/mall/merchant/messages.wxss -Compiling pages/mall/merchant/messages.wxss -Compiling pages/mall/merchant/reviews.wxss -Compiling pages/mall/merchant/reviews.wxss -Compiling pages/mall/merchant/inventory.wxss -Compiling pages/mall/merchant/inventory.wxss -Compiling pages/mall/merchant/shop-edit.wxss -Compiling pages/mall/merchant/shop-edit.wxss -Compiling pages/mall/merchant/promotions.wxss -Compiling pages/mall/merchant/promotions.wxss -Compiling pages/mall/merchant/finance.wxss -Compiling pages/mall/merchant/finance.wxss -Compiling pages/mall/merchant/statistics.wxss -Compiling pages/mall/merchant/statistics.wxss -Compiling pages/mall/merchant/members.wxss -Compiling pages/mall/merchant/members.wxss -Compiling pages/mall/merchant/chat.wxss -Compiling pages/mall/merchant/chat.wxss -Compiling pages/mall/merchant/exclusive-discounts.wxss -Compiling pages/mall/merchant/exclusive-discounts.wxss -Compiling pages/mall/merchant/profile.wxss -Compiling pages/mall/merchant/profile.wxss -Compiling components/analytics/AnalyticsComboChart.wxss -Compiling components/analytics/AnalyticsComboChart.wxss -Compiling components/analytics/AnalyticsSidebarMenu.wxss -Compiling components/analytics/AnalyticsSidebarMenu.wxss -Compiling components/analytics/AnalyticsDateRangePicker.wxss -Compiling components/analytics/AnalyticsDateRangePicker.wxss -Compiling components/analytics/AnalyticsTopBar.wxss -Compiling components/analytics/AnalyticsTopBar.wxss -Compiling uni_modules/charts/EChartsView.wxss -Compiling uni_modules/charts/EChartsView.wxss -Compiling components/analytics/AnalyticsRegionMap.wxss -Compiling components/analytics/AnalyticsRegionMap.wxss -Compiling components/CommonPagination/CommonPagination.wxss -Compiling components/CommonPagination/CommonPagination.wxss -Compiling components/StatusSwitch.wxss -Compiling components/StatusSwitch.wxss -Compiling components/analytics/AnalyticsMultiLineChart.wxss -Compiling components/analytics/AnalyticsMultiLineChart.wxss -Compiling components/analytics/AnalyticsUserMapTable.wxss -Compiling components/analytics/AnalyticsUserMapTable.wxss -Compiling components/analytics/AnalyticsUserGenderSection.wxss -Compiling components/analytics/AnalyticsUserGenderSection.wxss -Compiling components/analytics/AnalyticsPieChart.wxss -Compiling components/analytics/AnalyticsPieChart.wxss -Compiling uvue.wxss -Compiling uvue.wxss -Compiling app.wxss -Compiling app.wxss -Compiling pages/user/boot.wxss -Compiling pages/user/boot.wxss -Compiling pages/user/login.wxss -Compiling pages/user/login.wxss -Compiling pages/mall/admin/homePage/index.wxss -Compiling pages/mall/admin/homePage/index.wxss -Compiling pages/user/register.wxss -Compiling pages/user/register.wxss -Compiling pages/mall/admin/userCenter/index.wxss -Compiling pages/mall/admin/userCenter/index.wxss -Compiling pages/user/forgot-password.wxss -Compiling pages/user/forgot-password.wxss -Compiling pages/user/terms.wxss -Compiling pages/user/terms.wxss -Compiling pages/user/center.wxss -Compiling pages/user/center.wxss -Compiling pages/user/profile.wxss -Compiling pages/user/profile.wxss -Compiling pages/user/change-password.wxss -Compiling pages/user/change-password.wxss -Compiling pages/user/bind-phone.wxss -Compiling pages/user/bind-phone.wxss -Compiling pages/main/index.wxss -Compiling pages/main/index.wxss -Compiling pages/user/bind-email.wxss -Compiling pages/user/bind-email.wxss -Compiling pages/main/category.wxss -Compiling pages/main/category.wxss -Compiling pages/main/messages.wxss -Compiling pages/main/messages.wxss -Compiling pages/main/cart.wxss -Compiling pages/main/cart.wxss -Compiling pages/main/profile.wxss -Compiling pages/main/profile.wxss -getDevCodeByFileList-miniProgram -Compiling app.js -Compiling app.js -getDevCodeByFileList-miniProgram -Compiling pages/mall/merchant/orders.js -Compiling pages/mall/merchant/orders.js -getDevCodeByFileList-miniProgram -Compiling pages/mall/merchant/inventory.js -Compiling pages/mall/merchant/inventory.js -getDevCodeByFileList-miniProgram -Compiling pages/mall/merchant/promotions.js -Compiling pages/mall/merchant/promotions.js -getDevCodeByFileList-miniProgram -Compiling pages/mall/merchant/products.js -Compiling pages/mall/merchant/products.js -getDevCodeByFileList-miniProgram -Compile app.json -app.json: app.json is not found in the project root directory -app.json: app.json is not found in the project root directory -Compile app.json -app.json: ["pages"][17]: "pages/mall/merchant/index" Should not exist in ["subPackages"][17] ["pages"][18]: "pages/mall/merchant/messages" Should not exist in ["subPackages"][17] ["pages"][19]: "pages/mall/merchant/orders" Should not exist in ["subPackages"][17] ["pages"][20]: "pages/mall/merchant/growth" Should not exist in ["subPackages"][17] ["pages"][21]: "pages/mall/merchant/profile" Should not exist in ["subPackages"][17] -Compile app.json -app.json: ["pages"][17]: "pages/mall/merchant/index" Should not exist in ["subPackages"][17] ["pages"][18]: "pages/mall/merchant/messages" Should not exist in ["subPackages"][17] ["pages"][19]: "pages/mall/merchant/orders" Should not exist in ["subPackages"][17] ["pages"][20]: "pages/mall/merchant/growth" Should not exist in ["subPackages"][17] ["pages"][21]: "pages/mall/merchant/profile" Should not exist in ["subPackages"][17] \ No newline at end of file +12:17:17.493 开始差量编译... +12:17:40.769 ​../../../../骅锋/mall/pages/mall/merchant/chat.uvue?vue&type=script&lang.uts (3:15): "AkSupaRealtimeChannel" is not exported by "../../../../骅锋/mall/components/supadb/aksupa.uts", imported by "../../../../骅锋/mall/pages/mall/merchant/chat.uvue?vue&type=script&lang.uts".​ +12:17:40.787 ​../../../../骅锋/mall/pages/mall/consumer/chat.uvue?vue&type=script&setup=true&lang.uts (8:14): "AkSupaRealtimeChannel" is not exported by "../../../../骅锋/mall/components/supadb/aksupa.uts", imported by "../../../../骅锋/mall/pages/mall/consumer/chat.uvue?vue&type=script&setup=true&lang.uts".​ +12:18:07.237 +12:18:07.237 编译器内存溢出,请参考:https://uniapp.dcloud.net.cn/tutorial/run/OOM.html +12:18:07.237 +12:18:07.237 <--- Last few GCs ---> +12:18:07.237 [52392:000000000406C4F0] 318731 ms: Mark-sweep 3001.0 (3118.8) -> 2981.7 (3119.0) MB, 792.1 / 0.0 ms (average mu = 0.129, current mu = 0.068) task; scavenge might not succeed +12:18:07.237 [52392:000000000406C4F0] 320456 ms: Mark-sweep 3005.2 (3119.6) -> 2981.1 (3120.3) MB, 1666.9 / 0.0 ms (average mu = 0.073, current mu = 0.034) task; scavenge might not succeed +12:18:07.237 <--- JS stacktrace ---> +12:18:07.237 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory +12:18:07.354 1: 00007FF6CDCD5AFF node_api_throw_syntax_error+174175 +12:18:07.354 2: 00007FF6CDC58F26 v8::internal::wasm::WasmCode::safepoint_table_offset+59926 +12:18:07.354 3: 00007FF6CDC5ABC0 v8::internal::wasm::WasmCode::safepoint_table_offset+67248 +12:18:07.354 4: 00007FF6CE706224 v8::Isolate::ReportExternalAllocationLimitReached+116 +12:18:07.354 5: 00007FF6CE6F15B2 v8::Isolate::Exit+674 +12:18:07.354 6: 00007FF6CE57327C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124 +12:18:07.354 7: 00007FF6CE57049B v8::internal::Heap::CollectGarbage+3963 +12:18:07.354 8: 00007FF6CE517125 v8::internal::IndexGenerator::~IndexGenerator+22565 +12:18:07.354 9: 00007FF6CDBED953 ENGINE_get_load_privkey_function+4835 +12:18:07.354 10: 00007FF6CDBEC2F6 v8::CTypeInfoBuilder::Build+21526 +12:18:07.354 11: 00007FF6CDD31E4B uv_update_time+491 +12:18:07.354 12: 00007FF6CDD31992 uv_run+1266 +12:18:07.354 13: 00007FF6CDD04692 node::SpinEventLoop+322 +12:18:07.354 14: 00007FF6CDC112F8 ENGINE_get_load_privkey_function+150664 +12:18:07.354 15: 00007FF6CDC95A6E node::InitializeOncePerProcess+2862 +12:18:07.354 16: 00007FF6CDC97403 node::Start+835 +12:18:07.354 17: 00007FF6CDA9C12C AES_cbc_encrypt+145244 +12:18:07.354 18: 00007FF6CED25DE4 inflateValidate+19092 +12:18:07.354 19: 00007FFE7BD8E8D7 BaseThreadInitThunk+23 +12:18:07.354 20: 00007FFE7D74C48C RtlUserThreadStart+44 +12:18:07.601 已停止运行... \ No newline at end of file diff --git a/pages/mall/merchant/index.uvue b/pages/mall/merchant/index.uvue index 740b420f..58e0ff3e 100644 --- a/pages/mall/merchant/index.uvue +++ b/pages/mall/merchant/index.uvue @@ -41,7 +41,38 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -332,7 +363,8 @@ } as PendingCountsType, recentOrders: [] as OrderType[], unreadCount: 0, - refreshing: false + refreshing: false, + isPageReady: false } }, @@ -348,6 +380,32 @@ }, onShow() { + // 先从缓存恢复数据,消除白屏 + try { + const raw = uni.getStorageSync('merchant_idx_cache') + if (raw != null && raw !== '') { + const c = JSON.parse(raw as string) as UTSJSONObject + this.shopInfo.shop_name = c.getString('shop_name') ?? null + this.shopInfo.shop_logo = c.getString('shop_logo') ?? null + this.shopInfo.rating_avg = c.getNumber('rating_avg') ?? null + this.shopInfo.total_sales = c.getNumber('total_sales') ?? null + this.todayStats = { + orders: c.getNumber('c_orders'), + sales: c.getNumber('c_sales'), + visitors: c.getNumber('c_visitors'), + conversion: c.getNumber('c_conversion') + } + this.pendingCounts = { + pending_shipment: c.getNumber('c_pship') ?? 0, + refund_requests: c.getNumber('c_refund') ?? 0, + low_stock: c.getNumber('c_lstock') ?? 0, + pending_reviews: c.getNumber('c_reviews') ?? 0 + } + this.unreadCount = c.getNumber('c_unread') ?? 0 + this.isPageReady = true + } + } catch(e) {} + // 后台刷新数据 if (this.merchantId) { this.loadAllData() this.startRealtimeSubscription() @@ -424,6 +482,25 @@ await this.loadPendingCounts() await this.loadRecentOrders() await this.loadUnreadCount() + this.isPageReady = true + // 保存缓存 + try { + uni.setStorageSync('merchant_idx_cache', JSON.stringify({ + shop_name: this.shopInfo.shop_name ?? '', + shop_logo: this.shopInfo.shop_logo ?? '', + rating_avg: this.shopInfo.rating_avg ?? 5.0, + total_sales: this.shopInfo.total_sales ?? 0, + c_orders: this.todayStats.orders ?? 0, + c_sales: this.todayStats.sales ?? 0, + c_visitors: this.todayStats.visitors ?? 0, + c_conversion: this.todayStats.conversion ?? 0, + c_pship: this.pendingCounts.pending_shipment ?? 0, + c_refund: this.pendingCounts.refund_requests ?? 0, + c_lstock: this.pendingCounts.low_stock ?? 0, + c_reviews: this.pendingCounts.pending_reviews ?? 0, + c_unread: this.unreadCount + })) + } catch(e) {} }, formatNumber(value: number | null): string { @@ -900,6 +977,22 @@ .mp-tab-navbar { height: calc(88rpx + var(--status-bar-height)); padding-top: var(--status-bar-height); background-color: #ffffff; display: flex; flex-direction: row; align-items: center; justify-content: center; border-bottom-width: 1rpx; border-bottom-style: solid; border-bottom-color: #f0f0f0; } .mp-tab-title { font-size: 34rpx; font-weight: bold; color: #333333; } .safe-bottom { height: 160rpx; } + + /* ===== 骨架屏 ===== */ + @keyframes ske-pulse { 0% { opacity: 1; } 50% { opacity: 0.45; } 100% { opacity: 1; } } + .ske-body { padding: 24rpx; } + .ske-card-wrap { background: #fff; border-radius: 24rpx; padding: 28rpx; margin-bottom: 24rpx; } + .ske-bar { border-radius: 8rpx; background-color: #e8e8e8; animation: ske-pulse 1.4s ease-in-out infinite; } + .ske-icon-sq { width: 64rpx; height: 64rpx; border-radius: 16rpx; background-color: #e8e8e8; margin-bottom: 12rpx; animation: ske-pulse 1.4s ease-in-out infinite; } + .ske-grid-row { display: flex; flex-direction: row; flex-wrap: wrap; } + .ske-cell25 { width: 25%; display: flex; flex-direction: column; align-items: center; padding-top: 16rpx; padding-bottom: 16rpx; } + .ske-row { display: flex; flex-direction: row; } + .ske-order-row { display: flex; flex-direction: row; align-items: center; margin-bottom: 20rpx; } + .ske-order-img { width: 100rpx; height: 100rpx; border-radius: 12rpx; background-color: #e8e8e8; margin-right: 16rpx; flex-shrink: 0; animation: ske-pulse 1.4s ease-in-out infinite; } + .ske-order-info { flex: 1; } + .ske-w30 { width: 30%; } .ske-w40 { width: 40%; } .ske-w60 { width: 60%; } .ske-w70 { width: 70%; } + .ske-h20 { height: 20rpx; } .ske-h22 { height: 22rpx; } .ske-h26 { height: 26rpx; } .ske-h28 { height: 28rpx; } .ske-h32 { height: 32rpx; } + .ske-mt6 { margin-top: 6rpx; } .ske-mt8 { margin-top: 8rpx; } .ske-mb8 { margin-bottom: 8rpx; } .ske-mb16 { margin-bottom: 16rpx; } diff --git a/pages/mall/merchant/messages.uvue b/pages/mall/merchant/messages.uvue index 103487e1..85a93561 100644 --- a/pages/mall/merchant/messages.uvue +++ b/pages/mall/merchant/messages.uvue @@ -13,9 +13,17 @@ - - - 加载中... + + + + + + + + + + + @@ -87,7 +95,8 @@ conversations: [] as ConversationType[], loading: false, refreshing: false, - merchantId: '' + merchantId: '', + isPageReady: false } }, @@ -96,6 +105,17 @@ }, onShow() { + // 先从缓存恢复会话列表,消除白屏 + try { + const raw = uni.getStorageSync('merchant_msg_cache') + if (raw != null && raw !== '') { + const arr = JSON.parse(raw as string) as ConversationType[] + if (arr != null && (arr as any[]).length > 0) { + this.conversations = arr + this.isPageReady = true + } + } + } catch(e) {} this.loadMessages() }, @@ -173,12 +193,17 @@ } this.conversations = Array.from(sessionMap.values()).sort((a, b) => b.unread - a.unread) + // 保存缓存 + try { + uni.setStorageSync('merchant_msg_cache', JSON.stringify(this.conversations)) + } catch(e) {} } catch (e) { console.error('加载消息失败:', e) } finally { this.loading = false this.refreshing = false + this.isPageReady = true } }, @@ -248,4 +273,15 @@ .conv-arrow { font-size: 40rpx; color: #ccc; margin-left: 10rpx; } .safe-bottom { height: 160rpx; } - + + /* ===== 骨架屏 ===== */ + @keyframes ske-pulse { 0% { opacity: 1; } 50% { opacity: 0.45; } 100% { opacity: 1; } } + .ske-msg-list { padding: 20rpx; } + .ske-conv-item { display: flex; flex-direction: row; align-items: center; padding-top: 24rpx; padding-bottom: 24rpx; border-bottom-width: 1rpx; border-bottom-style: solid; border-bottom-color: #f5f5f5; } + .ske-avatar-circle { width: 88rpx; height: 88rpx; border-radius: 44rpx; background-color: #e8e8e8; margin-right: 20rpx; flex-shrink: 0; animation: ske-pulse 1.4s ease-in-out infinite; } + .ske-conv-info { flex: 1; } + .ske-conv-top { display: flex; flex-direction: row; justify-content: space-between; align-items: center; margin-bottom: 10rpx; } + .ske-bar { border-radius: 8rpx; background-color: #e8e8e8; animation: ske-pulse 1.4s ease-in-out infinite; } + .ske-w20 { width: 20%; } .ske-w50 { width: 50%; } .ske-w75 { width: 75%; } + .ske-h22 { height: 22rpx; } .ske-h28 { height: 28rpx; } .ske-mt10 { margin-top: 10rpx; } + \ No newline at end of file diff --git a/pages/mall/merchant/orders.uvue b/pages/mall/merchant/orders.uvue index 8c8cf6da..2a7755a0 100644 --- a/pages/mall/merchant/orders.uvue +++ b/pages/mall/merchant/orders.uvue @@ -2,9 +2,8 @@