diff --git a/api/infoMarketInformation.js b/api/infoMarketInformation.js new file mode 100644 index 0000000..8e6fee7 --- /dev/null +++ b/api/infoMarketInformation.js @@ -0,0 +1,4 @@ +const { http } = uni.$u +// 列表和条件筛选 +export const getInfoMarketInformationlist = params => http.get('/infoMarketInformation/list', { params }) + diff --git a/common/config.js b/common/config.js index 66cf4a9..ebe5e3a 100644 --- a/common/config.js +++ b/common/config.js @@ -1,6 +1,7 @@ module.exports = { //后端接口地址 - baseUrl: 'http://127.0.0.1:48080/app-api', + baseUrl: 'http://10.11.38.240:9001', //内网开发环境 + // baseUrl: 'http://127.0.0.1:48080/app-api', // baseUrl: 'http://api-dashboard.yudao.iocoder.cn/app-api', // 超时 timeout: 30000, diff --git a/components/news-list/news-list.vue b/components/news-list/news-list.vue index 06bb0d5..49fa762 100644 --- a/components/news-list/news-list.vue +++ b/components/news-list/news-list.vue @@ -3,13 +3,12 @@ - 壳液牌发布最新版《液化天燃 - 气(LNS)前景》 + {{newItem.title}} - 行业动态 + {{ newItem.plate_name }} - 中国燃气控股有限公司 + {{newItem.organizeName}} @@ -23,7 +22,9 @@ export default { name: "news-list", props: { - + newItem:{ + type:Object + } }, data() { return { @@ -34,7 +35,7 @@ newsDetails(){ console.log("跳转"); uni.navigateTo({ - url:'/pages/market/newsDetails' + url:'/pages/market/newsDetails?detailsContent=' + JSON.stringify(this.newItem) }) } } diff --git a/pages/market/index.vue b/pages/market/index.vue index c001f14..0d432d2 100644 --- a/pages/market/index.vue +++ b/pages/market/index.vue @@ -4,14 +4,22 @@ + lineHeight="4rpx" lineColor="#cf000d" @click="tabChange"> - + +