فهرست منبع

处理测试bug

Administrator 7 سال پیش
والد
کامیت
bae88e2734
3فایلهای تغییر یافته به همراه9 افزوده شده و 4 حذف شده
  1. 1 2
      components/mobile/base/addressEdit.vue
  2. 6 1
      components/mobile/base/addressView.vue
  3. 2 1
      pages/mobile/user/index.vue

+ 1 - 2
components/mobile/base/addressEdit.vue

@@ -100,9 +100,8 @@
     watch: {
       'data': {
         handler: function (newVal) {
-          console.log(newVal)
           if (newVal) {
-            this.isActive = false
+            newVal.num === 1 ? this.isActive = true : this.isActive = false
             this.params = this.baseUtils.deepCopy(newVal)
           }
         },

+ 6 - 1
components/mobile/base/addressView.vue

@@ -13,7 +13,12 @@
         </div>
       </div>
     </div>
-    <ul class="list-unstyled">
+    <div class="com-none-state" v-if="addressList.length === 0">
+      <img src="/images/mobile/@2x/empty-collect.png">
+      <p>抱歉,您还没有添加地址信息</p>
+      <nuxt-link to="/">返回首页</nuxt-link>
+    </div>
+    <ul class="list-unstyled" v-else>
       <li v-for="(item, index) in addressList">
         <div class="wrapper-line clearfix">
           <div class="name pull-left">{{isSend ? '发货地址:' : '收货地址:'}}</div>

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

@@ -172,7 +172,6 @@
           if (this.storeStatus.uuid) {
             this.$router.push(url)
           } else {
-            // this.setRemindText('请前往PC端申请开店')
             if (this.applyStatus === 'PREPARE') {
               this.setRemindText('您的申请已提交,请耐心等待工作人员审核(2-3个工作日)')
             } else {
@@ -184,6 +183,8 @@
               }
             }
           }
+        } else if (url === '/mobile/user/address') {
+          this.$router.push(url)
         } else if (!this.user.data.enterprise.uu || this.user.data.enterprise.isVendor !== 313) {
           this.setRemindText('请点击【开店申请】完善信息')
         } else {