first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:09:02 +08:00
commit dac42e3b0c
3512 changed files with 181637 additions and 0 deletions

View File

View File

@@ -0,0 +1 @@
<view class="p30"><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 a:if="{{c}}" src="{{d}}" style="width:100%"></video><view style="height:20rpx"></view><mp-html u-i="006554ff-0" onVI="__l" u-p="{{e}}"/><view style=""></view></view>

View File

@@ -0,0 +1,35 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
_easycom_mp_html2();
}
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
if (!Math) {
_easycom_mp_html();
}
const _sfc_main = {
__name: "detail",
setup(__props) {
let info = common_vendor.ref({});
common_vendor.onLoad(async (options) => {
let _res = await api_api.getContentInfo({ id: options.id });
info.value = _res;
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.t(common_vendor.unref(info).title),
b: common_vendor.t(common_vendor.unref(info).createTime),
c: common_vendor.unref(info).video
}, common_vendor.unref(info).video ? {
d: common_vendor.unref(info).video
} : {}, {
e: common_vendor.p({
content: common_vendor.unref(info).detail
})
});
};
}
};
my.createPage(_sfc_main);

View File

@@ -0,0 +1,6 @@
{
"defaultTitle": "",
"usingComponents": {
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1,29 @@
.order_list_header.data-v-8b43de22 {
width: 100%;
height: 100rpx;
display: flex;
align-items: center;
flex-direction: row;
justify-content: start;
font-weight: bold;
font-size: 36rpx;
color: #232323;
}
.order_list_header_view.data-v-8b43de22 {
position: relative;
margin-right: 50rpx;
}
.order_list_header_view view.data-v-8b43de22 {
position: relative;
z-index: 99;
}
.order_list_header_view_dian.data-v-8b43de22 {
position: absolute !important;
bottom: 0rpx;
right: 20rpx;
width: 66rpx;
height: 20rpx;
background-color: #4874e5;
border-radius: 10rpx;
z-index: 1 !important;
}

View File

@@ -0,0 +1 @@
<view class="p30 data-v-8b43de22" style="padding-bottom:150rpx"><z-paging class="data-v-8b43de22" u-s="{{['d']}}" ref="__r" u-r="{{d}}" onQuery="{{e}}" u-i="8b43de22-0" onVI="__l" onUpdateModelValue="{{f}}" u-p="{{g}}"><status-bar class="data-v-8b43de22" u-s="{{['d']}}" u-i="8b43de22-1,8b43de22-0" onVI="__l"><up-tabs class="data-v-8b43de22" onClick="{{a}}" u-i="8b43de22-2,8b43de22-1" onVI="__l" u-p="{{b}}"></up-tabs></status-bar><view a:for="{{c}}" a:for-item="i" a:key="d" class="order_view data-v-8b43de22" onTap="{{i.e}}"><image a:if="{{i.a}}" class="data-v-8b43de22" src="{{i.b}}" mode="aspectFill" style="width:690rpx;height:248rpx;margin-top:30rpx;border-radius:10rpx"></image><view a:else class="mt30 data-v-8b43de22" style="display:flex;align-items:center;height:80rpx;background-color:#fff;padding:0 30rpx;justify-content:space-between"><view class="data-v-8b43de22">{{i.c}}</view></view></view></z-paging><tabbar class="data-v-8b43de22" u-i="8b43de22-3" onVI="__l" u-p="{{h}}"></tabbar></view>

View File

@@ -0,0 +1,117 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_api = require("../../api/api.js");
if (!Array) {
const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs");
const _easycom_statusBar2 = common_vendor.resolveComponent("statusBar");
const _easycom_z_paging2 = common_vendor.resolveComponent("z-paging");
const _easycom_tabbar2 = common_vendor.resolveComponent("tabbar");
(_easycom_up_tabs2 + _easycom_statusBar2 + _easycom_z_paging2 + _easycom_tabbar2)();
}
const _easycom_up_tabs = () => "../../uni_modules/uview-plus/components/u-tabs/u-tabs.js";
const _easycom_statusBar = () => "../../components/statusBar/statusBar.js";
const _easycom_z_paging = () => "../../uni_modules/z-paging/components/z-paging/z-paging.js";
const _easycom_tabbar = () => "../../components/tabbar/tabbar.js";
if (!Math) {
(_easycom_up_tabs + _easycom_statusBar + _easycom_z_paging + _easycom_tabbar)();
}
const _sfc_main = {
__name: "market",
setup(__props) {
const query = common_vendor.reactive({
cid: 4
//1-最近;2-空闲较多
});
let list = common_vendor.ref();
common_vendor.onLoad(async () => {
common_vendor.index.hideTabBar();
let _res = await api_api.getContentCategoryList();
list.value = _res.records;
query.cid = list.value[0].id;
paging.value.reload();
});
common_vendor.onShow(async () => {
common_vendor.index.hideTabBar();
});
let tabChange = (e) => {
console.log(e);
query.cid = e.id;
paging.value.reload();
};
const paging = common_vendor.ref(null);
let dataList = common_vendor.ref([]);
let isPagingRefNotFound = () => {
return !paging.value;
};
common_vendor.onPullDownRefresh(() => {
if (isPagingRefNotFound())
return;
paging.value.reload().catch(() => {
});
});
common_vendor.onPageScroll((e) => {
if (isPagingRefNotFound())
return;
paging.value.updatePageScrollTop(e.scrollTop);
e.scrollTop < 10 && paging.value.doChatRecordLoadMore();
});
common_vendor.onReachBottom(() => {
if (isPagingRefNotFound())
return;
paging.value.pageReachBottom();
});
const queryList = (pageNo, pageSize) => {
const params = {
current: pageNo,
pageSize,
...query
};
api_api.getContentList(params).then((res) => {
paging.value.complete(res.records);
}).catch((res) => {
paging.value.complete(false);
});
};
let nav = (e) => {
common_vendor.index.navigateTo({
url: e
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(common_vendor.unref(tabChange)),
b: common_vendor.p({
list: common_vendor.unref(list)
}),
c: common_vendor.f(common_vendor.unref(dataList), (i, k0, i0) => {
return common_vendor.e({
a: i.cover
}, i.cover ? {
b: i.cover
} : {
c: common_vendor.t(i.title)
}, {
d: i,
e: common_vendor.o(($event) => common_vendor.unref(nav)(`/pages/market/detail?id=${i.id}`))
});
}),
d: () => ({
r: paging,
k: "paging"
}),
e: common_vendor.o(queryList),
f: common_vendor.o(($event) => common_vendor.isRef(dataList) ? dataList.value = $event : dataList = $event),
g: common_vendor.p({
["use-page-scroll"]: true,
modelValue: common_vendor.unref(dataList)
}),
h: common_vendor.p({
path: "/pages/market/market"
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-8b43de22"]]);
_sfc_main.__runtimeHooks = 1;
my.createPage(MiniProgramPage);

View File

@@ -0,0 +1,11 @@
{
"defaultTitle": "",
"transparentTitle": "always",
"titlePenetrate": "YES",
"usingComponents": {
"up-tabs": "../../uni_modules/uview-plus/components/u-tabs/u-tabs",
"status-bar": "../../components/statusBar/statusBar",
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
"tabbar": "../../components/tabbar/tabbar"
}
}