优化后,再次提交

This commit is contained in:
王利强
2026-05-03 09:08:56 +08:00
parent 721ef0ad54
commit 805747d1d9
1243 changed files with 46213 additions and 221 deletions

View File

@@ -0,0 +1,44 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const _sfc_main = {
__name: "checklist",
setup(__props) {
const list = common_vendor.ref([]);
const fetchList = async () => {
try {
const res = await request_api.getCheckTableList({ pageNum: 1, pageSize: 100 });
if (res.code === 0) {
list.value = res.data.records || [];
}
} catch (error) {
common_vendor.index.__f__("error", "at pages/checklist/checklist.vue:36", "获取检查表列表失败:", error);
}
};
const goToAdd = () => {
common_vendor.index.navigateTo({
url: "/pages/editchecklist/editchecklist"
});
};
common_vendor.onShow(() => {
fetchList();
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.f(list.value, (item, k0, i0) => {
return {
a: common_vendor.t(item.name),
b: item.id
};
}),
b: list.value.length === 0
}, list.value.length === 0 ? {} : {}, {
c: common_vendor.o(goToAdd),
d: common_vendor.gei(_ctx, "")
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-4d00090a"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/checklist/checklist.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "检查表",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-4d00090a', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden || false}}" id="{{d}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="checklist-card data-v-4d00090a"><view class="card-name data-v-4d00090a">{{item.a}}</view></view><view wx:if="{{b}}" class="empty-tip data-v-4d00090a"><text class="data-v-4d00090a">暂无检查表</text></view><button class="add-btn data-v-4d00090a" bindtap="{{c}}"><text class="cuIcon-add data-v-4d00090a"></text><text class="data-v-4d00090a">新增检查表</text></button></view>

View File

@@ -0,0 +1,68 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* uni.scss */
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.page.data-v-4d00090a {
min-height: 100vh;
background: #EBF2FC;
padding-bottom: 120rpx;
}
.checklist-card.data-v-4d00090a {
background: #fff;
border-radius: 16rpx;
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}
.checklist-card .card-name.data-v-4d00090a {
font-size: 32rpx;
color: #333;
font-weight: 500;
}
.empty-tip.data-v-4d00090a {
text-align: center;
padding: 100rpx 0;
color: #999;
font-size: 28rpx;
}
.add-btn.data-v-4d00090a {
position: fixed;
bottom: 40rpx;
left: 30rpx;
right: 30rpx;
height: 90rpx;
background: linear-gradient(135deg, #667eea 0%, #2668EA 100%);
border-radius: 45rpx;
color: #fff;
font-size: 32rpx;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8rpx 20rpx rgba(102, 126, 234, 0.4);
}
.add-btn .cuIcon-add.data-v-4d00090a {
margin-right: 10rpx;
font-size: 36rpx;
}