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 = http://123.60.153.169:8040/apih5
|
||||||
# VITE_API_URL = https://4155gf93ll13.vicp.fun/apih5
|
# VITE_API_URL = https://4155gf93ll13.vicp.fun/apih5
|
||||||
# VITE_API_URL = http://123.60.79.143:8041/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_URL = https://cankao.cs.com.cn/apih5
|
||||||
|
|
||||||
VITE_API_DATAV_URL = https://cankao.cs.com.cn/zzck_datav
|
VITE_API_DATAV_URL = https://cankao.cs.com.cn/zzck_datav
|
||||||
BIN
caokao-h5.zip
|
|
@ -1,6 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -14,6 +13,9 @@
|
||||||
'" />'
|
'" />'
|
||||||
);
|
);
|
||||||
</script>
|
</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>
|
||||||
|
|
||||||
<!-- <script
|
<!-- <script
|
||||||
type="text/javascript"
|
type="text/javascript"
|
||||||
src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"
|
src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"
|
||||||
|
|
@ -32,6 +34,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="app"><!--app-html--></div>
|
<div id="app"><!--app-html--></div>
|
||||||
<script type="module" src="/src/main.ts"></script>
|
<script type="module" src="/src/main.ts"></script>
|
||||||
|
|
||||||
<!-- <script type="text/javascript">
|
<!-- <script type="text/javascript">
|
||||||
var link = location.href.split("#")[0];
|
var link = location.href.split("#")[0];
|
||||||
console.log("🚀 ~ link:", link);
|
console.log("🚀 ~ link:", link);
|
||||||
|
|
@ -108,5 +111,4 @@
|
||||||
});
|
});
|
||||||
</script> -->
|
</script> -->
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
"echarts": "^5.6.0",
|
"echarts": "^5.6.0",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
"js-md5": "^0.8.3",
|
"js-md5": "^0.8.3",
|
||||||
|
"jweixin-module": "^1.6.0",
|
||||||
"pinia": "^2.0.36",
|
"pinia": "^2.0.36",
|
||||||
"qs": "^6.11.2",
|
"qs": "^6.11.2",
|
||||||
"vue": "^3.2.45",
|
"vue": "^3.2.45",
|
||||||
|
|
@ -9510,6 +9511,12 @@
|
||||||
"graceful-fs": "^4.1.6"
|
"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": {
|
"node_modules/kleur": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"resolved": "https://registry.npmmirror.com/kleur/-/kleur-3.0.3.tgz",
|
"resolved": "https://registry.npmmirror.com/kleur/-/kleur-3.0.3.tgz",
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
"name": "uni-preset-vue",
|
"name": "uni-preset-vue",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"dev:mp-weixin": "uni -p mp-weixin",
|
||||||
"dev:h5": "uni",
|
"dev:h5": "uni",
|
||||||
"build:h5": "uni build",
|
"build:h5": "uni build",
|
||||||
"dev:h5:ssr": "uni --ssr",
|
"dev:h5:ssr": "uni --ssr",
|
||||||
"dev:mp-weixin": "uni -p mp-weixin",
|
|
||||||
"dev:mp-alipay": "uni -p mp-alipay",
|
"dev:mp-alipay": "uni -p mp-alipay",
|
||||||
"dev:app": "uni -p app",
|
"dev:app": "uni -p app",
|
||||||
"dev:app-android": "uni -p app-android",
|
"dev:app-android": "uni -p app-android",
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
"echarts": "^5.6.0",
|
"echarts": "^5.6.0",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
"js-md5": "^0.8.3",
|
"js-md5": "^0.8.3",
|
||||||
|
"jweixin-module": "^1.6.0",
|
||||||
"pinia": "^2.0.36",
|
"pinia": "^2.0.36",
|
||||||
"qs": "^6.11.2",
|
"qs": "^6.11.2",
|
||||||
"vue": "^3.2.45",
|
"vue": "^3.2.45",
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ onHide(() => {
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
||||||
@import "@/uni_modules/uview-plus/index.scss";
|
@import "@/uni_modules/uview-plus/index.scss";
|
||||||
|
|
||||||
#app,
|
#app,
|
||||||
uni-app,
|
uni-app,
|
||||||
uni-page,
|
uni-page,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import request from "@/utils";
|
import request from "@/utils/index";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取文章详情
|
* 获取文章详情
|
||||||
|
|
@ -7,10 +7,9 @@ import request from "@/utils";
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export const fetchArticleDetail = (data: any) => {
|
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
|
* @param data
|
||||||
|
|
@ -33,10 +32,11 @@ export const fetchArticleFavorate = (data: any) => {
|
||||||
|
|
||||||
// 热门行业
|
// 热门行业
|
||||||
export const getListByTagIndustry = (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) => {
|
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);
|
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) => {
|
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:
|
// 热门行业top10:
|
||||||
|
|
@ -34,3 +35,8 @@ export const getTopConcept_d = (data: any) => {
|
||||||
export const getNews_cnt_d = (data: any) => {
|
export const getNews_cnt_d = (data: any) => {
|
||||||
return request.get("/news_cnt_d", data);
|
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>
|
<template>
|
||||||
<view class="list">
|
<view class="list">
|
||||||
<view
|
<view v-for="(item, index) in props.data" :key="index" class="item">
|
||||||
v-for="(item, index) in props.data"
|
|
||||||
:key="index"
|
|
||||||
class="item"
|
|
||||||
|
|
||||||
>
|
|
||||||
<!-- 标题 start -->
|
<!-- 标题 start -->
|
||||||
<!-- <text class="title" v-html="item.title">{{ item.title }}</text> -->
|
<!-- <text class="title" v-html="item.title">{{ item.title }}</text> -->
|
||||||
<text @click="handleClick(item)" class="title" v-html="item.MarkInRedTitle || item.title"></text>
|
<text @click="handleClick(item)" class="title" v-html="item.MarkInRedTitle || item.title"></text>
|
||||||
|
|
@ -13,20 +8,16 @@
|
||||||
<!-- 内容 start -->
|
<!-- 内容 start -->
|
||||||
|
|
||||||
<view class="r_content">
|
<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" v-html="item.MarkInRedContent || item.content"></text>
|
||||||
<!-- <text @click="handleClick(item)" class="content">{{ item.content }}</text> -->
|
<!-- <text @click="handleClick(item)" class="content">{{ item.content }}</text> -->
|
||||||
<!-- 需要付费锁 start -->
|
<!-- 需要付费锁 start -->
|
||||||
<view class="need_login" v-if="item.needpay" @click="handleSubListItem(item)">
|
<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>
|
<text>订阅后解锁全文</text>
|
||||||
<u-icon
|
<u-icon name="arrow-right" color="#fff" size="10" style="margin-left: 10rpx" bold></u-icon>
|
||||||
name="arrow-right"
|
|
||||||
color="#fff"
|
|
||||||
size="10"
|
|
||||||
style="margin-left: 10rpx"
|
|
||||||
bold
|
|
||||||
></u-icon>
|
|
||||||
</view>
|
</view>
|
||||||
<!-- 需要付费锁 end -->
|
<!-- 需要付费锁 end -->
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -1,75 +1,40 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="hot-industry-container">
|
<view class="hot-industry-container">
|
||||||
<u-skeleton
|
<u-skeleton rows="5" title loading style="margin-bottom: 30rpx" v-if="loading"></u-skeleton>
|
||||||
rows="5"
|
|
||||||
title
|
|
||||||
loading
|
|
||||||
style="margin-bottom: 30rpx"
|
|
||||||
v-if="loading"
|
|
||||||
></u-skeleton>
|
|
||||||
|
|
||||||
<!-- 行业列表 -->
|
<!-- 行业列表 -->
|
||||||
<view class="industry-list" v-else>
|
<view class="industry-list" v-else>
|
||||||
<view
|
<view v-for="(item, index) in industryList" :key="index" class="industry-item" :style="getItemBgStyle(index)"
|
||||||
v-for="(item, index) in industryList"
|
@click="goDetail(item, index)">
|
||||||
:key="index"
|
|
||||||
class="industry-item"
|
|
||||||
:style="getItemBgStyle(index)"
|
|
||||||
@click="goDetail(item, index)"
|
|
||||||
>
|
|
||||||
<!-- 这里预留图标位置,可自行补充 <image :src="item.icon" class="industry-icon" /> 等 -->
|
<!-- 这里预留图标位置,可自行补充 <image :src="item.icon" class="industry-icon" /> 等 -->
|
||||||
<view
|
<view style="
|
||||||
style="
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
"
|
">
|
||||||
>
|
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_icon_1_1.png" class="top3numbk"
|
||||||
<img
|
v-if="index < 3 && index == 0" />
|
||||||
src="@/assets/zixun/ranking_icon_1_1.png"
|
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_icon_2_2.png" class="top3numbk"
|
||||||
class="top3numbk"
|
v-else-if="index < 3 && index == 1" />
|
||||||
v-if="index < 3 && index == 0"
|
<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" />
|
||||||
<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"
|
|
||||||
/>
|
|
||||||
<text class="rank" v-else>{{ index + 1 }}</text>
|
<text class="rank" v-else>{{ index + 1 }}</text>
|
||||||
<text class="industry-name">{{ item.content }}</text>
|
<text class="industry-name">{{ item.content }}</text>
|
||||||
</view>
|
</view>
|
||||||
<img
|
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_bg_1.png" class="top3bk"
|
||||||
src="@/assets/zixun/ranking_bg_1.png"
|
v-if="index < 3 && index == 0" />
|
||||||
class="top3bk"
|
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_bg_2.png" class="top3bk"
|
||||||
v-if="index < 3 && index == 0"
|
v-if="index < 3 && index == 1" />
|
||||||
/>
|
<img src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/zixun/ranking_bg_3.png" class="top3bk"
|
||||||
<img
|
v-if="index < 3 && index == 2" />
|
||||||
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"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<LoginPopup
|
<LoginPopup :show="LoginShow" @handlePopupClose="handlePopupClose"
|
||||||
:show="LoginShow"
|
@handlePopupSuccessCallback="handlePopupSuccessCallback" @handlePopupErrorCallback="handlePopupErrorCallback" />
|
||||||
@handlePopupClose="handlePopupClose"
|
|
||||||
@handlePopupSuccessCallback="handlePopupSuccessCallback"
|
|
||||||
@handlePopupErrorCallback="handlePopupErrorCallback"
|
|
||||||
/>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -182,27 +147,32 @@ const handlePopupErrorCallback = () => {
|
||||||
.hot-industry-container {
|
.hot-industry-container {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view-all {
|
.view-all {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #999;
|
color: #999;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.industry-list {
|
.industry-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.industry-item {
|
.industry-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -210,11 +180,13 @@ const handlePopupErrorCallback = () => {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 74rpx;
|
height: 74rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.industry-icon {
|
.industry-icon {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rank {
|
.rank {
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
|
|
||||||
|
|
@ -227,6 +199,7 @@ const handlePopupErrorCallback = () => {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
margin-right: 40rpx;
|
margin-right: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.industry-name {
|
.industry-name {
|
||||||
font-family: PingFangSC, PingFang SC;
|
font-family: PingFangSC, PingFang SC;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@
|
||||||
<view class="homeTopContainer">
|
<view class="homeTopContainer">
|
||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<view class="sreach">
|
<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"
|
||||||
<u-input v-model="keyWord" prefixIcon="search" style="flex: 1" placeholder="搜索资讯" placeholderClass="search_placeholder" class="sreach_input" :border="false" @confirm="goSreach" />
|
@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>
|
</view>
|
||||||
|
|
||||||
<!-- 渐变的背景 -->
|
<!-- 渐变的背景 -->
|
||||||
|
|
@ -15,7 +17,7 @@
|
||||||
<view class="headerBanner"> </view>
|
<view class="headerBanner"> </view>
|
||||||
<!-- 搜索框 -->
|
<!-- 搜索框 -->
|
||||||
<!-- <view class="sreach">
|
<!-- <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" />
|
<u-input v-model="keyWord" prefixIcon="search" style="flex: 1" placeholder="搜索资讯" placeholderClass="search_placeholder" class="sreach_input" :border="false" @confirm="goSreach" />
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
|
|
@ -24,7 +26,7 @@
|
||||||
<!-- <view class="r_tab">
|
<!-- <view class="r_tab">
|
||||||
<view v-for="(item, index) in colList" :key="item.id" class="tab_item" @click="handleTabsClick(item)">
|
<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>
|
<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">
|
<view class="badge" v-if="isBadeg && index !== 1">
|
||||||
<u-badge value="new"></u-badge>
|
<u-badge value="new"></u-badge>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -66,7 +68,8 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="content">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -74,7 +77,9 @@
|
||||||
|
|
||||||
<u-overlay :show="overlayShow" zIndex="101" @click="overlayShow = false"></u-overlay>
|
<u-overlay :show="overlayShow" zIndex="101" @click="overlayShow = false"></u-overlay>
|
||||||
<!-- <KnowEarlier @handleUpdateData="handleUpdateData" :isNewFlash="isNewFlash" :data="newsFastList" v-if="columnIndex === 0" /> -->
|
<!-- <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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -85,7 +90,7 @@ import KnowEarlier from "@/pages/knowEarlier/index.vue";
|
||||||
import WorldlyAffairs from "@/pages/worldlyAffairs/index.vue";
|
import WorldlyAffairs from "@/pages/worldlyAffairs/index.vue";
|
||||||
import { getNewsFast, checkNews, getNewsColumn, getNewsTag, getNewsList, unlockColumn } from "@/api";
|
import { getNewsFast, checkNews, getNewsColumn, getNewsTag, getNewsList, unlockColumn } from "@/api";
|
||||||
import { Session } from "@/utils/storage";
|
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 VipHeader from "./vipHeader";
|
||||||
import { scrollToTop, formatTime } from "@/utils/util.ts";
|
import { scrollToTop, formatTime } from "@/utils/util.ts";
|
||||||
import { useShareStore } from "@/stores/shareStore";
|
import { useShareStore } from "@/stores/shareStore";
|
||||||
|
|
@ -462,8 +467,10 @@ onUnmounted(() => {
|
||||||
background-color: #f6f6f6;
|
background-color: #f6f6f6;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
.homeTopContainer {
|
.homeTopContainer {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.sreach {
|
.sreach {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -471,17 +478,19 @@ onUnmounted(() => {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 20rpx 30rpx;
|
padding: 20rpx 30rpx;
|
||||||
gap: 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;
|
background-size: cover;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
.sreach_icon {
|
.sreach_icon {
|
||||||
width: 78rpx;
|
width: 78rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
margin-top: 3rpx;
|
margin-top: 3rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sreach_input {
|
.sreach_input {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 36rpx;
|
border-radius: 36rpx;
|
||||||
|
|
@ -500,7 +509,7 @@ onUnmounted(() => {
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 366rpx;
|
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;
|
background-size: cover;
|
||||||
margin-top: 100rpx;
|
margin-top: 100rpx;
|
||||||
}
|
}
|
||||||
|
|
@ -521,12 +530,14 @@ onUnmounted(() => {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-top: 20rpx;
|
padding-top: 20rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.tabsList {
|
.tabsList {
|
||||||
display: flex;
|
display: flex;
|
||||||
// background-color: aqua;
|
// background-color: aqua;
|
||||||
background: linear-gradient(90deg, #ffc795 0%, #ffad9a 100%);
|
background: linear-gradient(90deg, #ffc795 0%, #ffad9a 100%);
|
||||||
border-top-left-radius: 32rpx;
|
border-top-left-radius: 32rpx;
|
||||||
border-top-right-radius: 32rpx;
|
border-top-right-radius: 32rpx;
|
||||||
|
|
||||||
.tab_item {
|
.tab_item {
|
||||||
width: 52%;
|
width: 52%;
|
||||||
height: 126rpx;
|
height: 126rpx;
|
||||||
|
|
@ -535,6 +546,7 @@ onUnmounted(() => {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-top: 24rpx;
|
padding-top: 24rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
border-top-left-radius: 32rpx;
|
border-top-left-radius: 32rpx;
|
||||||
border-top-right-radius: 32rpx;
|
border-top-right-radius: 32rpx;
|
||||||
|
|
@ -554,6 +566,7 @@ onUnmounted(() => {
|
||||||
top: 0;
|
top: 0;
|
||||||
margin-top: 106rpx;
|
margin-top: 106rpx;
|
||||||
backdrop-filter: blur(60rpx);
|
backdrop-filter: blur(60rpx);
|
||||||
|
|
||||||
// z-index: ;
|
// z-index: ;
|
||||||
.newsBg {
|
.newsBg {
|
||||||
height: 79.52rpx;
|
height: 79.52rpx;
|
||||||
|
|
@ -563,13 +576,15 @@ onUnmounted(() => {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
||||||
.newsFontBg {
|
.newsFontBg {
|
||||||
width: 255.78rpx;
|
width: 255.78rpx;
|
||||||
height: 79.52rpx;
|
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;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
max-height: calc(100vh - 300rpx);
|
max-height: calc(100vh - 300rpx);
|
||||||
// overflow-y: auto
|
// overflow-y: auto
|
||||||
|
|
@ -580,6 +595,7 @@ onUnmounted(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// .index-wrap {
|
// .index-wrap {
|
||||||
// min-height: calc(100vh - 130rpx);
|
// min-height: calc(100vh - 130rpx);
|
||||||
// background-color: #f6f6f6;
|
// background-color: #f6f6f6;
|
||||||
|
|
@ -681,7 +697,7 @@ onUnmounted(() => {
|
||||||
// display: flex;
|
// display: flex;
|
||||||
// align-items: center;
|
// align-items: center;
|
||||||
// justify-content: center;
|
// justify-content: center;
|
||||||
// background-image: url(@/assets/images/overlay_world.png);
|
// background-image: url(https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/images/overlay_world.png);
|
||||||
|
|
||||||
// .downPng {
|
// .downPng {
|
||||||
// width: 30rpx;
|
// width: 30rpx;
|
||||||
|
|
@ -889,5 +905,4 @@ onUnmounted(() => {
|
||||||
// position: absolute;
|
// position: absolute;
|
||||||
// width: 180rpx;
|
// width: 180rpx;
|
||||||
// height: 48rpx;
|
// height: 48rpx;
|
||||||
// }
|
// }</style>
|
||||||
</style>
|
|
||||||
|
|
|
||||||