tmp: 部分代码与UnishopV5结合,但是代码有严重缺陷

This commit is contained in:
2025-12-20 15:30:39 +08:00
parent ed5181b382
commit e263a616f6
183 changed files with 31316 additions and 18590 deletions

View File

@@ -5,8 +5,12 @@
<view class="notice-meta">
<text class="notice-time">发表时间: {{ $util.timeStampTurnTime(detail.create_time) }}</text>
</view>
<view class="notice-content"><rich-text :nodes="content"></rich-text></view>
<view class="notice-content">
<!-- <rich-text :nodes="content"></rich-text> -->
<ns-mp-html :content="content"></ns-mp-html>
</view>
<!-- 悬浮按钮 -->
<hover-nav></hover-nav>
<loading-cover ref="loadingCover"></loading-cover>
<!-- #ifdef MP-WEIXIN -->
@@ -51,7 +55,8 @@
if (res.code == 0) {
if (res.data) {
this.detail = res.data;
this.content = htmlParser(res.data.content);
// this.content = htmlParser(res.data.content);
this.content = res.data.content;
this.$langConfig.title(this.detail.title);
this.setPublicShare();
@@ -81,8 +86,7 @@
title: this.detail.title,
desc: '',
link: shareUrl,
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) :
''
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
});
}
},

View File

@@ -10,7 +10,7 @@
<text v-if="item.is_top == 1" class="color-base-bg tag">置顶</text>
<text class="txt using-hidden">{{ item.title }}</text>
</view>
<text class="release-time">{{ $util.timeStampTurnTime(item.create_time, 1) }}</text>
<text class="release-time">{{ $util.timeStampTurnTime(item.create_time, 'Y-m-d') }}</text>
<view class="iconfont icon-right"></view>
</view>
</view>
@@ -19,6 +19,8 @@
<loading-cover ref="loadingCover"></loading-cover>
</block>
</mescroll-uni>
<!-- 悬浮按钮 -->
<hover-nav></hover-nav>
<!-- #ifdef MP-WEIXIN -->
<!-- 小程序隐私协议 -->