refactor(RankListMini): 简化模板代码并注释导航功能

移除模板中不必要的换行和缩进以提高可读性
暂时注释掉导航功能以待后续处理
This commit is contained in:
zzp 2026-01-10 10:19:35 +08:00
parent c29b2b48a9
commit ac2515b6c6
1 changed files with 5 additions and 11 deletions

View File

@ -22,9 +22,7 @@
<text class="news-title">{{ item.title.slice(0, 3) }}</text>
<text :class="['news-title', isLogin ? '' : 'mohu']">{{ item.title.slice(3, item.title.length) }}</text>
</text>
<text :class="['news-desc', isLogin ? '' : 'mohu']" style="margin-top: 20rpx; text-indent: 40rpx">{{
item.summary
}}</text>
<text :class="['news-desc', isLogin ? '' : 'mohu']" style="margin-top: 20rpx; text-indent: 40rpx">{{ item.summary }}</text>
<view :class="['news-meta', isLogin ? '' : 'mohu']">
<view style="display: flex; justify-content: space-between; width: 100%">
@ -55,11 +53,7 @@
</view>
</view>
<view class="lock_view" v-if="!isLogin">
<image
class="lock_icon"
src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/lock_icon%402x.png"
>
</image>
<image class="lock_icon" src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/lock_icon%402x.png"> </image>
<text class="lock_text">海外独家资讯内容<text style="color: #d13e3c">登录</text>后可查阅全文</text>
</view>
</view>
@ -162,9 +156,9 @@ function goDetail(item) {
let userType = props.userParams.userType || "";
console.log("🚀 ~ goDetail ~ userType:", userType);
uni.navigateTo({
url: `/pages/detail/indexNewsInfo?id=${item.news_id}&phone=${phone}&userType=${userType}`,
});
// uni.navigateTo({
// url: `/pages/detail/indexNewsInfo?id=${item.news_id}&phone=${phone}&userType=${userType}`,
// });
// if (judgeRuntimeEnv().isWxMiniWebview) {
let shareUrl =