fix: 修复ETF详情页来源显示及跳转问题
修改ETF详情页的来源显示逻辑,根据intoType参数显示固定来源"中国证券报" 添加ETF关联标的点击跳转功能 更新开发环境接口地址配置
This commit is contained in:
parent
62a3180714
commit
34d2d5f895
|
|
@ -2,8 +2,8 @@
|
|||
ENV = development
|
||||
|
||||
# 本地环境接口地址
|
||||
# VITE_API_URL = http://123.60.153.169:8040/apih5
|
||||
VITE_API_URL = http://4155gf93ll13.vicp.fun/apih5
|
||||
VITE_API_URL = http://123.60.153.169:8040/apih5
|
||||
# VITE_API_URL = http://4155gf93ll13.vicp.fun/apih5
|
||||
# VITE_API_URL = http://123.60.79.143:8041/apih5
|
||||
# VITE_API_URL =http://192.168.0.135:8040/apih5
|
||||
# VITE_API_URL = https://cankao.cs.com.cn/apih5
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
<view class="author">
|
||||
<view class="name" :class="{ mohu: !isLogin }">
|
||||
<text class="text">来源:</text>
|
||||
<text class="text">{{ props.data.tag ? props.data.tag : "中国证券报" }}</text>
|
||||
<text class="text" v-if="intoType === 'etf'">中国证券报</text>
|
||||
<text class="text" v-else>{{ props.data.tag ? props.data.tag : "中国证券报" }}</text>
|
||||
</view>
|
||||
|
||||
<!-- <view class="name" v-if="props.data.editor">
|
||||
|
|
@ -73,7 +74,7 @@
|
|||
<view class="r_etf" style="margin-top: 80rpx">
|
||||
<text class="etf_title">AI关联标的</text>
|
||||
<view class="etfs">
|
||||
<view v-for="item in data.etfs" class="etf_item">
|
||||
<view v-for="(item, index) in data.etfs" class="etf_item" :key="index" @click="goEtfDetail(item)">
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -143,14 +144,23 @@ const handleClick = (value: any) => {
|
|||
show.value = value;
|
||||
};
|
||||
|
||||
const intoType = ref(null);
|
||||
onLoad((option) => {
|
||||
type.value = option?.type || "list";
|
||||
intoType.value = option?.intoType || null;
|
||||
|
||||
if (!isLogin.value) {
|
||||
LoginShow.value = true;
|
||||
}
|
||||
});
|
||||
|
||||
function goEtfDetail(item) {
|
||||
console.log("🚀 ~ goEtfDetail ~ item:", item);
|
||||
uni.navigateTo({
|
||||
url: `/pages/realtimeInfo/indexEtfInfo?name=${item.name}&code=${item.code}`,
|
||||
});
|
||||
}
|
||||
|
||||
const handleSub = () => {
|
||||
if (type.value === "list") {
|
||||
let mainItemId = uni.getStorageSync("mainItem");
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ onReachBottom(() => {
|
|||
function goDetail(item, index) {
|
||||
if (Session.get("token")) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/detail/indexNewsInfo?id=${item.id}`,
|
||||
url: `/pages/detail/indexNewsInfo?id=${item.id}&intoType=etf`,
|
||||
});
|
||||
} else {
|
||||
LoginShow.value = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue