Browse Source

update[litemall-wx]: 设置页面的navigationBarTitleText。

Junling Bu 7 years ago
parent
commit
71b35efe77
31 changed files with 59 additions and 31 deletions
  1. 1 1
      litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxGoodsController.java
  2. 3 1
      litemall-wx/pages/auth/login/login.json
  3. 3 1
      litemall-wx/pages/auth/register/register.json
  4. 3 1
      litemall-wx/pages/auth/reset/reset.json
  5. 3 1
      litemall-wx/pages/brand/brand.json
  6. 1 1
      litemall-wx/pages/brandDetail/brandDetail.json
  7. 2 1
      litemall-wx/pages/cart/cart.json
  8. 3 1
      litemall-wx/pages/catalog/catalog.json
  9. 4 0
      litemall-wx/pages/category/category.js
  10. 1 1
      litemall-wx/pages/comment/comment.json
  11. 1 1
      litemall-wx/pages/commentPost/commentPost.json
  12. 3 1
      litemall-wx/pages/goods/goods.json
  13. 1 1
      litemall-wx/pages/hotGoods/hotGoods.json
  14. 1 1
      litemall-wx/pages/newGoods/newGoods.json
  15. 2 2
      litemall-wx/pages/payResult/payResult.json
  16. 1 1
      litemall-wx/pages/search/search.json
  17. 3 1
      litemall-wx/pages/shopping/address/address.json
  18. 1 1
      litemall-wx/pages/shopping/addressAdd/addressAdd.json
  19. 1 1
      litemall-wx/pages/shopping/checkout/checkout.json
  20. 3 1
      litemall-wx/pages/topic/topic.json
  21. 1 1
      litemall-wx/pages/topicComment/topicComment.json
  22. 1 1
      litemall-wx/pages/topicCommentPost/topicCommentPost.json
  23. 3 1
      litemall-wx/pages/topicDetail/topicDetail.json
  24. 3 1
      litemall-wx/pages/ucenter/address/address.json
  25. 1 1
      litemall-wx/pages/ucenter/addressAdd/addressAdd.json
  26. 1 1
      litemall-wx/pages/ucenter/collect/collect.json
  27. 1 1
      litemall-wx/pages/ucenter/coupon/coupon.json
  28. 1 1
      litemall-wx/pages/ucenter/footprint/footprint.json
  29. 2 1
      litemall-wx/pages/ucenter/index/index.json
  30. 3 1
      litemall-wx/pages/ucenter/order/order.json
  31. 1 1
      litemall-wx/pages/ucenter/orderDetail/orderDetail.json

+ 1 - 1
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxGoodsController.java

@@ -152,7 +152,7 @@ public class WxGoodsController {
         }
         Map<String, Object> data = new HashMap();
         data.put("currentCategory", cur);
-        data.put("parentCategory", children);
+        data.put("parentCategory", parent);
         data.put("brotherCategory", children);
         return ResponseUtil.ok(data);
     }

+ 3 - 1
litemall-wx/pages/auth/login/login.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "登录"
+}

+ 3 - 1
litemall-wx/pages/auth/register/register.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "注册"
+}

+ 3 - 1
litemall-wx/pages/auth/reset/reset.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "密码重置"
+}

+ 3 - 1
litemall-wx/pages/brand/brand.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "品牌商直供"
+}

+ 1 - 1
litemall-wx/pages/brandDetail/brandDetail.json

@@ -1,3 +1,3 @@
 {
-    
+  "navigationBarTitleText": "品牌商详情"
 }

+ 2 - 1
litemall-wx/pages/cart/cart.json

@@ -1,3 +1,4 @@
 {
-    "backgroundColor": "#f4f4f4"
+  "backgroundColor": "#f4f4f4",
+  "navigationBarTitleText": "购物车"
 }

+ 3 - 1
litemall-wx/pages/catalog/catalog.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "分类"
+}

+ 4 - 0
litemall-wx/pages/category/category.js

@@ -45,6 +45,10 @@ Page({
             currentCategory: res.data.currentCategory
           });
 
+          wx.setNavigationBarTitle({
+            title: res.data.parentCategory.name
+          })
+
           //nav位置
           let currentIndex = 0;
           let navListCount = that.data.navList.length;

+ 1 - 1
litemall-wx/pages/comment/comment.json

@@ -1,3 +1,3 @@
 {
-
+  "navigationBarTitleText": "评价"
 }

+ 1 - 1
litemall-wx/pages/commentPost/commentPost.json

@@ -1,3 +1,3 @@
 {
-  "navigationBarTitleText": "评价商品"
+  "navigationBarTitleText": "评价"
 }

+ 3 - 1
litemall-wx/pages/goods/goods.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "商品详情"
+}

+ 1 - 1
litemall-wx/pages/hotGoods/hotGoods.json

@@ -1,3 +1,3 @@
 {
-    
+  "navigationBarTitleText": "人气推荐"
 }

+ 1 - 1
litemall-wx/pages/newGoods/newGoods.json

@@ -1,3 +1,3 @@
 {
-    
+  "navigationBarTitleText": "新品首发"
 }

+ 2 - 2
litemall-wx/pages/payResult/payResult.json

@@ -1,4 +1,4 @@
 {
-    "navigationBarTitleText": "付款结果",
-    "navigationBarBackgroundColor": "#fafafa"
+  "navigationBarTitleText": "付款结果",
+  "navigationBarBackgroundColor": "#fafafa"
 }

+ 1 - 1
litemall-wx/pages/search/search.json

@@ -1,3 +1,3 @@
 {
-    
+  "navigationBarTitleText": "搜索"
 }

+ 3 - 1
litemall-wx/pages/shopping/address/address.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "地址管理"
+}

+ 1 - 1
litemall-wx/pages/shopping/addressAdd/addressAdd.json

@@ -1,3 +1,3 @@
 {
-    
+  "navigationBarTitleText": "编辑地址"
 }

+ 1 - 1
litemall-wx/pages/shopping/checkout/checkout.json

@@ -1,3 +1,3 @@
 {
-    
+  "navigationBarTitleText": "填写订单"
 }

+ 3 - 1
litemall-wx/pages/topic/topic.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "专题"
+}

+ 1 - 1
litemall-wx/pages/topicComment/topicComment.json

@@ -1,3 +1,3 @@
 {
-
+  "navigationBarTitleText": "评论"
 }

+ 1 - 1
litemall-wx/pages/topicCommentPost/topicCommentPost.json

@@ -1,3 +1,3 @@
 {
-  "navigationBarTitleText": "评价商品"
+  "navigationBarTitleText": "评"
 }

+ 3 - 1
litemall-wx/pages/topicDetail/topicDetail.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "专题详情"
+}

+ 3 - 1
litemall-wx/pages/ucenter/address/address.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "地址管理"
+}

+ 1 - 1
litemall-wx/pages/ucenter/addressAdd/addressAdd.json

@@ -1,3 +1,3 @@
 {
-    
+  "navigationBarTitleText": "编辑地址"
 }

+ 1 - 1
litemall-wx/pages/ucenter/collect/collect.json

@@ -1,3 +1,3 @@
 {
-  
+  "navigationBarTitleText": "我的收藏"
 }

+ 1 - 1
litemall-wx/pages/ucenter/coupon/coupon.json

@@ -1,3 +1,3 @@
 {
-  
+  "navigationBarTitleText": "优惠券"
 }

+ 1 - 1
litemall-wx/pages/ucenter/footprint/footprint.json

@@ -1,3 +1,3 @@
 {
-  
+  "navigationBarTitleText": "我的足迹"
 }

+ 2 - 1
litemall-wx/pages/ucenter/index/index.json

@@ -1,3 +1,4 @@
 {
-  "backgroundColor": "#f4f4f4"
+  "backgroundColor": "#f4f4f4",
+  "navigationBarTitleText": "个人中心"
 }

+ 3 - 1
litemall-wx/pages/ucenter/order/order.json

@@ -1 +1,3 @@
-{}
+{
+  "navigationBarTitleText": "我的订单"
+}

+ 1 - 1
litemall-wx/pages/ucenter/orderDetail/orderDetail.json

@@ -1,3 +1,3 @@
 {
-    
+  "navigationBarTitleText": "订单详情"
 }