feat:初始提交uni-app项目

This commit is contained in:
2026-01-14 18:19:33 +08:00
commit 0dcbd340e6
515 changed files with 38560 additions and 0 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/apis.js");if(!Array){(e.resolveComponent("uni-tag")+e.resolveComponent("uni-dateformat")+e.resolveComponent("mp-html"))()}Math||((()=>"../../uni_modules/uni-tag/components/uni-tag/uni-tag.js")+(()=>"../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js")+(()=>"../../uni_modules/mp-html/components/mp-html/mp-html.js"))();const a={__name:"detail",setup(a){const o=e.ref({}),n=e.ref(""),l=e.ref("");e.onLoad((t=>{console.log(t),n.value=t.id,l.value=t.name,e.index.setNavigationBarTitle({title:l.value}),u()}));const u=async()=>{let e=await t.apiNoticeDetail({id:n.value});o.value=e.data,console.log(e)};return(t,a)=>e.e({a:o.value.select},o.value.select?{b:e.p({text:"置顶",inverted:!0,type:"error"})}:{},{c:e.t(o.value.title),d:e.t(o.value.author),e:e.p({date:o.value.publish_date,format:"yyyy-MM-dd hh:mm:ss"}),f:e.p({content:o.value.content}),g:e.t(o.value.view_count)})}},o=e._export_sfc(a,[["__scopeId","data-v-cb39523c"]]);wx.createPage(o);

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "公告详情",
"usingComponents": {
"uni-tag": "../../uni_modules/uni-tag/components/uni-tag/uni-tag",
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1 @@
<view class="noticeLayout data-v-cb39523c"><view class="title data-v-cb39523c"><view class="tag data-v-cb39523c"><uni-tag wx:if="{{a}}" class="data-v-cb39523c" u-i="cb39523c-0" bind:__l="__l" u-p="{{b}}"></uni-tag></view><view class="font data-v-cb39523c">{{c}}</view></view><view class="info data-v-cb39523c"><view class="item data-v-cb39523c">{{d}}</view><view class="item data-v-cb39523c"><uni-dateformat wx:if="{{e}}" class="data-v-cb39523c" u-i="cb39523c-1" bind:__l="__l" u-p="{{e}}"></uni-dateformat></view></view><view class="content data-v-cb39523c"><mp-html wx:if="{{f}}" class="data-v-cb39523c" u-i="cb39523c-2" bind:__l="__l" u-p="{{f}}"/></view><view class="count data-v-cb39523c"> 阅读数量:{{g}}</view></view>

View File

@@ -0,0 +1 @@
.noticeLayout.data-v-cb39523c{padding:30rpx}.noticeLayout .title.data-v-cb39523c{display:flex;align-items:center;font-size:40rpx;color:#111;line-height:1.6em;padding-bottom:30rpx}.noticeLayout .title .tag.data-v-cb39523c{transform:scale(.8);transform-origin:left center;flex-shrink:0}.noticeLayout .title .font.data-v-cb39523c{padding-left:4rpx}.noticeLayout .info.data-v-cb39523c{display:flex;align-items:center;color:#999;font-size:28rpx}.noticeLayout .info .item.data-v-cb39523c{padding-left:20rpx}.noticeLayout .content.data-v-cb39523c{padding:50rpx 0}.noticeLayout .count.data-v-cb39523c{color:#999;font-size:28rpx}

View File

@@ -0,0 +1 @@
"use strict";const e={};const r=require("../../common/vendor.js")._export_sfc(e,[["render",function(e,r){return{}}]]);wx.createPage(r);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "公告",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class=""></view>