first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:10:55 +08:00
commit 1c24452b6c
1735 changed files with 150474 additions and 0 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/index.js"),n=require("../../utils/fun.js");if(!Array){e.resolveComponent("mp-html")()}Math;const o=e.defineComponent({__name:"details",setup(o){const a=e.ref({});return e.onLoad((e=>{t.api.noticeInfo({id:e.id}).then((e=>{a.value=e}))})),(t,o)=>e.e({a:e.t(a.value.title),b:e.t(e.unref(n.timeFormat)(a.value.createTime,"yyyy-MM-dd hh:mm:ss")),c:a.value.video},a.value.video?{d:a.value.cover,e:a.value.video}:{},{f:e.p({content:a.value.content})})}});wx.createPage(o);

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "公告",
"navigationBarBackgroundColor": "#fff",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1 @@
<view style="padding:30rpx"><view style="font-size:34rpx">{{a}}</view><view style="height:20rpx"></view><view style="color:#999;font-size:30rpx">发布时间:{{b}}</view><view style="height:20rpx"></view><video wx:if="{{c}}" style="width:690rpx;height:388rpx" poster="{{d}}" src="{{e}}" direction="{{90}}"></video><view style="height:20rpx"></view><view><mp-html wx:if="{{f}}" u-i="1c73d952-0" bind:__l="__l" u-p="{{f}}"/></view><view style=""></view></view>

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),t=require("../../api/index.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const n=e.defineComponent({__name:"notice",setup(n){const o=e.ref(1),l=e.ref(""),i=e.ref(null),u=e.ref([]),s=e.ref([]);e.onLoad((()=>{t.api.noticeCatePage().then((e=>{s.value=e.list}))}));const r=(e,a)=>{o.value=e,l.value=a,i.value.reload()},c=(e,a)=>{t.api.noticePage({pageNo:e,pageSize:a,type:o.value,categoryId:l.value}).then((e=>{i.value.complete(e.list)})).catch((e=>{i.value.complete(!1)}))},v=()=>{e.index.navigateBack()};return(t,n)=>({a:e.o(v),b:e.p({title:"公告",safeAreaInsetTop:!0,"left-arrow":!0}),c:e.n(1==o.value?"active":""),d:e.o((e=>r(1,""))),e:e.f(s.value,((a,t,n)=>({a:e.t(a.categoryName),b:e.n(2==o.value&&l.value==a.id?"active":""),c:e.o((e=>r(2,a.id)),t),d:t}))),f:e.f(u.value,((t,n,l)=>e.e({a:e.t(1==o.value?t.content:t.title)},2==o.value?{b:a._imports_0$1}:{},{c:n,d:e.o((a=>(a=>{1==o.value?e.index.showModal({title:"通知",content:a.content,showCancel:!1}):e.index.navigateTo({url:"/pages/notice/details?id="+a.id})})(t)),n)}))),g:e.t(1==o.value?"通知":2==o.value?s.value.find((e=>e.id==l.value)).categoryName:""),h:2==o.value,i:e.sr(i,"795fab27-1",{k:"paging"}),j:e.o(c),k:e.o((e=>u.value=e)),l:e.p({"use-page-scroll":!0,modelValue:u.value})})}}),o=e._export_sfc(n,[["__scopeId","data-v-795fab27"]]);wx.createPage(o);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "",
"navigationStyle": "custom",
"usingComponents": {
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
}
}

View File

@@ -0,0 +1 @@
<view class="notice data-v-795fab27"><wd-navbar wx:if="{{b}}" class="data-v-795fab27" bindclickLeft="{{a}}" u-i="795fab27-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><view class="nav-tabs data-v-795fab27"><view class="{{['tab-item', 'data-v-795fab27', c]}}" bindtap="{{d}}">通知</view><view wx:for="{{e}}" wx:for-item="item" wx:key="d" class="{{['tab-item', 'data-v-795fab27', item.b]}}" bindtap="{{item.c}}">{{item.a}}</view></view><z-paging wx:if="{{l}}" class="r data-v-795fab27" u-s="{{['d']}}" u-r="paging" bindquery="{{j}}" u-i="795fab27-1" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"><view class="p30 data-v-795fab27"><view wx:for="{{f}}" wx:for-item="item" wx:key="c" class="notice_block data-v-795fab27" bindtap="{{item.d}}"><view class="data-v-795fab27">{{g}}{{item.a}}</view><image wx:if="{{h}}" class="data-v-795fab27" style="width:40rpx;height:40rpx" src="{{item.b}}"></image></view></view></z-paging></view>

View File

@@ -0,0 +1 @@
.notice_block.data-v-795fab27{display:flex;align-items:center;justify-content:space-between;padding:0 35rpx;width:690rpx;height:106rpx;background:#fff;border-radius:16rpx;position:relative;font-weight:400;font-size:24rpx;color:#232323}.notice .nav-tabs.data-v-795fab27{display:flex;background-color:#fff;padding:24rpx 0;border-bottom:1rpx solid #eee}.notice .tab-item.data-v-795fab27{font-size:15px;color:#999;position:relative;padding:0 10px;z-index:9}.notice .tab-item.active.data-v-795fab27{color:#333;font-weight:700}.notice .tab-item.active.data-v-795fab27:after{content:"";position:absolute;bottom:0rpx;right:20rpx;width:40rpx;height:12rpx;background:#627c54;border-radius:24rpx;z-index:5;opacity:.8}