添加代码

This commit is contained in:
何江明
2025-05-30 18:44:14 +08:00
parent a2c87e47bf
commit 0515e9d48c
250 changed files with 7739 additions and 1102 deletions
+12 -4
View File
@@ -69,7 +69,7 @@ const _sfc_main = {
this.form.page++;
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/news/news.vue:147", "加载数据失败:", error);
common_vendor.index.__f__("error", "at pages/news/news.vue:152", "加载数据失败:", error);
} finally {
this.loading = false;
}
@@ -158,12 +158,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
k: common_vendor.f($data.newsList, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: item.content,
b: item.subTitle,
c: common_vendor.t($options.formatDate(item.ctdate)),
d: "24bc9d41-3-" + i0,
e: common_vendor.t(item.browses),
f: item.id,
g: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
f: "24bc9d41-4-" + i0,
g: common_vendor.p({
src: item.coverImage,
width: "100",
height: "100",
bgColor: "#f1f6ff00",
radius: "8"
}),
h: item.id,
i: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
}),
l: common_vendor.p({
+1 -1
View File
@@ -1 +1 @@
<view class="news_warp data-v-24bc9d41"><header wx:if="{{a}}" class="data-v-24bc9d41" style="background-color:#FFFFFF" u-i="24bc9d41-0" bind:__l="__l" u-p="{{a}}"/><view class="news_content_warp data-v-24bc9d41"><view class="heder_ data-v-24bc9d41"><view wx:for="{{b}}" wx:for-item="item" wx:key="b" class="{{['data-v-24bc9d41', item.c]}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="data-v-24bc9d41" style="padding:20rpx 0"><up-swiper wx:if="{{f}}" class="data-v-24bc9d41" u-s="{{['indicator']}}" bindchange="{{e}}" u-i="24bc9d41-1" bind:__l="__l" u-p="{{f}}"><view class="indicator-num data-v-24bc9d41" slot="indicator"><text class="indicator-num__text data-v-24bc9d41">{{c}}/{{d}}</text></view></up-swiper></view></view><view class="content_ data-v-24bc9d41"><scroll-view class="data-v-24bc9d41" scroll-y="true" bindscrolltolower="{{n}}" style="height:calc(100vh - 560rpx)"><up-input wx:if="{{i}}" class="data-v-24bc9d41" u-s="{{['suffix']}}" u-i="24bc9d41-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><view bindtap="{{g}}" class="search_but data-v-24bc9d41" slot="suffix"> 搜索 </view></up-input><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="item" wx:key="f" class="news_content_item data-v-24bc9d41" bindtap="{{item.g}}"><view class="news_content_item_title data-v-24bc9d41">{{item.a}}</view><view class="news_content_item_content data-v-24bc9d41"><rich-text class="data-v-24bc9d41" nodes="{{item.b}}"/></view><view class="news_content_item_info data-v-24bc9d41"><view class="data-v-24bc9d41">{{item.c}}</view><view class="browses_ data-v-24bc9d41"><view class="data-v-24bc9d41"><up-image wx:if="{{l}}" class="data-v-24bc9d41" u-i="{{item.d}}" bind:__l="__l" u-p="{{l}}"></up-image></view><view class="data-v-24bc9d41" style="margin-left:8rpx">{{item.e}}</view></view></view></view></block><view wx:else class="not_order_warp data-v-24bc9d41"><up-image wx:if="{{m}}" class="data-v-24bc9d41" u-i="24bc9d41-4" bind:__l="__l" u-p="{{m}}"></up-image><view class="not_order_msg_warp data-v-24bc9d41">还未发布新闻哦~</view></view></scroll-view></view></view>
<view class="news_warp data-v-24bc9d41"><header wx:if="{{a}}" class="data-v-24bc9d41" style="background-color:#FFFFFF" u-i="24bc9d41-0" bind:__l="__l" u-p="{{a}}"/><view class="news_content_warp data-v-24bc9d41"><view class="heder_ data-v-24bc9d41"><view wx:for="{{b}}" wx:for-item="item" wx:key="b" class="{{['data-v-24bc9d41', item.c]}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="data-v-24bc9d41" style="padding:20rpx 0"><up-swiper wx:if="{{f}}" class="data-v-24bc9d41" u-s="{{['indicator']}}" bindchange="{{e}}" u-i="24bc9d41-1" bind:__l="__l" u-p="{{f}}"><view class="indicator-num data-v-24bc9d41" slot="indicator"><text class="indicator-num__text data-v-24bc9d41">{{c}}/{{d}}</text></view></up-swiper></view></view><view class="content_ data-v-24bc9d41"><scroll-view class="data-v-24bc9d41" scroll-y="true" bindscrolltolower="{{n}}" style="height:calc(100vh - 560rpx)"><up-input wx:if="{{i}}" class="data-v-24bc9d41" u-s="{{['suffix']}}" u-i="24bc9d41-2" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><view bindtap="{{g}}" class="search_but data-v-24bc9d41" slot="suffix"> 搜索 </view></up-input><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="item" wx:key="h" class="news_content_item data-v-24bc9d41" bindtap="{{item.i}}"><view class="news_content_item_warp data-v-24bc9d41"><view class="news_content_item_title data-v-24bc9d41">{{item.a}}</view><view class="news_content_item_content data-v-24bc9d41"><rich-text class="data-v-24bc9d41" nodes="{{item.b}}"/></view><view class="news_content_item_info data-v-24bc9d41"><view class="data-v-24bc9d41">{{item.c}}</view><view class="browses_ data-v-24bc9d41"><view class="data-v-24bc9d41"><up-image wx:if="{{l}}" class="data-v-24bc9d41" u-i="{{item.d}}" bind:__l="__l" u-p="{{l}}"></up-image></view><view class="data-v-24bc9d41" style="margin-left:8rpx">{{item.e}}</view></view></view></view><view class="data-v-24bc9d41"><up-image wx:if="{{item.g}}" class="data-v-24bc9d41" u-i="{{item.f}}" bind:__l="__l" u-p="{{item.g}}"></up-image></view></view></block><view wx:else class="not_order_warp data-v-24bc9d41"><up-image wx:if="{{m}}" class="data-v-24bc9d41" u-i="24bc9d41-5" bind:__l="__l" u-p="{{m}}"></up-image><view class="not_order_msg_warp data-v-24bc9d41">还未发布新闻哦~</view></view></scroll-view></view></view>
+5
View File
@@ -60,6 +60,11 @@
background: #FFFFFF;
padding: 30rpx;
margin-top: 20rpx;
display: flex;
justify-content: space-between;
}
.news_warp .content_ .news_content_item_warp.data-v-24bc9d41 {
margin-right: 20rpx;
}
.news_warp .content_ .news_content_item_title.data-v-24bc9d41 {
font-weight: 800;