refactor(RankListMini): 简化模板代码并注释导航功能
移除模板中不必要的换行和缩进以提高可读性 暂时注释掉导航功能以待后续处理
This commit is contained in:
parent
c29b2b48a9
commit
ac2515b6c6
|
|
@ -22,9 +22,7 @@
|
||||||
<text class="news-title">{{ item.title.slice(0, 3) }}</text>
|
<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 :class="['news-title', isLogin ? '' : 'mohu']">{{ item.title.slice(3, item.title.length) }}</text>
|
||||||
</text>
|
</text>
|
||||||
<text :class="['news-desc', isLogin ? '' : 'mohu']" style="margin-top: 20rpx; text-indent: 40rpx">{{
|
<text :class="['news-desc', isLogin ? '' : 'mohu']" style="margin-top: 20rpx; text-indent: 40rpx">{{ item.summary }}</text>
|
||||||
item.summary
|
|
||||||
}}</text>
|
|
||||||
|
|
||||||
<view :class="['news-meta', isLogin ? '' : 'mohu']">
|
<view :class="['news-meta', isLogin ? '' : 'mohu']">
|
||||||
<view style="display: flex; justify-content: space-between; width: 100%">
|
<view style="display: flex; justify-content: space-between; width: 100%">
|
||||||
|
|
@ -55,11 +53,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="lock_view" v-if="!isLogin">
|
<view class="lock_view" v-if="!isLogin">
|
||||||
<image
|
<image class="lock_icon" src="https://cankao.obs.cn-east-3.myhuaweicloud.com/mini/newmini/lock_icon%402x.png"> </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>
|
<text class="lock_text">海外独家资讯内容,<text style="color: #d13e3c">登录</text>后可查阅全文</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -162,9 +156,9 @@ function goDetail(item) {
|
||||||
let userType = props.userParams.userType || "";
|
let userType = props.userParams.userType || "";
|
||||||
console.log("🚀 ~ goDetail ~ userType:", userType);
|
console.log("🚀 ~ goDetail ~ userType:", userType);
|
||||||
|
|
||||||
uni.navigateTo({
|
// uni.navigateTo({
|
||||||
url: `/pages/detail/indexNewsInfo?id=${item.news_id}&phone=${phone}&userType=${userType}`,
|
// url: `/pages/detail/indexNewsInfo?id=${item.news_id}&phone=${phone}&userType=${userType}`,
|
||||||
});
|
// });
|
||||||
|
|
||||||
// if (judgeRuntimeEnv().isWxMiniWebview) {
|
// if (judgeRuntimeEnv().isWxMiniWebview) {
|
||||||
let shareUrl =
|
let shareUrl =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue