提交 df7ef32d 作者: e

feat: 修改农业政策分类参数的请求位置

上级 b6a8a809
# API 接口地址 # API 接口地址
# VITE_GLOB_API_URL=http://111.22.182.169:49600 VITE_GLOB_API_URL=http://111.22.182.169:49600
VITE_GLOB_API_URL=http://36.133.16.81:42111 # VITE_GLOB_API_URL=http://36.133.16.81:42111
# VITE_GLOB_API_URL=http://123.207.47.17 # VITE_GLOB_API_URL=http://123.207.47.17
# API 接口地址前缀 # API 接口地址前缀
# VITE_GLOB_API_URL_PREFIX=/jeecgboot VITE_GLOB_API_URL_PREFIX=/jeecgboot
VITE_GLOB_API_URL_PREFIX=/jeecg-boot # VITE_GLOB_API_URL_PREFIX=/jeecg-boot
# VITE_GLOB_API_URL_PREFIX=/jeecg-boot # VITE_GLOB_API_URL_PREFIX=/jeecg-boot
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
videoApi.getList(params).then((res) => { videoApi.getList(params).then((res) => {
if (res.records.length > 0) { if (res.records.length > 0) {
const { records } = res; const { records } = res;
console.log("*************************")
console.log(res);
let scale:any = 0; let scale:any = 0;
for(let i = 0; i < records.length;i++){ for(let i = 0; i < records.length;i++){
if(records[i].width){ if(records[i].width){
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
params: { params: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
news:{ category:1,
/* news:{
category:1 category:1
} } */
}, // 分页参数 }, // 分页参数
hasMore: true, // 是否还有更多数据 hasMore: true, // 是否还有更多数据
loading: false, // 是否正在加载 loading: false, // 是否正在加载
...@@ -20,10 +21,10 @@ ...@@ -20,10 +21,10 @@
}) })
onLoad((options) => { onLoad((options) => {
if(options && options.category==1){ if(options && options.category==1){
pageData.params.news.category = options.category; pageData.params.category = options.category;
currentTab.value = 'redian'; currentTab.value = 'redian';
}else{ }else{
pageData.params.news.category = 2; pageData.params.category = 2;
currentTab.value = 'nongye'; currentTab.value = 'nongye';
} }
}) })
...@@ -60,15 +61,15 @@ ...@@ -60,15 +61,15 @@
pageData.params.pageNo = 1; pageData.params.pageNo = 1;
currentTab.value = type; currentTab.value = type;
if(type == 'redian'){ if(type == 'redian'){
pageData.params.news.category = 1; pageData.params.category = 1;
getListData(); getListData();
} }
if(type == 'nongye'){ if(type == 'nongye'){
pageData.params.news.category = 2; pageData.params.category = 2;
getListData(); getListData();
} }
if(type == 'butie'){ if(type == 'butie'){
pageData.params.news.category = 3; pageData.params.category = 3;
pageData.dataList = []; pageData.dataList = [];
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论