This commit is contained in:
mzltMpfqGS
2026-04-15 19:45:16 +08:00
commit e4a087e67e
301 changed files with 35048 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
// components/category-item/category-item.js
// 分类项组件
Component({
properties: {
category: {
type: Object,
value: {}
},
selected: {
type: Boolean,
value: false
}
},
methods: {
onTap() {
const category = this.data.category
this.triggerEvent('tap', { category })
}
}
})
/**
* @联系作者:16768118056
* @描述:(此项目非免费分享)源码百分百可用,搞定毕设不发愁,支持远程调试安装、二次开发、定制、讲解、文档类。
* @访问:https://www.notmaker.com/detail/8326a897119d4542896c863a69d7bbe7/gtt20260415,查看完整运行演示。
*/

View File

@@ -0,0 +1,10 @@
{
"component": true,
"usingComponents": {}
}
/**
* @联系作者:16768118056
* @描述:(此项目非免费分享)源码百分百可用,搞定毕设不发愁,支持远程调试安装、二次开发、定制、讲解、文档类。
* @访问:https://www.notmaker.com/detail/8326a897119d4542896c863a69d7bbe7/gtt20260415,查看完整运行演示。
*/

View File

@@ -0,0 +1,14 @@
<!-- components/category-item/category-item.wxml -->
<!-- 分类项组件 -->
<view class="category-item {{selected ? 'selected' : ''}}" bindtap="onTap">
<image class="icon" wx:if="{{category.icon}}" src="{{category.icon}}" mode="aspectFit" />
<text class="name">{{category.name}}</text>
<text class="count" wx:if="{{category.articleCount}}">{{category.articleCount}}</text>
</view>
/**
* @联系作者:16768118056
* @描述:(此项目非免费分享)源码百分百可用,搞定毕设不发愁,支持远程调试安装、二次开发、定制、讲解、文档类。
* @访问:https://www.notmaker.com/detail/8326a897119d4542896c863a69d7bbe7/gtt20260415,查看完整运行演示。
*/

View File

@@ -0,0 +1,37 @@
/* components/category-item/category-item.wxss */
/* 分类项样式 */
.category-item {
display: flex;
align-items: center;
padding: 24rpx 30rpx;
background-color: #fff;
border-bottom: 1rpx solid #f0f0f0;
}
.category-item.selected {
background-color: #f0f7ff;
}
.icon {
width: 48rpx;
height: 48rpx;
margin-right: 20rpx;
}
.name {
flex: 1;
font-size: 28rpx;
color: #333;
}
.count {
font-size: 24rpx;
color: #999;
}
/**
* @联系作者:16768118056
* @描述:(此项目非免费分享)源码百分百可用,搞定毕设不发愁,支持远程调试安装、二次开发、定制、讲解、文档类。
* @访问:https://www.notmaker.com/detail/8326a897119d4542896c863a69d7bbe7/gtt20260415,查看完整运行演示。
*/