NewWordShow.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  1. <!-- -->
  2. <template>
  3. <div
  4. v-if="curQue"
  5. class="Big-Book-prev-Textdes NewWordShow"
  6. :class="[isPhone ? 'NewWordShow-phone' : '']"
  7. >
  8. <h2 v-if="curQue.title">{{ curQue.title }}</h2>
  9. <div class="item-box">
  10. <div v-for="(item, index) in curQue.option" :key="index" class="item-pre">
  11. <template v-if="isPhone">
  12. <div class="item-info">
  13. <template v-if="item.pinyin">
  14. <span class="pinyin" :style="{ width: pinyinWidth + 'px' }">{{
  15. item.pinyin
  16. }}</span>
  17. </template>
  18. <div
  19. class="con-box"
  20. v-if="
  21. (item.imgOrText && item.imgOrText == 'text' && item.con) ||
  22. (item.imgOrText == 'image' && item.img_list.length > 0)
  23. "
  24. >
  25. <template v-if="item.imgOrText == 'text'">
  26. <template v-if="item.con">
  27. <div
  28. v-for="(conItem, conindex) in item.con"
  29. :key="conindex"
  30. class="strockplay-newWord"
  31. @click="writeWord(conItem, item.pinyin)"
  32. >
  33. <Strockplayredline
  34. :Book_text="conItem"
  35. :play-storkes="true"
  36. :target-div="
  37. 'bwcHanziIntp' +
  38. index +
  39. conItem +
  40. conindex +
  41. indexStr +
  42. judgeAnswer
  43. "
  44. />
  45. <div
  46. v-if="conindex < item.con.length - 1"
  47. class="bwc-line"
  48. />
  49. </div>
  50. </template>
  51. <template v-else>
  52. <div class="blank-item" @click="freeWrite('', index, 0)">
  53. <img v-if="freeImg[index][0]" :src="freeImg[index][0]" />
  54. </div>
  55. </template>
  56. </template>
  57. <template v-else-if="item.imgOrText == 'image'">
  58. <div
  59. v-for="(imgItem, imgIndex) in item.img_list"
  60. :key="imgIndex"
  61. class="img-box"
  62. @click="freeWrite(imgItem.id, imgIndex, 0)"
  63. >
  64. <el-image :src="imgItem.id" fit="scale-down" class="img_url">
  65. <div slot="placeholder" class="image-slot">
  66. <img src="../../../assets/common/icon-imgloading.png" />
  67. </div>
  68. </el-image>
  69. </div>
  70. </template>
  71. </div>
  72. <span
  73. v-if="item.en"
  74. class="en"
  75. :style="{
  76. marginLeft: item.en.length < 12 ? '' : enMargin + 'px',
  77. textAlign: item.en.length < 12 ? 'center' : 'left',
  78. width: item.en.length < 12 ? '66px' : ''
  79. }"
  80. >{{ item.en }}</span
  81. >
  82. </div>
  83. <div class="item">
  84. <template v-if="item.type && item.type.indexOf('lm') > -1">
  85. <div
  86. v-for="(items, indexs) in item.imgarr"
  87. :key="indexs"
  88. class="con-box"
  89. >
  90. <div
  91. class="strockplay-newWord"
  92. @click="freeWrite(items, index, indexs)"
  93. >
  94. <!-- <div
  95. @click.stop="playHanzi(index, indexs, items)"
  96. :class="[
  97. 'strock-play-box',
  98. themeColor == 'green'
  99. ? 'green-border'
  100. : themeColor == 'red'
  101. ? 'red-border'
  102. : themeColor == 'brown'
  103. ? 'brown-border'
  104. : 'red-border',
  105. ]"
  106. ></div> -->
  107. <img
  108. v-if="!playStatus && items && items.strokes_image_url"
  109. :src="items.strokes_image_url"
  110. alt=""
  111. />
  112. <!-- <FreeWriteQP
  113. :id="'cans' + index + indexs"
  114. :ref="'cans'"
  115. :height="256"
  116. :width="256"
  117. /> -->
  118. </div>
  119. </div>
  120. </template>
  121. </div>
  122. </template>
  123. <template v-else>
  124. <template v-if="item.pinyin">
  125. <span class="pinyin" :style="{ width: pinyinWidth + 'px' }">{{
  126. item.pinyin
  127. }}</span>
  128. </template>
  129. <div class="item" style="margin-right: 20px">
  130. <div
  131. class="con-box"
  132. v-if="
  133. (item.imgOrText && item.imgOrText == 'text' && item.con) ||
  134. (item.imgOrText == 'image' && item.img_list.length > 0)
  135. "
  136. >
  137. <template v-if="item.imgOrText == 'text'">
  138. <template v-if="item.con">
  139. <div
  140. v-for="(conItem, conindex) in item.con"
  141. :key="conindex"
  142. class="strockplay-newWord"
  143. @click="writeWord(conItem, item.pinyin)"
  144. >
  145. <Strockplayredline
  146. :Book_text="conItem"
  147. :play-storkes="true"
  148. :target-div="
  149. 'bwcHanziIntp' +
  150. index +
  151. conItem +
  152. conindex +
  153. indexStr +
  154. judgeAnswer
  155. "
  156. />
  157. <div
  158. v-if="conindex < item.con.length - 1"
  159. class="bwc-line"
  160. />
  161. </div>
  162. </template>
  163. <template v-else>
  164. <div class="blank-item" @click="freeWrite('', index, 0)">
  165. <img v-if="freeImg[index][0]" :src="freeImg[index][0]" />
  166. </div>
  167. </template>
  168. </template>
  169. <template v-else-if="item.imgOrText == 'image'">
  170. <div
  171. v-for="(imgItem, imgIndex) in item.img_list"
  172. :key="imgIndex"
  173. class="img-box"
  174. @click="freeWrite(imgItem.id, imgIndex, 0)"
  175. >
  176. <el-image :src="imgItem.id" fit="scale-down" class="img_url">
  177. <div slot="placeholder" class="image-slot">
  178. <img src="../../../assets/common/icon-imgloading.png" />
  179. </div>
  180. </el-image>
  181. </div>
  182. </template>
  183. </div>
  184. <template v-if="item.type && item.type.indexOf('lm') > -1">
  185. <div
  186. v-for="(items, indexs) in item.imgarr"
  187. :key="indexs"
  188. class="con-box"
  189. >
  190. <div
  191. class="strockplay-newWord"
  192. @click="freeWrite(items, index, indexs)"
  193. >
  194. <!-- <div
  195. @click.stop="playHanzi(index, indexs, items)"
  196. :class="[
  197. 'strock-play-box',
  198. themeColor == 'green'
  199. ? 'green-border'
  200. : themeColor == 'red'
  201. ? 'red-border'
  202. : themeColor == 'brown'
  203. ? 'brown-border'
  204. : 'red-border',
  205. ]"
  206. ></div> -->
  207. <img
  208. v-if="!playStatus && items && items.strokes_image_url"
  209. :src="items.strokes_image_url"
  210. alt=""
  211. />
  212. <!-- <FreeWriteQP
  213. :id="'cans' + index + indexs"
  214. :ref="'cans'"
  215. :height="256"
  216. :width="256"
  217. /> -->
  218. </div>
  219. </div>
  220. </template>
  221. </div>
  222. <span
  223. v-if="item.en"
  224. class="en"
  225. :style="{
  226. marginLeft: item.en.length < 12 ? '' : enMargin + 'px',
  227. textAlign: item.en.length < 12 ? 'center' : 'left',
  228. width: item.en.length < 12 ? pinyinWidth + 'px' : ''
  229. }"
  230. >{{ item.en }}</span
  231. >
  232. </template>
  233. </div>
  234. </div>
  235. <el-dialog
  236. :visible.sync="isPraShow"
  237. :show-close="false"
  238. :close-on-click-modal="true"
  239. :modal-append-to-body="true"
  240. :append-to-body="true"
  241. :lock-scroll="true"
  242. :width="isPhone ? '100%' : '504px'"
  243. class="practiceBox practiceBoxStrock"
  244. v-if="isPraShow"
  245. >
  246. <Practice
  247. @changePraShow="changePraShow"
  248. :cur="curData"
  249. :theme-color="themeColor"
  250. />
  251. </el-dialog>
  252. <!-- <div v-if="isPraShow" class="practiceBox practiceBoxStrock">
  253. <Practice
  254. :change-pra-show="changePraShow"
  255. :cur="curData"
  256. :theme-color="themeColor"
  257. />
  258. </div> -->
  259. <el-dialog
  260. :visible.sync="ifFreeShow"
  261. :show-close="false"
  262. :close-on-click-modal="true"
  263. :modal-append-to-body="true"
  264. :append-to-body="true"
  265. :lock-scroll="true"
  266. width="320px"
  267. top="20%"
  268. class="practiceBox practiceBoxStrock"
  269. v-if="ifFreeShow"
  270. >
  271. <FreewriteLettle
  272. ref="freePaint"
  273. :change-pra-show="changePraShow"
  274. :theme-color="themeColor"
  275. :current-tree-i-d="currentTreeID"
  276. :current-hz="currentHz"
  277. :curren-hz-data="currenHzData"
  278. :row-index="activeIndex"
  279. :col-index="activeColIndex"
  280. :closeif-free-show="closeifFreeShow"
  281. :task-model="TaskModel"
  282. @changeCurQue="changeCurQue"
  283. @deleteWriteRecord="deleteWriteRecord"
  284. />
  285. </el-dialog>
  286. <!-- <div v-if="ifFreeShow" class="practiceBox practiceBoxStrock">
  287. <FreewriteLettle
  288. ref="freePaint"
  289. :change-pra-show="changePraShow"
  290. :theme-color="themeColor"
  291. :current-tree-i-d="currentTreeID"
  292. :current-hz="currentHz"
  293. :curren-hz-data="currenHzData"
  294. :row-index="activeIndex"
  295. :col-index="activeColIndex"
  296. :closeif-free-show="closeifFreeShow"
  297. :task-model="TaskModel"
  298. @changeCurQue="changeCurQue"
  299. @deleteWriteRecord="deleteWriteRecord"
  300. />
  301. </div> -->
  302. </div>
  303. </template>
  304. <script>
  305. import Strockplayredline from "../preview/components/Strockplayredline.vue";
  306. import Practice from "../preview/components/Practice.vue";
  307. import FreewriteLettle from "../preview/components/FreewriteLettle.vue";
  308. import { getContentFile, LearnWebSI } from "../../../api/ajax";
  309. import FreeWriteQP from "./components/FreewriteWord.vue";
  310. export default {
  311. components: { Strockplayredline, Practice, FreewriteLettle, FreeWriteQP },
  312. props: [
  313. "curQue",
  314. "themeColor",
  315. "indexStr",
  316. "currentTreeID",
  317. "TaskModel",
  318. "judgeAnswer",
  319. "isPhone"
  320. ],
  321. data() {
  322. return {
  323. isPraShow: false,
  324. curData: null,
  325. ifFreeShow: false,
  326. freeImg: [],
  327. activeIndex: null,
  328. activeColIndex: null,
  329. currentHz: "", // 当前汉字
  330. currenHzData: null, // 当前汉字数据
  331. playStatus: false, // 播放状态
  332. userAnswer: {
  333. writeModel: {} // 生词/取词模式
  334. },
  335. pinyinWidth: 91,
  336. enMargin: 13
  337. };
  338. },
  339. computed: {},
  340. watch: {},
  341. // 生命周期 - 创建完成(可以访问当前this实例)
  342. created() {
  343. let _this = this;
  344. if (!_this.curQue.Bookanswer) {
  345. _this.curQue.Bookanswer = JSON.parse(JSON.stringify(_this.userAnswer));
  346. }
  347. // if (_this.TaskModel != "ANSWER") {
  348. // _this.handleData();
  349. // } else {
  350. _this.handleAnswerData();
  351. // }
  352. },
  353. // 生命周期 - 挂载完成(可以访问DOM元素)
  354. mounted() {},
  355. beforeCreate() {}, // 生命周期 - 创建之前
  356. beforeMount() {}, // 生命周期 - 挂载之前
  357. beforeUpdate() {}, // 生命周期 - 更新之前
  358. updated() {}, // 生命周期 - 更新之后
  359. beforeDestroy() {}, // 生命周期 - 销毁之前
  360. destroyed() {}, // 生命周期 - 销毁完成
  361. activated() {},
  362. // 方法集合
  363. methods: {
  364. playHanzi(rowIndex, colIndex, item) {
  365. if (this.playStatus) {
  366. this.$message.warning("请等待播放完成");
  367. return;
  368. }
  369. this.playStatus = true;
  370. let ref = null;
  371. this.$refs.cans.forEach(items => {
  372. if (items.$el.id == `cans${rowIndex}${colIndex}`) {
  373. ref = items;
  374. }
  375. });
  376. ref.reset();
  377. let c = document.getElementById(`cans${rowIndex}${colIndex}`);
  378. let cxt = document
  379. .getElementById(`cans${rowIndex}${colIndex}`)
  380. .getContext("2d");
  381. cxt.clearRect(0, 0, c.width, c.height);
  382. let history = item.history;
  383. const len = item.history.length;
  384. let i = 0;
  385. const runner = () => {
  386. i++;
  387. if (i < len) {
  388. ref.draw(null, history[i][0], history[i][1]);
  389. requestAnimationFrame(runner);
  390. } else {
  391. this.playStatus = false;
  392. }
  393. };
  394. requestAnimationFrame(runner);
  395. },
  396. // 处理数据
  397. handleData() {
  398. let _this = this;
  399. let MethodName = "teaching-practice_manager-GetMyHZHandwrittenRecordList";
  400. this.curQue.option.forEach((item, index) => {
  401. let data = {
  402. courseware_id: this.currentTreeID,
  403. hz: item.con,
  404. search_scope: 1,
  405. count_limit: 6
  406. };
  407. LearnWebSI(MethodName, data).then(res => {
  408. let imgarr = res.hz_handwritten_record_list;
  409. let newimgarr = imgarr.map(it => {
  410. it.history = JSON.parse(it.strokes_content);
  411. return it;
  412. });
  413. if (newimgarr.length < 6) {
  414. let num = 6 - newimgarr.length;
  415. for (let i = 0; i < num; i++) {
  416. newimgarr.push({});
  417. }
  418. }
  419. if (
  420. !item.imgOrText ||
  421. (item.imgOrText === "text" && !item.con.trim()) ||
  422. (item.imgOrText === "image" && item.img_list.length === 0)
  423. ) {
  424. newimgarr.push({});
  425. }
  426. item.imgarr = newimgarr;
  427. this.$forceUpdate();
  428. });
  429. });
  430. },
  431. // 处理数据
  432. handleAnswerData() {
  433. let _this = this;
  434. _this.curQue.option.forEach((item, index) => {
  435. let con =
  436. item.imgOrText == "text"
  437. ? item.con
  438. : item.img_list && item.img_list.length > 0 && item.img_list[0].id
  439. ? item.img_list[0].id
  440. : index;
  441. let arr = [];
  442. if (
  443. _this.curQue.Bookanswer.writeModel &&
  444. _this.curQue.Bookanswer.writeModel[con]
  445. ) {
  446. arr = _this.curQue.Bookanswer.writeModel[con].map(it => {
  447. if (it && it.strokes_content) {
  448. it.history = JSON.parse(it.strokes_content);
  449. }
  450. return it;
  451. });
  452. } else {
  453. for (let i = 0; i < this.curQue.numberList.con; i++) {
  454. arr.push(null);
  455. }
  456. if (
  457. !item.imgOrText ||
  458. (item.imgOrText === "text" && !item.con.trim()) ||
  459. (item.imgOrText === "image" && item.img_list.length === 0)
  460. ) {
  461. arr.push(null);
  462. }
  463. // arr = [null, null, null, null, null, null, null];
  464. }
  465. item.imgarr = arr;
  466. this.pinyinWidth = Number(
  467. 730 / (Number(this.curQue.numberList.con) + 1)
  468. );
  469. this.enMargin =
  470. (Number(730 / (Number(this.curQue.numberList.con) + 1)) - 64) / 2;
  471. });
  472. console.log(this.curQue);
  473. },
  474. changePraShow() {
  475. this.isPraShow = false;
  476. this.ifFreeShow = false;
  477. // this.freeImg[this.activeIndex][this.activeColIndex] =
  478. // this.$refs.freePaint.imgSrc;
  479. },
  480. async writeWord(words, pinyin) {
  481. this.activeIndex = null;
  482. this.activeColIndex = null;
  483. const MethodName = "tool-ChineseSCConvert";
  484. const data = {
  485. text: words,
  486. swap_mode: "S-C"
  487. };
  488. let TChinese = await getContentFile(MethodName, data);
  489. this.curData = {
  490. stem: [
  491. {
  492. con: words || "",
  493. pinyin: pinyin || "",
  494. mp3_url: "",
  495. TChinese: TChinese.text
  496. }
  497. ]
  498. };
  499. this.isPraShow = true;
  500. },
  501. closeifFreeShow(data, rowIndex, colIndex) {
  502. this.curQue.option[rowIndex].imgarr[colIndex] = data;
  503. this.ifFreeShow = false;
  504. this.freeWrite(data, rowIndex, colIndex);
  505. this.$forceUpdate();
  506. },
  507. freeWrite(imgUrl, index, indexs) {
  508. let _this = this;
  509. if (_this.TaskModel == "ANSWER" && !imgUrl) {
  510. return;
  511. }
  512. _this.ifFreeShow = true;
  513. _this.activeIndex = index;
  514. _this.activeColIndex = indexs;
  515. _this.currentHz =
  516. _this.curQue.option[index].imgOrText == "text"
  517. ? _this.curQue.option[index].con
  518. : _this.curQue.option[index].img_list[0]
  519. ? _this.curQue.option[index].img_list[0].id
  520. : index;
  521. _this.currenHzData = imgUrl;
  522. console.log(_this.curQue);
  523. },
  524. // 删除记录
  525. deleteWriteRecord(rowIndex, colIndex, currentHz) {
  526. this.$set(this.curQue.option[rowIndex].imgarr, colIndex, {});
  527. let answer = {
  528. hz: currentHz,
  529. strokes_content: "",
  530. strokes_image_url: ""
  531. };
  532. this.changeCurQue(answer, colIndex);
  533. this.$forceUpdate();
  534. },
  535. changeCurQue(answer, colIndex) {
  536. if (answer) {
  537. let writeModel = this.curQue.Bookanswer.writeModel;
  538. let hz = answer.hz;
  539. if (writeModel.hasOwnProperty(hz)) {
  540. writeModel[hz][colIndex] = answer;
  541. } else {
  542. writeModel[hz] = [];
  543. for (let i = 0; i < 6; i++) {
  544. writeModel[hz].push(null);
  545. }
  546. writeModel[hz][colIndex] = answer;
  547. }
  548. }
  549. }
  550. } // 如果页面有keep-alive缓存功能,这个函数会触发
  551. };
  552. </script>
  553. <style lang="scss" scoped>
  554. //@import url(); 引入公共css类
  555. .NewWordShow {
  556. width: 100%;
  557. margin-bottom: 24px;
  558. h2 {
  559. margin: 0 0 8px 0;
  560. font-weight: 500;
  561. font-size: 16px;
  562. line-height: 24px;
  563. color: #000000;
  564. }
  565. .item-box {
  566. padding-bottom: 8px;
  567. padding: 0 4px;
  568. background: #f7f7f7;
  569. border: 1px solid rgba(0, 0, 0, 0.1);
  570. border-radius: 8px;
  571. .item-pre {
  572. padding: 9px 20px;
  573. }
  574. .pinyin {
  575. text-align: center;
  576. display: block;
  577. margin-bottom: 4px;
  578. font-family: Sans-GBNPC;
  579. color: #000;
  580. }
  581. .en {
  582. display: block;
  583. margin-top: 4px;
  584. font-family: robot, "alabo";
  585. }
  586. .item {
  587. box-sizing: border-box;
  588. // width: 66px;
  589. cursor: pointer;
  590. display: flex;
  591. flex-flow: wrap;
  592. align-items: flex-end;
  593. > p {
  594. white-space: nowrap;
  595. :nth-child(1) {
  596. font-family: "GB-PINYINOK-B";
  597. }
  598. :nth-child(2) {
  599. font-family: "robot", "alabo";
  600. margin-left: 4px;
  601. }
  602. color: #2c2c2c;
  603. font-size: 14px;
  604. line-height: 130%;
  605. text-align: center;
  606. margin: 0 0 8px 0;
  607. }
  608. }
  609. .strockplay {
  610. display: flex;
  611. justify-content: center;
  612. align-items: center;
  613. position: relative;
  614. width: 64px;
  615. height: 64px;
  616. }
  617. .strockplayRedInner {
  618. width: 64px;
  619. height: 64px;
  620. }
  621. .bwc-line {
  622. width: 1px;
  623. height: 62px;
  624. background: #de4444;
  625. }
  626. .con-box {
  627. width: 66px;
  628. height: 66px;
  629. display: flex;
  630. border: 1px solid #de4444;
  631. border-radius: 8px;
  632. overflow: hidden;
  633. margin: 0 auto;
  634. .img-box {
  635. background: #fff url("../../../assets/NPC/chinaTianRed.png") center
  636. no-repeat;
  637. background-size: cover;
  638. .img_url {
  639. width: 64px;
  640. height: 64px;
  641. }
  642. }
  643. }
  644. .strockplay-newWord {
  645. width: 64px;
  646. height: 64px;
  647. background: #fff url("../../../assets/NPC/chinaTianRed.png") center
  648. no-repeat;
  649. background-size: cover;
  650. position: relative;
  651. .strock-play-box {
  652. position: absolute;
  653. cursor: pointer;
  654. }
  655. canvas {
  656. width: 64px;
  657. height: 64px;
  658. }
  659. img {
  660. width: 100%;
  661. height: 100%;
  662. }
  663. }
  664. }
  665. .practiceBox {
  666. position: fixed;
  667. left: 0;
  668. top: 0;
  669. z-index: 1000;
  670. width: 100%;
  671. height: 100vh;
  672. background: rgba(0, 0, 0, 0.19);
  673. box-sizing: border-box;
  674. overflow: hidden;
  675. overflow-y: auto;
  676. &.practiceBoxStrock {
  677. display: flex;
  678. justify-content: center;
  679. align-items: center;
  680. padding-top: 0px;
  681. }
  682. }
  683. &-phone {
  684. .item-box {
  685. .item-pre {
  686. padding: 10px 4px;
  687. }
  688. .item-info {
  689. .pinyin {
  690. width: 66px !important;
  691. }
  692. }
  693. .con-box {
  694. margin: 0;
  695. }
  696. .item {
  697. margin-top: 10px;
  698. gap: 10px;
  699. justify-content: start;
  700. }
  701. }
  702. }
  703. }
  704. .NPC-Big-Book-preview-brown {
  705. .NewWordShow {
  706. .item-box {
  707. .item {
  708. .bwc-line {
  709. background: #bf875e;
  710. }
  711. }
  712. .con-box {
  713. border: 1px solid #bf875e;
  714. .img-box {
  715. background: #fff url("../../../assets/NPC/chinaTianYellow.png") center
  716. no-repeat;
  717. background-size: cover;
  718. }
  719. .blank-item {
  720. background: #fff url("../../../assets/NPC/chinaTianYellow.png") center
  721. no-repeat;
  722. background-size: cover;
  723. }
  724. }
  725. }
  726. }
  727. }
  728. .NPC-Big-Book-preview-green {
  729. .NewWordShow {
  730. .item-box {
  731. .item {
  732. .bwc-line {
  733. background: #24b99e;
  734. }
  735. }
  736. .con-box {
  737. border: 1px solid #24b99e;
  738. .img-box {
  739. background: #fff url("../../../assets/NPC/chinaTianGreen.png") center
  740. no-repeat;
  741. background-size: cover;
  742. }
  743. .blank-item {
  744. background: #fff url("../../../assets/NPC/chinaTianGreen.png") center
  745. no-repeat;
  746. background-size: cover;
  747. }
  748. }
  749. }
  750. }
  751. }
  752. </style>
  753. <style lang="scss">
  754. .NPC-Big-Book-preview-red {
  755. .strockplay-newWord {
  756. .strock-play-box {
  757. width: 16px !important;
  758. height: 16px !important;
  759. right: -1px;
  760. top: 0;
  761. background: url("../../../assets/NPC/strock-play-red-click.png") center
  762. no-repeat;
  763. background-size: cover;
  764. }
  765. .character-target-div {
  766. // background-color: initial;
  767. }
  768. }
  769. }
  770. .NPC-Big-Book-preview-green {
  771. .strockplay-newWord {
  772. .strock-play-box {
  773. width: 16px !important;
  774. height: 16px !important;
  775. right: -1px;
  776. top: 0;
  777. background: url("../../../assets/NPC/strock-play-green-click.png") center
  778. no-repeat;
  779. background-size: cover;
  780. }
  781. .character-target-div {
  782. // background-color: initial;
  783. }
  784. }
  785. }
  786. .NPC-Big-Book-preview-brown {
  787. .strockplay-newWord {
  788. .strock-play-box {
  789. width: 16px !important;
  790. height: 16px !important;
  791. right: -1px;
  792. top: 0;
  793. background: url("../../../assets/NPC/strock-play-yellow-click.png") center
  794. no-repeat;
  795. background-size: cover;
  796. }
  797. .character-target-div {
  798. // background-color: initial;
  799. }
  800. }
  801. }
  802. </style>