yuwenjun пре 4 година
родитељ
комит
054ebf098e

+ 2 - 0
src/main/resources/static/js/product/produce-list.js

@@ -28,6 +28,7 @@ var productList = new Vue({
             pageNum: 1,
             idType:1
         },
+        nav_linkName:'',
         addhtml:'<span class="tag">美博会</span>'
     },
      filters:{
@@ -173,6 +174,7 @@ var productList = new Vue({
     },
     mounted:function () {
         var _self = this;
+        this.nav_linkName = decodeURI(CAIMEI.getUrlParam('name'));
         this.bigTypeID = getUrlParam('bigTypeID');
         this.bigTypeID = getUrlParam('bigTypeID');
         this.smallTypeID = getUrlParam('smallTypeID');

+ 1 - 1
src/main/resources/templates/product/instruelist.html

@@ -79,7 +79,7 @@
             <div class="list-container">
                 <ul class="clear mfw">
                     <li class="productItem " v-for="p in listData">
-                        <a class="image" :href="'/product-'+p.id+'.html'">
+                        <a class="image" :href="'/product-'+p.id+'.html'+'?name='+ nav_linkName">
                             <img src="/img/base/placeholder.png" :data-original="p.image" :alt="p.name">
                             <p class="name" v-html="addhtml + p.name" v-if="p.beautyActFlag==1"></p>
                             <p class="name" v-html="p.name" v-else></p>