Files
Mycontent/miniprogram/pages/super-article-editor/super-article-editor.wxml
乘风 5a88e87654 feat: implement audit mode functionality in article editor and user pages
- Added audit mode checks to restrict access to certain features and UI elements in the article editor and user pages.
- Updated the UI to disable input fields and display a mask when in audit mode, enhancing user feedback.
- Ensured that actions like submitting articles and inserting content are blocked in audit mode to prevent unauthorized usage.

This update aims to improve content management and user experience by enforcing stricter access controls during the audit process.
2026-05-06 14:32:38 +08:00

34 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="page">
<view class="nav-bar" style="padding-top: {{statusBarHeight}}px;">
<view class="nav-back" bindtap="goBack">
<icon name="chevron-left" size="44" color="rgba(255,255,255,0.85)"></icon>
</view>
<text class="nav-title">发文章</text>
<view class="nav-placeholder"></view>
</view>
<view style="height: {{statusBarHeight + 44}}px;"></view>
<view class="card">
<text class="label">标题</text>
<view class="input-wrap">
<input class="input" maxlength="40" placeholder="写个标题最多40字" value="{{title}}" bindinput="onTitleInput" disabled="{{auditMode}}"/>
</view>
<text class="label">正文</text>
<view class="toolbar">
<view class="tool-btn" bindtap="insertMentionSelf">@自己</view>
<view class="tool-btn" bindtap="insertHashLink">#超链接</view>
</view>
<view class="textarea-wrap">
<textarea class="textarea" maxlength="5000" placeholder="输入正文内容..." value="{{content}}" bindinput="onContentInput" disabled="{{auditMode}}"/>
</view>
<text class="hint">提示:可直接输入 @昵称 或 #链接(https://xxx)</text>
<view class="submit-btn" bindtap="submitArticle">{{saving ? '发布中...' : '发布文章'}}</view>
</view>
<view wx:if="{{auditMode}}" class="audit-mode-mask" catchtouchmove="preventMove">
<text class="audit-mode-text">开发中...</text>
</view>
</view>