|
|
@@ -6,7 +6,7 @@
|
|
|
<button class="admin-button-com middle blue" @click="selectFlowerNumFn()">图片分类</button>
|
|
|
</view>
|
|
|
<view class="search-bar">
|
|
|
- <app-search-module v-model="py" placeholder="输拼音首字母也可以搜" @input="searchFn"/>
|
|
|
+ <app-search-module v-model="py" placeholder="输拼音首字母也可以搜" @input="goSearchFn"/>
|
|
|
</view>
|
|
|
<view style="padding:0 0upx 0 15upx;" >
|
|
|
<button class="admin-button-com middle blue" @click="refreshItem()">刷新</button>
|
|
|
@@ -175,6 +175,22 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ goSearchFn(){
|
|
|
+ let type = uni.getSystemInfoSync().platform
|
|
|
+ //花大苪搜索要加句号
|
|
|
+ if(this.getLoginInfo.shopId == 8249){
|
|
|
+ if(type == 'windows'){
|
|
|
+ if(this.py.substr(-1,1) == '。'){
|
|
|
+ this.py = this.py.replace("。", "")
|
|
|
+ this.searchFn()
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.searchFn()
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.searchFn()
|
|
|
+ }
|
|
|
+ },
|
|
|
initItem(){
|
|
|
this.shopId = this.getMyShopInfo.id;
|
|
|
let type = '';
|