feat: 分类管理页开发
This commit is contained in:
@@ -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,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' });
|
||||
},
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user