feat: 分类管理页开发

This commit is contained in:
R524809
2026-04-23 12:08:07 +08:00
parent b2ab123b4f
commit 5106dbbd7c
21 changed files with 1034 additions and 151 deletions
+5
View File
@@ -237,6 +237,11 @@ page {
flex-shrink: 0;
}
.profile-row__icon-emoji {
font-size: 36rpx;
line-height: 1;
}
.profile-row__label {
font-size: 30rpx;
font-weight: 600;
+7 -1
View File
@@ -7,12 +7,14 @@ Page({
printCount: 0,
favoriteCount: 0,
version: '',
isDevEnv: false,
},
onLoad() {
const info = wx.getAccountInfoSync();
const version = info.miniProgram.version || '开发版';
this.setData({ version });
const isDevEnv = info.miniProgram.envVersion === 'develop';
this.setData({ version, isDevEnv });
},
onShow() {
@@ -48,6 +50,10 @@ Page({
wx.showToast({ title: '功能开发中', icon: 'none' });
},
onGoToDebug() {
wx.navigateTo({ url: '/supportPages/debug/debug' });
},
onGoToFeedback() {
wx.showToast({ title: '功能开发中', icon: 'none' });
},
+12
View File
@@ -99,6 +99,18 @@
</view>
<text class="profile-row__chevron"></text>
</view>
<view
wx:if="{{isDevEnv}}"
class="profile-row"
bindtap="onGoToDebug">
<view class="profile-row__left">
<view class="profile-row__icon-bg">
<text class="profile-row__icon-emoji">🛠️</text>
</view>
<text class="profile-row__label">Debug 工具</text>
</view>
<text class="profile-row__chevron"></text>
</view>
<view
class="profile-row profile-row--last"
bindtap="onGoToAbout">