|
@@ -73,6 +73,7 @@
|
|
|
import Strockplayredline from "../preview/components/Strockplayredline.vue";
|
|
|
import Practice from "../preview/components/Practice.vue";
|
|
|
import FreePaint from "../preview/components/FreePaint.vue";
|
|
|
+import { getContentFile } from "@/api/ajax";
|
|
|
export default {
|
|
|
components: { Strockplayredline, Practice, FreePaint },
|
|
|
props: ["curQue", "themeColor", "indexStr"],
|
|
@@ -102,18 +103,25 @@ export default {
|
|
|
this.ifFreeShow = false;
|
|
|
this.freeImg[this.activeIndex] = this.$refs.freePaint.imgSrc;
|
|
|
},
|
|
|
- writeWord(words, pinyin) {
|
|
|
- this.isPraShow = true;
|
|
|
+ async writeWord(words, pinyin) {
|
|
|
this.activeIndex = null;
|
|
|
+ const MethodName = "tool-ChineseSCConvert";
|
|
|
+ const data = {
|
|
|
+ text: words,
|
|
|
+ swap_mode: 'S-C'
|
|
|
+ };
|
|
|
+ let TChinese = await getContentFile(MethodName,data)
|
|
|
this.curData = {
|
|
|
stem: [
|
|
|
{
|
|
|
con: words ? words : "",
|
|
|
pinyin: pinyin && pinyin ? pinyin : "",
|
|
|
mp3_url: "",
|
|
|
+ TChinese: TChinese.text
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
+ this.isPraShow = true;
|
|
|
},
|
|
|
freeWrite(imgUrl, index) {
|
|
|
this.ifFreeShow = true;
|