Administrator il y a 4 ans
Parent
commit
44d09d20e1

+ 1 - 0
src/main/resources/static/css/supplier-center/dashboard.css

@@ -111,6 +111,7 @@
          line-height: 22px;
          text-align: center;
          display: inline-block;
+         cursor: pointer
      }
 
      .ziliao {

+ 3 - 0
src/main/resources/static/css/supplier-center/order/settlement.css

@@ -23,4 +23,7 @@
     .status-red{color: #f94b4b;}
     .status-blue{color: #1890f9;}
     .status-yellow{color: #f9a94b;}
+    .air{position: relative;min-height: 600px}
+    .air img{position: absolute; top: 0; bottom: 0; left: 0; right: 0;margin: auto; width: 221px;height: 180px}
+
  }

BIN
src/main/resources/static/img/order/air.png


+ 8 - 6
src/main/resources/static/js/supplier-center/dashboard.js

@@ -46,15 +46,17 @@ var dashboard = new Vue({
      opentitle:function () {
          var _this = this;
          _this.titleSshow =!this.titleSshow;
-     }
-
-
+     },
+    perfect:function () {
+        window.location.href='/supplier/setting/information.html';
+    },
     },
     mounted:function () {
         var _this = this;
-        var userInfo = CAIMEI.Storage.getItem('userInfo');
-        _this.userId =JSON.parse(userInfo).userId
-        console.log(_this.userId)
+        if(globalUserData) {
+            _this.userId = globalUserData.userId;
+        };
+        console.log( _this.userId)
         SupplierApi.homePageData({userId:_this.userId},function (res) {
             if(res.code==0){
                  _this.homeData = res.data;

+ 1 - 1
src/main/resources/templates/supplier-center/dashboard.html

@@ -58,7 +58,7 @@
                               </span>
                         </div>
                         <p class="username">用户名:{{shopinfo.name}}</p>
-                        <span class="perfect">立即完善</span>
+                        <span class="perfect" v-if="homeData.dataIntegrity!=100%" @click="perfect">立即完善</span>
                         <span class="ziliao">资料完整度:<span>{{homeData.dataIntegrity}}</span></span>
                     </div>
                     <div class="message">

+ 4 - 1
src/main/resources/templates/supplier-center/order/settlement.html

@@ -51,7 +51,7 @@
                         <li>总结算金额</li>
                         <li>已结算金额</li>
                     </ul>
-                    <div class="mentlist">
+                    <div class="mentlist" v-if="list.length>0">
                      <div v-for="res in list">
                         <ul v-for="item in res.orderProductList">
                             <li class="samewidth"><a :href="'/supplier/order/detail.html?shopOrderID='+res.shopOrderID">{{item.shopOrderNo}}</a></li>
@@ -68,6 +68,9 @@
                         </ul>
                         </div>
                     </div>
+                    <div v-else class="air">
+                        <img src="/img/order/air.png"/>
+                    </div>
                 </div>
 
                  <div v-if="(!isPC) && noMore" class="noMore">---- 没有更多了 ----</div>