writeTableNew.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  1. <template>
  2. <div :class="['writeTable', editCardflag ? '' : 'writeTable-preview writeTable-preview-' + totalNumber]" v-if="data">
  3. <div class="writeTop" v-bind:class="{ flipped: isFlipped && !editCardflag }">
  4. <template v-if="editCardflag">
  5. <div class="left">
  6. <div class="header-info">
  7. <el-input v-model="data.headerCon" placeholder="输入页眉"></el-input>
  8. <el-input class="label" v-model="data.label" placeholder="输入标签"></el-input>
  9. </div>
  10. <UploadDrag
  11. :fileList="data.left.fileList"
  12. @changeFillId="changeFillId"
  13. v-if="data.left.fileList.length === 0"
  14. :disabled="is_preview"
  15. ></UploadDrag>
  16. <div class="item-image" v-else>
  17. <el-image
  18. style="width: 568px; height: 294px"
  19. :src="data.left.fileList[0].fileUrl"
  20. :preview-src-list="[data.left.fileList[0].fileUrl]"
  21. fit="contain"
  22. />
  23. <span class="item-image-del" @click="handleDeleteImg"><i class="el-icon-delete"></i></span>
  24. </div>
  25. <div style="display: flex; flex-wrap: wrap">
  26. <div class="item-con">
  27. <label>字词</label>
  28. <el-input v-model="data.left.con" placeholder="输入" @blur="handleBlurCon"></el-input>
  29. </div>
  30. <div class="item-con">
  31. <label>拼音</label>
  32. <el-input
  33. class="pinyin"
  34. v-model="data.right.pinyin"
  35. placeholder="输入"
  36. @change="handleChangePinyin"
  37. ></el-input>
  38. </div>
  39. <div class="item-con">
  40. <label>词性</label>
  41. <el-input v-model="data.right.cixing" placeholder="输入"></el-input>
  42. </div>
  43. <div class="item-con">
  44. <label>字词</label>
  45. <el-radio v-model="data.right.hideHanzi" :label="true">隐藏</el-radio>
  46. <el-radio v-model="data.right.hideHanzi" :label="false">显示</el-radio>
  47. </div>
  48. </div>
  49. <a class="del-btn" @click="handleDelItem"><i class="el-icon-delete"></i></a>
  50. </div>
  51. <div class="right">
  52. <div class="config-box">
  53. <span class="title">主题颜色</span>
  54. <el-color-picker v-model="data.borderColor" style="margin-right: 16px"></el-color-picker>
  55. <span class="title">页眉颜色</span>
  56. <el-color-picker v-model="data.fontColor" style="margin-right: 16px"></el-color-picker>
  57. <span class="title">页眉对齐</span>
  58. <el-radio-group v-model="data.fontAlign">
  59. <el-radio label="left">左对齐</el-radio>
  60. <el-radio label="center">居中对齐</el-radio>
  61. </el-radio-group>
  62. </div>
  63. <label>释义</label>
  64. <el-input type="textarea" :rows="3" v-model="data.right.definition" placeholder="请输入"></el-input>
  65. <label>搭配</label>
  66. <el-input type="textarea" :rows="3" v-model="data.right.collocation" placeholder="请输入"></el-input>
  67. <label>例句</label>
  68. <el-input type="textarea" :rows="3" v-model="data.right.exampleSent" placeholder="请输入"></el-input>
  69. </div>
  70. </template>
  71. <template v-else>
  72. <div
  73. class="left left-preview"
  74. :class="[data.left.fileList.length === 0 ? 'left-big' : '']"
  75. v-if="(isPreview && showLeft) || !isPreview"
  76. :style="{
  77. borderColor: data.borderColor,
  78. padding:
  79. data.left.con && (data.headerCon || data.label)
  80. ? ''
  81. : !data.left.con && (data.headerCon || data.label)
  82. ? '40px 12px 0 12px'
  83. : '12px',
  84. }"
  85. >
  86. <div class="header-info-preview">
  87. <h5 :style="{ textAlign: data.fontAlign }">{{ data.headerCon }}</h5>
  88. <label :style="{ background: data.borderColor }">{{ data.label }}</label>
  89. </div>
  90. <div class="item-image" v-if="data.left.fileList.length > 0">
  91. <el-image
  92. :style="{
  93. width: totalNumber < 3 ? '368px' : '318px',
  94. height:
  95. totalNumber < 3
  96. ? data.left.con && (data.headerCon || data.label)
  97. ? '240px'
  98. : !data.left.con && (data.headerCon || data.label)
  99. ? '280px'
  100. : '280px'
  101. : data.left.con && !data.right.hideHanzi && (data.headerCon || data.label)
  102. ? '210px'
  103. : !data.left.con && (data.headerCon || data.label)
  104. ? '232px'
  105. : '232px',
  106. }"
  107. :src="data.left.fileList[0].fileUrl"
  108. :preview-src-list="[data.left.fileList[0].fileUrl]"
  109. fit="contain"
  110. />
  111. </div>
  112. <h2
  113. :class="['con-preview', data.left.fileList.length === 0 ? 'con-preview-big' : '']"
  114. v-if="data.left.con && !data.right.hideHanzi"
  115. >
  116. {{ data.left.con }}
  117. </h2>
  118. <a class="overturn-btn" v-if="isPreview" @click="changeShowLeft"><i class="el-icon-refresh"></i></a>
  119. </div>
  120. <div
  121. class="right right-preview left-preview"
  122. :class="[isPreview ? 'right-preview-rota' : '']"
  123. v-if="(isPreview && !showLeft) || !isPreview"
  124. :style="{
  125. borderColor: data.borderColor,
  126. paddingTop:
  127. totalNumber < 3
  128. ? data.right.collocation || data.right.exampleSent || data.right.definition
  129. ? ''
  130. : '60px'
  131. : data.right.collocation || data.right.exampleSent || data.right.definition
  132. ? ''
  133. : '40px',
  134. }"
  135. >
  136. <div class="header-info-preview">
  137. <h5 :style="{ textAlign: data.fontAlign }">{{ data.headerCon }}</h5>
  138. <label :style="{ background: data.borderColor }">{{ data.label }}</label>
  139. </div>
  140. <div
  141. :style="{
  142. display: 'flex',
  143. justifyContent:
  144. !(data.right.collocation && data.right.exampleSent) && data.left.con.length < 4 ? 'center' : 'auto',
  145. columnGap: '16px',
  146. }"
  147. >
  148. <div style="width: max-content" v-if="data.right.hz_info.length > 0">
  149. <AudioPlay
  150. :style="{ background: data.borderColor }"
  151. :file-id="data.right.audio_file"
  152. v-if="data.right.audio_file"
  153. />
  154. <p
  155. :style="{ color: data.borderColor }"
  156. v-if="data.right.pinyin && data.right.pinyin.split(' ').length === 1"
  157. class="pinyin-box"
  158. >
  159. {{ data.right.pinyin }}
  160. </p>
  161. <div class="hz-box">
  162. <div class="hz-item" v-for="(itemh, indexh) in data.right.hz_info" :key="indexh">
  163. <p
  164. :style="{ color: data.borderColor }"
  165. v-if="data.right.pinyin && data.right.pinyin.split(' ').length > 1"
  166. >
  167. {{ data.right.pinyin.split(' ')[indexh] ? data.right.pinyin.split(' ')[indexh] : '' }}
  168. </p>
  169. <Strockplay
  170. className="adult-strockplay"
  171. :Book_text="itemh.con"
  172. :playStorkes="true"
  173. :strokePlayColor="data.borderColor"
  174. :strokeColor="'#000000'"
  175. :palyWidth="'18px'"
  176. :BoxbgType="'0'"
  177. :curItem="itemh.hzDetail.hz_json"
  178. :targetDiv="'writeTops-item-' + pageNumber + '-' + indexh + '-' + itemh.con"
  179. :class="[indexh !== 0 ? 'writeTop-item-noLeft' : '']"
  180. class="writeTop-item"
  181. :style="{ borderColor: data.borderColor }"
  182. />
  183. </div>
  184. </div>
  185. </div>
  186. <div
  187. class="definition-box"
  188. v-if="(data.right.collocation || data.right.exampleSent) && data.left.con.length < 4"
  189. :style="{
  190. flex: '1',
  191. marginTop:
  192. totalNumber < 3 ? (data.right.audio_file ? '85px' : '27px') : data.right.audio_file ? '73px' : '27px',
  193. }"
  194. >
  195. <div v-if="data.right.cixing">
  196. <p>词性:{{ data.right.cixing }}</p>
  197. </div>
  198. <div v-if="data.right.definition">
  199. <p>释义:{{ data.right.definition }}</p>
  200. </div>
  201. </div>
  202. </div>
  203. <div
  204. class="definition-box"
  205. :style="{
  206. width:
  207. !(data.right.collocation || data.right.exampleSent) && data.left.con.length < 4
  208. ? totalNumber < 3
  209. ? data.right.hz_info.length * 86 + 'px'
  210. : data.right.hz_info.length * 78 + 'px'
  211. : '',
  212. margin:
  213. !(data.right.collocation || data.right.exampleSent) && data.left.con.length < 4
  214. ? '16px auto 0 auto'
  215. : '',
  216. }"
  217. v-if="data.right.collocation || data.right.exampleSent || data.right.definition || data.right.cixing"
  218. >
  219. <template v-if="!(data.right.collocation || data.right.exampleSent) || data.left.con.length >= 4">
  220. <div v-if="data.right.cixing">
  221. <label class="card-label">词性:</label>
  222. <p>{{ data.right.cixing }}</p>
  223. </div>
  224. <div v-if="data.right.definition">
  225. <p>释义:{{ data.right.definition }}</p>
  226. </div>
  227. </template>
  228. <div v-if="data.right.collocation">
  229. <label class="card-label">搭配:</label>
  230. <p>{{ data.right.collocation }}</p>
  231. </div>
  232. <div v-if="data.right.exampleSent">
  233. <p>例句:{{ data.right.exampleSent }}</p>
  234. </div>
  235. </div>
  236. <a class="overturn-btn" v-if="isPreview" @click="changeShowLeft"><i class="el-icon-refresh"></i></a>
  237. </div>
  238. </template>
  239. </div>
  240. </div>
  241. </template>
  242. <script>
  243. //这里可以导入其它文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  244. import StrockplayredlineTable from '../../components/corpus/StrockplayredlineTable.vue';
  245. import Strockplay from '../../components/corpus/Strockplay.vue';
  246. import Strockred from '../../components/corpus/Strockred.vue';
  247. import FreewriteLettle from '../../components/corpus/FreewriteLettle.vue';
  248. import UploadDrag from './UploadDrag.vue';
  249. import AudioPlay from './AudioPlay.vue';
  250. const HanziWriter = require('hanzi-writer');
  251. import { getLogin, getHZChineseInfo } from '@/api/api';
  252. export default {
  253. //import引入的组件需要注入到对象中才能使用
  254. components: {
  255. StrockplayredlineTable,
  256. Strockplay,
  257. Strockred,
  258. FreewriteLettle,
  259. UploadDrag,
  260. AudioPlay,
  261. },
  262. props: ['isPreview', 'data', 'pageNumber', 'totalNumber', 'editCardflag', 'none', 'is_preview'],
  263. data() {
  264. //这里存放数据
  265. return {
  266. ifFreeShow: false,
  267. activeIndex: null,
  268. activeColIndex: null,
  269. fileList: [],
  270. info: {
  271. definition: '',
  272. collocation: '',
  273. exampleSent: '',
  274. },
  275. writer: null,
  276. audio_file: '',
  277. loading: false,
  278. isFlipped: false,
  279. showLeft: true,
  280. };
  281. },
  282. //计算属性 类似于data概念
  283. computed: {},
  284. //监控data中数据变化
  285. watch: {
  286. editCardflag: {
  287. handler: function (val, oldVal) {
  288. if (val != oldVal) {
  289. this.showLeft = true;
  290. this.isFlipped = false;
  291. }
  292. },
  293. deep: true,
  294. },
  295. pageNumber: {
  296. handler: function (val, oldVal) {
  297. if (val != oldVal) {
  298. this.initHanziwrite();
  299. }
  300. },
  301. deep: true,
  302. },
  303. },
  304. //方法集合
  305. methods: {
  306. ExerciseChangeCurQue(answer, rowIndex, colIndex) {
  307. if (answer) {
  308. this.data.list[rowIndex][colIndex].strokes_image_url = answer.strokes_image_url;
  309. this.data.list[rowIndex][colIndex].history = answer.history;
  310. this.$forceUpdate();
  311. }
  312. },
  313. changeFillId(file, fileList) {
  314. let obj = {
  315. name: file.name,
  316. fileId: file.file_id,
  317. fileUrl: file.file_url_open,
  318. };
  319. this.data.left.fileList.push(obj);
  320. },
  321. handleDeleteImg() {
  322. this.data.left.fileList = [];
  323. },
  324. initHanziwrite() {
  325. if (this.data.left.con.trim() && this.data.right.audio_file === '') {
  326. this.loading = true;
  327. let MethodName = 'tool-TextToVoiceFile';
  328. let datas = {
  329. text: this.data.left.con.trim(),
  330. };
  331. getLogin(MethodName, datas)
  332. .then((res) => {
  333. this.loading = false;
  334. if (res.status === 1) {
  335. this.data.right.audio_file = res.file_id;
  336. }
  337. })
  338. .catch(() => {
  339. this.loading = false;
  340. });
  341. }
  342. },
  343. handleDelItem() {
  344. this.$emit('handleDelItem', this.pageNumber - 1);
  345. },
  346. // 获取数据
  347. handleBlurCon() {
  348. this.loading = true;
  349. let con = this.data.left.con.trim();
  350. let MethodName = 'hz_resource_manager-GetMultHZStrokesContent';
  351. let data = {
  352. hz_str: con,
  353. };
  354. getLogin(MethodName, data)
  355. .then((res) => {
  356. this.loading = false;
  357. for (let key in res) {
  358. if (key != 'status' && key != ',' && res[key]) {
  359. res[key] = JSON.parse(res[key]);
  360. }
  361. }
  362. let hzDetailList = res;
  363. let hz_list = [];
  364. con.split('').forEach((items) => {
  365. let res = JSON.parse(JSON.stringify(hzDetailList[items]));
  366. let obj = {
  367. con: items,
  368. hzDetail: {
  369. hz_json: res,
  370. },
  371. };
  372. hz_list.push(obj);
  373. });
  374. this.data.right.hz_info = hz_list;
  375. this.data.right.pinyin = cnchar.spell(con, 'array', 'low', 'tone').join(' ');
  376. let MethodName = 'tool-TextToVoiceFile';
  377. if (con) {
  378. let datas = {
  379. text: con,
  380. };
  381. getLogin(MethodName, datas).then((res) => {
  382. if (res.status === 1) {
  383. this.data.right.audio_file = res.file_id;
  384. }
  385. });
  386. }
  387. })
  388. .catch(() => {
  389. this.loading = false;
  390. });
  391. },
  392. // 更改拼音
  393. handleChangePinyin() {
  394. let pinyin = this.data.right.pinyin.trim().split(' ').join(',');
  395. let MethodName = 'tool-PinyinToVoiceFile';
  396. if (this.data.right.pinyin.trim()) {
  397. let datas = {
  398. pinyin: pinyin,
  399. };
  400. getLogin(MethodName, datas).then((res) => {
  401. if (res.status === 1) {
  402. this.data.right.audio_file = res.file_id;
  403. }
  404. });
  405. }
  406. },
  407. // 翻面
  408. changeShowLeft() {
  409. this.showLeft = !this.showLeft;
  410. this.isFlipped = !this.isFlipped;
  411. },
  412. changeRota() {
  413. this.isFlipped = false;
  414. },
  415. },
  416. //生命周期 - 创建完成(可以访问当前this实例)
  417. created() {
  418. this.initHanziwrite();
  419. },
  420. //生命周期 - 挂载完成(可以访问DOM元素)
  421. mounted() {
  422. // let _this = this;
  423. // _this.$nextTick(() => {
  424. // if (_this.data.hz_info && _this.data.hz_info.length === 1) {
  425. // _this.initHanziwrite();
  426. // }
  427. // });
  428. },
  429. //生命周期-创建之前
  430. beforeCreated() {},
  431. //生命周期-挂载之前
  432. beforeMount() {},
  433. //生命周期-更新之前
  434. beforUpdate() {},
  435. //生命周期-更新之后
  436. updated() {},
  437. //生命周期-销毁之前
  438. beforeDestory() {},
  439. //生命周期-销毁完成
  440. destoryed() {},
  441. //如果页面有keep-alive缓存功能,这个函数会触发
  442. activated() {},
  443. };
  444. </script>
  445. <style lang="scss" scoped>
  446. .writeTable {
  447. width: 1208px;
  448. margin: 0 auto 19px auto;
  449. // height: 842px;
  450. box-sizing: border-box;
  451. perspective: 1000px;
  452. &-preview {
  453. width: 100%;
  454. }
  455. .writeTop {
  456. min-height: 350px;
  457. display: flex;
  458. column-gap: 8px;
  459. perspective: 1000px;
  460. transition: 0.6s;
  461. transform-style: preserve-3d;
  462. position: relative;
  463. .left,
  464. .right {
  465. width: 100%;
  466. min-height: 310px;
  467. padding: 8px 12px 18px 12px;
  468. border-radius: 24px;
  469. background: #fff;
  470. box-sizing: border-box;
  471. position: relative;
  472. border: 4px solid #fff;
  473. overflow: hidden;
  474. .header-info {
  475. display: flex;
  476. width: 100%;
  477. justify-content: space-between;
  478. margin-bottom: 12px;
  479. :deep .el-input__inner {
  480. color: rgba(0, 0, 0, 1);
  481. font-size: 24px;
  482. font-weight: 400;
  483. line-height: 100%;
  484. height: 24px;
  485. border: none;
  486. padding: 0;
  487. }
  488. .label {
  489. :deep .el-input__inner {
  490. text-align: right;
  491. }
  492. }
  493. }
  494. }
  495. .left-preview {
  496. padding-top: 40px;
  497. // padding-bottom: 32px;
  498. // position: absolute;
  499. backface-visibility: hidden;
  500. }
  501. .header-info-preview {
  502. position: absolute;
  503. width: 100%;
  504. left: 0;
  505. top: 0;
  506. z-index: 1;
  507. h5 {
  508. color: #000;
  509. font-size: 20px;
  510. font-weight: 400;
  511. line-height: 32px;
  512. padding: 0 12px;
  513. }
  514. label {
  515. position: absolute;
  516. right: -4px;
  517. top: -4px;
  518. border-radius: 0px 8px;
  519. background: #fff;
  520. padding: 0px 16px 0px 8px;
  521. color: #fff;
  522. font-size: 20px;
  523. font-weight: 500;
  524. line-height: 150%;
  525. }
  526. }
  527. .left-big {
  528. display: flex;
  529. align-items: center;
  530. justify-content: center;
  531. }
  532. .del-btn {
  533. cursor: pointer;
  534. border-radius: 40px;
  535. background: #f56767;
  536. padding: 5px 8px;
  537. position: absolute;
  538. right: 8px;
  539. bottom: 8px;
  540. color: #fff;
  541. font-size: 24px;
  542. }
  543. .overturn-btn {
  544. position: absolute;
  545. right: 8px;
  546. bottom: 8px;
  547. border-radius: 8px;
  548. background: #e0e0e0;
  549. padding: 8px;
  550. width: 24px;
  551. height: 24px;
  552. color: #fff;
  553. font-size: 24px;
  554. line-height: 1;
  555. cursor: pointer;
  556. }
  557. .right {
  558. display: flex;
  559. align-items: center;
  560. flex-flow: wrap;
  561. padding: 16px 24px 26px 24px;
  562. row-gap: 8px;
  563. .card-label {
  564. width: 100%;
  565. color: #4e5969;
  566. font-size: 14px;
  567. font-weight: 400;
  568. line-height: 22px;
  569. height: 22px;
  570. }
  571. :deep .el-textarea {
  572. height: 64px;
  573. }
  574. .config-box {
  575. display: flex;
  576. align-items: center;
  577. width: 100%;
  578. span {
  579. color: #000;
  580. font-size: 14px;
  581. line-height: 20px;
  582. margin-right: 8px;
  583. }
  584. .el-color-picker {
  585. height: 32px;
  586. }
  587. :deep .el-color-picker__trigger {
  588. height: 32px;
  589. }
  590. .el-radio {
  591. margin-right: 8px;
  592. }
  593. .el-radio-group {
  594. display: flex;
  595. }
  596. :deep .el-radio__input.is-checked .el-radio__inner {
  597. border-color: #000;
  598. background: #000;
  599. }
  600. :deep .el-radio__input.is-checked + .el-radio__label {
  601. color: #000;
  602. }
  603. }
  604. }
  605. .right-preview {
  606. padding: 36px;
  607. display: block;
  608. .pinyin-box {
  609. color: #de4444;
  610. font-feature-settings: 'cv01' on;
  611. font-family: League;
  612. font-size: 24px;
  613. line-height: 120%;
  614. margin-bottom: 8px;
  615. text-align: center;
  616. }
  617. .hz-box {
  618. width: 100%;
  619. .hz-item {
  620. text-align: center;
  621. :deep .strockplayInner {
  622. width: 86px;
  623. height: 86px;
  624. }
  625. p {
  626. color: #de4444;
  627. font-feature-settings: 'cv01' on;
  628. font-family: League;
  629. font-size: 18px;
  630. line-height: 120%;
  631. margin-bottom: 8px;
  632. }
  633. }
  634. }
  635. :deep .audio-wrapper {
  636. margin: 0 auto 8px auto;
  637. border-radius: 40px;
  638. background: #f3f3f3;
  639. padding: 13px;
  640. width: 50px;
  641. height: 50px;
  642. box-sizing: border-box;
  643. cursor: pointer;
  644. .voice-play {
  645. width: 24px;
  646. height: 24px;
  647. }
  648. }
  649. .definition-box {
  650. white-space: pre;
  651. margin-top: 16px;
  652. > div {
  653. display: flex;
  654. margin-bottom: 8px;
  655. label,
  656. p {
  657. width: 40px;
  658. color: #000;
  659. font-size: 16px;
  660. font-weight: 400;
  661. line-height: 150%;
  662. }
  663. label {
  664. width: 47px;
  665. }
  666. p {
  667. flex: 1;
  668. word-break: break-word;
  669. white-space: pre-wrap;
  670. }
  671. }
  672. }
  673. }
  674. .right-preview-rota {
  675. transform: rotateY(180deg);
  676. }
  677. .item-image {
  678. position: relative;
  679. // background: #f2f3f5;
  680. border-radius: 8px;
  681. overflow: hidden;
  682. font-size: 0;
  683. .item-image-del {
  684. position: absolute;
  685. top: 8px;
  686. right: 8px;
  687. width: 16px;
  688. height: 16px;
  689. display: block;
  690. cursor: pointer;
  691. background-color: #ffffff;
  692. color: #ee3232;
  693. padding: 8px;
  694. border-radius: 50%;
  695. box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  696. font-size: 16px;
  697. }
  698. }
  699. .item-con {
  700. width: 50%;
  701. display: flex;
  702. align-items: center;
  703. margin-top: 16px;
  704. label {
  705. color: #4e5969;
  706. font-size: 14px;
  707. font-weight: 400;
  708. line-height: 22px;
  709. width: 44px;
  710. }
  711. :deep .el-input__inner {
  712. border-radius: 2px;
  713. background: #f2f3f5;
  714. width: 235px;
  715. border: none;
  716. font-size: 14px;
  717. font-weight: 400;
  718. line-height: 22px;
  719. height: 32px;
  720. font-family: FZJCGFKTK;
  721. }
  722. .pinyin {
  723. :deep .el-input__inner {
  724. font-family: League;
  725. }
  726. }
  727. }
  728. .con-preview {
  729. margin-top: 8px;
  730. color: #000;
  731. text-align: center;
  732. font-family: 'FZJCGFKTK';
  733. font-size: 38px;
  734. font-weight: 400;
  735. line-height: 100%;
  736. &-big {
  737. font-size: 96px;
  738. margin-top: 0;
  739. }
  740. }
  741. .writeTop-row {
  742. display: flex;
  743. justify-content: center;
  744. }
  745. }
  746. &-preview-3,
  747. &-preview-4 {
  748. .writeTop {
  749. min-height: 310px;
  750. .left,
  751. .right {
  752. padding-top: 30px;
  753. padding-bottom: 8px;
  754. }
  755. .strockplayInner {
  756. width: 76px !important;
  757. height: 76px !important;
  758. }
  759. .audio-wrapper {
  760. width: 40px !important;
  761. height: 40px !important;
  762. padding: 8px !important;
  763. }
  764. }
  765. }
  766. .writeTop-nopadding {
  767. padding-top: 0;
  768. height: 842px;
  769. }
  770. .item-info {
  771. display: flex;
  772. width: 100%;
  773. padding: 0 46px 8px 46px;
  774. column-gap: 16px;
  775. box-sizing: border-box;
  776. &-left {
  777. .writeTop-item {
  778. width: 98px;
  779. height: 98px;
  780. :deep .strock-play-box {
  781. width: 18px !important;
  782. height: 18px !important;
  783. }
  784. :deep .playStorkes-btn {
  785. width: 18px !important;
  786. height: 18px !important;
  787. }
  788. &-small {
  789. width: 62px;
  790. height: 62px;
  791. :deep .strock-play-box {
  792. width: 11px !important;
  793. height: 11px !important;
  794. }
  795. :deep .playStorkes-btn {
  796. width: 11px !important;
  797. height: 11px !important;
  798. }
  799. }
  800. }
  801. &-long {
  802. width: 100%;
  803. }
  804. }
  805. &-right {
  806. flex: 1;
  807. }
  808. :deep .el-textarea__inner {
  809. resize: none;
  810. background-color: #f3f3f3;
  811. border: none;
  812. outline: none;
  813. }
  814. .voice-box {
  815. width: 100%;
  816. height: 32px;
  817. display: flex;
  818. align-items: center;
  819. justify-content: center;
  820. column-gap: 4px;
  821. img {
  822. width: 24px;
  823. height: 24px;
  824. }
  825. span {
  826. font-family: League;
  827. font-size: 16px;
  828. font-weight: 400;
  829. color: #de4444;
  830. }
  831. }
  832. .item-info-row {
  833. display: flex;
  834. column-gap: 11px;
  835. margin-bottom: 6px;
  836. :deep .el-input__inner {
  837. background-color: #f3f3f3;
  838. border: none;
  839. outline: none;
  840. height: 32px;
  841. }
  842. }
  843. .item-info-half,
  844. .item-info-all {
  845. width: 50%;
  846. display: flex;
  847. font-size: 14px;
  848. line-height: 22px;
  849. height: 22px;
  850. }
  851. .item-info-all {
  852. width: 100%;
  853. }
  854. }
  855. .hz-box {
  856. display: flex;
  857. width: max-content;
  858. }
  859. .writeTop-item {
  860. border: 1px solid #de4444;
  861. }
  862. .writeTop-item-noLeft {
  863. border-left: none;
  864. }
  865. .tian-div {
  866. width: 100%;
  867. height: 100%;
  868. position: relative;
  869. .tian {
  870. width: 100%;
  871. height: 100%;
  872. }
  873. img {
  874. width: 100%;
  875. height: 100%;
  876. position: absolute;
  877. left: 0;
  878. top: 0;
  879. }
  880. }
  881. .flipped {
  882. transform: rotateY(180deg);
  883. }
  884. .flipped-back {
  885. transform: rotateY(180deg);
  886. }
  887. }
  888. </style>
  889. <style lang="scss">
  890. .writeTable {
  891. input::placeholder {
  892. font-family: initial;
  893. }
  894. input::-webkit-input-placeholder {
  895. font-family: initial;
  896. }
  897. input::-moz-placeholder {
  898. font-family: initial;
  899. }
  900. input:-moz-placeholder {
  901. font-family: initial;
  902. }
  903. input:-ms-input-placeholder {
  904. font-family: initial;
  905. }
  906. .header-info {
  907. input::placeholder {
  908. font-size: 16px;
  909. }
  910. input::-webkit-input-placeholder {
  911. font-size: 16px;
  912. }
  913. input::-moz-placeholder {
  914. font-size: 16px;
  915. }
  916. input:-moz-placeholder {
  917. font-size: 16px;
  918. }
  919. input:-ms-input-placeholder {
  920. font-size: 16px;
  921. }
  922. }
  923. }
  924. </style>