feat: 优化联系客服,搜索功能显搜索关键字

master
学习很差啦 2023-03-17 20:13:47 +08:00
parent f9ae51606f
commit 9a583e75f3
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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 {