Compare commits
71 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
58ff90d70b | |
|
|
2c44b2dca5 | |
|
|
cae58ccd3f | |
|
|
90e01e8009 | |
|
|
12310a191d | |
|
|
ac2515b6c6 | |
|
|
c29b2b48a9 | |
|
|
7acc8c7332 | |
|
|
73dd03d6b3 | |
|
|
82f40c41cd | |
|
|
64db654c41 | |
|
|
d4f9d76688 | |
|
|
96447e97b9 | |
|
|
b3be3481e2 | |
|
|
e763c82dce | |
|
|
763053ad6d | |
|
|
c7c9b94e11 | |
|
|
fbea363bb8 | |
|
|
5f0242d697 | |
|
|
1f21f01bde | |
|
|
11fdfc16c6 | |
|
|
b492406f7b | |
|
|
7cd93926f8 | |
|
|
2dc59ae87d | |
|
|
e8a9f2cb91 | |
|
|
b63bd3703a | |
|
|
1d1bbae0c5 | |
|
|
fbcce419f2 | |
|
|
586d9c062d | |
|
|
cd93d6d06d | |
|
|
16b84d9d19 | |
|
|
3b156d7768 | |
|
|
69131f5f1d | |
|
|
c89b80e4eb | |
|
|
695149674f | |
|
|
8f23f0c315 | |
|
|
ca66c8eb88 | |
|
|
cf3cd6e263 | |
|
|
69da934f68 | |
|
|
c5e4c34daa | |
|
|
c6d8278f7d | |
|
|
cda80c62d6 | |
|
|
d74ce73971 | |
|
|
a82d86efc2 | |
|
|
77029700ed | |
|
|
14fa72f32b | |
|
|
aada0e1c2c | |
|
|
21f418ff6f | |
|
|
e35509eda8 | |
|
|
9e337565a5 | |
|
|
1ac4d39e91 | |
|
|
21662afa47 | |
|
|
650d5aefcc | |
|
|
f0da0b3760 | |
|
|
a70819522e | |
|
|
f306788d8c | |
|
|
b899101cf9 | |
|
|
e9f2799c13 | |
|
|
70aa8e6f58 | |
|
|
14aec795a6 | |
|
|
b303828164 | |
|
|
13e67b8aa9 | |
|
|
b3cd7aff28 | |
|
|
1ba80c041c | |
|
|
126f48d883 | |
|
|
761758accf | |
|
|
557aa97a99 | |
|
|
a972754e81 | |
|
|
b94cba2379 | |
|
|
784e1c2be1 | |
|
|
5934ff0b93 |
|
|
@ -5,7 +5,7 @@ ENV = development
|
|||
# VITE_API_URL = http://123.60.153.169:8040/apih5
|
||||
# VITE_API_URL = https://4155gf93ll13.vicp.fun/apih5
|
||||
# VITE_API_URL = http://123.60.79.143:8041/apih5
|
||||
# VITE_API_URL =http://ukfba3.natappfree.cc/apih5
|
||||
# VITE_API_URL = http://192.168.3.38:8040/apih5
|
||||
VITE_API_URL = https://cankao.cs.com.cn/apih5
|
||||
|
||||
VITE_API_DATAV_URL = https://cankao.cs.com.cn/zzck_datav
|
||||
BIN
caokao-h5.zip
52
index.html
|
|
@ -1,20 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
var coverSupport =
|
||||
"CSS" in window &&
|
||||
typeof CSS.supports === "function" &&
|
||||
(CSS.supports("top: env(a)") || CSS.supports("top: constant(a)"));
|
||||
document.write(
|
||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||
(coverSupport ? ", viewport-fit=cover" : "") +
|
||||
'" />'
|
||||
);
|
||||
</script>
|
||||
<!-- <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> -->
|
||||
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
var coverSupport =
|
||||
"CSS" in window &&
|
||||
typeof CSS.supports === "function" &&
|
||||
(CSS.supports("top: env(a)") || CSS.supports("top: constant(a)"));
|
||||
document.write(
|
||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||
(coverSupport ? ", viewport-fit=cover" : "") +
|
||||
'" />'
|
||||
);
|
||||
</script>
|
||||
<!-- <script
|
||||
<!-- <script
|
||||
type="text/javascript"
|
||||
src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"
|
||||
></script>
|
||||
|
|
@ -23,16 +25,17 @@
|
|||
delete window.wx;
|
||||
</script>
|
||||
<script src="https://www.cs.com.cn/js/2020/jquery-3.4.1.min.js"></script> -->
|
||||
<!-- <link rel="icon" href="/src/assets/favicon.ico" /> -->
|
||||
<title></title>
|
||||
<!--preload-links-->
|
||||
<!--app-context-->
|
||||
</head>
|
||||
<!-- <link rel="icon" href="/src/assets/favicon.ico" /> -->
|
||||
<title></title>
|
||||
<!--preload-links-->
|
||||
<!--app-context-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"><!--app-html--></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<!-- <script type="text/javascript">
|
||||
<body>
|
||||
<div id="app"><!--app-html--></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
|
||||
<!-- <script type="text/javascript">
|
||||
var link = location.href.split("#")[0];
|
||||
console.log("🚀 ~ link:", link);
|
||||
var link2 = location.href.split("#")[1];
|
||||
|
|
@ -107,6 +110,5 @@
|
|||
error: function (error) {},
|
||||
});
|
||||
</script> -->
|
||||
</body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -28,6 +28,7 @@
|
|||
"echarts": "^5.6.0",
|
||||
"js-cookie": "^3.0.5",
|
||||
"js-md5": "^0.8.3",
|
||||
"jweixin-module": "^1.6.0",
|
||||
"pinia": "^2.0.36",
|
||||
"qs": "^6.11.2",
|
||||
"vue": "^3.2.45",
|
||||
|
|
@ -9510,6 +9511,12 @@
|
|||
"graceful-fs": "^4.1.6"
|
||||
}
|
||||
},
|
||||
"node_modules/jweixin-module": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmmirror.com/jweixin-module/-/jweixin-module-1.6.0.tgz",
|
||||
"integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/kleur": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/kleur/-/kleur-3.0.3.tgz",
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@
|
|||
"name": "uni-preset-vue",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"dev:mp-weixin": "uni -p mp-weixin",
|
||||
"dev:h5": "uni",
|
||||
"build:h5": "uni build",
|
||||
"dev:h5:ssr": "uni --ssr",
|
||||
"dev:mp-weixin": "uni -p mp-weixin",
|
||||
"dev:mp-alipay": "uni -p mp-alipay",
|
||||
"dev:app": "uni -p app",
|
||||
"dev:app-android": "uni -p app-android",
|
||||
|
|
@ -59,6 +59,7 @@
|
|||
"echarts": "^5.6.0",
|
||||
"js-cookie": "^3.0.5",
|
||||
"js-md5": "^0.8.3",
|
||||
"jweixin-module": "^1.6.0",
|
||||
"pinia": "^2.0.36",
|
||||
"qs": "^6.11.2",
|
||||
"vue": "^3.2.45",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ onHide(() => {
|
|||
<style lang="scss">
|
||||
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
||||
@import "@/uni_modules/uview-plus/index.scss";
|
||||
|
||||
#app,
|
||||
uni-app,
|
||||
uni-page,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import request from "@/utils";
|
||||
import request from "@/utils/index";
|
||||
|
||||
/**
|
||||
* 获取文章详情
|
||||
|
|
@ -7,10 +7,9 @@ import request from "@/utils";
|
|||
* @returns
|
||||
*/
|
||||
export const fetchArticleDetail = (data: any) => {
|
||||
return request.get(`/news/detail/${data.id}`);
|
||||
return request.get(`/news/detail/${data.id}?phone=${data?.phone || null}`);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* 文章点赞
|
||||
* @param data
|
||||
|
|
@ -33,10 +32,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 });
|
||||
};
|
||||
|
|
@ -62,3 +62,22 @@ export const searchNews = (data: any) => {
|
|||
return Request.post("/news/search", data);
|
||||
};
|
||||
|
||||
// 微信授权
|
||||
export const doWxAuth = (data: any) => {
|
||||
return Request.post("/common/auth", data);
|
||||
};
|
||||
|
||||
// 微信分享
|
||||
export const doShare = (data: any) => {
|
||||
return Request.post("/user/share", data);
|
||||
};
|
||||
|
||||
// 国内资讯列表
|
||||
export const getDomestic = (data: any) => {
|
||||
return Request.get("/news/domestic", data);
|
||||
};
|
||||
|
||||
// 国内资讯详情
|
||||
export const getDomesticDetail = (data: any) => {
|
||||
return Request.get(`/news/domestic/${data.id}`);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@ export const getConceptCount = (data: any) => {
|
|||
|
||||
// 概念标签贴标
|
||||
export const getTopNews = (data: any) => {
|
||||
return request.get("/top_news_h5_d", data);
|
||||
// return request.get("/top_news_h5_d", data);
|
||||
return request.get("/top_news_release_h5_d", data);
|
||||
};
|
||||
|
||||
// 热门行业top10:
|
||||
|
|
@ -34,3 +35,8 @@ export const getTopConcept_d = (data: any) => {
|
|||
export const getNews_cnt_d = (data: any) => {
|
||||
return request.get("/news_cnt_d", data);
|
||||
};
|
||||
|
||||
// 概念标签贴标
|
||||
export const getTopNewsAll = (data: any) => {
|
||||
return request.get("/top_news_release_h5_all", data);
|
||||
};
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 674 B After Width: | Height: | Size: 674 B |
|
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 555 B |
|
|
@ -1,15 +0,0 @@
|
|||
@font-face {
|
||||
font-family: "SourceHanSansCN-Regular";
|
||||
font-style: normal;
|
||||
src: url("./PingFang_Medium.ttf") format("opentype");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "SourceHanSansCN-Medium";
|
||||
font-style: normal;
|
||||
src: url("./SourceHanSansCN-Medium.otf") format("opentype");
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
font-family: "SourceHanSansCN-Regular";
|
||||
}
|
||||
|
Before Width: | Height: | Size: 480 B |
|
Before Width: | Height: | Size: 989 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 233 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 994 B |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 646 B |
|
Before Width: | Height: | Size: 851 B |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 701 B |
|
Before Width: | Height: | Size: 234 B |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 470 B |
|
Before Width: | Height: | Size: 707 B |
|
Before Width: | Height: | Size: 536 B |
|
Before Width: | Height: | Size: 860 B |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 800 B |
|
Before Width: | Height: | Size: 237 KiB |
|
Before Width: | Height: | Size: 639 B |
|
Before Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 416 B |
|
Before Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 839 B |
|
Before Width: | Height: | Size: 238 B |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 580 B |
|
Before Width: | Height: | Size: 735 B |
|
Before Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 892 B |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 466 B |
|
Before Width: | Height: | Size: 502 B |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 231 B |
|
Before Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
|
@ -1,11 +1,6 @@
|
|||
<template>
|
||||
<view class="list">
|
||||
<view
|
||||
v-for="(item, index) in props.data"
|
||||
:key="index"
|
||||
class="item"
|
||||
|
||||
>
|
||||
<view v-for="(item, index) in props.data" :key="index" class="item">
|
||||
<!-- 标题 start -->
|
||||
<!-- <text class="title" v-html="item.title">{{ item.title }}</text> -->
|
||||
<text @click="handleClick(item)" class="title" v-html="item.MarkInRedTitle || item.title"></text>
|
||||
|
|
@ -13,20 +8,16 @@
|
|||
<!-- 内容 start -->
|
||||
|
||||
<view class="r_content">
|
||||
<image src="@/static/icon_act_lt.png" class="title_icon"></image>
|
||||
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/static/icon_act_lt.png" class="title_icon">
|
||||
</image>
|
||||
<text @click="handleClick(item)" class="content" v-html="item.MarkInRedContent || item.content"></text>
|
||||
<!-- <text @click="handleClick(item)" class="content">{{ item.content }}</text> -->
|
||||
<!-- 需要付费锁 start -->
|
||||
<view class="need_login" v-if="item.needpay" @click="handleSubListItem(item)">
|
||||
<image src="@/static/icon_lock.png" class="need_icon"></image>
|
||||
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/static/icon_lock.png" class="need_icon">
|
||||
</image>
|
||||
<text>订阅后解锁全文</text>
|
||||
<u-icon
|
||||
name="arrow-right"
|
||||
color="#fff"
|
||||
size="10"
|
||||
style="margin-left: 10rpx"
|
||||
bold
|
||||
></u-icon>
|
||||
<u-icon name="arrow-right" color="#fff" size="10" style="margin-left: 10rpx" bold></u-icon>
|
||||
</view>
|
||||
<!-- 需要付费锁 end -->
|
||||
</view>
|
||||
|
|
@ -54,18 +45,18 @@ const props = defineProps({
|
|||
// 列表内容
|
||||
data: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
default: () => { },
|
||||
},
|
||||
});
|
||||
console.log("props.data", props.data)
|
||||
onBeforeMount(() => {});
|
||||
onBeforeMount(() => { });
|
||||
|
||||
// 点击订阅
|
||||
const handleSubListItem = (item) => {
|
||||
// props.data.needpay = true;
|
||||
// return () => {
|
||||
// console.log("item ===>", item)
|
||||
emit("handleSubListItem", item.id);
|
||||
// console.log("item ===>", item)
|
||||
emit("handleSubListItem", item.id);
|
||||
// }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,75 +1,40 @@
|
|||
<template>
|
||||
<view class="hot-industry-container">
|
||||
<u-skeleton
|
||||
rows="5"
|
||||
title
|
||||
loading
|
||||
style="margin-bottom: 30rpx"
|
||||
v-if="loading"
|
||||
></u-skeleton>
|
||||
<u-skeleton rows="5" title loading style="margin-bottom: 30rpx" v-if="loading"></u-skeleton>
|
||||
|
||||
<!-- 行业列表 -->
|
||||
<view class="industry-list" v-else>
|
||||
<view
|
||||
v-for="(item, index) in industryList"
|
||||
:key="index"
|
||||
class="industry-item"
|
||||
:style="getItemBgStyle(index)"
|
||||
@click="goDetail(item, index)"
|
||||
>
|
||||
<view v-for="(item, index) in industryList" :key="index" class="industry-item" :style="getItemBgStyle(index)"
|
||||
@click="goDetail(item, index)">
|
||||
<!-- 这里预留图标位置,可自行补充 <image :src="item.icon" class="industry-icon" /> 等 -->
|
||||
<view
|
||||
style="
|
||||
<view style="
|
||||
position: absolute;
|
||||
top: 0;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
"
|
||||
>
|
||||
<img
|
||||
src="@/assets/zixun/ranking_icon_1_1.png"
|
||||
class="top3numbk"
|
||||
v-if="index < 3 && index == 0"
|
||||
/>
|
||||
<img
|
||||
src="@/assets/zixun/ranking_icon_2_2.png"
|
||||
class="top3numbk"
|
||||
v-else-if="index < 3 && index == 1"
|
||||
/>
|
||||
<img
|
||||
src="@/assets/zixun/ranking_icon_3_3.png"
|
||||
class="top3numbk"
|
||||
v-else-if="index < 3 && index == 2"
|
||||
/>
|
||||
">
|
||||
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_icon_1_1.png" class="top3numbk"
|
||||
v-if="index < 3 && index == 0" />
|
||||
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_icon_2_2.png" class="top3numbk"
|
||||
v-else-if="index < 3 && index == 1" />
|
||||
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_icon_3_3.png" class="top3numbk"
|
||||
v-else-if="index < 3 && index == 2" />
|
||||
<text class="rank" v-else>{{ index + 1 }}</text>
|
||||
<text class="industry-name">{{ item.content }}</text>
|
||||
</view>
|
||||
<img
|
||||
src="@/assets/zixun/ranking_bg_1.png"
|
||||
class="top3bk"
|
||||
v-if="index < 3 && index == 0"
|
||||
/>
|
||||
<img
|
||||
src="@/assets/zixun/ranking_bg_2.png"
|
||||
class="top3bk"
|
||||
v-if="index < 3 && index == 1"
|
||||
/>
|
||||
<img
|
||||
src="@/assets/zixun/ranking_bg_3.png"
|
||||
class="top3bk"
|
||||
v-if="index < 3 && index == 2"
|
||||
/>
|
||||
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_bg_1.png" class="top3bk"
|
||||
v-if="index < 3 && index == 0" />
|
||||
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_bg_2.png" class="top3bk"
|
||||
v-if="index < 3 && index == 1" />
|
||||
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_bg_3.png" class="top3bk"
|
||||
v-if="index < 3 && index == 2" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<LoginPopup
|
||||
:show="LoginShow"
|
||||
@handlePopupClose="handlePopupClose"
|
||||
@handlePopupSuccessCallback="handlePopupSuccessCallback"
|
||||
@handlePopupErrorCallback="handlePopupErrorCallback"
|
||||
/>
|
||||
<LoginPopup :show="LoginShow" @handlePopupClose="handlePopupClose"
|
||||
@handlePopupSuccessCallback="handlePopupSuccessCallback" @handlePopupErrorCallback="handlePopupErrorCallback" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -182,27 +147,32 @@ const handlePopupErrorCallback = () => {
|
|||
.hot-industry-container {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.view-all {
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.industry-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.industry-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -210,11 +180,13 @@ const handlePopupErrorCallback = () => {
|
|||
position: relative;
|
||||
height: 74rpx;
|
||||
}
|
||||
|
||||
.industry-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.rank {
|
||||
margin-left: 30rpx;
|
||||
|
||||
|
|
@ -227,6 +199,7 @@ const handlePopupErrorCallback = () => {
|
|||
font-style: normal;
|
||||
margin-right: 40rpx;
|
||||
}
|
||||
|
||||
.industry-name {
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@
|
|||
<view class="homeTopContainer">
|
||||
<!-- 搜索框 -->
|
||||
<view class="sreach">
|
||||
<image src="@/static/logo_mini.png" class="sreach_icon" @click="messageShow = true"></image>
|
||||
<u-input v-model="keyWord" prefixIcon="search" style="flex: 1" placeholder="搜索资讯" placeholderClass="search_placeholder" class="sreach_input" :border="false" @confirm="goSreach" />
|
||||
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/static/logo_mini.png" class="sreach_icon"
|
||||
@click="messageShow = true"></image>
|
||||
<u-input v-model="keyWord" prefixIcon="search" style="flex: 1" placeholder="搜索资讯"
|
||||
placeholderClass="search_placeholder" class="sreach_input" :border="false" @confirm="goSreach" />
|
||||
</view>
|
||||
|
||||
<!-- 渐变的背景 -->
|
||||
|
|
@ -15,7 +17,7 @@
|
|||
<view class="headerBanner"> </view>
|
||||
<!-- 搜索框 -->
|
||||
<!-- <view class="sreach">
|
||||
<image src="@/static/logo_mini.png" class="sreach_icon" @click="messageShow = true"></image>
|
||||
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/static/logo_mini.png" class="sreach_icon" @click="messageShow = true"></image>
|
||||
<u-input v-model="keyWord" prefixIcon="search" style="flex: 1" placeholder="搜索资讯" placeholderClass="search_placeholder" class="sreach_input" :border="false" @confirm="goSreach" />
|
||||
</view> -->
|
||||
|
||||
|
|
@ -24,7 +26,7 @@
|
|||
<!-- <view class="r_tab">
|
||||
<view v-for="(item, index) in colList" :key="item.id" class="tab_item" @click="handleTabsClick(item)">
|
||||
<text :style="{ fontWeight: index == columnIndex ? 'bold' : '' }"> {{ item.name }}</text>
|
||||
<image src="@/static/bk_tab.png" class="bk_tab" v-if="index == columnIndex"></image>
|
||||
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/static/bk_tab.png" class="bk_tab" v-if="index == columnIndex"></image>
|
||||
<view class="badge" v-if="isBadeg && index !== 1">
|
||||
<u-badge value="new"></u-badge>
|
||||
</view>
|
||||
|
|
@ -66,7 +68,8 @@
|
|||
</view>
|
||||
|
||||
<view class="content">
|
||||
<KnowEarlier @handleUpdateData="handleUpdateData" :isNewFlash="isNewFlash" :data="newsFastList" v-if="columnIndex === 0" />
|
||||
<KnowEarlier @handleUpdateData="handleUpdateData" :isNewFlash="isNewFlash" :data="newsFastList"
|
||||
v-if="columnIndex === 0" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -74,7 +77,9 @@
|
|||
|
||||
<u-overlay :show="overlayShow" zIndex="101" @click="overlayShow = false"></u-overlay>
|
||||
<!-- <KnowEarlier @handleUpdateData="handleUpdateData" :isNewFlash="isNewFlash" :data="newsFastList" v-if="columnIndex === 0" /> -->
|
||||
<WorldlyAffairs @changelockType="changelockType" @handleSub="handleSub" :finish="finish" v-if="columnIndex === 1" :column="tagsList[columnIndex]" :bannerList="bannerList" :titleCardList="titleCardList" :worldNewsList="worldNewsList" @onload="onload" />
|
||||
<WorldlyAffairs @changelockType="changelockType" @handleSub="handleSub" :finish="finish" v-if="columnIndex === 1"
|
||||
:column="tagsList[columnIndex]" :bannerList="bannerList" :titleCardList="titleCardList"
|
||||
:worldNewsList="worldNewsList" @onload="onload" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -85,7 +90,7 @@ import KnowEarlier from "@/pages/knowEarlier/index.vue";
|
|||
import WorldlyAffairs from "@/pages/worldlyAffairs/index.vue";
|
||||
import { getNewsFast, checkNews, getNewsColumn, getNewsTag, getNewsList, unlockColumn } from "@/api";
|
||||
import { Session } from "@/utils/storage";
|
||||
import down from "@/assets/images/down.png";
|
||||
import down from "https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/images/down.png";
|
||||
import VipHeader from "./vipHeader";
|
||||
import { scrollToTop, formatTime } from "@/utils/util.ts";
|
||||
import { useShareStore } from "@/stores/shareStore";
|
||||
|
|
@ -99,7 +104,7 @@ const props = defineProps({
|
|||
},
|
||||
columnState: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
default: () => { },
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -462,8 +467,10 @@ onUnmounted(() => {
|
|||
background-color: #f6f6f6;
|
||||
box-sizing: border-box;
|
||||
overflow-y: auto;
|
||||
|
||||
.homeTopContainer {
|
||||
position: relative;
|
||||
|
||||
.sreach {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
|
@ -471,17 +478,19 @@ onUnmounted(() => {
|
|||
box-sizing: border-box;
|
||||
padding: 20rpx 30rpx;
|
||||
gap: 30rpx;
|
||||
background-image: url(@/assets/images/vip_header_search_bg.png);
|
||||
background-image: url(https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/images/vip_header_search_bg.png);
|
||||
background-size: cover;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
|
||||
.sreach_icon {
|
||||
width: 78rpx;
|
||||
height: 60rpx;
|
||||
margin-top: 3rpx;
|
||||
}
|
||||
|
||||
.sreach_input {
|
||||
background-color: #fff;
|
||||
border-radius: 36rpx;
|
||||
|
|
@ -500,7 +509,7 @@ onUnmounted(() => {
|
|||
top: 0;
|
||||
width: 100%;
|
||||
height: 366rpx;
|
||||
background-image: url(@/assets/images/vip_header_content_bg.png);
|
||||
background-image: url(https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/images/vip_header_content_bg.png);
|
||||
background-size: cover;
|
||||
margin-top: 100rpx;
|
||||
}
|
||||
|
|
@ -521,12 +530,14 @@ onUnmounted(() => {
|
|||
box-sizing: border-box;
|
||||
padding-top: 20rpx;
|
||||
width: 100%;
|
||||
|
||||
.tabsList {
|
||||
display: flex;
|
||||
// background-color: aqua;
|
||||
background: linear-gradient(90deg, #ffc795 0%, #ffad9a 100%);
|
||||
border-top-left-radius: 32rpx;
|
||||
border-top-right-radius: 32rpx;
|
||||
|
||||
.tab_item {
|
||||
width: 52%;
|
||||
height: 126rpx;
|
||||
|
|
@ -535,6 +546,7 @@ onUnmounted(() => {
|
|||
box-sizing: border-box;
|
||||
padding-top: 24rpx;
|
||||
color: #fff;
|
||||
|
||||
&.active {
|
||||
border-top-left-radius: 32rpx;
|
||||
border-top-right-radius: 32rpx;
|
||||
|
|
@ -554,6 +566,7 @@ onUnmounted(() => {
|
|||
top: 0;
|
||||
margin-top: 106rpx;
|
||||
backdrop-filter: blur(60rpx);
|
||||
|
||||
// z-index: ;
|
||||
.newsBg {
|
||||
height: 79.52rpx;
|
||||
|
|
@ -563,14 +576,16 @@ onUnmounted(() => {
|
|||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
|
||||
.newsFontBg {
|
||||
width: 255.78rpx;
|
||||
height: 79.52rpx;
|
||||
background-image: url(@/assets/images/newFontBg.png);
|
||||
background-image: url(https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/images/newFontBg.png);
|
||||
background-size: cover;
|
||||
}
|
||||
}
|
||||
.content{
|
||||
|
||||
.content {
|
||||
max-height: calc(100vh - 300rpx);
|
||||
// overflow-y: auto
|
||||
// height: 100vh;
|
||||
|
|
@ -580,6 +595,7 @@ onUnmounted(() => {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// .index-wrap {
|
||||
// min-height: calc(100vh - 130rpx);
|
||||
// background-color: #f6f6f6;
|
||||
|
|
@ -638,57 +654,57 @@ onUnmounted(() => {
|
|||
// }
|
||||
|
||||
// // 标签栏
|
||||
// .tabsListContainer {
|
||||
// box-sizing: border-box;
|
||||
// padding-right: 60rpx;
|
||||
// padding-bottom: 12rpx;
|
||||
// display: flex;
|
||||
// overflow-x: auto;
|
||||
// position: relative;
|
||||
// // background-color: red;
|
||||
// margin-top: 30rpx;
|
||||
// .tabsListContainer {
|
||||
// box-sizing: border-box;
|
||||
// padding-right: 60rpx;
|
||||
// padding-bottom: 12rpx;
|
||||
// display: flex;
|
||||
// overflow-x: auto;
|
||||
// position: relative;
|
||||
// // background-color: red;
|
||||
// margin-top: 30rpx;
|
||||
|
||||
// .tabsList {
|
||||
// display: flex;
|
||||
// overflow-x: auto;
|
||||
// .tabsList {
|
||||
// display: flex;
|
||||
// overflow-x: auto;
|
||||
|
||||
// .tabsItem {
|
||||
// font-size: 12px;
|
||||
// color: #595959;
|
||||
// box-sizing: border-box;
|
||||
// padding: 6rpx 20rpx;
|
||||
// border: 1px solid #dbdbdb;
|
||||
// margin-right: 21rpx;
|
||||
// border-radius: 99rpx;
|
||||
// flex-shrink: 0;
|
||||
// .tabsItem {
|
||||
// font-size: 12px;
|
||||
// color: #595959;
|
||||
// box-sizing: border-box;
|
||||
// padding: 6rpx 20rpx;
|
||||
// border: 1px solid #dbdbdb;
|
||||
// margin-right: 21rpx;
|
||||
// border-radius: 99rpx;
|
||||
// flex-shrink: 0;
|
||||
|
||||
// &.active {
|
||||
// background-color: rgba(255, 208, 212, 0.4);
|
||||
// border-color: rgba(255, 208, 212, 0.4);
|
||||
// color: #e7303f;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// &.active {
|
||||
// background-color: rgba(255, 208, 212, 0.4);
|
||||
// border-color: rgba(255, 208, 212, 0.4);
|
||||
// color: #e7303f;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// .downContainer {
|
||||
// position: absolute;
|
||||
// right: 0;
|
||||
// top: 50%;
|
||||
// height: 40rpx;
|
||||
// transform: translateY(-50%);
|
||||
// background-color: #f6f6f6;
|
||||
// padding: 3rpx 15rpx 15rpx 15rpx;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
// background-image: url(@/assets/images/overlay_world.png);
|
||||
// .downContainer {
|
||||
// position: absolute;
|
||||
// right: 0;
|
||||
// top: 50%;
|
||||
// height: 40rpx;
|
||||
// transform: translateY(-50%);
|
||||
// background-color: #f6f6f6;
|
||||
// padding: 3rpx 15rpx 15rpx 15rpx;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
// background-image: url(https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/images/overlay_world.png);
|
||||
|
||||
// .downPng {
|
||||
// width: 30rpx;
|
||||
// height: 30rpx;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// .downPng {
|
||||
// width: 30rpx;
|
||||
// height: 30rpx;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// .tabsPopup {
|
||||
// width: 100%;
|
||||
|
|
@ -889,5 +905,4 @@ onUnmounted(() => {
|
|||
// position: absolute;
|
||||
// width: 180rpx;
|
||||
// height: 48rpx;
|
||||
// }
|
||||
</style>
|
||||
// }</style>
|
||||
|
|
|
|||