fix: 更新生产环境API地址并优化新闻来源显示
- 将生产环境API地址从测试服务器切换到正式服务器 - 修改新闻来源显示逻辑,国内新闻统一显示"中国证券报" - 移除排行榜中的排名图标显示 - 修复分享链接地址为正式环境地址
This commit is contained in:
parent
fbea363bb8
commit
c7c9b94e11
|
|
@ -3,8 +3,8 @@ ENV = production
|
||||||
|
|
||||||
# 线上环境接口地址
|
# 线上环境接口地址
|
||||||
# VITE_API_URL = https://cankao.cs.com.cn/mini
|
# VITE_API_URL = https://cankao.cs.com.cn/mini
|
||||||
VITE_API_URL = http://123.60.153.169:8040/apih5
|
# VITE_API_URL = http://123.60.153.169:8040/apih5
|
||||||
# VITE_API_URL = https://cankao.cs.com.cn/apih5
|
VITE_API_URL = https://cankao.cs.com.cn/apih5
|
||||||
|
|
||||||
# VITE_API_URL = http://123.60.79.143:8041/apih5
|
# VITE_API_URL = http://123.60.79.143:8041/apih5
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<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="list" v-else>
|
<view class="list" v-else>
|
||||||
<view v-for="(item, index) in rankListLocal" :key="index" class="news-item" @click="goDetail(item, 0)">
|
<view v-for="(item, index) in rankListLocal" :key="index" class="news-item" @click="goDetail(item, 0)">
|
||||||
<view class="rank-tag">
|
<!-- <view class="rank-tag">
|
||||||
<view v-if="index == 0" class="rank-text-top3">
|
<view v-if="index == 0" class="rank-text-top3">
|
||||||
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/icon_top_1.png" />
|
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/icon_top_1.png" />
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/icon_top_3.png" />
|
<image src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/icon_top_3.png" />
|
||||||
</view>
|
</view>
|
||||||
<text class="rank-text" v-else>{{ index + 1 }}</text>
|
<text class="rank-text" v-else>{{ index + 1 }}</text>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<!-- :style="{ filter: Session.get('token') ? '' : 'blur(5px)' }" -->
|
<!-- :style="{ filter: Session.get('token') ? '' : 'blur(5px)' }" -->
|
||||||
<view class="news-content">
|
<view class="news-content">
|
||||||
|
|
@ -161,16 +161,14 @@ function goDetail(item) {
|
||||||
|
|
||||||
// if (judgeRuntimeEnv().isWxMiniWebview) {
|
// if (judgeRuntimeEnv().isWxMiniWebview) {
|
||||||
let shareUrl =
|
let shareUrl =
|
||||||
// "https://cankao.cs.com.cn/jnh/#/pages/detail/indexNewsInfo?id=" +
|
"https://cankao.cs.com.cn/jnh/#/pages/detail/indexNewsInfo?id=" +
|
||||||
"http://localhost:8881/jnh/#/pages/detail/indexNewsInfo?id=" +
|
// "http://localhost:8881/jnh/#/pages/detail/indexNewsInfo?id=" +
|
||||||
item.news_id +
|
item.news_id +
|
||||||
"&phone=" +
|
"&phone=" +
|
||||||
uni.getStorageSync("token") +
|
uni.getStorageSync("token") +
|
||||||
"&userType=" +
|
"&userType=" +
|
||||||
userType.value;
|
userType.value;
|
||||||
|
|
||||||
alert(userType.value);
|
|
||||||
|
|
||||||
wx.miniProgram.navigateTo({
|
wx.miniProgram.navigateTo({
|
||||||
url: "/pages/webView/index?url=" + encodeURIComponent(shareUrl),
|
url: "/pages/webView/index?url=" + encodeURIComponent(shareUrl),
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<view class="author">
|
<view class="author">
|
||||||
<view class="name" v-if="!isDomestic">
|
<view class="name">
|
||||||
<text class="text">来源:</text>
|
<text class="text">来源:</text>
|
||||||
<text class="text">{{ props.data.tag }}</text>
|
<text class="text">{{ isDomestic ? "中国证券报" : props.data.tag }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="name" v-if="props.data.editor">
|
<view class="name" v-if="props.data.editor">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue