jufubao-base 1.0.378 → 1.0.381
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/get.package.path.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
|
|
10
10
|
if(packname === 'gxd-commands-bussiness') {
|
|
11
|
-
return `/Users/shiyonggao/
|
|
11
|
+
return `/Users/shiyonggao/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
if (packname === 'gxd-uni-library-editx') {
|
|
15
|
-
return `/Users/shiyonggao/
|
|
15
|
+
return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
</view>
|
|
66
66
|
<xd-font-icon v-if="searchIconPosition==='left'" :icon="icon" :color="iconColor" size="32"/>
|
|
67
67
|
<input
|
|
68
|
-
v-if="
|
|
68
|
+
v-if="inputCanSearch"
|
|
69
69
|
:placeholder="placeholder"
|
|
70
70
|
class="search_input"
|
|
71
71
|
:value="keyword"
|
|
@@ -153,6 +153,10 @@
|
|
|
153
153
|
width: this.quickImgSize.width + 'rpx',
|
|
154
154
|
height: this.quickImgSize.height + 'rpx'
|
|
155
155
|
}
|
|
156
|
+
},
|
|
157
|
+
inputCanSearch(){
|
|
158
|
+
if(this.search_focus_back === 'Y') return true;
|
|
159
|
+
return this.useSearch === 'Y'
|
|
156
160
|
}
|
|
157
161
|
},
|
|
158
162
|
data() {
|
|
@@ -162,6 +166,7 @@
|
|
|
162
166
|
loaded: false,
|
|
163
167
|
keyword: "",
|
|
164
168
|
isPreview: false,
|
|
169
|
+
search_focus_back: "", //搜索框聚焦时返回, Y:是; N:否
|
|
165
170
|
|
|
166
171
|
//面板
|
|
167
172
|
showLocation: "",
|
|
@@ -239,6 +244,7 @@
|
|
|
239
244
|
methods: {
|
|
240
245
|
...mapMutations(['setShowSwitchCity', 'setCityInfo']),
|
|
241
246
|
onJfbLoad(options) {
|
|
247
|
+
this.search_focus_back = options.search_focus_back;
|
|
242
248
|
if(options.keyword) this.keyword = options.keyword;
|
|
243
249
|
this.loaded = true;
|
|
244
250
|
},
|
|
@@ -316,6 +322,10 @@
|
|
|
316
322
|
}
|
|
317
323
|
},
|
|
318
324
|
handleFocus(){
|
|
325
|
+
if(this.search_focus_back === "Y") {
|
|
326
|
+
this.$xdUniHelper.navigateBack();
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
319
329
|
jfbRootFnExec(this, 'onCustomEvent')("baseHeader@focus");
|
|
320
330
|
},
|
|
321
331
|
handleBlur(){
|
|
@@ -71,11 +71,12 @@
|
|
|
71
71
|
</view>
|
|
72
72
|
<xd-font-icon v-if="searchIconPosition==='left'" :icon="icon" :color="iconColor" size="32"/>
|
|
73
73
|
<input
|
|
74
|
-
v-if="
|
|
74
|
+
v-if="inputCanSearch"
|
|
75
75
|
:placeholder="placeholder"
|
|
76
76
|
class="search_input"
|
|
77
77
|
:value="keyword"
|
|
78
78
|
@input="handleInput"
|
|
79
|
+
@focus="handleFocus"
|
|
79
80
|
@click="toSearch"
|
|
80
81
|
:placeholder-style="'color:' + inputTextColor"
|
|
81
82
|
/>
|
|
@@ -165,6 +166,10 @@
|
|
|
165
166
|
width: this.quickImgSize.width + 'rpx',
|
|
166
167
|
height: this.quickImgSize.height + 'rpx'
|
|
167
168
|
}
|
|
169
|
+
},
|
|
170
|
+
inputCanSearch(){
|
|
171
|
+
if(this.search_focus_back === 'Y') return true;
|
|
172
|
+
return this.useSearch === 'Y'
|
|
168
173
|
}
|
|
169
174
|
},
|
|
170
175
|
data() {
|
|
@@ -174,6 +179,7 @@
|
|
|
174
179
|
loaded: false,
|
|
175
180
|
keyword: "",
|
|
176
181
|
isPreview: false,
|
|
182
|
+
search_focus_back: "", //搜索框聚焦时返回, Y:是; N:否
|
|
177
183
|
|
|
178
184
|
//面板
|
|
179
185
|
showLocation: "",
|
|
@@ -254,6 +260,7 @@
|
|
|
254
260
|
methods: {
|
|
255
261
|
...mapMutations(['setShowSwitchCity', 'setCityInfo']),
|
|
256
262
|
onJfbLoad(options) {
|
|
263
|
+
this.search_focus_back = options.search_focus_back;
|
|
257
264
|
if(options.keyword) this.keyword = options.keyword;
|
|
258
265
|
this.loaded = true;
|
|
259
266
|
},
|
|
@@ -341,6 +348,13 @@
|
|
|
341
348
|
jfbRootFnExec(this, 'onCustomEvent')("baseHeader@search", e.detail.value);
|
|
342
349
|
}, 300)
|
|
343
350
|
},
|
|
351
|
+
handleFocus(){
|
|
352
|
+
if(this.search_focus_back === "Y") {
|
|
353
|
+
this.$xdUniHelper.navigateBack();
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
jfbRootFnExec(this, 'onCustomEvent')("baseHeader@focus");
|
|
357
|
+
},
|
|
344
358
|
doSearch(){
|
|
345
359
|
if(this.useSearch === "N"){
|
|
346
360
|
this.$xdUniHelper.navigateTo({
|