Browse Source

feat:屏蔽内容

jinx 3 years ago
parent
commit
90739b3004
5 changed files with 21 additions and 26 deletions
  1. 1 6
      app.json
  2. 2 2
      config.js
  3. 2 2
      pages/goods/goods.wxml
  4. 12 12
      pages/ucenter/index/index.js
  5. 4 4
      pages/ucenter/orderDetail/orderDetail.js

+ 1 - 6
app.json

@@ -85,12 +85,7 @@
         "selectedIconPath": "static/images/btab_home@2x.png",
         "text": "首页"
       },
-      {
-        "pagePath": "pages/cart/cart",
-        "iconPath": "static/images/hbtab_cart@2x.png",
-        "selectedIconPath": "static/images/btab_cart@2x.png",
-        "text": "购物车"
-      },
+     
       {
         "pagePath": "pages/ucenter/index/index",
         "iconPath": "static/images/hbtab_my@2x.png",

+ 2 - 2
config.js

@@ -18,5 +18,5 @@ const mal = {
 }
 
 
-// export default dev
-export default mal
+export default dev
+// export default mal

+ 2 - 2
pages/goods/goods.wxml

@@ -151,7 +151,7 @@
 </scroll-view>
 
 <!-- {{isiPhoneX ? 'isIPx' : ''}} -->
-<view class="bottom-btn {{isiPhoneX ? 'isIPx' : ''}}" >
+<!-- <view class="bottom-btn {{isiPhoneX ? 'isIPx' : ''}}" >
   <view class="l l-collect {{ openAttr ? 'back' : ''}}" bindtap="closeAttrOrCollect">
     <image class="icon" src="{{ collectBackImage }}"></image>
   </view>
@@ -168,7 +168,7 @@
   加入购物车
   </view>
   <view class="c {{checkGoods.goods_number === 0 ? 'disbuy' : ''}}" bindtap='buyGoods'>立即购买</view>
-</view>
+</view> -->
 
 
 <lip-sync />

+ 12 - 12
pages/ucenter/index/index.js

@@ -50,24 +50,24 @@ Page({
             name: '我的收藏',
             id: 0
           },
-          {
-            icon: 'cb5',
-            url: '/pages/coupon/coupon',
-            name: '优惠券',
-            id: 5
-          },
+          // {
+          //   icon: 'cb5',
+          //   url: '/pages/coupon/coupon',
+          //   name: '优惠券',
+          //   id: 5
+          // },
           // {
           //   icon: 'cb6',
           //   url: '/pages/ucenter/footprint/footprint',
           //   name: '我的积分',
           //   id: 1
           // },
-          {
-            icon: 'cb2',
-            url: '/pages/ucenter/address/address',
-            name: '地址管理',
-            id: 1
-          }
+          // {
+          //   icon: 'cb2',
+          //   url: '/pages/ucenter/address/address',
+          //   name: '地址管理',
+          //   id: 1
+          // }
         ],
         relatedGoods: [],
         isLogin: app.globalData.isLogin

+ 4 - 4
pages/ucenter/orderDetail/orderDetail.js

@@ -30,10 +30,10 @@ Page({
   },
 
   gotoBrand:function(e){
-    let {id} = e.currentTarget.dataset
-    wx.navigateTo({
-      url: '/pages/brandDetail/brandDetail?id=' + id
-    })
+    // let {id} = e.currentTarget.dataset
+    // wx.navigateTo({
+    //   url: '/pages/brandDetail/brandDetail?id=' + id
+    // })
   },
 
   getOrderDetail() {