consumer模块完成度95%,优化安卓端界面和小程序测试4
This commit is contained in:
89
doc_mall/consumer/backup_doc/一客一价专属折扣改造设计方案.md
Normal file
89
doc_mall/consumer/backup_doc/一客一价专属折扣改造设计方案.md
Normal file
@@ -0,0 +1,89 @@
|
||||
# “一客一价” (客户专属单品折扣) 改造设计方案
|
||||
|
||||
## 1. 背景与业务痛点
|
||||
* **当前系统瓶颈**:目前系统仅支持“全局统一折扣”或“商品级统一折扣”。也就是说,如果给商品 A 设置了 8 折,那么所有 VIP 卡客户买商品 A 都是 8 折。
|
||||
* **新业务需求**:为了精细化管理客户(尤其是 B2B 批发客户或核心大客户),需要实现**客户维度与商品维度的交叉定价**。例如:核心客户张三由于拿货量大,商品 A 给他 7.5 折;而普通客户李四拿货少,商品 A 只能给他 9 折;同时,张三买商品 B 可能利润薄,这件只给 95 折。
|
||||
* **业务目标**:打造千人千面的私有价格体系(一客一价),增强熟客黏性。
|
||||
|
||||
---
|
||||
|
||||
## 2. 数据库设计 (Database Schema)
|
||||
|
||||
由于需求属于“多对多”(多客户对应多商品,各有独立折扣价),必须引入一张新的映射关联表。
|
||||
|
||||
### 新增关联表:`ml_user_product_discounts`
|
||||
我们需要在 Supabase 中创建这张记录专属折扣的桥接表。
|
||||
|
||||
```sql
|
||||
CREATE TABLE ml_user_product_discounts (
|
||||
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
|
||||
user_id UUID NOT NULL, -- 关联:客户(买家) ID
|
||||
product_id UUID NOT NULL, -- 关联:商品 ID
|
||||
discount_rate NUMERIC NOT NULL, -- 该客户买该商品的专属折扣率 (例如 0.75)
|
||||
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
|
||||
updated_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
|
||||
UNIQUE(user_id, product_id) -- 核心约束:保证同个客户对同个商品只有一条有效规则
|
||||
);
|
||||
|
||||
-- 出于性能考虑,建议在 `user_id` 和 `product_id` 上添加索引,方便检索某个用户购物车里商品的价格。
|
||||
CREATE INDEX idx_user_discount_user ON ml_user_product_discounts(user_id);
|
||||
```
|
||||
|
||||
*(附注:该表的数据由**商家端**维护分配,**买家端**在此表面前仅为“只读查询”角色。)*
|
||||
|
||||
---
|
||||
|
||||
## 3. 商家端 (Merchant App) 功能拆解
|
||||
|
||||
系统需要提供给商家的管理入口从“发商品时”转移到“管客户时”。
|
||||
|
||||
### 3.1 【客户分析/管理】入口
|
||||
* 若当前缺少直接管理消费者的模块,需先建设一个简单的【客户列表页】,加载已在平台注册/下单过的用户。
|
||||
* 点击具体用户,进入【客户详情管理页】。
|
||||
|
||||
### 3.2 专属商品折扣分配功能
|
||||
* **功能入口**:在【客户详情页】底部增加按钮或标签卡——「配置专属折扣商品」。
|
||||
* **交互流程**:
|
||||
1. 商家调出平台的全量商品列表面板(可能带有搜索与分类)。
|
||||
2. 商家勾选指定的若干个商品,将它们加入到此客户的“专属打折清单”中。
|
||||
3. 出现在专属清单中的每一个商品,商家可通过步进器或输入框单独设置对于该客户的**专属折扣率**。
|
||||
4. 提交保存后,数据 `UPSERT` 存入 `ml_user_product_discounts` 表。
|
||||
5. 商家也可以随时将某个商品从该客户的专属清单中踢出(删除记录)。
|
||||
|
||||
### 3.3 系统融合建议
|
||||
* 如果商家发现给每个特定商品设价格太累,仍可以保留“商品通用VIP折扣”作为保底。
|
||||
|
||||
---
|
||||
|
||||
## 4. 消费者端 (Consumer App) 核心计价降级逻辑 (重要!)
|
||||
|
||||
在价格体系变得复杂后,**消费者渲染的价格、加入购物车的价格、结算付款时的价格**,这三端必须遵循绝对严格的“逐层降级(Fallback)”查询机制。
|
||||
|
||||
**价格优先级链条设定如下(权重由高到低):**
|
||||
|
||||
* **👑 T0 级别(最高):一客一价**
|
||||
- 前端去查当前商品是否在 `ml_user_product_discounts` 里有当前用户的专属记录。如果有,以此为准。(如:张三专属 75 折)
|
||||
* **🥇 T1 级别:单品通用 VIP 折扣**
|
||||
- 如果 T0 没有,接着查 `ml_products` 中该商品的 `is_vip_discount` 是否为 true 且配置了 `vip_discount_rate`。如果有,以此为准。(如:全民VIP买此衣服 8 折)
|
||||
* **🥈 T2 级别:全站全局 VIP 折扣**
|
||||
- 如果 T1 也没有,接着查询该用户绑定等级的全局默认折扣(如:白银会员全场 95 折,如果在历史版本中还在生效的话)。
|
||||
* **🥉 T3 级别(底线):原价销售**
|
||||
- 兜底机制,以原先的 `base_price`(销售商品原价)售卖。
|
||||
|
||||
### 4.1 查询性能优化 (购物车与订单结算)
|
||||
**防止 N+1 查询问题**:当用户在购物车勾选了 20 个不同商品进行结算时,**绝对不能**在后端使用循环去数据库查 20 次个人折扣表!
|
||||
* **正确做法**:将购物车里所有商品的 `product_id` 组装成一个数组。执行一次 `SELECT * FROM ml_user_product_discounts WHERE user_id = 'xxx' AND product_id IN (id1, id2, id3...);` 构建一个映射字典(Map/Hash),然后在内存在结算链中匹配。
|
||||
|
||||
---
|
||||
|
||||
## 5. 项目分期与落地计划
|
||||
|
||||
为了控制风险保障业务不中断,建议采取“两周敏捷迭代”策略。
|
||||
|
||||
* **Phase 1 (第一期):打通通道与数据库**
|
||||
* 在 Supabase `ml_user_product_discounts` 建表与打入测试数据。
|
||||
* 改写买家端商品详情与结算页的逻辑,先完成**后端价格过滤模型**。这一步让消费者能准确以多级降级的形式算清最后的价格。
|
||||
* **Phase 2 (第二期):商家端可视化管理体系**
|
||||
* 开发并上线商家的【客户管理页】。
|
||||
* 根据客户维度拉取列表,并制作批量打折与分配商品的界面。
|
||||
* 上线后通知业务方进行试发价。
|
||||
@@ -47,7 +47,8 @@
|
||||
"optimization": {
|
||||
"subPackages": true
|
||||
},
|
||||
"lazyCodeLoading": "requiredComponents"
|
||||
"lazyCodeLoading": "requiredComponents",
|
||||
"runmode": "liberate"
|
||||
},
|
||||
"mp-alipay": {
|
||||
"appid": "",
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
{
|
||||
"name": "商城消费者端",
|
||||
"appid": "__UNI__CONSUMER",
|
||||
"description": "商城消费者端 - 购物、订单、会员等功能",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": "100",
|
||||
"transformPx": false,
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
"nvueStyleCompiler": "uni-app",
|
||||
"compilerVersion": 3,
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
},
|
||||
"modules": {},
|
||||
"distribute": {
|
||||
"android": {
|
||||
"permissions": [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.INTERNET\"/>"
|
||||
]
|
||||
},
|
||||
"ios": {},
|
||||
"sdkConfigs": {}
|
||||
}
|
||||
},
|
||||
"quickapp": {},
|
||||
"mp-weixin": {
|
||||
"appid": "",
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": true,
|
||||
"postcss": true,
|
||||
"minified": true,
|
||||
"enhance": true
|
||||
},
|
||||
"usingComponents": true,
|
||||
"optimization": {
|
||||
"subPackages": true
|
||||
},
|
||||
"lazyCodeLoading": "requiredComponents",
|
||||
"runmode": "liberate"
|
||||
},
|
||||
"mp-alipay": {
|
||||
"appid": "",
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-baidu": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-toutiao": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"uniStatistics": {
|
||||
"enable": false
|
||||
},
|
||||
"vueVersion": "3",
|
||||
"uni-app-x": {},
|
||||
"h5": {
|
||||
"title": "商城消费者端",
|
||||
"router": {
|
||||
"mode": "hash",
|
||||
"base": "./"
|
||||
}
|
||||
},
|
||||
"app-android": {
|
||||
"distribute": {
|
||||
"modules": {},
|
||||
"android": {
|
||||
"usesCleartextTraffic": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
647
pages.json
647
pages.json
@@ -5,10 +5,71 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "用户登录",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// "path": "pages/mall/admin/homePage/index",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "管理后台",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
{
|
||||
"path": "pages/user/boot",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/main/index",
|
||||
"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/mall/consumer/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom",
|
||||
@@ -16,24 +77,29 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/main/category",
|
||||
"path": "pages/mall/consumer/category",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分类",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/main/cart",
|
||||
"path": "pages/mall/consumer/messages",
|
||||
"style": {
|
||||
"navigationBarTitleText": "购物车",
|
||||
"navigationStyle": "custom"
|
||||
"navigationBarTitleText": "消息",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/main/profile",
|
||||
"path": "pages/mall/consumer/cart",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的",
|
||||
"navigationStyle": "custom"
|
||||
"navigationBarTitleText": "购物车"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/profile",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -43,206 +109,577 @@
|
||||
"pages": [
|
||||
{
|
||||
"path": "settings",
|
||||
"style": { "navigationBarTitleText": "设置" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "设置"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "wallet",
|
||||
"style": { "navigationBarTitleText": "我的钱包" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的钱包"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "withdraw",
|
||||
"style": { "navigationBarTitleText": "余额提现" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "余额提现"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "search",
|
||||
"style": { "navigationBarTitleText": "搜索", "navigationStyle": "custom" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "搜索",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "product-detail",
|
||||
"style": { "navigationBarTitleText": "商品详情" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "shop-detail",
|
||||
"style": { "navigationBarTitleText": "店铺详情" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "店铺详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "coupons",
|
||||
"style": { "navigationBarTitleText": "我的优惠券" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的优惠券"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "favorites",
|
||||
"style": { "navigationBarTitleText": "我的收藏" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的收藏"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "footprint",
|
||||
"style": { "navigationBarTitleText": "我的足迹" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的足迹"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "address-list",
|
||||
"style": { "navigationBarTitleText": "收货地址" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "收货地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "address-edit",
|
||||
"style": { "navigationBarTitleText": "编辑地址" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "编辑地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "checkout",
|
||||
"style": { "navigationBarTitleText": "确认订单" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "确认订单"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "payment",
|
||||
"style": { "navigationBarTitleText": "收银台" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "收银台"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "payment-success",
|
||||
"style": { "navigationBarTitleText": "支付成功", "navigationStyle": "custom" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "支付成功",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "orders",
|
||||
"style": { "navigationBarTitleText": "我的订单", "enablePullDownRefresh": true }
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "order-detail",
|
||||
"style": { "navigationBarTitleText": "订单详情" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "订单详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "logistics",
|
||||
"style": { "navigationBarTitleText": "物流详情" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "物流详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "review",
|
||||
"style": { "navigationBarTitleText": "评价晒单" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "评价晒单"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "refund",
|
||||
"style": { "navigationBarTitleText": "退款/售后" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "退款/售后"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "apply-refund",
|
||||
"style": { "navigationBarTitleText": "申请售后" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "申请售后"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "refund-review",
|
||||
"style": { "navigationBarTitleText": "服务评价" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "服务评价"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "chat",
|
||||
"style": { "navigationBarTitleText": "客服聊天", "navigationStyle": "custom" }
|
||||
"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": "关注店铺" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "关注店铺"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "points/index",
|
||||
"style": { "navigationBarTitleText": "积分管理" }
|
||||
},
|
||||
{
|
||||
"path": "points/signin",
|
||||
"style": { "navigationBarTitleText": "每日签到" }
|
||||
},
|
||||
{
|
||||
"path": "points/exchange",
|
||||
"style": { "navigationBarTitleText": "积分兑换" }
|
||||
},
|
||||
{
|
||||
"path": "points/exchange-records",
|
||||
"style": { "navigationBarTitleText": "兑换记录" }
|
||||
},
|
||||
{
|
||||
"path": "product-reviews",
|
||||
"style": { "navigationBarTitleText": "商品评价" }
|
||||
},
|
||||
{
|
||||
"path": "my-reviews",
|
||||
"style": { "navigationBarTitleText": "我的评价" }
|
||||
},
|
||||
{
|
||||
"path": "balance/index",
|
||||
"style": { "navigationBarTitleText": "我的余额" }
|
||||
},
|
||||
{
|
||||
"path": "share/index",
|
||||
"style": { "navigationBarTitleText": "我的分享" }
|
||||
},
|
||||
{
|
||||
"path": "share/detail",
|
||||
"style": { "navigationBarTitleText": "分享详情" }
|
||||
},
|
||||
{
|
||||
"path": "member/index",
|
||||
"style": { "navigationBarTitleText": "会员中心" }
|
||||
},
|
||||
{
|
||||
"path": "message-detail",
|
||||
"style": { "navigationBarTitleText": "消息详情" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "积分管理"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "red-packets/index",
|
||||
"style": { "navigationBarTitleText": "我的红包" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的红包"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "bank-cards/index",
|
||||
"style": { "navigationBarTitleText": "银行卡管理" }
|
||||
"style": {
|
||||
"navigationBarTitleText": "银行卡管理"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "bank-cards/add",
|
||||
"style": { "navigationBarTitleText": "添加银行卡" }
|
||||
"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": "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"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "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",
|
||||
// "pages": [
|
||||
// {
|
||||
// "path": "user-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "product-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商品管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "order-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "订单管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "finance/record",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "财务管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "user-statistics",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户统计",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "system-settings",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "系统设置",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "subscription/plan-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "订阅方案管理"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "subscription/user-subscriptions",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户订阅管理"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/coupon/list",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "优惠券列表"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/coupon/receive",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户领取记录"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/signin/rule",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "签到规则"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/signin/record",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "签到记录"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "root": "pages/mall/merchant",
|
||||
// "pages": [
|
||||
// {
|
||||
// "path": "index",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商家中心",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "product-detail",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商品管理详情",
|
||||
// "enablePullDownRefresh": false
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "profile",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "个人资料"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "root": "pages/mall/service",
|
||||
// "pages": [
|
||||
// {
|
||||
// "path": "index",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "客服工作台",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "profile",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "客服个人中心"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "ticket-detail",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "工单详情",
|
||||
// "enablePullDownRefresh": false
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "商城",
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"backgroundColor": "#f5f5f5"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#999999",
|
||||
"selectedColor": "#ff5000",
|
||||
"borderStyle": "black",
|
||||
"backgroundColor": "#ffffff",
|
||||
"borderStyle": "black",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/main/index",
|
||||
"pagePath": "pages/mall/consumer/index",
|
||||
"text": "首页",
|
||||
"iconPath": "static/tabbar/home.png",
|
||||
"selectedIconPath": "static/tabbar/home-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/main/category",
|
||||
"pagePath": "pages/mall/consumer/category",
|
||||
"text": "分类",
|
||||
"iconPath": "static/tabbar/category.png",
|
||||
"selectedIconPath": "static/tabbar/category.png"
|
||||
"selectedIconPath": "static/tabbar/category-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/main/cart",
|
||||
"pagePath": "pages/mall/consumer/messages",
|
||||
"text": "消息",
|
||||
"iconPath": "static/tabbar/messages.png",
|
||||
"selectedIconPath": "static/tabbar/messages-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/cart",
|
||||
"text": "购物车",
|
||||
"iconPath": "static/tabbar/cart.png",
|
||||
"selectedIconPath": "static/tabbar/cart.png"
|
||||
"selectedIconPath": "static/tabbar/cart-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/main/profile",
|
||||
"pagePath": "pages/mall/consumer/profile",
|
||||
"text": "我的",
|
||||
"iconPath": "static/tabbar/user.png",
|
||||
"selectedIconPath": "static/tabbar/user.png"
|
||||
"iconPath": "static/tabbar/profile.png",
|
||||
"selectedIconPath": "static/tabbar/profile-active.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"preloadRule": {
|
||||
"pages/main/index": {
|
||||
"network": "all",
|
||||
"packages": ["pages/mall/consumer"]
|
||||
}
|
||||
},
|
||||
"easycom": {
|
||||
"autoscan": true,
|
||||
"custom": {
|
||||
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
|
||||
}
|
||||
},
|
||||
"optimization": {
|
||||
"subPackages": true
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "mall",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
}
|
||||
}
|
||||
}
|
||||
248
pages.json.bak
248
pages.json.bak
@@ -1,248 +0,0 @@
|
||||
{
|
||||
"pages": [
|
||||
{
|
||||
"path": "pages/user/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "用户登录",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/main/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/main/category",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分类",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/main/cart",
|
||||
"style": {
|
||||
"navigationBarTitleText": "购物车",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/main/profile",
|
||||
"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/followed-shops",
|
||||
"style": { "navigationBarTitleText": "关注店铺" }
|
||||
},
|
||||
{
|
||||
"path": "points/index",
|
||||
"style": { "navigationBarTitleText": "积分管理" }
|
||||
},
|
||||
{
|
||||
"path": "points/signin",
|
||||
"style": { "navigationBarTitleText": "每日签到" }
|
||||
},
|
||||
{
|
||||
"path": "points/exchange",
|
||||
"style": { "navigationBarTitleText": "积分兑换" }
|
||||
},
|
||||
{
|
||||
"path": "points/exchange-records",
|
||||
"style": { "navigationBarTitleText": "兑换记录" }
|
||||
},
|
||||
{
|
||||
"path": "product-reviews",
|
||||
"style": { "navigationBarTitleText": "商品评价" }
|
||||
},
|
||||
{
|
||||
"path": "my-reviews",
|
||||
"style": { "navigationBarTitleText": "我的评价" }
|
||||
},
|
||||
{
|
||||
"path": "balance/index",
|
||||
"style": { "navigationBarTitleText": "我的余额" }
|
||||
},
|
||||
{
|
||||
"path": "share/index",
|
||||
"style": { "navigationBarTitleText": "我的分享" }
|
||||
},
|
||||
{
|
||||
"path": "share/detail",
|
||||
"style": { "navigationBarTitleText": "分享详情" }
|
||||
},
|
||||
{
|
||||
"path": "member/index",
|
||||
"style": { "navigationBarTitleText": "会员中心" }
|
||||
},
|
||||
{
|
||||
"path": "message-detail",
|
||||
"style": { "navigationBarTitleText": "消息详情" }
|
||||
},
|
||||
{
|
||||
"path": "red-packets/index",
|
||||
"style": { "navigationBarTitleText": "我的红包" }
|
||||
},
|
||||
{
|
||||
"path": "bank-cards/index",
|
||||
"style": { "navigationBarTitleText": "银行卡管理" }
|
||||
},
|
||||
{
|
||||
"path": "bank-cards/add",
|
||||
"style": { "navigationBarTitleText": "添加银行卡" }
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "商城",
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"backgroundColor": "#f5f5f5"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#999999",
|
||||
"selectedColor": "#ff5000",
|
||||
"borderStyle": "black",
|
||||
"backgroundColor": "#ffffff",
|
||||
"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/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"
|
||||
}
|
||||
]
|
||||
},
|
||||
"preloadRule": {
|
||||
"pages/main/index": {
|
||||
"network": "all",
|
||||
"packages": ["pages/mall/consumer"]
|
||||
}
|
||||
},
|
||||
"easycom": {
|
||||
"autoscan": true,
|
||||
"custom": {
|
||||
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
|
||||
}
|
||||
},
|
||||
"optimization": {
|
||||
"subPackages": true
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<view class="cart-page">
|
||||
<!-- 智能顶部导航栏 - 与消息页保持一致 -->
|
||||
<view class="smart-navbar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||
<view class="nav-container" :style="{ paddingRight: navBarRight + 'px' }">
|
||||
<view class="nav-container" :style="{ paddingRight: (navBarRight > 0 ? navBarRight : 16) + 'px' }">
|
||||
<text class="nav-title">购物车</text>
|
||||
<view class="nav-actions">
|
||||
<view class="action-btn" @click="toggleManageMode">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="category-page">
|
||||
<!-- 顶部搜索栏 -->
|
||||
<view class="search-bar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||
<view class="search-container" :style="{ paddingRight: navBarRight + 'px' }">
|
||||
<view class="search-container" :style="{ paddingRight: (navBarRight > 0 ? navBarRight : 16) + 'px' }">
|
||||
<view class="search-box" @click="navigateToSearch" :style="{ height: '30px' }">
|
||||
<!-- 模拟输入框 -->
|
||||
<text class="search-placeholder">请输入商品名称、店铺</text>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
transform: showNavbar ? 'translateY(0)' : 'translateY(-100%)'
|
||||
}"
|
||||
>
|
||||
<view class="search-container" :style="{ paddingRight: navBarRight + 'px' }">
|
||||
<view class="search-container" :style="{ paddingRight: (navBarRight > 0 ? navBarRight : 16) + 'px' }">
|
||||
<view class="search-box" @click="navigateToSearch" :style="{ height: '30px' }">
|
||||
<!-- 模拟输入框 -->
|
||||
<text class="search-placeholder">请输入商品名称、店铺</text>
|
||||
@@ -1146,7 +1146,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
|
||||
}
|
||||
|
||||
.nav-inner-search-text {
|
||||
font-size: 12px; /* 字体稍微变小 */
|
||||
font-size: 12px;
|
||||
color: #ffffff;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="messages-page">
|
||||
<!-- 智能顶部导航栏 - 与主页保持一致 -->
|
||||
<view class="smart-navbar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||
<view class="nav-container">
|
||||
<view class="nav-container" :style="{ paddingRight: (navBarRight > 0 ? navBarRight : 16) + 'px' }">
|
||||
<text class="nav-title">消息中心</text>
|
||||
<view class="nav-actions">
|
||||
<view class="action-btn" @click="clearAllUnread">
|
||||
@@ -263,6 +263,20 @@ const unreadCount = ref<number>(12)
|
||||
const statusBarHeight = ref(0)
|
||||
const scrollTop = ref(0)
|
||||
const scrollHeight = ref(0)
|
||||
const navBarRight = ref(0)
|
||||
|
||||
// 小程序胶囊按钮信息类型
|
||||
type CapsuleButtonInfo = {
|
||||
left: number,
|
||||
top: number,
|
||||
right: number,
|
||||
bottom: number,
|
||||
width: number,
|
||||
height: number
|
||||
}
|
||||
|
||||
// 小程序胶囊按钮信息
|
||||
const capsuleButtonInfo = ref<CapsuleButtonInfo | null>(null)
|
||||
|
||||
// 消息分类标签
|
||||
const messageTabs = reactive<MessageTab[]>([
|
||||
@@ -339,6 +353,23 @@ const initPage = () => {
|
||||
const systemInfo = uni.getSystemInfoSync()
|
||||
statusBarHeight.value = systemInfo.statusBarHeight
|
||||
|
||||
// 获取小程序胶囊按钮信息
|
||||
// #ifdef MP-WEIXIN
|
||||
try {
|
||||
capsuleButtonInfo.value = uni.getMenuButtonBoundingClientRect()
|
||||
if (capsuleButtonInfo.value != null) {
|
||||
navBarRight.value = (systemInfo.screenWidth - capsuleButtonInfo.value.left) + 10
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('获取胶囊按钮信息失败', e)
|
||||
navBarRight.value = 90
|
||||
}
|
||||
// #endif
|
||||
|
||||
// #ifndef MP-WEIXIN
|
||||
navBarRight.value = 0
|
||||
// #endif
|
||||
|
||||
const windowHeight = systemInfo.windowHeight
|
||||
scrollHeight.value = windowHeight - statusBarHeight.value - 44 - 42
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<view class="consumer-profile">
|
||||
<!-- 智能顶部导航栏 - 与消息页保持一致 -->
|
||||
<view class="smart-navbar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||
<view class="nav-container">
|
||||
<view class="nav-container" :style="{ paddingRight: (navBarRight > 0 ? navBarRight : 16) + 'px' }">
|
||||
<!-- 基础用户信息:头像和昵称 -->
|
||||
<view class="nav-user-basic" @click="editProfile">
|
||||
<image
|
||||
@@ -14,7 +14,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 用户资产横向排列 (积分、余额、优惠券) -->
|
||||
<view class="nav-user-stats" :style="{ marginRight: navBarRight + 'px' }">
|
||||
<view class="nav-user-stats">
|
||||
<view class="nav-stat-item" @click="goToPoints">
|
||||
<text class="nav-stat-label">积分</text>
|
||||
<text class="nav-stat-value">{{ userStats.points }}</text>
|
||||
@@ -31,12 +31,14 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 设置按钮 (最右侧) -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<!-- 设置按钮 (安卓端和电脑端显示,小程序不显示) -->
|
||||
<view class="nav-actions">
|
||||
<view class="action-btn" @click="goToSettings">
|
||||
<text class="action-icon">⚙️</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -48,6 +50,11 @@
|
||||
<view class="my-services" style="margin-top: 10px;">
|
||||
<view class="section-title">我的服务</view>
|
||||
<view class="service-grid">
|
||||
<view class="service-item" @click="goToMessages">
|
||||
<text class="service-icon">💬</text>
|
||||
<text class="service-text">消息中心</text>
|
||||
<text v-if="serviceCounts.unreadMessages > 0" class="service-badge">{{ serviceCounts.unreadMessages }}</text>
|
||||
</view>
|
||||
<view class="service-item" @click="goToCoupons">
|
||||
<text class="service-icon">🎫</text>
|
||||
<text class="service-text">优惠券</text>
|
||||
@@ -301,6 +308,7 @@ type OrderCountsType = {
|
||||
type ServiceCountsType = {
|
||||
coupons: number
|
||||
favorites: number
|
||||
unreadMessages: number
|
||||
}
|
||||
|
||||
type ConsumptionStatsType = {
|
||||
@@ -354,7 +362,8 @@ export default {
|
||||
} as OrderCountsType,
|
||||
serviceCounts: {
|
||||
coupons: 0,
|
||||
favorites: 0
|
||||
favorites: 0,
|
||||
unreadMessages: 0
|
||||
} as ServiceCountsType,
|
||||
recentOrders: [] as Array<OrderItemType>,
|
||||
statsPeriods: [
|
||||
@@ -543,6 +552,10 @@ export default {
|
||||
this.navBarRight = 90
|
||||
}
|
||||
// #endif
|
||||
|
||||
// #ifndef MP-WEIXIN
|
||||
this.navBarRight = 0
|
||||
// #endif
|
||||
},
|
||||
async loadUserProfile() {
|
||||
try {
|
||||
@@ -1166,6 +1179,12 @@ export default {
|
||||
url: '/pages/mall/consumer/coupons'
|
||||
})
|
||||
},
|
||||
|
||||
goToMessages() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/main/messages'
|
||||
})
|
||||
},
|
||||
|
||||
goToPoints() {
|
||||
uni.navigateTo({
|
||||
|
||||
@@ -38,7 +38,13 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<text class="product-name">{{ product.name }}</text>
|
||||
<view class="product-name-row">
|
||||
<text class="product-name">{{ product.name }}</text>
|
||||
<view class="share-btn" @click="showSharePopup">
|
||||
<text class="share-icon">📤</text>
|
||||
<text class="share-text">分享</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="sales-info">已售{{ product.sales }}件 · 库存{{ product.stock }}件</text>
|
||||
</view>
|
||||
|
||||
@@ -277,6 +283,61 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分享弹窗 -->
|
||||
<view v-if="showShare" class="share-popup-mask" @click="hideSharePopup">
|
||||
<view class="share-popup-content" @click.stop>
|
||||
<view class="share-popup-header">
|
||||
<text class="share-popup-title">分享至</text>
|
||||
<text class="close-btn" @click="hideSharePopup">×</text>
|
||||
</view>
|
||||
|
||||
<!-- 分享选项 -->
|
||||
<view class="share-options">
|
||||
<view class="share-option" @click="shareToWechat">
|
||||
<view class="share-icon-wrapper wechat">
|
||||
<text class="share-option-icon">💬</text>
|
||||
</view>
|
||||
<text class="share-option-text">微信好友</text>
|
||||
</view>
|
||||
<view class="share-option" @click="shareToMoments">
|
||||
<view class="share-icon-wrapper moments">
|
||||
<text class="share-option-icon">🔄</text>
|
||||
</view>
|
||||
<text class="share-option-text">朋友圈</text>
|
||||
</view>
|
||||
<view class="share-option" @click="shareToQQ">
|
||||
<view class="share-icon-wrapper qq">
|
||||
<text class="share-option-icon">🐧</text>
|
||||
</view>
|
||||
<text class="share-option-text">QQ</text>
|
||||
</view>
|
||||
<view class="share-option" @click="copyLink">
|
||||
<view class="share-icon-wrapper link">
|
||||
<text class="share-option-icon">🔗</text>
|
||||
</view>
|
||||
<text class="share-option-text">复制链接</text>
|
||||
</view>
|
||||
<view class="share-option" @click="saveImage">
|
||||
<view class="share-icon-wrapper image">
|
||||
<text class="share-option-icon">🖼️</text>
|
||||
</view>
|
||||
<text class="share-option-text">保存图片</text>
|
||||
</view>
|
||||
<view class="share-option" @click="generatePoster">
|
||||
<view class="share-icon-wrapper poster">
|
||||
<text class="share-option-icon">📋</text>
|
||||
</view>
|
||||
<text class="share-option-text">生成海报</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 取消按钮 -->
|
||||
<view class="share-cancel-btn" @click="hideSharePopup">
|
||||
<text class="cancel-text">取消</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -326,6 +387,8 @@ export default {
|
||||
// 新增: 优惠券相关
|
||||
coupons: [] as Array<CouponTemplateType>,
|
||||
showCoupons: false,
|
||||
// 分享相关
|
||||
showShare: false,
|
||||
// 会员价相关
|
||||
memberPrice: 0 as number,
|
||||
memberDiscount: 0 as number,
|
||||
@@ -1007,6 +1070,114 @@ export default {
|
||||
if (this.product.approval_number != null && (this.product.approval_number as string) != '') summary += '批准文号 '
|
||||
const finalSummary = summary.trim()
|
||||
return finalSummary != '' ? finalSummary : '查看详情'
|
||||
},
|
||||
|
||||
// 分享相关方法
|
||||
showSharePopup() {
|
||||
this.showShare = true
|
||||
},
|
||||
|
||||
hideSharePopup() {
|
||||
this.showShare = false
|
||||
},
|
||||
|
||||
shareToWechat() {
|
||||
this.hideSharePopup()
|
||||
// #ifdef MP-WEIXIN
|
||||
// 小程序分享
|
||||
uni.share({
|
||||
provider: 'weixin',
|
||||
scene: 'WXSceneSession',
|
||||
type: 0,
|
||||
title: this.product.name,
|
||||
summary: `¥${this.product.price} - ${this.product.description ?? '精选好物'}`,
|
||||
imageUrl: this.product.images.length > 0 ? this.product.images[0] : '',
|
||||
success: () => {
|
||||
uni.showToast({ title: '分享成功', icon: 'success' })
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error('分享失败', err)
|
||||
uni.showToast({ title: '分享失败', icon: 'none' })
|
||||
}
|
||||
})
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
uni.showToast({ title: '请在微信中打开分享', icon: 'none' })
|
||||
// #endif
|
||||
},
|
||||
|
||||
shareToMoments() {
|
||||
this.hideSharePopup()
|
||||
// #ifdef MP-WEIXIN
|
||||
uni.share({
|
||||
provider: 'weixin',
|
||||
scene: 'WXSceneTimeline',
|
||||
type: 0,
|
||||
title: this.product.name,
|
||||
summary: `¥${this.product.price} - ${this.product.description ?? '精选好物'}`,
|
||||
imageUrl: this.product.images.length > 0 ? this.product.images[0] : '',
|
||||
success: () => {
|
||||
uni.showToast({ title: '分享成功', icon: 'success' })
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error('分享失败', err)
|
||||
uni.showToast({ title: '分享失败', icon: 'none' })
|
||||
}
|
||||
})
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
uni.showToast({ title: '请在微信中打开分享', icon: 'none' })
|
||||
// #endif
|
||||
},
|
||||
|
||||
shareToQQ() {
|
||||
this.hideSharePopup()
|
||||
uni.showToast({ title: 'QQ分享开发中', icon: 'none' })
|
||||
},
|
||||
|
||||
copyLink() {
|
||||
this.hideSharePopup()
|
||||
const shareLink = `pages/mall/consumer/product-detail?id=${this.product.id}`
|
||||
uni.setClipboardData({
|
||||
data: shareLink,
|
||||
success: () => {
|
||||
uni.showToast({ title: '链接已复制', icon: 'success' })
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
saveImage() {
|
||||
this.hideSharePopup()
|
||||
if (this.product.images.length > 0) {
|
||||
uni.showLoading({ title: '保存中...' })
|
||||
uni.downloadFile({
|
||||
url: this.product.images[0],
|
||||
success: (res) => {
|
||||
uni.saveImageToPhotosAlbum({
|
||||
filePath: res.tempFilePath,
|
||||
success: () => {
|
||||
uni.hideLoading()
|
||||
uni.showToast({ title: '已保存到相册', icon: 'success' })
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading()
|
||||
uni.showToast({ title: '保存失败', icon: 'none' })
|
||||
}
|
||||
})
|
||||
},
|
||||
fail: () => {
|
||||
uni.hideLoading()
|
||||
uni.showToast({ title: '下载失败', icon: 'none' })
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({ title: '暂无图片可保存', icon: 'none' })
|
||||
}
|
||||
},
|
||||
|
||||
generatePoster() {
|
||||
this.hideSharePopup()
|
||||
uni.showToast({ title: '海报生成功能开发中', icon: 'none' })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1193,9 +1364,38 @@ export default {
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
line-height: 1.4;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.product-name-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
|
||||
.share-btn {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 8rpx 16rpx;
|
||||
background-color: #f8f8f8;
|
||||
border-radius: 12rpx;
|
||||
flex-shrink: 0;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
.share-icon {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.share-text {
|
||||
font-size: 22rpx;
|
||||
color: #666;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
.sales-info {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
@@ -1822,6 +2022,118 @@ export default {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
|
||||
/* 分享弹窗样式 */
|
||||
.share-popup-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex-direction: column;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.share-popup-content{
|
||||
background-color: #fff;
|
||||
width: 100%;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
padding: 30rpx;
|
||||
padding-bottom: calc(30rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.share-popup-header{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.share-popup-title{
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.share-options{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
|
||||
.share-option{
|
||||
width: 25%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.share-icon-wrapper{
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.share-icon-wrapper.wechat{
|
||||
background-color: #07C160;
|
||||
}
|
||||
|
||||
.share-icon-wrapper.moments{
|
||||
background-color: #07C160;
|
||||
}
|
||||
|
||||
.share-icon-wrapper.qq{
|
||||
background-color: #12B7F5;
|
||||
}
|
||||
|
||||
.share-icon-wrapper.link{
|
||||
background-color: #FF9500;
|
||||
}
|
||||
|
||||
.share-icon-wrapper.image{
|
||||
background-color: #FF2D55;
|
||||
}
|
||||
|
||||
.share-icon-wrapper.poster{
|
||||
background-color: #5856D6;
|
||||
}
|
||||
|
||||
.share-option-icon{
|
||||
font-size: 44rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.share-option-text{
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.share-cancel-btn{
|
||||
width: 100%;
|
||||
height: 88rpx;
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 44rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.cancel-text{
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 商品参数弹窗样式 */
|
||||
.params-modal {
|
||||
position: fixed;
|
||||
|
||||
685
pagesbackup.json
685
pagesbackup.json
@@ -1,685 +0,0 @@
|
||||
{
|
||||
"pages": [
|
||||
{
|
||||
"path": "pages/user/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "用户登录",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// "path": "pages/mall/admin/homePage/index",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "管理后台",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
{
|
||||
"path": "pages/user/boot",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"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/mall/consumer/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/category",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分类",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/messages",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/cart",
|
||||
"style": {
|
||||
"navigationBarTitleText": "购物车"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/profile",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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": "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"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "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",
|
||||
// "pages": [
|
||||
// {
|
||||
// "path": "user-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "product-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商品管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "order-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "订单管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "finance/record",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "财务管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "user-statistics",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户统计",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "system-settings",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "系统设置",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "subscription/plan-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "订阅方案管理"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "subscription/user-subscriptions",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户订阅管理"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/coupon/list",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "优惠券列表"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/coupon/receive",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户领取记录"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/signin/rule",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "签到规则"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/signin/record",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "签到记录"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "root": "pages/mall/merchant",
|
||||
// "pages": [
|
||||
// {
|
||||
// "path": "index",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商家中心",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "product-detail",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商品管理详情",
|
||||
// "enablePullDownRefresh": false
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "profile",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "个人资料"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "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/mall/consumer/index",
|
||||
"text": "首页",
|
||||
"iconPath": "static/tabbar/home.png",
|
||||
"selectedIconPath": "static/tabbar/home-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/category",
|
||||
"text": "分类",
|
||||
"iconPath": "static/tabbar/category.png",
|
||||
"selectedIconPath": "static/tabbar/category-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/messages",
|
||||
"text": "消息",
|
||||
"iconPath": "static/tabbar/messages.png",
|
||||
"selectedIconPath": "static/tabbar/messages-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/cart",
|
||||
"text": "购物车",
|
||||
"iconPath": "static/tabbar/cart.png",
|
||||
"selectedIconPath": "static/tabbar/cart-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/profile",
|
||||
"text": "我的",
|
||||
"iconPath": "static/tabbar/profile.png",
|
||||
"selectedIconPath": "static/tabbar/profile-active.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "mall",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
}
|
||||
}
|
||||
647
pagesme.json
647
pagesme.json
@@ -5,71 +5,10 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "用户登录",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
// {
|
||||
// "path": "pages/mall/admin/homePage/index",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "管理后台",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
{
|
||||
"path": "pages/user/boot",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"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/mall/consumer/index",
|
||||
"path": "pages/main/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom",
|
||||
@@ -77,29 +16,24 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/category",
|
||||
"path": "pages/main/category",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分类",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/messages",
|
||||
"path": "pages/main/cart",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息",
|
||||
"enablePullDownRefresh": true
|
||||
"navigationBarTitleText": "购物车",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/cart",
|
||||
"path": "pages/main/profile",
|
||||
"style": {
|
||||
"navigationBarTitleText": "购物车"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mall/consumer/profile",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的"
|
||||
"navigationBarTitleText": "我的",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -109,577 +43,206 @@
|
||||
"pages": [
|
||||
{
|
||||
"path": "settings",
|
||||
"style": {
|
||||
"navigationBarTitleText": "设置"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "设置" }
|
||||
},
|
||||
{
|
||||
"path": "wallet",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的钱包"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "我的钱包" }
|
||||
},
|
||||
{
|
||||
"path": "withdraw",
|
||||
"style": {
|
||||
"navigationBarTitleText": "余额提现"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "余额提现" }
|
||||
},
|
||||
{
|
||||
"path": "search",
|
||||
"style": {
|
||||
"navigationBarTitleText": "搜索",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "搜索", "navigationStyle": "custom" }
|
||||
},
|
||||
{
|
||||
"path": "product-detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品详情"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "商品详情" }
|
||||
},
|
||||
{
|
||||
"path": "shop-detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "店铺详情"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "店铺详情" }
|
||||
},
|
||||
{
|
||||
"path": "coupons",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的优惠券"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "我的优惠券" }
|
||||
},
|
||||
{
|
||||
"path": "favorites",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的收藏"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "我的收藏" }
|
||||
},
|
||||
{
|
||||
"path": "footprint",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的足迹"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "我的足迹" }
|
||||
},
|
||||
{
|
||||
"path": "address-list",
|
||||
"style": {
|
||||
"navigationBarTitleText": "收货地址"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "收货地址" }
|
||||
},
|
||||
{
|
||||
"path": "address-edit",
|
||||
"style": {
|
||||
"navigationBarTitleText": "编辑地址"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "编辑地址" }
|
||||
},
|
||||
{
|
||||
"path": "checkout",
|
||||
"style": {
|
||||
"navigationBarTitleText": "确认订单"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "确认订单" }
|
||||
},
|
||||
{
|
||||
"path": "payment",
|
||||
"style": {
|
||||
"navigationBarTitleText": "收银台"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "收银台" }
|
||||
},
|
||||
{
|
||||
"path": "payment-success",
|
||||
"style": {
|
||||
"navigationBarTitleText": "支付成功",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "支付成功", "navigationStyle": "custom" }
|
||||
},
|
||||
{
|
||||
"path": "orders",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
"style": { "navigationBarTitleText": "我的订单", "enablePullDownRefresh": true }
|
||||
},
|
||||
{
|
||||
"path": "order-detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "订单详情"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "订单详情" }
|
||||
},
|
||||
{
|
||||
"path": "logistics",
|
||||
"style": {
|
||||
"navigationBarTitleText": "物流详情"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "物流详情" }
|
||||
},
|
||||
{
|
||||
"path": "review",
|
||||
"style": {
|
||||
"navigationBarTitleText": "评价晒单"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "评价晒单" }
|
||||
},
|
||||
{
|
||||
"path": "refund",
|
||||
"style": {
|
||||
"navigationBarTitleText": "退款/售后"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "退款/售后" }
|
||||
},
|
||||
{
|
||||
"path": "apply-refund",
|
||||
"style": {
|
||||
"navigationBarTitleText": "申请售后"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "申请售后" }
|
||||
},
|
||||
{
|
||||
"path": "refund-review",
|
||||
"style": {
|
||||
"navigationBarTitleText": "服务评价"
|
||||
}
|
||||
"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": "我的订阅"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "客服聊天", "navigationStyle": "custom" }
|
||||
},
|
||||
{
|
||||
"path": "subscription/followed-shops",
|
||||
"style": {
|
||||
"navigationBarTitleText": "关注店铺"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "关注店铺" }
|
||||
},
|
||||
{
|
||||
"path": "points/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "积分管理"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "积分管理" }
|
||||
},
|
||||
{
|
||||
"path": "points/signin",
|
||||
"style": { "navigationBarTitleText": "每日签到" }
|
||||
},
|
||||
{
|
||||
"path": "points/exchange",
|
||||
"style": { "navigationBarTitleText": "积分兑换" }
|
||||
},
|
||||
{
|
||||
"path": "points/exchange-records",
|
||||
"style": { "navigationBarTitleText": "兑换记录" }
|
||||
},
|
||||
{
|
||||
"path": "product-reviews",
|
||||
"style": { "navigationBarTitleText": "商品评价" }
|
||||
},
|
||||
{
|
||||
"path": "my-reviews",
|
||||
"style": { "navigationBarTitleText": "我的评价" }
|
||||
},
|
||||
{
|
||||
"path": "balance/index",
|
||||
"style": { "navigationBarTitleText": "我的余额" }
|
||||
},
|
||||
{
|
||||
"path": "share/index",
|
||||
"style": { "navigationBarTitleText": "我的分享" }
|
||||
},
|
||||
{
|
||||
"path": "share/detail",
|
||||
"style": { "navigationBarTitleText": "分享详情" }
|
||||
},
|
||||
{
|
||||
"path": "member/index",
|
||||
"style": { "navigationBarTitleText": "会员中心" }
|
||||
},
|
||||
{
|
||||
"path": "message-detail",
|
||||
"style": { "navigationBarTitleText": "消息详情" }
|
||||
},
|
||||
{
|
||||
"path": "red-packets/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的红包"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "我的红包" }
|
||||
},
|
||||
{
|
||||
"path": "bank-cards/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "银行卡管理"
|
||||
}
|
||||
"style": { "navigationBarTitleText": "银行卡管理" }
|
||||
},
|
||||
{
|
||||
"path": "bank-cards/add",
|
||||
"style": {
|
||||
"navigationBarTitleText": "添加银行卡"
|
||||
}
|
||||
"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": "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"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "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",
|
||||
// "pages": [
|
||||
// {
|
||||
// "path": "user-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "product-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商品管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "order-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "订单管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "finance/record",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "财务管理",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "user-statistics",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户统计",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "system-settings",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "系统设置",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "subscription/plan-management",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "订阅方案管理"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "subscription/user-subscriptions",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户订阅管理"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/coupon/list",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "优惠券列表"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/coupon/receive",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "用户领取记录"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/signin/rule",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "签到规则"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "marketing/signin/record",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "签到记录"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "root": "pages/mall/merchant",
|
||||
// "pages": [
|
||||
// {
|
||||
// "path": "index",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商家中心",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "product-detail",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "商品管理详情",
|
||||
// "enablePullDownRefresh": false
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "profile",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "个人资料"
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// "root": "pages/mall/service",
|
||||
// "pages": [
|
||||
// {
|
||||
// "path": "index",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "客服工作台",
|
||||
// "navigationStyle": "custom"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "profile",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "客服个人中心"
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// "path": "ticket-detail",
|
||||
// "style": {
|
||||
// "navigationBarTitleText": "工单详情",
|
||||
// "enablePullDownRefresh": false
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "商城",
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"backgroundColor": "#f5f5f5"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#999999",
|
||||
"selectedColor": "#ff5000",
|
||||
"backgroundColor": "#ffffff",
|
||||
"borderStyle": "black",
|
||||
"backgroundColor": "#ffffff",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/index",
|
||||
"pagePath": "pages/main/index",
|
||||
"text": "首页",
|
||||
"iconPath": "static/tabbar/home.png",
|
||||
"selectedIconPath": "static/tabbar/home-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/category",
|
||||
"pagePath": "pages/main/category",
|
||||
"text": "分类",
|
||||
"iconPath": "static/tabbar/category.png",
|
||||
"selectedIconPath": "static/tabbar/category-active.png"
|
||||
"selectedIconPath": "static/tabbar/category.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/messages",
|
||||
"text": "消息",
|
||||
"iconPath": "static/tabbar/messages.png",
|
||||
"selectedIconPath": "static/tabbar/messages-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/cart",
|
||||
"pagePath": "pages/main/cart",
|
||||
"text": "购物车",
|
||||
"iconPath": "static/tabbar/cart.png",
|
||||
"selectedIconPath": "static/tabbar/cart-active.png"
|
||||
"selectedIconPath": "static/tabbar/cart.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mall/consumer/profile",
|
||||
"pagePath": "pages/main/profile",
|
||||
"text": "我的",
|
||||
"iconPath": "static/tabbar/profile.png",
|
||||
"selectedIconPath": "static/tabbar/profile-active.png"
|
||||
"iconPath": "static/tabbar/user.png",
|
||||
"selectedIconPath": "static/tabbar/user.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "mall",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
"preloadRule": {
|
||||
"pages/main/index": {
|
||||
"network": "all",
|
||||
"packages": ["pages/mall/consumer"]
|
||||
}
|
||||
},
|
||||
"easycom": {
|
||||
"autoscan": true,
|
||||
"custom": {
|
||||
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
|
||||
}
|
||||
},
|
||||
"optimization": {
|
||||
"subPackages": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user