jufubao-base 1.0.174-beta4 → 1.0.174-beta7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
v-if="useSearch==='Y'"
|
|
54
54
|
:placeholder="placeholder"
|
|
55
55
|
class="search_input"
|
|
56
|
+
:value="keyword"
|
|
56
57
|
@input="handleInput"
|
|
57
58
|
@click="toSearch"
|
|
58
59
|
:placeholder-style="'color:' + inputTextColor"
|
|
@@ -100,6 +101,8 @@
|
|
|
100
101
|
timer: null,
|
|
101
102
|
saveKey: 'xd_user_current_access_city', //用户选中城市存储key
|
|
102
103
|
loaded: false,
|
|
104
|
+
keyword: "",
|
|
105
|
+
|
|
103
106
|
//面板
|
|
104
107
|
showLocation: "",
|
|
105
108
|
showLocationKey: 'showLocationKey',
|
|
@@ -204,6 +207,7 @@
|
|
|
204
207
|
|
|
205
208
|
},
|
|
206
209
|
handleInput(e){
|
|
210
|
+
this.keyword = e.detail.value;
|
|
207
211
|
if(this.timer) clearTimeout(this.timer);
|
|
208
212
|
this.timer = setTimeout(() => {
|
|
209
213
|
jfbRootFnExec(this, 'onCustomEvent')("baseHeader@search", e.detail.value);
|
|
@@ -242,6 +246,11 @@
|
|
|
242
246
|
}
|
|
243
247
|
this.$xdUniHelper.navigateBack();
|
|
244
248
|
},
|
|
249
|
+
onJfbCustomEvent({action, data}){
|
|
250
|
+
if(action === 'baseTfkSearch@keyword'){
|
|
251
|
+
this.keyword = data;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
245
254
|
}
|
|
246
255
|
}
|
|
247
256
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
:color="listItemStyle.mainColor"
|
|
43
43
|
:border-radius="listItemStyle.imgRradius"
|
|
44
44
|
:brand-color="listItemStyle.brandColor"
|
|
45
|
-
:is-echange="
|
|
45
|
+
:is-echange="productConfig.isShowExchange"
|
|
46
46
|
@on-shop-jhd="data => handleShopJhd(data, parent)"
|
|
47
47
|
@on-shop-detail="data => handleShopDetail(data, parent)"
|
|
48
48
|
></content-shop>
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
},
|
|
158
158
|
moduleItemContStyle(){
|
|
159
159
|
const { contBgColor, contShadow, contBorder, contMargin, contRradius, outSpacing } = this.listItemStyle;
|
|
160
|
-
|
|
160
|
+
|
|
161
161
|
let padding = `${this.checkValue(contMargin.top, 20)}rpx`;
|
|
162
162
|
padding = `${padding} ${this.checkValue(contMargin.right, 20)}rpx`;
|
|
163
163
|
padding = `${padding} ${this.checkValue(contMargin.bottom, 20)}rpx`;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<script>
|
|
66
66
|
import XdSearchHistory from "@/components/XdSearchHistory/XdSearchHistory";
|
|
67
67
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
68
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
68
|
+
import { jfbRootExec, jfbRootFnExec } from "@/utils/xd.event";
|
|
69
69
|
import JfbBaseTfkSearchMixin from "./JfbBaseTfkSearchMixin";
|
|
70
70
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
71
71
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
@@ -312,6 +312,7 @@
|
|
|
312
312
|
},
|
|
313
313
|
handleToSearch(item){
|
|
314
314
|
this.keyword = item;
|
|
315
|
+
jfbRootFnExec(this, 'onCustomEvent')("baseTfkSearch@keyword", item);
|
|
315
316
|
},
|
|
316
317
|
onJfbScroll(options) {
|
|
317
318
|
// console.log('event.onJfbScroll', options)
|