|
@@ -202,10 +202,15 @@
|
|
|
<view class="list-details-title clearfix">
|
|
|
<text class="mclap-tag" v-if="pros.beautyActFlag == 1">美博会</text>
|
|
|
<view class="mclap" :class="pros.beautyActFlag == 1 ? 'indent' : ''">
|
|
|
- <view v-for="item in highLight(isInterceptHtmlFn(pros.name),listQuery.keyword)" :key="item" style="float:left;">
|
|
|
- <text v-if="item.type==1" decode="true" space="true" style='color: #ff5b00;'>{{ myReplace(item.text) }} </text>
|
|
|
- <text v-else decode="true" space="true">{{myReplace(item.text)}}</text>
|
|
|
- </view>
|
|
|
+ <text v-for="(item, itemIndex) in handeleCeptText(isInterceptHtmlFn(pros.name),listQuery.keyword)"
|
|
|
+ :key="itemIndex"
|
|
|
+ :style="{ color : item.type === 1 ? '#ff5b00' : '#333333' }">
|
|
|
+ {{ item.text }}
|
|
|
+ </text>
|
|
|
+ <!-- <view v-for="(item, itemIndex) in pros.name" :key="itemIndex" style="float:left;">
|
|
|
+ <text v-if="item.type ==1" style='color: #ff5b00;'>{{ item.text }} </text>
|
|
|
+ <text v-else>{{ item.text }}</text>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<text class="list-details-specs">规格:{{ pros.unit }}</text>
|
|
@@ -754,6 +759,7 @@ export default {
|
|
|
if (loadMore) {
|
|
|
this.listData = [...this.listData, ...dataList]
|
|
|
this.getProductPrice()
|
|
|
+
|
|
|
} else {
|
|
|
this.listData = [...dataList]
|
|
|
this.getProductPrice()
|
|
@@ -971,10 +977,6 @@ export default {
|
|
|
this.isFocus = true
|
|
|
}
|
|
|
},
|
|
|
- isInterceptHtmlFn(text) {
|
|
|
- let name = this.$reg.interceptHtmlFn(text)
|
|
|
- return name
|
|
|
- },
|
|
|
navToDetailPage(id) {
|
|
|
this.isModallayer = true
|
|
|
this.$api.navigateTo(`/pages/goods/product?id=${id}`)
|
|
@@ -1066,7 +1068,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
topBubble() {
|
|
|
- console.log('1111111111')
|
|
|
//显隐搜索项
|
|
|
this.showBubblePopup = !this.showBubblePopup
|
|
|
}
|