fanfan 3 months ago
parent 9c2ec9d23d
commit f672f0d9b7
  1. 17
      pages/goods/list.vue

@ -253,8 +253,8 @@
searchText: '', searchText: '',
banrdType: [], banrdType: [],
keyName1: '', keyName1: '',
isBanrdActive: '', isBanrdActive: 0,
isActive: '', isActive: 0,
goodsType: [], goodsType: [],
keyName2: '', keyName2: '',
showView: false, // (truefalse) showView: false, // (truefalse)
@ -445,15 +445,22 @@
if (this.keyName2) { if (this.keyName2) {
keywords.push(this.keyName2) keywords.push(this.keyName2)
} }
let categoryId = 0
if (this.isActive) {
categoryId = this.isActive
} else {
categoryId = this.isBanrdActive > 0 ? this.isBanrdActive : ((app.options.categoryId || app.options
.categoryId != undefined) ? app.options
.categoryId : 0)
}
const param = { const param = {
sortType: app.sortType != 'city' ? app.sortType : '', sortType: app.sortType != 'city' ? app.sortType : '',
sortPrice: Number(app.sortPrice), sortPrice: Number(app.sortPrice),
categoryId: (app.options.categoryId || app.options.categoryId != undefined) ? app.options categoryId: categoryId,
.categoryId : 0,
merchantId: app.options.merchantId, merchantId: app.options.merchantId,
// goodsName: app.options.search || '', // goodsName: app.options.search || '',
page: pageNo, page: pageNo,
keywords: keywords.length > 0 ? keywords.join(',') : '', // keywords: keywords.length > 0 ? keywords.join(',') : '',
keyword: app.options.search || '', keyword: app.options.search || '',
// goods_source: this.multiIndex > -1 ? this.multiArray[this.multiIndex].value : '' // goods_source: this.multiIndex > -1 ? this.multiArray[this.multiIndex].value : ''
} }

Loading…
Cancel
Save