فهرست منبع

潜客搜集版本

zhengjinyi 1 سال پیش
والد
کامیت
04fea1946e

+ 2 - 1
src/main/resources/static/js/mixins/cmSysMixins.js

@@ -54,12 +54,13 @@ var cmSysVitaMixins = function () {
             handleCmSysNetInfo() {
                 //设置定时器
                 const globalUserData = JSON.parse(localStorage.getItem('userInfo'));
+                console.log('handleProsKey',this.handleProsKey)
                 if(globalUserData){ this.cmSysParams.userId = globalUserData.userId * 1; }
                 if( this.handleProsId || this.handleShopId || this.handlearticleId || this.handleProsKey || this.handleShopKey ){
                     this.popUpParams.shopId = this.handleShopId
                     this.popUpParams.productId = this.handleProsId
                     this.popUpParams.infoId = this.handlearticleId
-                    this.popUpParams.keyword = this.handleShopKey
+                    this.popUpParams.keyword = this.handleProsKey ? this.handleProsKey : '' || this.handleShopKey ? this.handleShopKey : ''
                     this.cmSysParams.behaviorType = 2;
                     if (!GLOBAL_USER_ID>0) {
                         this.userInformationIsClick()

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

@@ -334,6 +334,7 @@ var productList = new Vue({
         this.params.keyword = this.brandParam.keyword = getUrlParam("keyword") ? getUrlParam("keyword") : "";
         this.cmSysParams.pageType = 8;
         this.cmSysParams.pageLabel = this.handleProsKey = this.params.keyword;
+        console.log('handleProsKey',this.handleProsKey)
         // 搜索框赋值
         $('#topSearch').find('[data-select]').attr("data-select", 0).text("产品");
         $('#topSearch').find('.jqSelect').find('select').val(0);

+ 1 - 1
src/main/resources/templates/article/detail.html

@@ -31,7 +31,7 @@
     </div>
 </div>
 <!--主体内容-->
-<div class="content clearfix" th:object="${article}" id="articleContent">
+<div class="content clearfix" th:object="${article}" id="articleContent" v-cloak>
     <div class="mainData">
         <div class="new-list article" th:if="${article}!=null">
             <div class="title" th:text="*{title}"></div>