mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-18 00:15:54 +08:00
feat: ✨ 优化联系客服,搜索功能显搜索关键字
This commit is contained in:
@@ -700,11 +700,13 @@ export default {
|
||||
keyword = (this.hotKeywordList.length && this.hotKeywordList[0]) || '';
|
||||
}
|
||||
this.defaultKeyword == '请输入搜索商品' ? (keyword = '') : '';
|
||||
// this.keyword = keyword;
|
||||
|
||||
|
||||
keyword ? (this.keyword = keyword) : '';
|
||||
this.saveKeyword(keyword); //保存为历史
|
||||
this.isShowSeachGoods = true;
|
||||
this.$refs.mSearch.isShowSeachGoods = true;
|
||||
this.$refs.mSearch.inputVal = keyword;
|
||||
this.params.keyword = this.keyword;
|
||||
this.params.pageNumber = 1;
|
||||
this.$set(this.sortParams, 'keyword', keyword);
|
||||
|
||||
@@ -365,8 +365,10 @@ export function quiteLoginOut () {
|
||||
*/
|
||||
export function talkIm (storeId, goodsId, id) {
|
||||
if (isLogin('auth')) {
|
||||
let url = `/pages/mine/im/index?userId=${storeId}`
|
||||
if(goodsId && id) url = `/pages/mine/im/index?userId=${storeId}&goodsid=${goodsId}&skuid=${id}`
|
||||
uni.navigateTo({
|
||||
url: `/pages/mine/im/index?userId=${storeId}&goodsid=${goodsId}&skuid=${id}`
|
||||
url
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user