Fix(千县&店铺入驻):[#5234]后台店铺分类添加超过 10 个类别,前端页面只展示前 10 个,多余分类展示缺失
This commit is contained in:
+2
-2
@@ -82,8 +82,8 @@ export function getHotelInfo(params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取千县名品店铺类型列表
|
// 获取千县名品店铺类型列表
|
||||||
export function getCountyFamousHotelType() {
|
export function getCountyFamousHotelType(params) {
|
||||||
return request.get("/countyFamous/hotelType", {}, {login: true})
|
return request.get("/countyFamous/hotelType", params, {login: true})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+2
-2
@@ -313,8 +313,8 @@ export function getCityShopList(params) {
|
|||||||
return request.get('/countyFamous/hotel', params, {login: true})
|
return request.get('/countyFamous/hotel', params, {login: true})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCountyFamousHotelType() {
|
export function getCountyFamousHotelType(params) {
|
||||||
return request.get('/countyFamous/hotelType', {}, {login: true})
|
return request.get('/countyFamous/hotelType', params, {login: true})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -698,7 +698,10 @@ export default {
|
|||||||
this.hotelTypeList = data.hotelTypeList || []
|
this.hotelTypeList = data.hotelTypeList || []
|
||||||
this.columnsType = this.hotelTypeList
|
this.columnsType = this.hotelTypeList
|
||||||
this.notice = data.merchantApplyNotice
|
this.notice = data.merchantApplyNotice
|
||||||
getCountyFamousHotelType().then(res => {
|
getCountyFamousHotelType({
|
||||||
|
page: 1,
|
||||||
|
limit: 9999
|
||||||
|
}).then(res => {
|
||||||
const listData = Array.isArray(res.data)
|
const listData = Array.isArray(res.data)
|
||||||
? res.data
|
? res.data
|
||||||
: (res.data && (res.data.hotelTypeList || res.data.list || res.data.records)) || []
|
: (res.data && (res.data.hotelTypeList || res.data.list || res.data.records)) || []
|
||||||
@@ -843,7 +846,10 @@ export default {
|
|||||||
this.form.isCountyFamous = value
|
this.form.isCountyFamous = value
|
||||||
if (value === 1) {
|
if (value === 1) {
|
||||||
if (this.countyFamousHotelTypeList.length === 0) {
|
if (this.countyFamousHotelTypeList.length === 0) {
|
||||||
getCountyFamousHotelType().then(res => {
|
getCountyFamousHotelType({
|
||||||
|
page: 1,
|
||||||
|
limit: 9999
|
||||||
|
}).then(res => {
|
||||||
const listData = Array.isArray(res.data)
|
const listData = Array.isArray(res.data)
|
||||||
? res.data
|
? res.data
|
||||||
: (res.data && (res.data.hotelTypeList || res.data.list || res.data.records)) || []
|
: (res.data && (res.data.hotelTypeList || res.data.list || res.data.records)) || []
|
||||||
|
|||||||
@@ -1048,7 +1048,7 @@ export default {
|
|||||||
this.getGuideReq()
|
this.getGuideReq()
|
||||||
// this.initPoster()
|
// this.initPoster()
|
||||||
this.getListReq()
|
this.getListReq()
|
||||||
this.getsaleList()
|
this.getSaleListReq()
|
||||||
this.queryGuide('countyFamousIndex')
|
this.queryGuide('countyFamousIndex')
|
||||||
this.getCityNewsCategoryReq()
|
this.getCityNewsCategoryReq()
|
||||||
},
|
},
|
||||||
@@ -1242,7 +1242,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getsaleList() {
|
getSaleListReq() {
|
||||||
const params = {
|
const params = {
|
||||||
countyFamousDataId: this.id,
|
countyFamousDataId: this.id,
|
||||||
page: 1,
|
page: 1,
|
||||||
@@ -1746,7 +1746,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getShopTypeList() {
|
getShopTypeList() {
|
||||||
getCountyFamousHotelType().then(res => {
|
getCountyFamousHotelType({
|
||||||
|
page: 1,
|
||||||
|
limit: 9999
|
||||||
|
}).then(res => {
|
||||||
const listData = Array.isArray(res.data)
|
const listData = Array.isArray(res.data)
|
||||||
? res.data
|
? res.data
|
||||||
: (res.data && (res.data.hotelTypeList || res.data.list || res.data.records)) || []
|
: (res.data && (res.data.hotelTypeList || res.data.list || res.data.records)) || []
|
||||||
|
|||||||
Reference in New Issue
Block a user