feat:初始提交uni-app项目
This commit is contained in:
62
unpackage/dist/dev/mp-weixin/pages/notice/detail.js
vendored
Normal file
62
unpackage/dist/dev/mp-weixin/pages/notice/detail.js
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_apis = require("../../api/apis.js");
|
||||
if (!Array) {
|
||||
const _easycom_uni_tag2 = common_vendor.resolveComponent("uni-tag");
|
||||
const _easycom_uni_dateformat2 = common_vendor.resolveComponent("uni-dateformat");
|
||||
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
|
||||
(_easycom_uni_tag2 + _easycom_uni_dateformat2 + _easycom_mp_html2)();
|
||||
}
|
||||
const _easycom_uni_tag = () => "../../uni_modules/uni-tag/components/uni-tag/uni-tag.js";
|
||||
const _easycom_uni_dateformat = () => "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js";
|
||||
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
|
||||
if (!Math) {
|
||||
(_easycom_uni_tag + _easycom_uni_dateformat + _easycom_mp_html)();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "detail",
|
||||
setup(__props) {
|
||||
const detail = common_vendor.ref({});
|
||||
const noticeId = common_vendor.ref("");
|
||||
const noticeName = common_vendor.ref("");
|
||||
common_vendor.onLoad((e) => {
|
||||
common_vendor.index.__f__("log", "at pages/notice/detail.vue:46", e);
|
||||
noticeId.value = e.id;
|
||||
noticeName.value = e.name;
|
||||
common_vendor.index.setNavigationBarTitle({
|
||||
title: noticeName.value
|
||||
});
|
||||
getNoticeDetail();
|
||||
});
|
||||
const getNoticeDetail = async () => {
|
||||
let res = await api_apis.apiNoticeDetail({ id: noticeId.value });
|
||||
detail.value = res.data;
|
||||
common_vendor.index.__f__("log", "at pages/notice/detail.vue:59", res);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: detail.value.select
|
||||
}, detail.value.select ? {
|
||||
b: common_vendor.p({
|
||||
text: "置顶",
|
||||
inverted: true,
|
||||
type: "error"
|
||||
})
|
||||
} : {}, {
|
||||
c: common_vendor.t(detail.value.title),
|
||||
d: common_vendor.t(detail.value.author),
|
||||
e: common_vendor.p({
|
||||
date: detail.value.publish_date,
|
||||
format: "yyyy-MM-dd hh:mm:ss"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
content: detail.value.content
|
||||
}),
|
||||
g: common_vendor.t(detail.value.view_count)
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0f737f11"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/notice/detail.js.map
|
||||
8
unpackage/dist/dev/mp-weixin/pages/notice/detail.json
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/pages/notice/detail.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/notice/detail.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/notice/detail.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="noticeLayout data-v-0f737f11"><view class="title data-v-0f737f11"><view class="tag data-v-0f737f11"><uni-tag wx:if="{{a}}" class="data-v-0f737f11" u-i="0f737f11-0" bind:__l="__l" u-p="{{b}}"></uni-tag></view><view class="font data-v-0f737f11">{{c}}</view></view><view class="info data-v-0f737f11"><view class="item data-v-0f737f11">{{d}}</view><view class="item data-v-0f737f11"><uni-dateformat wx:if="{{e}}" class="data-v-0f737f11" u-i="0f737f11-1" bind:__l="__l" u-p="{{e}}"></uni-dateformat></view></view><view class="content data-v-0f737f11"><mp-html wx:if="{{f}}" class="data-v-0f737f11" u-i="0f737f11-2" bind:__l="__l" u-p="{{f}}"/></view><view class="count data-v-0f737f11"> 阅读数量:{{g}}</view></view>
|
||||
60
unpackage/dist/dev/mp-weixin/pages/notice/detail.wxss
vendored
Normal file
60
unpackage/dist/dev/mp-weixin/pages/notice/detail.wxss
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.noticeLayout.data-v-0f737f11 {
|
||||
padding: 30rpx;
|
||||
}
|
||||
.noticeLayout .title.data-v-0f737f11 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 40rpx;
|
||||
color: #111;
|
||||
line-height: 1.6em;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.noticeLayout .title .tag.data-v-0f737f11 {
|
||||
transform: scale(0.8);
|
||||
transform-origin: left center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.noticeLayout .title .font.data-v-0f737f11 {
|
||||
padding-left: 4rpx;
|
||||
}
|
||||
.noticeLayout .info.data-v-0f737f11 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #999;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.noticeLayout .info .item.data-v-0f737f11 {
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
.noticeLayout .content.data-v-0f737f11 {
|
||||
padding: 50rpx 0;
|
||||
}
|
||||
.noticeLayout .count.data-v-0f737f11 {
|
||||
color: #999;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
9
unpackage/dist/dev/mp-weixin/pages/notice/notice.js
vendored
Normal file
9
unpackage/dist/dev/mp-weixin/pages/notice/notice.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {};
|
||||
function _sfc_render(_ctx, _cache) {
|
||||
return {};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/notice/notice.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/notice/notice.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/notice/notice.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "公告",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/notice/notice.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/notice/notice.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class=""></view>
|
||||
0
unpackage/dist/dev/mp-weixin/pages/notice/notice.wxss
vendored
Normal file
0
unpackage/dist/dev/mp-weixin/pages/notice/notice.wxss
vendored
Normal file
Reference in New Issue
Block a user