Browse Source

优化增加我要发布的按钮

q867427795 7 years ago
parent
commit
569ad3c78c

+ 14 - 14
.eslintrc.js

@@ -1,16 +1,16 @@
 module.exports = {
-  root: true,
-  parser: 'babel-eslint',
-  env: {
-    browser: true,
-    node: true
-  },
-  extends: 'standard',
-  // required to lint *.vue files
-  plugins: [
-    'html'
-  ],
-  // add your custom rules here
-  rules: {},
-  globals: {}
+	root: true,
+	parser: 'babel-eslint',
+	env: {
+		browser: true,
+		node: true
+	},
+	extends: 'standard',
+	// required to lint *.vue files
+	plugins: [
+		'html'
+	],
+	// add your custom rules here
+	rules: {},
+	globals: {}
 }

+ 1 - 0
components/default/Header.vue

@@ -74,6 +74,7 @@
     },
     computed: {
       user () {
+        console.log(this.$store.state.option.user)
         return this.$store.state.option.user
       },
       enterprise () {

+ 280 - 274
components/default/RightBar.vue

@@ -2,6 +2,12 @@
   <div>
     <div class="right-bar">
       <ul class="right-bar-center">
+        <li class="right-bar-item" v-show="storeStatus && storeStatus.uuid">
+          <a @click="goShop" class="title" target="_blank">
+            <i class="iconfont icon-dianpu icon-xlg"></i>
+          </a>
+          <div class="sidebar-menu"><a title="我的店铺" target="_blank">我的店铺</a></div>
+        </li>
         <li class="right-bar-item" @mouseenter="loadCarCount()">
           <a @click="goCart" class="title" target="_blank">
             <i class="iconfont icon-shopping-cart icon-xlg"></i>
@@ -84,7 +90,8 @@
         page: 1,
         count: 3,
         currentPage: 1,
-        chatCount: 0
+        chatCount: 0,
+        showMyshop: false
       }
     },
     components: {
@@ -111,17 +118,11 @@
       },
       tab () {
         return this.$store.state.chat.tab.tab.data
+      },
+      storeStatus () {
+        return this.$store.state.option.storeStatus.data
       }
     },
-//    mounted () {
-//      this.$nextTick(() => {
-//        this.getChatCount()
-//        // 刷新统计信息
-//        setInterval(() => {
-//          this.getChatCount()
-//        }, 10000)
-//      })
-//    },
     methods: {
       listenPage: function (p) {
         this.page = p
@@ -180,6 +181,9 @@
           window.open('/user#/cart')
         }
       },
+      goShop: function () {
+        window.location.href = '/vendor#/index'
+      },
       goWebChat: function () {
         if (!this.user.logged) {
           this.goLogin()
@@ -252,278 +256,280 @@
   }
 </script>
 <style lang="scss" scoped>
-  a[disabled] {
-    cursor: not-allowed;
-  }
-  em,i{
-    font-style: inherit;
-  }
-  .right-bar ul li{
-    position: relative;
-  }
-  .right-bar ul li .sidebar-menu {
-    position: absolute;
-    display: block;
-    right: -100%;
-    top: 0px;
-    bottom: 0;
-    width: 100px;
-    line-height: 38px;
-    height: 38px;
-    color: #ffffff;
-    background: #555;
-    -webkit-transform: translateX(100%);
-    -moz-transform: translateX(100%);
-    -ms-transform: translateX(100%);
-    -o-transform: translateX(100%);
-    transform: translateX(100%);
-    -webkit-transition: transform .5s;
-    -moz-transition: transform .5s;
-    -ms-transition: transform .5s;
-    -o-transition: transform .5s;
-    transition: transform .5s;
-    z-index: 19;
-  }
-  .right-bar ul li .sidebar-menu a{
-    background-color: #555555;
-  }
-  .right-bar ul li:hover a{
-    background-color: #555555;
-  }
-  .right-bar ul li:hover .sidebar-menu {
-    display: block;
-    -webkit-transform: translateX(-72px);
-    -moz-transform: translateX(-72px);
-    -ms-transform: translateX(-72px);
-    -o-transform: translateX(-72px);
-    transform: translateX(-72px);
-  }
-  /*浏览记录*/
-  .right-bar ul li .foot-record{
-    /* display: none; */
-    width: 210px !important;
-    max-height: 230px;
-    line-height: 30px;
-   /* right: 200px;*/
-    top: inherit;
-    bottom: -100%;
-    height: inherit;
-    /*padding-bottom: 10px;*/
-  }
-  .right-bar ul li .foot-record h3{
-    line-height: 39px;
-    border-bottom: #767575 1px solid;
-    text-align: left;
-    padding-left: 10px;
-    width: 96%;
-    display: inline-block;
-    margin: 0 auto;
-    font-size: 12px;
-    height: 39px;
-  }
-  .right-bar ul li .foot-record h3:hover a{
-    color: #fbb029;
-  }
-  .right-bar ul li .foot-record h3 a{
-    color: #fff;
-    background-color: inherit;
-    line-height: 39px;
-    text-align: left;
-  }
-  .right-bar ul li .foot-record dl{
-    padding-top: 5px;
-    display: inline-block;
-    background: #555;
-  }
-  .right-bar ul li .foot-record dl,.right-bar ul li .foot-record dl dd{
-    width: 100%;
-    margin: 0 auto;
-    background: #555;
-  }
-  .right-bar ul li .foot-record dl dd{
-    line-height: 22px;
-    width: 100%;
-    display: inline-block;
-    float: left;
-    height: 22px;
-    position: relative;
-  }
-  .right-bar ul li .foot-record dl dd a{
-    display: inline-block;
-    height: 22px;
-    padding: 0 10px;
-    width: 91%;
-    font-size: 12px;
-    color: #fff;
-    line-height: 22px;
-    white-space: nowrap;
-    overflow: hidden;
-    text-overflow: ellipsis;
-    background: none;
-    text-align: left;
-    padding-right: 44px;
-  }
-  .right-bar ul li a i{
-    font-size: 20px;
-  }
-  .right-bar .remind-point {
-    width: 8px;
-    height: 8px;
-    display: block;
-    border-radius: 100%;
-    background: red;
-    position: relative;
-    top: -31px;
-    right: -21px;
-  }
-  .right-bar ul li li a:hover div.foot-record{
-    display: inline-block !important;
-  }
-  .right-bar ul li .foot-record dl dd:hover{
-    background: #fff;
-  }
-  .right-bar ul li .foot-record dl dd:hover a{
-    color: #333;
-  }
-  .right-bar ul li .foot-record dl dd:hover div.hover-shows{
-    display: inline-block;
-  }
-  .right-bar ul li .foot-record dl dd div.hover-shows{
+a[disabled] {
+  cursor: not-allowed;
+}
+em,
+i {
+  font-style: inherit;
+}
+.right-bar ul li {
+  position: relative;
+}
+.right-bar ul li .sidebar-menu {
+  position: absolute;
+  display: block;
+  right: -100%;
+  top: 0px;
+  bottom: 0;
+  width: 100px;
+  line-height: 38px;
+  height: 38px;
+  color: #ffffff;
+  background: #555;
+  -webkit-transform: translateX(100%);
+  -moz-transform: translateX(100%);
+  -ms-transform: translateX(100%);
+  -o-transform: translateX(100%);
+  transform: translateX(100%);
+  -webkit-transition: transform 0.5s;
+  -moz-transition: transform 0.5s;
+  -ms-transition: transform 0.5s;
+  -o-transition: transform 0.5s;
+  transition: transform 0.5s;
+  z-index: 19;
+}
+.right-bar ul li .sidebar-menu a {
+  background-color: #555555;
+}
+.right-bar ul li:hover a {
+  background-color: #555555;
+}
+.right-bar ul li:hover .sidebar-menu {
+  display: block;
+  -webkit-transform: translateX(-72px);
+  -moz-transform: translateX(-72px);
+  -ms-transform: translateX(-72px);
+  -o-transform: translateX(-72px);
+  transform: translateX(-72px);
+}
+/*浏览记录*/
+.right-bar ul li .foot-record {
+  /* display: none; */
+  width: 210px !important;
+  max-height: 230px;
+  line-height: 30px;
+  /* right: 200px;*/
+  top: inherit;
+  bottom: -100%;
+  height: inherit;
+  /*padding-bottom: 10px;*/
+}
+.right-bar ul li .foot-record h3 {
+  line-height: 39px;
+  border-bottom: #767575 1px solid;
+  text-align: left;
+  padding-left: 10px;
+  width: 96%;
+  display: inline-block;
+  margin: 0 auto;
+  font-size: 12px;
+  height: 39px;
+}
+.right-bar ul li .foot-record h3:hover a {
+  color: #fbb029;
+}
+.right-bar ul li .foot-record h3 a {
+  color: #fff;
+  background-color: inherit;
+  line-height: 39px;
+  text-align: left;
+}
+.right-bar ul li .foot-record dl {
+  padding-top: 5px;
+  display: inline-block;
+  background: #555;
+}
+.right-bar ul li .foot-record dl,
+.right-bar ul li .foot-record dl dd {
+  width: 100%;
+  margin: 0 auto;
+  background: #555;
+}
+.right-bar ul li .foot-record dl dd {
+  line-height: 22px;
+  width: 100%;
+  display: inline-block;
+  float: left;
+  height: 22px;
+  position: relative;
+}
+.right-bar ul li .foot-record dl dd a {
+  display: inline-block;
+  height: 22px;
+  padding: 0 10px;
+  width: 91%;
+  font-size: 12px;
+  color: #fff;
+  line-height: 22px;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  background: none;
+  text-align: left;
+  padding-right: 44px;
+}
+.right-bar ul li a i {
+  font-size: 20px;
+}
+.right-bar .remind-point {
+  width: 8px;
+  height: 8px;
+  display: block;
+  border-radius: 100%;
+  background: red;
+  position: relative;
+  top: -31px;
+  right: -21px;
+}
+.right-bar ul li li a:hover div.foot-record {
+  display: inline-block !important;
+}
+.right-bar ul li .foot-record dl dd:hover {
+  background: #fff;
+}
+.right-bar ul li .foot-record dl dd:hover a {
+  color: #333;
+}
+.right-bar ul li .foot-record dl dd:hover div.hover-shows {
+  display: inline-block;
+}
+.right-bar ul li .foot-record dl dd div.hover-shows {
+  position: absolute;
+  top: 0;
+  right: 2px;
+  max-width: 55px;
+  line-height: 20px;
+  padding-right: 0;
+  z-index: 100;
+  display: none;
+}
+.right-bar ul li .foot-record dl dd div.hover-shows span {
+  display: inline-block;
+  width: 30px;
+  height: 20px;
+  text-align: center;
+  line-height: 20px;
+  background: #e04b38;
+  color: #fff;
+  border-radius: 5px;
+  opacity: 0;
+  margin-top: 1px;
+}
+.right-bar ul li .foot-record dl dd:first-child {
+  /* margin-top: 5px;*/
+}
+.right-bar ul li .foot-record dl dd:last-child {
+  /* margin-bottom: 10px;*/
+}
+.right-bar ul li .foot-record dl dd div.hover-shows a {
+  font-size: 23px;
+  float: right;
+  width: 20px;
+  padding: 0;
+  text-align: center;
+  color: #999;
+  top: -2px;
+}
+.right-bar ul li .foot-record dl dd div.hover-shows a:hover {
+  color: #fbb029;
+}
+.right-bar ul li .foot-record dl dd div.hover-shows em {
+  display: inline-block;
+  position: absolute;
+  width: 0;
+  height: 0;
+  border-top: 8px solid transparent;
+  border-left: 7px solid #fbb029;
+  border-bottom: 8px solid transparent;
+  left: -158px;
+  top: 4px;
+}
+.right-bar ul li .foot-record dl dd div.hover-shows em.off {
+  border-left: 8px solid #b2b0b0;
+}
+.right-bar ul li .foot-record dl dd div.hover-shows span.off {
+  opacity: 1;
+}
+/*浏览记录结束*/
+.right-bar ul li .contact-us {
+  /*right: 200px;*/
+  height: 180px;
+  padding-top: 10px;
+  width: 210px;
+  top: -76px;
+}
+.right-bar ul li .contact-us p {
+  line-height: 33px;
+  text-align: left;
+  padding-left: 10px;
+  margin-bottom: 0;
+  white-space: nowrap;
+  font-size: 12px;
+}
+.right-bar ul li .contact-us .contact-btn {
+  width: 62px;
+  height: 18px;
+  line-height: 18px;
+  background: #ef7f03;
+  display: inline-block;
+  text-align: center;
+  color: #fff;
+  font-size: 12px;
+  border-radius: 5px;
+  padding: 0;
+}
+.right-bar-item {
+  width: 36px;
+  /* height: 38px;*/
+}
+.right-bar .right-bar-item a.title {
+  display: inline-block;
+  width: 36px;
+  height: 38px;
+  line-height: 38px;
+  padding: 0;
+}
+.right-bar {
+  position: fixed;
+  z-index: 1000;
+  right: 0;
+  top: 0;
+  width: 36px;
+  height: 100%;
+
+  .right-bar-center {
     position: absolute;
-    top: 0;
-    right: 2px;
-    max-width: 55px;
-    line-height: 20px;
-    padding-right: 0;
-    z-index: 100;
-    display: none;
-  }
-  .right-bar ul li .foot-record dl dd div.hover-shows span{
-    display: inline-block;
-    width: 30px;
-    height: 20px;
-    text-align: center;
-    line-height: 20px;
-    background: #e04b38;
-    color: #fff;
-    border-radius: 5px;
-    opacity: 0;
-    margin-top: 1px;
-  }
-  .right-bar ul li .foot-record dl dd:first-child{
-   /* margin-top: 5px;*/
-  }
-  .right-bar ul li .foot-record dl dd:last-child{
-   /* margin-bottom: 10px;*/
-  }
-  .right-bar ul li .foot-record dl dd div.hover-shows a{
-    font-size: 23px;
-    float: right;
-    width: 20px;
+    top: 60%;
+    transform: translateY(-50%);
+    list-style: none;
     padding: 0;
-    text-align: center;
-    color: #999;
-    top: -2px;
-  }
-  .right-bar ul li .foot-record dl dd div.hover-shows a:hover{
-    color: #fbb029;
+    width: 100%;
   }
-  .right-bar ul li .foot-record dl dd div.hover-shows em{
-    display: inline-block;
+
+  .right-bar-bottom {
     position: absolute;
-    width: 0;
-    height: 0;
-    border-top: 8px solid transparent;
-    border-left: 7px solid #fbb029;
-    border-bottom: 8px solid transparent;
-    left: -158px;
-    top: 4px;
-  }
-  .right-bar ul li .foot-record dl dd div.hover-shows em.off{
-    border-left: 8px solid #b2b0b0;
-  }
-  .right-bar ul li .foot-record dl dd div.hover-shows span.off{
-    opacity: 1;
-  }
-  /*浏览记录结束*/
-  .right-bar ul li .contact-us{
-    /*right: 200px;*/
-    height: 180px;
-    padding-top: 10px;
-    width: 210px;
-    top: -76px;
-  }
-  .right-bar ul li .contact-us p{
-    line-height: 33px;
-    text-align: left;
-    padding-left: 10px;
-    margin-bottom: 0;
-    white-space: nowrap;
-    font-size: 12px;
-  }
-  .right-bar ul li .contact-us .contact-btn{
-    width: 62px;
-    height: 18px;
-    line-height: 18px;
-    background: #ef7f03;
-    display: inline-block;
-    text-align: center;
-    color: #fff;
-    font-size: 12px;
-    border-radius: 5px;
-    padding: 0;
-  }
-  .right-bar-item{
-    width: 36px;
-   /* height: 38px;*/
-  }
-  .right-bar .right-bar-item a.title{
-    display: inline-block;
-    width: 36px;
-    height: 38px;
-    line-height: 38px;
-    padding: 0;
-  }
-  .right-bar {
-    position: fixed;
-    z-index: 1000;
     right: 0;
-    top: 0;
+    bottom: 0;
     width: 36px;
-    height: 100%;
+  }
 
-    .right-bar-center {
-      position: absolute;
-      top: 60%;
-      transform: translateY(-50%);
-      list-style: none;
-      padding: 0;
+  .right-bar-item {
+    a {
+      position: relative;
+      display: block;
       width: 100%;
-    }
-
-    .right-bar-bottom {
-      position: absolute;
-      right: 0;
-      bottom: 0;
-      width: 36px;
-    }
-
-    .right-bar-item {
-      a {
-        position: relative;
-        display: block;
-        width: 100%;
-        color: #fff;
-        background-color: #5078CB;
-        text-align: center;
-        -webkit-transition: background-color ease .5s;
-        -moz-transition: background-color ease 0.5s;
-        -ms-transition: background-color ease 0.5s;
-        -o-transition: background-color ease 0.5s;
-        transition: background-color ease 0.5s;
-        z-index: 20;
-        font-size: 12px;
-      }
+      color: #fff;
+      background-color: #5078cb;
+      text-align: center;
+      -webkit-transition: background-color ease 0.5s;
+      -moz-transition: background-color ease 0.5s;
+      -ms-transition: background-color ease 0.5s;
+      -o-transition: background-color ease 0.5s;
+      transition: background-color ease 0.5s;
+      z-index: 20;
+      font-size: 12px;
     }
   }
+}
 </style>

+ 51 - 1
components/product/component/StoreInfo.vue

@@ -30,7 +30,13 @@
       </div>
     </div>
     <div class="goodsList">
-      <div class="goods-item">按商家列表</div>
+      <div class="flex">
+        <div class="goods-item">按商家列表</div>
+        <div class="flex_item"></div>
+        <span>
+          <button type="button" class="btn sendprove" @click="sendprove()">我要发布产品</button>
+        </span>
+      </div>
       <table class="table">
         <thead>
           <tr class="height54">
@@ -194,6 +200,9 @@
       }
     },
     computed: {
+      user () {
+        return this.$store.state.option.user
+      },
       stores () {
         return this.$store.state.componentStore.store
       },
@@ -224,6 +233,14 @@
       storeId () {
         let UmallStoreId = this.$store.state.componentUmallStoreId.storeId.data
         return UmallStoreId
+      },
+      enterprise () {
+        let ens = this.user.data.enterprises
+        if (ens && ens.length) {
+          return ens.find(item => item.current) || {enName: '个人账户'}
+        } else {
+          return {enName: '个人账户'}
+        }
       }
     },
     methods: {
@@ -262,6 +279,17 @@
       },
       goProductDetail: function (batchCode) {
         window.location.href = '/store/productDetail/' + batchCode
+      },
+      sendprove: function () {
+        if (this.user.logged) {
+          if (this.enterprise && this.enterprise.isVendor === 313) {
+            window.location.href = '/vendor#/vendor_upload'
+          } else {
+            this.$router.push('/register-saler')
+          }
+        } else {
+          this.$router.push('/auth/login?returnUrl=' + window.location.href)
+        }
       }
     }
   }
@@ -330,6 +358,13 @@
     clear: both;
     font-size: 14px;
   }
+  .storeInfo .goodsList .flex{
+    display: flex;
+    width: 100%;
+  }
+  .storeInfo .goodsList .flex_item {
+    flex: 1
+  }
   .storeInfo .goodsList .goods-item {
     height: 30px;
     width: 120px;
@@ -339,6 +374,21 @@
     vertical-align: middle;
     line-height: 30px;
   }
+  .storeInfo .goodsList .sendprove {
+    background: #fff;
+		color: #5078CB;
+    border-radius: 4px;
+    border: 1px solid #5078CB;
+    height: 30px;
+    border-radius: 0px;
+    
+  }
+  .storeInfo .goodsList .sendprove:hover {
+    background: #5078CB;
+		color: #fff;
+    cursor: pointer;
+    transition: all 0.4s
+  } 
   .storeInfo .goodsList thead {
     background-color: #F7F7F7;
     border:2px solid #f7f7f7;

+ 50 - 1
components/search/Kind.vue

@@ -1,5 +1,8 @@
 <template>
   <div class="selector" >
+    <span class="sendBtn">
+      <button type="button" class="btn" id="sendprove" @click="sendprove()">我要发布产品</button>
+    </span>
     <a class="show-filter" @click="show_filter = !show_filter">
       <span v-text="show_filter?'收起筛选 ':'展开筛选 '"></span>
       <i :class="show_filter?'fa fa-angle-up':'fa fa-angle-down'"></i>
@@ -329,6 +332,17 @@
       },
       list_data_brands () {
         return this.good_list.brands
+      },
+      enterprise () {
+        let ens = this.user.data.enterprises
+        if (ens && ens.length) {
+          return ens.find(item => item.current) || {enName: '个人账户'}
+        } else {
+          return {enName: '个人账户'}
+        }
+      },
+      user () {
+        return this.$store.state.option.user
       }
     },
     methods: {
@@ -471,6 +485,17 @@
       },
       crnameInArr: function (arr, obj) {
         return (JSON.stringify(arr).indexOf(obj.cr_name) === -1)
+      },
+      sendprove: function () {
+        if (this.user.logged) {
+          if (this.enterprise && this.enterprise.isVendor === 313) {
+            window.location.href = '/vendor#/vendor_upload'
+          } else {
+            this.$router.push('/register-saler')
+          }
+        } else {
+          this.$router.push('/auth/login?returnUrl=' + window.location.href)
+        }
       }
     }
   }
@@ -478,7 +503,7 @@
 <style scoped>
   .show-filter{
     position: relative;
-    left: 1100px;
+    left: 990px;
     top: -10px;
     color: #888;
     border: 1px solid #aaa;
@@ -571,7 +596,31 @@
     margin-left: -5px;
     list-style: none;
   }
+  .selector .sendBtn {
+    position: relative;
+    left: 980px;
+    top: -10px;
+    color: #888;
+    z-index: 10;
+  }
+  .selector #sendprove {
+    background: #fff;
+		color: #5078CB;
+    border: 1px solid #5078CB;
+    margin-left: 10px;
+    height: 27px;
+    padding: 0;
+    line-height: 24px;
+    padding: 0 8px;
+    border-radius: 0px
+  }
 
+  .selector #sendprove:hover {
+    background: #5078CB;
+		color: #fff;
+    cursor: pointer;
+    transition: all 0.4s
+  }
   #searchResult .selector .sl-wrap .sl-value ul >li {
     display: inline-block;
     padding-right: 5px;

+ 43 - 4
components/store/CommodityList.vue

@@ -15,15 +15,19 @@
           <div class="col-md-3 btn-group btn-group-sm" style="padding: 0;">
             <a type="button" class="btn btn-default btn-line btn-info">产品列表</a>
           </div>
-          <div class="col-md-4 col-md-offset-5" style="padding: 0;">
+          <div class="col-md-5 col-md-offset-4" style="padding: 0;">
             <div class="input-group">
               <input type="search" class="form-control" id="search_input" title="code" placeholder="请输入要筛选的原厂型号"
                      v-model="searchCode" @search="goodsSearch(searchCode)"/>
               <span class="input-group-btn">
-							<button type="button" class="btn" id="search_btn" @click="goodsSearch(searchCode)">&nbsp;筛&nbsp;选&nbsp;</button>
-						</span>
+							  <button type="button" class="btn" id="search_btn" @click="goodsSearch(searchCode)">&nbsp;筛&nbsp;选&nbsp;</button>
+						  </span>
+              <span class="input-group-btn">
+                <button type="button" class="btn sendprove" @click="sendprove()">我要发布产品</button>
+              </span>
             </div>
           </div>
+          
         </div>
 
         <!-- 列表展示 -->
@@ -224,6 +228,14 @@ export default {
     },
     isConsignment () {
       return this.storeInfo.type === 'CONSIGNMENT'
+    },
+    enterprise () {
+      let ens = this.user.data.enterprises
+      if (ens && ens.length) {
+        return ens.find(item => item.current) || {enName: '个人账户'}
+      } else {
+        return {enName: '个人账户'}
+      }
     }
   },
   methods: {
@@ -358,10 +370,21 @@ export default {
             newTab.location.href = 'https://im.ubtob.com/chat/visit?gid=' + response.data.content
           }
         })
-    }
+    },
 //    goBack () {
 //      this.$router.back(-1)
 //    }
+    sendprove: function () {
+      if (this.user.logged) {
+        if (this.enterprise && this.enterprise.isVendor === 313) {
+          window.location.href = '/vendor#/vendor_upload'
+        } else {
+          this.$router.push('/register-saler')
+        }
+      } else {
+        this.$router.push('/auth/login?returnUrl=' + window.location.href)
+      }
+    }
   }
 }
 </script>
@@ -523,6 +546,22 @@ export default {
 		color: #FFFFFF;
 	}
 
+  #goods-list-fragment .sendprove {
+    background: #fff;
+		color: #5078CB;
+    border-radius: 4px;
+    border: 1px solid #5078CB;
+    float: right;
+    margin-left: 10px
+  }
+
+  #goods-list-fragment .sendprove:hover {
+    background: #5078CB;
+		color: #fff;
+    cursor: pointer;
+    transition: all 0.4s
+  }
+
 	#goods-list-fragment #search_input {
 		font-size: 14px;
 	}

+ 2 - 1
pages/index.vue

@@ -102,7 +102,8 @@
             'BT2018012900002056',
             'BT2018012900002056']
         }),
-        store.dispatch('applyPurchase/loadPurchaseManList', {pageNumber: 1, pageSize: 50, enUU: store.state.option.user.data.enterprise ? store.state.option.user.data.enterprise.uu : null})
+        store.dispatch('applyPurchase/loadPurchaseManList', {pageNumber: 1, pageSize: 50, enUU: store.state.option.user.data.enterprise ? store.state.option.user.data.enterprise.uu : null}),
+        store.dispatch('loadStoreStatus', { op: 'check' })
       ]) : []
     },
     computed: {

+ 10 - 0
store/index.js

@@ -398,5 +398,15 @@ export const actions = {
       }, err => {
         commit('hotSearchBrand/GET_HOT_FAILURE', err)
       })
+  },
+  // 获取最多搜索量的 品牌
+  loadStoreStatus ({commit}, params = {}) {
+    commit('option/REQUEST_STORE_STATUS')
+    return axios.get('/store-service/stores', {params: params})
+      .then(response => {
+        commit('option/REQUEST_STORE_STATUS_SUCCESS', response.data)
+      }, err => {
+        commit('option/REQUEST_STORE_STATUS_FAILURE', err)
+      })
   }
 }

+ 14 - 0
store/option.js

@@ -22,6 +22,10 @@ export const state = {
   globalOptions: {
     fetching: false,
     data: {}
+  },
+  storeStatus: {
+    fetching: false,
+    data: {}
   }
 }
 
@@ -69,5 +73,15 @@ export const mutations = {
   },
   REQUEST_GLOBAL_OPTIONS_FAILURE (state) {
     state.globalOptions.fetching = false
+  },
+  REQUEST_STORE_STATUS (state) {
+    state.storeStatus.fetching = true
+  },
+  REQUEST_STORE_STATUS_SUCCESS (state, result) {
+    state.storeStatus.fetching = false
+    state.storeStatus.data = result
+  },
+  REQUEST_STORE_STATUS_FAILURE (state) {
+    state.storeStatus.fetching = false
   }
 }