zhuyuan-ice-gl-zy001/~/Projects/guanghulab-miniapp/pages/editor/editor.wxml

34 lines
1.3 KiB
Text
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="card">
<input class="e-title" placeholder="标题" placeholder-class="ph"
value="{{title}}" bindinput="onTitle" />
<textarea class="e-content" placeholder="内容(支持简单 Markdown:## 小标题、- 列表、**加粗**)"
placeholder-class="ph" value="{{content}}" bindinput="onContent"
maxlength="5000" auto-height />
<input class="e-tags" placeholder="标签,用逗号分隔(如:读书, 思维)"
placeholder-class="ph" value="{{tagStr}}" bindinput="onTags" />
</view>
<view class="card">
<view class="row">
<view>
<view class="row-title">🌐 公开</view>
<view class="row-desc">公开条目可被其他访问者浏览</view>
</view>
<switch checked="{{visibility === 'public'}}" bindchange="onVis" color="#14b8a6" />
</view>
<view class="row">
<view>
<view class="row-title">🤖 AI 可读</view>
<view class="row-desc">允许 AI 问答把本条目作为语料;关闭后 AI 永不读取</view>
</view>
<switch checked="{{aiReadable}}" bindchange="onAI" color="#14b8a6" />
</view>
</view>
<view class="save-wrap">
<button class="btn-primary save" bindtap="onSave">保存</button>
</view>
</view>