Browse Source

修复我的

shenjj 7 years ago
parent
commit
6e538c6097
2 changed files with 13 additions and 4 deletions
  1. 11 2
      components/mobile/MobileHeader.vue
  2. 2 2
      pages/mobile/user/index.vue

+ 11 - 2
components/mobile/MobileHeader.vue

@@ -138,6 +138,7 @@
       },
       initHeader: function (val, query) {
         this.showSearchIcon = false
+        let _tp = this.$route.query.type
         this.showHeader = val && val !== '/' && val !== '/mobile/applyPurchase/list' && !this.startWith(val, '/mobile/supplier')
 //        this.showSearch = val !== '/' && !this.startWith(val, '/mobile/search')
         let title = '优软商城'
@@ -212,13 +213,21 @@
           title = '购物车'
         } else if (this.startWith(val, '/mobile/center/user/payCenter')) {
           this.showSearchIcon = false
-          title = '应付对账'
+          if (_tp) {
+            title = '收款账户'
+          } else {
+            title = '应付对账'
+          }
         } else if (this.startWith(val, '/mobile/center/user/invoice')) {
           this.showSearchIcon = false
           title = '发票管理'
         } else if (this.startWith(val, '/mobile/center/vendor/payCenter')) {
           this.showSearchIcon = false
-          title = '应收对账'
+          if (_tp) {
+            title = '收款账户'
+          } else {
+            title = '应收对账'
+          }
         } else if (this.startWith(val, '/mobile/center/user/pay')) {
           this.showSearchIcon = false
           title = '确认订单'

+ 2 - 2
pages/mobile/user/index.vue

@@ -44,11 +44,11 @@
           </li>
           <li @click="go('/mobile/center/vendor/payCenter?switchType=account&type=frompage')">
             <img src="/images/mobile/user/shoukuan.png" alt="">
-            <p>应收对账</p>
+            <p>收款账户</p>
           </li>
           <li @click="go('/mobile/center/user/payCenter?switchType=account&type=frompage')">
             <img src="/images/mobile/user/fukuang.png" alt="">
-            <p>应付对账</p>
+            <p>付款账户</p>
           </li>
           <li @click="go('/mobile/user/address')">
             <img src="/images/mobile/user/icon_06.png" alt="">