feat: ✨ 优化联系客服,搜索功能显搜索关键字
parent
f9ae51606f
commit
9a583e75f3
|
@ -700,11 +700,13 @@ export default {
|
||||||
keyword = (this.hotKeywordList.length && this.hotKeywordList[0]) || '';
|
keyword = (this.hotKeywordList.length && this.hotKeywordList[0]) || '';
|
||||||
}
|
}
|
||||||
this.defaultKeyword == '请输入搜索商品' ? (keyword = '') : '';
|
this.defaultKeyword == '请输入搜索商品' ? (keyword = '') : '';
|
||||||
// this.keyword = keyword;
|
|
||||||
|
|
||||||
keyword ? (this.keyword = keyword) : '';
|
keyword ? (this.keyword = keyword) : '';
|
||||||
this.saveKeyword(keyword); //保存为历史
|
this.saveKeyword(keyword); //保存为历史
|
||||||
this.isShowSeachGoods = true;
|
this.isShowSeachGoods = true;
|
||||||
this.$refs.mSearch.isShowSeachGoods = true;
|
this.$refs.mSearch.isShowSeachGoods = true;
|
||||||
|
this.$refs.mSearch.inputVal = keyword;
|
||||||
this.params.keyword = this.keyword;
|
this.params.keyword = this.keyword;
|
||||||
this.params.pageNumber = 1;
|
this.params.pageNumber = 1;
|
||||||
this.$set(this.sortParams, 'keyword', keyword);
|
this.$set(this.sortParams, 'keyword', keyword);
|
||||||
|
|
|
@ -365,8 +365,10 @@ export function quiteLoginOut () {
|
||||||
*/
|
*/
|
||||||
export function talkIm (storeId, goodsId, id) {
|
export function talkIm (storeId, goodsId, id) {
|
||||||
if (isLogin('auth')) {
|
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({
|
uni.navigateTo({
|
||||||
url: `/pages/mine/im/index?userId=${storeId}&goodsid=${goodsId}&skuid=${id}`
|
url
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue