|
|
@ -248,7 +248,7 @@ |
|
|
// 设置列表数据 |
|
|
// 设置列表数据 |
|
|
await app.getCatList(page.num) |
|
|
await app.getCatList(page.num) |
|
|
.then(list => { |
|
|
.then(list => { |
|
|
// console.log('list',list) |
|
|
console.log('list',list) |
|
|
const curPageLen = list.data.length |
|
|
const curPageLen = list.data.length |
|
|
const totalSize = list.total |
|
|
const totalSize = list.total |
|
|
app.mescroll.endBySize(curPageLen, totalSize) |
|
|
app.mescroll.endBySize(curPageLen, totalSize) |
|
|
@ -280,7 +280,7 @@ |
|
|
handleSelectNav(index) { |
|
|
handleSelectNav(index) { |
|
|
this.curIndex = index |
|
|
this.curIndex = index |
|
|
this.scrollTop = 0 |
|
|
this.scrollTop = 0 |
|
|
this.getCatList() |
|
|
this.upCallback(1) |
|
|
}, |
|
|
}, |
|
|
// 查询分类 获取列表 |
|
|
// 查询分类 获取列表 |
|
|
getCatList(pageNo = 1){ |
|
|
getCatList(pageNo = 1){ |
|
|
@ -296,10 +296,15 @@ |
|
|
resolve(resolveList) |
|
|
resolve(resolveList) |
|
|
}) |
|
|
}) |
|
|
} else if (type === 2) { |
|
|
} else if (type === 2) { |
|
|
app.getConsultingContextSelection() |
|
|
app.getConsultingContextSelection().then(res => { |
|
|
|
|
|
resolve({data:res, total: res.length}) |
|
|
|
|
|
}) |
|
|
} else if (type === 3) { |
|
|
} else if (type === 3) { |
|
|
app.getServiceProviders() |
|
|
app.getServiceProviders().then(res => { |
|
|
|
|
|
resolve({data:res, total: 4}) |
|
|
|
|
|
}) |
|
|
} else if (type === 4) { |
|
|
} else if (type === 4) { |
|
|
|
|
|
resolve({data:[{test:1},{test:2}], total: 2}) |
|
|
} else { |
|
|
} else { |
|
|
let rd={"goods_status":1,"page":app.page,"limit":limit} |
|
|
let rd={"goods_status":1,"page":app.page,"limit":limit} |
|
|
app.bindData(rd).then(bindList=> { |
|
|
app.bindData(rd).then(bindList=> { |
|
|
@ -372,23 +377,29 @@ |
|
|
// 资讯中心 |
|
|
// 资讯中心 |
|
|
getConsultingContextSelection() { |
|
|
getConsultingContextSelection() { |
|
|
const app = this |
|
|
const app = this |
|
|
CategoryApi.consultingContextSelection().then(res=>{ |
|
|
return new Promise((resolve, reject) => { |
|
|
if (res.resultCode == '00000000') { |
|
|
CategoryApi.consultingContextSelection().then(res=>{ |
|
|
app.informationList = res.data |
|
|
if (res.resultCode == '00000000') { |
|
|
} else { |
|
|
app.informationList = res.data |
|
|
app.$error('获取资讯信息失败') |
|
|
resolve(res.data) |
|
|
} |
|
|
} else { |
|
|
}); |
|
|
app.$error('获取资讯信息失败') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 文化数据经纪商 |
|
|
// 文化数据经纪商 |
|
|
getServiceProviders() { |
|
|
getServiceProviders() { |
|
|
const app = this |
|
|
const app = this |
|
|
CategoryApi.serviceProviders().then(res=>{ |
|
|
return new Promise((resolve, reject) => { |
|
|
if (res.resultCode == '00000000') { |
|
|
CategoryApi.serviceProviders().then(res=>{ |
|
|
app.serviceProvidersList = res.data |
|
|
if (res.resultCode == '00000000') { |
|
|
} else { |
|
|
app.serviceProvidersList = res.data |
|
|
app.$error('获取文化数据经纪商失败') |
|
|
resolve(res.data) |
|
|
} |
|
|
} else { |
|
|
|
|
|
app.$error('获取文化数据经纪商失败') |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 处理列表中的特殊字段 |
|
|
// 处理列表中的特殊字段 |
|
|
|