|
@@ -1,22 +1,17 @@
|
|
|
<template>
|
|
|
<view class="words-bei-box">
|
|
|
- <!-- 单词区 -->
|
|
|
- <!-- <selectWordsVue :active-words="activeWords" :activeWord="activeWord"></selectWordsVue> -->
|
|
|
<!-- 显示区 -->
|
|
|
<selectTypesVue activeSelect="5"></selectTypesVue>
|
|
|
<!-- 输入区 -->
|
|
|
- <!-- <view class="words-answer-box">{{data.answer}}</view> -->
|
|
|
<input class="words-answer-box" placeholder="请输入答案" v-model.trim="data.answer" readonly/>
|
|
|
- <!-- 清空和提示互斥 需要分成多行 大哥看这里 -->
|
|
|
<!-- 清空按钮 -->
|
|
|
- <view class="clean-btn" @click="handleReset('all')"></view>
|
|
|
+ <view class="clean-btn" @click="handleReset('all')" v-if="data.answer.length"></view>
|
|
|
<view class="bei-body-box">
|
|
|
<!-- 提示 -->
|
|
|
<!-- <view class="pin-tip">提示:请点击页面下方键盘,输入正确字母。</view> -->
|
|
|
-
|
|
|
<!-- 解释区 需要分成多行 大哥看这里-->
|
|
|
<view class="pin-words-explain-box">
|
|
|
- <view class="words-explain-item">{{activeWord.jianyi.join(';')}}</view>
|
|
|
+ <view class="words-explain-item" v-for="item in activeWord.jianyi" :key="item">{{item}}</view>
|
|
|
</view>
|
|
|
<!-- 播放和待播放需要写个切换 大哥看这里 -->
|
|
|
<!-- 待播放 -->
|
|
@@ -76,6 +71,7 @@
|
|
|
import {
|
|
|
getUserIdentity,
|
|
|
} from "@/utils/common.js"
|
|
|
+ import * as httpApi from "@/api/word.js"
|
|
|
|
|
|
const userCode = getUserIdentity();
|
|
|
|
|
@@ -110,6 +106,10 @@
|
|
|
// 游客不更新后台
|
|
|
return;
|
|
|
}
|
|
|
+ httpApi.getWordZhangwo({
|
|
|
+ type: 3,
|
|
|
+ wordId: props.activeWord.id
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function handleReset(code) {
|
|
@@ -124,7 +124,6 @@
|
|
|
}
|
|
|
|
|
|
function handleSelect(word) {
|
|
|
- console.log('xxxx',word)
|
|
|
data.answer+=word;
|
|
|
}
|
|
|
</script>
|