diff --git a/src/api/detail.ts b/src/api/detail.ts index 5ec65ed..71b61cc 100644 --- a/src/api/detail.ts +++ b/src/api/detail.ts @@ -1,4 +1,4 @@ -import request from "@/utils"; +import request from "@/utils/index"; /** * 获取文章详情 @@ -33,10 +33,11 @@ export const fetchArticleFavorate = (data: any) => { // 热门行业 export const getListByTagIndustry = (data: any) => { - return request.get(`/news/list/industry?name=${data.name}`); + console.log("🚀 ~ getListByTagIndustry ~ data:", data) + return request.get("/news/list/industry", { name: data.name }); }; // 概念标签 export const getListByTag = (data: any) => { - return request.get(`/news/list/tag?name=${data.name}`); + return request.get("/news/list/tag", { name: data.name }); }; \ No newline at end of file diff --git a/src/components/RankListMini.vue b/src/components/RankListMini.vue index d9a7ef6..7b45acd 100644 --- a/src/components/RankListMini.vue +++ b/src/components/RankListMini.vue @@ -4,7 +4,16 @@ - {{ index + 1 }} + + + + + + + + + + {{ index + 1 }} @@ -18,9 +27,9 @@ dayjs(item.publish_time).format("YYYY-MM-DD HH:MM:ss") }} - + @@ -33,8 +42,8 @@ - + @@ -159,7 +168,7 @@ const handlePopupErrorCallback = () => { text-align: left; font-style: normal; - img { + image { width: 33rpx; height: 41rpx; margin-top: -10rpx; @@ -167,11 +176,30 @@ const handlePopupErrorCallback = () => { } .rank-text { - font-family: PingFangSC, PingFang SC; - font-weight: bold; - font-size: 28rpx; - color: #e98254; + // font-family: PingFangSC, PingFang SC; + // font-weight: bold; + // font-size: 28rpx; + // color: #e98254; + width: 32rpx; + height: 30rpx; + margin-top: -20rpx; + + background: #f5f5f5; + border-radius: 8rpx; + + font-family: AvantiBold; + font-size: 24rpx; + color: #5A5A5A; + line-height: 26rpx; + text-align: left; + font-style: normal; + + display: flex; + text-align: center; + justify-content: center; + align-items: center; + } .news-content { diff --git a/src/components/article/indexNewsInfo.vue b/src/components/article/indexNewsInfo.vue index 37481e5..1b68820 100644 --- a/src/components/article/indexNewsInfo.vue +++ b/src/components/article/indexNewsInfo.vue @@ -43,9 +43,14 @@ - - + --> + + + @@ -92,6 +93,8 @@ import { onPullDownRefresh, onShow } from "@dcloudio/uni-app"; import { Session } from "@/utils/storage"; import LoginPopup from "@/components/loginPopup/index.vue"; import { useShareStore } from "@/stores/shareStore"; +import PageHeaderView from "@/components/PageHeaderView.vue"; + const stores = useShareStore(); const curPages = getCurrentPages(); diff --git a/src/components/mini/Tabbar.vue b/src/components/mini/Tabbar.vue index 129e1db..64d517e 100644 --- a/src/components/mini/Tabbar.vue +++ b/src/components/mini/Tabbar.vue @@ -2,21 +2,22 @@ - 首页 + 海外资讯 - 全部 + src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/mine_icon_pre.png" + class="tabbar_img" /> + 全部 @@ -38,12 +39,15 @@ onMounted(async () => { }); + diff --git a/src/config/index.ts b/src/config/index.ts index 1dce34a..1520d10 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -1,4 +1,5 @@ // const baseURL = "http://192.168.31.25:8060/api"; +// export const baseUrl = "http://192.168.3.38:8040/apih5"; export const baseUrl = "https://cankao.cs.com.cn/apih5"; export const baseUrlDataV = "https://cankao.cs.com.cn/zzck_datav"; diff --git a/src/pages.json b/src/pages.json index a97dd9b..e155aeb 100644 --- a/src/pages.json +++ b/src/pages.json @@ -7,7 +7,11 @@ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { - "path": "pages/minihome/index" + "path": "pages/minihome/index", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": true + } }, { "path": "pages/realtimeInfo/index" @@ -18,6 +22,9 @@ { "path": "pages/login/index" }, + { + "path": "pages/realtimeInfo/rankDetail" + }, { "path": "pages/home/index", "style": { @@ -52,9 +59,6 @@ { "path": "pages/worldlyAffairs/index" }, - { - "path": "pages/realtimeInfo/rankDetail" - }, { "path": "pages/realtimeInfo/home" }, diff --git a/src/pages/detail/indexNewsInfo.vue b/src/pages/detail/indexNewsInfo.vue index 65d0c49..eca0a69 100644 --- a/src/pages/detail/indexNewsInfo.vue +++ b/src/pages/detail/indexNewsInfo.vue @@ -1,5 +1,7 @@