Browse Source

搜索

master
jiazhipeng 3 months ago
parent
commit
44a41a6a83
  1. 4
      static/js/CommonFunction.js
  2. 2
      subPackages/techan/index.vue

4
static/js/CommonFunction.js

@ -89,9 +89,9 @@ Vue.prototype.showImg = img => {
if (!img) return; if (!img) return;
let timeStamp = new Date().getTime() let timeStamp = new Date().getTime()
if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) { if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
return img+"?timestamp="+timeStamp; return img;
} else { } else {
return Vue.prototype.NEWAPIURL + img +"?timestamp="+timeStamp; return Vue.prototype.NEWAPIURL + img;
} }
} }

2
subPackages/techan/index.vue

@ -391,7 +391,7 @@
this.Post({ this.Post({
name: this.searchText.trim(), name: this.searchText.trim(),
offset: this.searchList.length, offset: this.searchList.length,
// type: 'pgoods', type: 'goods',
limit: 10, limit: 10,
}, '/api/search/search').then(res => { }, '/api/search/search').then(res => {
let resData = (res.data || []).map(v=> {return {id: v.id, goods: v.search_data}}) let resData = (res.data || []).map(v=> {return {id: v.id, goods: v.search_data}})

Loading…
Cancel
Save