细节修改
This commit is contained in:
@@ -23,7 +23,6 @@ const targetId = ref(0);
|
||||
const targetSrc = ref("");
|
||||
const arrows = ref([]);
|
||||
const notes = ref("");
|
||||
const draftNotes = ref("");
|
||||
const record = ref({
|
||||
groups: [],
|
||||
user: {},
|
||||
@@ -43,8 +42,6 @@ const closeTip = () => {
|
||||
};
|
||||
|
||||
const saveNote = async () => {
|
||||
notes.value = draftNotes.value;
|
||||
draftNotes.value = "";
|
||||
showTip3.value = false;
|
||||
if (record.value.id) {
|
||||
await addNoteAPI(record.value.id, notes.value);
|
||||
@@ -309,17 +306,15 @@ onShareTimeline(async () => {
|
||||
</block>
|
||||
<block v-if="showTip3">
|
||||
<text>备注</text>
|
||||
<text v-if="notes">{{ notes }}</text>
|
||||
<textarea
|
||||
v-if="!notes"
|
||||
v-model="draftNotes"
|
||||
v-model="notes"
|
||||
maxlength="300"
|
||||
rows="4"
|
||||
class="notes-input"
|
||||
placeholder="写下本次射箭的补充信息与心得"
|
||||
placeholder-style="color: #ccc;"
|
||||
/>
|
||||
<view v-if="!notes">
|
||||
<view>
|
||||
<button hover-class="none" @click="showTip3 = false">取消</button>
|
||||
<button hover-class="none" @click="saveNote">保存备注</button>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user