Browse Source

commit -m 修复搜索统计

zhengjinyi 2 years ago
parent
commit
04cf5cdb0d
2 changed files with 6 additions and 6 deletions
  1. 2 2
      mixins/cmSrsMixins.js
  2. 4 4
      pages/search/search.vue

+ 2 - 2
mixins/cmSrsMixins.js

@@ -19,7 +19,7 @@ const cmSrsMixins = {
             handleShopId: 0,
             handleProsKey: '',
             handleShopKey: '',
-            productIds: [7247, 7248], //Ross 商品ID集合
+            productIdList: [7247, 7248], //Ross 商品ID集合
             shopIds: [1378], // Ross 供应商Id
             keyWords: ['Binary Premium', '智能体疗管理系统', '448k', '肌肉重塑疗法', '西班牙ROSS', 'ROSS', '智能体疗', '西班牙Ross', 'Ross',
                 '西班牙ross', 'ross',
@@ -31,7 +31,7 @@ const cmSrsMixins = {
     },
     methods: {
         checkedIsRossSet() {
-            if (this.productIds.includes(this.handleProsId * 1) ||
+            if (this.productIdList.includes(this.handleProsId * 1) ||
 				this.shopIds.includes(this.handleShopId * 1) ||
 				this.keyWords.includes(this.handleProsKey) ||
 				this.shopKeyWords.includes(this.handleShopKey)

+ 4 - 4
pages/search/search.vue

@@ -19,14 +19,14 @@
                         confirm-type="search"
                         @focus="onFocus"
                         @input="onShowClose"
-                        @confirm="subMitSearch()"
+                        @confirm="handleSearchQuery"
                         @blur="onBlur"
                         placeholder="请输入搜索关键字"
                         v-model.trim="listQuery.keyword"
                     />
                     <text class="iconfont icon-shanchu1" v-if="isShowClose" @click.stop="delInputText()"></text>
                 </view>
-                <view class="search-btn" @click="subMitSearch()">搜索</view>
+                <view class="search-btn" @click="handleSearchQuery">搜索</view>
             </view>
             <!-- 筛选条件排序 -->
             <view class="tui-header-screen">
@@ -692,7 +692,7 @@ export default {
                     console.log('查询品牌列表异常')
                 })
         },
-        subMitSearch() {
+        handleSearchQuery() {
             this.showLibaray = false
             this.listQuery.productFlag = 1
             this.listQuery.linkageFlag = 0
@@ -961,7 +961,7 @@ export default {
             this.listQuery.keyword = item
             this.isShowClose = true
             this.isFocus = false
-            this.subMitSearch()
+            this.handleSearchQuery()
         },
         keywordsClickPath(item) {
             this.$api.FlooryNavigateTo(item)