index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. <!-- -->
  2. <template>
  3. <div
  4. class="NPC-Book-Article Big-Book-Maxwidth"
  5. v-if="curQue"
  6. v-loading="loading"
  7. >
  8. <div class="adult-book-input-item">
  9. <span class="adult-book-lable">序号:</span>
  10. <el-input
  11. class="adult-book-input"
  12. placeholder="请输入序号"
  13. v-model="curQue.number"
  14. @blur="onBlur(curQue, 'number')"
  15. ></el-input>
  16. </div>
  17. <div class="Big-Book-mp3">
  18. <Upload
  19. :changeFillId="changeImage"
  20. :datafileList="fileCon.img_list"
  21. :filleNumber="imgNumber"
  22. :uploadType="'image'"
  23. />
  24. </div>
  25. <div class="Big-Book-mp3">
  26. <Upload
  27. type="mp3"
  28. :changeFillId="changeMp3"
  29. :datafileList="fileCon.mp3_list"
  30. :filleNumber="mp3Number"
  31. :uploadType="'mp3'"
  32. :handleMp3Base64="handleChange"
  33. />
  34. </div>
  35. <div class="adult-book-input-item">
  36. <span class="adult-book-lable">内容类型:</span>
  37. <el-radio-group v-model="curQue.font">
  38. <el-radio label="py">拼音</el-radio>
  39. <el-radio label="cn">汉字</el-radio>
  40. </el-radio-group>
  41. </div>
  42. <div class="adult-book-input-item" v-if="type != 'option'">
  43. <span class="adult-book-lable">功能设置:</span>
  44. <el-checkbox-group
  45. v-model="curQue.checkList"
  46. @change="handleCheckedFnChange"
  47. >
  48. <el-checkbox
  49. v-for="(fnItem, fnIndex) in fn_list"
  50. :key="'dis_fn_list' + fnIndex"
  51. :label="fnItem.type"
  52. >{{ fnItem.name }}</el-checkbox
  53. >
  54. </el-checkbox-group>
  55. </div>
  56. <div class="adult-book-input-item">
  57. <span class="adult-book-lable">文章提示:</span>
  58. <el-input
  59. class="adult-book-input"
  60. type="textarea"
  61. :autosize="{ minRows: 2 }"
  62. placeholder="请输入文章提示"
  63. v-model="curQue.notice"
  64. @blur="onBlur(curQue, 'notice')"
  65. ></el-input>
  66. </div>
  67. <div class="NPC-Book-role" v-if="curQue.roleList">
  68. <ul
  69. class="adult-book-input-role"
  70. v-if="curQue.roleList && curQue.roleList.length > 0"
  71. >
  72. <li
  73. v-for="(rItem, rIndex) in curQue.roleList"
  74. :key="'roleList' + rIndex"
  75. >
  76. <div class="rItem" @click="editRole(rItem)">
  77. <span v-if="rItem.role" class="adult-book-input-roleText">{{
  78. rItem.role
  79. }}</span>
  80. <img
  81. v-else-if="rItem.img_list.length>0"
  82. :src="rItem.img_list[0] && rItem.img_list[0].url"
  83. class="adult-book-input-roleImg"
  84. />
  85. <img
  86. v-else-if="rItem.simpleHead!==''"
  87. :src="require('../../../../assets/NPC/simple'+(rItem.simpleHead+1)+'.png')"
  88. class="adult-book-input-roleImg"
  89. />
  90. <template v-if="rItem.detail.wordsList.length > 0">
  91. <span class="pinyin">{{
  92. rItem.detail.wordsList | handlePinyin
  93. }}</span>
  94. <span class="chs">{{ rItem.detail.wordsList | handleChs }}</span>
  95. </template>
  96. </div>
  97. <i class="el-icon-circle-close" @click="delRole(rIndex)"></i>
  98. </li>
  99. </ul>
  100. <el-button type="primary" @click="addRole">添加角色</el-button>
  101. </div>
  102. <div class="NPC-Book-article">
  103. <ArticleChs
  104. :curQue="curQue"
  105. :isPara="isPara"
  106. :changeIsPara="changeIsPara"
  107. />
  108. </div>
  109. <div class="NPC-Book-Paragraph" v-if="isPara">
  110. <Paragraph :curQue="curQue" :isClause="isClause" :sureSeg="sureSeg" />
  111. </div>
  112. <!---上传rlc文件-->
  113. <!-- <div class="NPC-Book-Paragraph" v-if="isClause">
  114. <el-button
  115. type="warning"
  116. size="small"
  117. @click="uploadLRC"
  118. v-if="curQue.detail[0].timeList.length == 0"
  119. >上传lrc文件</el-button
  120. >
  121. <div v-else class="lrc-box">
  122. <span>已有字幕时间节点</span>
  123. <el-button type="text" @click="editTimeList">去编辑</el-button>
  124. </div>
  125. </div> -->
  126. <!---分句-->
  127. <div class="NPC-Book-Paragraph" v-if="isClause">
  128. <Clauseresult :curQue="curQue" :segByWord="segByWord" v-if="isClause" />
  129. </div>
  130. <template v-if="curQue.font !== 'py'">
  131. <div class="lrc-box">
  132. <div
  133. v-if="this.curQue.wordTime && this.curQue.wordTime.length > 0"
  134. class="lrc-box"
  135. >
  136. <span>已有字幕时间节点</span>
  137. <el-button type="text" @click="againWordTime">重新生成</el-button>
  138. </div>
  139. <template v-else>
  140. <el-button v-if="!isWordTime" size="medium" @click="createWordTime"
  141. >自动生成字幕节点</el-button
  142. >
  143. <p v-else>字幕节点生成中...请等待</p>
  144. </template>
  145. </div>
  146. <!---分词-->
  147. <div class="NPC-Book-Word" v-if="isByWord">
  148. <Segbyword
  149. :curQue="curQue"
  150. :paraIndex="paraIndex"
  151. :segList="segList"
  152. :type="type"
  153. v-if="isByWord"
  154. />
  155. </div>
  156. </template>
  157. <!---答案-->
  158. <div
  159. class="adult-book-input-item"
  160. v-if="curQue.checkList && curQue.checkList.indexOf('input') > -1"
  161. >
  162. <span class="adult-book-lable">答案:</span>
  163. <el-input
  164. class="adult-book-input"
  165. type="textarea"
  166. :autosize="{ minRows: 2 }"
  167. placeholder="请输入答案"
  168. v-model="curQue.answer"
  169. @blur="onBlur(curQue, 'answer')"
  170. ></el-input>
  171. </div>
  172. <el-dialog title="段落分句字幕打点" :visible.sync="cTVisible" width="30%">
  173. <Createtimelist ref="createtimelist" :curQue="curQue" />
  174. <span slot="footer" class="dialog-footer">
  175. <el-button @click="cTVisible = false">取 消</el-button>
  176. <el-button type="primary" @click="saveTimeList">保 存</el-button>
  177. </span>
  178. </el-dialog>
  179. <el-dialog
  180. :title="roleStatus == 1 ? '添加角色' : '编辑角色'"
  181. :visible.sync="roleVisible"
  182. :close-on-click-modal="false"
  183. :modal-append-to-body="false"
  184. append-to-body
  185. width="60%"
  186. >
  187. <template v-if="curQue.roleList">
  188. <template v-if="roleStatus == 1">
  189. <RoleChs
  190. ref="createRolelist"
  191. :curRole="curQue.roleList[curQue.roleList.length - 1]"
  192. />
  193. </template>
  194. <template v-else>
  195. <RoleChs ref="createRolelist" :curRole="curRole" />
  196. </template>
  197. </template>
  198. <span slot="footer" class="dialog-footer">
  199. <el-button @click="roleVisible = false">取 消</el-button>
  200. <el-button type="primary" @click="saveRoleList">保 存</el-button>
  201. </span>
  202. </el-dialog>
  203. </div>
  204. </template>
  205. <script>
  206. import {
  207. segSentences,
  208. BatchSegContent,
  209. prepareTranscribe,
  210. getWordTime,
  211. } from "@/api/ajax";
  212. const Base64 = require("js-base64").Base64;
  213. import Upload from "../../common/Upload.vue";
  214. import UploadArt from "../../common/UploadArt.vue";
  215. import ArticleChs from "./components/ArticleChs.vue";
  216. import Paragraph from "./components/ParagraphChs.vue";
  217. import Clauseresult from "./components/ClauseresultChs.vue";
  218. import Segbyword from "./components/SegbywordChs.vue";
  219. import Createtimelist from "./components/CreatetimelistChs.vue";
  220. import RoleChs from "./components/RoleChs.vue";
  221. export default {
  222. name: "ArticleTemChs",
  223. components: {
  224. Upload,
  225. UploadArt,
  226. ArticleChs,
  227. Paragraph,
  228. Clauseresult,
  229. Segbyword,
  230. Createtimelist,
  231. RoleChs,
  232. },
  233. props: ["curQue", "changeCurQue", "listIndex", "segModel", "type"],
  234. filters: {
  235. handlePinyin(wordsList) {
  236. let str = "";
  237. wordsList.forEach((item, index) => {
  238. if (index < wordsList.length - 1) {
  239. str += item.pinyin + " ";
  240. } else {
  241. str += item.pinyin;
  242. }
  243. });
  244. return str;
  245. },
  246. handleChs(wordsList) {
  247. let str = "";
  248. wordsList.forEach((item, index) => {
  249. if (index < wordsList.length - 1) {
  250. str += item.chs + " ";
  251. } else {
  252. str += item.chs;
  253. }
  254. });
  255. return str;
  256. },
  257. },
  258. data() {
  259. return {
  260. fn_list: [
  261. {
  262. type: "input",
  263. name: "填空题",
  264. isFn: false,
  265. isDisable: false,
  266. },
  267. {
  268. type: "judge",
  269. name: "判断题",
  270. isFn: false,
  271. isDisable: false,
  272. },
  273. {
  274. type: "record",
  275. name: "录音题",
  276. isFn: false,
  277. isDisable: false,
  278. },
  279. ],
  280. imgNumber: 1,
  281. mp3Number: 1,
  282. fileCon: {
  283. img_list: [],
  284. mp3_list: [],
  285. },
  286. isPara: false,
  287. isClause: false,
  288. isByWord: false,
  289. paraIndex: 0, //段落索引
  290. cTVisible: false,
  291. roleVisible: false,
  292. roleStatus: 1, //1添加;2是编辑
  293. curRole: null,
  294. loading: false,
  295. segList: null,
  296. isWordTime: false,
  297. };
  298. },
  299. computed: {},
  300. watch: {
  301. listIndex: {
  302. handler: function (newVal, oldVal) {
  303. if (newVal !== oldVal) {
  304. this.isPara = false;
  305. this.isClause = false;
  306. this.isByWord = false;
  307. this.paraIndex = 0; //段落索引
  308. this.roleStatus = 1; //1添加;2是编辑
  309. this.curRole = null;
  310. this.loading = false;
  311. this.segList = null;
  312. this.isWordTime = false;
  313. console.log(this.isClause);
  314. this.initData();
  315. }
  316. },
  317. deep: true,
  318. },
  319. },
  320. //方法集合
  321. methods: {
  322. onBlur(item, field) {
  323. item[field] = item[field] ? item[field].trim() : "";
  324. },
  325. onBlurIndex(index, field) {
  326. let res = this.curQueItem[field][index].trim();
  327. this.$set(this.curQueItem[field], index, res);
  328. },
  329. // 更多配置选择
  330. handleCheckedFnChange(value) {
  331. let _this = this;
  332. if (_this.curQue.checkList.indexOf("input") < 0) {
  333. _this.curQue.answer = "";
  334. }
  335. if (_this.curQue.checkList.indexOf("judge") < 0) {
  336. _this.curQue.judge = [];
  337. } else {
  338. _this.curQue.judge = [];
  339. _this.curQue.detail.forEach(() => {
  340. _this.curQue.judge.push(
  341. JSON.parse(JSON.stringify({ isJudge: false, judge: "" }))
  342. );
  343. });
  344. }
  345. },
  346. changeMp3(fileList) {
  347. const articleImgList = JSON.parse(JSON.stringify(fileList));
  348. const articleImgRes = [];
  349. articleImgList.forEach((item) => {
  350. if (item.response) {
  351. const obj = {
  352. name: item.name,
  353. duration: item.response.file_info_list[0].media_duration,
  354. url: item.response.file_info_list[0].file_url,
  355. id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
  356. media_duration: item.response.file_info_list[0].media_duration, //音频时长
  357. };
  358. articleImgRes.push(obj);
  359. }
  360. });
  361. this.curQue.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
  362. },
  363. changeImage(fileList) {
  364. const articleImgList = JSON.parse(JSON.stringify(fileList));
  365. const articleImgRes = [];
  366. articleImgList.forEach((item) => {
  367. if (item.response) {
  368. const obj = {
  369. name: item.name,
  370. url: item.response.file_info_list[0].file_url,
  371. id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
  372. };
  373. articleImgRes.push(obj);
  374. }
  375. });
  376. this.curQue.img_list = JSON.parse(JSON.stringify(articleImgRes));
  377. },
  378. changeImage2(file) {
  379. if (file.response) {
  380. const obj = {
  381. name: file.name,
  382. url: file.response.file_info_list[0].file_url,
  383. id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
  384. };
  385. this.curQue.img_list.push(obj);
  386. this.$forceUpdate();
  387. }
  388. },
  389. forceUpdate() {
  390. this.$forceUpdate();
  391. },
  392. delImage(index) {
  393. this.curQue.img_list.splice(index, 1);
  394. this.fileCon.img_list.splice(index, 1);
  395. },
  396. //添加角色
  397. addRole() {
  398. this.roleVisible = true;
  399. this.roleStatus = 1;
  400. let id = Math.random().toString(36).substr(2);
  401. let roleCon = {
  402. id: id,
  403. role: "",
  404. img_list: [],
  405. detail: {
  406. fullName: "",
  407. seg_words: "",
  408. wordsList: [],
  409. },
  410. simpleHead: ""
  411. };
  412. this.curQue.roleList.push(JSON.parse(JSON.stringify(roleCon)));
  413. },
  414. //保存角色
  415. saveRoleList() {
  416. this.roleVisible = false;
  417. this.$message.success("保存成功!");
  418. },
  419. //删除角色
  420. delRole(index) {
  421. this.curQue.roleList.splice(index, 1);
  422. },
  423. //点击角色
  424. editRole(item) {
  425. this.roleVisible = true;
  426. this.roleStatus = 2;
  427. this.curRole = item;
  428. },
  429. changeIsPara() {
  430. this.isPara = true;
  431. },
  432. //生成分句
  433. sureSeg() {
  434. let detail = JSON.parse(JSON.stringify(this.curQue.detail));
  435. let leg = detail.length;
  436. let flag = false;
  437. for (let i = 0; i < leg; i++) {
  438. if (!detail[i].para) {
  439. flag = true;
  440. break;
  441. }
  442. }
  443. if (!flag) {
  444. let textList = [];
  445. detail.forEach((item) => {
  446. let str = Base64.encode(item.para);
  447. textList.push(str);
  448. });
  449. this.loading = true;
  450. let data = {
  451. textList: textList,
  452. };
  453. segSentences(data).then((res) => {
  454. this.loading = false;
  455. let result = res.data.result;
  456. result.forEach((item, index) => {
  457. this.$set(this.curQue.detail[index], "sentences", item);
  458. for (let i = 0; i < item.length; i++) {
  459. this.curQue.detail[index].sentencesEn.push("");
  460. }
  461. });
  462. this.isClause = true;
  463. });
  464. } else {
  465. this.$message.warning("段落不能为空");
  466. }
  467. },
  468. changeIsClause(isClause) {
  469. this.isClause = isClause;
  470. },
  471. //生成分词
  472. segByWord(sentences, paraIndex) {
  473. if (!this.segModel || this.segModel == "words") {
  474. this.loading = true;
  475. let textList = [];
  476. sentences.forEach((item) => {
  477. let str = Base64.encode(item);
  478. textList.push(str);
  479. });
  480. let data = {
  481. textList: textList,
  482. };
  483. BatchSegContent(data).then((res) => {
  484. this.loading = false;
  485. let list = res.data.result.list;
  486. this.$set(this.curQue.detail[paraIndex], "segList", list);
  487. this.segList = list;
  488. this.isByWord = true;
  489. this.paraIndex = paraIndex;
  490. this.setWordsList(list, paraIndex);
  491. });
  492. } else {
  493. let list = [];
  494. let reg = /_{2,}/g;
  495. sentences.forEach((item) => {
  496. if (reg.test(item)) {
  497. item = item.replace(reg, "^");
  498. }
  499. let arr = item.split("");
  500. arr = arr.map((aItem) => {
  501. aItem = aItem == "^" ? "_______" : aItem;
  502. return aItem;
  503. });
  504. list.push(arr);
  505. });
  506. console.log(list);
  507. this.setWordsList(list, paraIndex);
  508. this.$set(this.curQue.detail[paraIndex], "segList", list);
  509. console.log(this.curQue);
  510. this.segList = list;
  511. this.isByWord = true;
  512. this.paraIndex = paraIndex;
  513. }
  514. },
  515. setWordsList(list, paraIndex) {
  516. let wordsList = [];
  517. list.forEach((item, index) => {
  518. let sentArr = [];
  519. item.map((sItem) => {
  520. let obj = {
  521. chs: sItem,
  522. pinyin: "",
  523. fontSize: "20px",
  524. fontColor: "#000",
  525. fontFamily: "FZJCGFKTK",
  526. wordPadding: [],
  527. underLine: false,
  528. };
  529. sentArr.push(obj);
  530. });
  531. wordsList.push(sentArr);
  532. });
  533. this.$set(this.curQue.detail[paraIndex], "wordsList", wordsList);
  534. },
  535. // 上传音频文件
  536. handleChange(file, fileList) {
  537. let _this = this;
  538. _this.getBase64(file.raw).then((res) => {
  539. let base_res = res.split("base64,");
  540. let data = {
  541. fileName: file.raw.name,
  542. speechBase64: base_res[1],
  543. language: "ch",
  544. };
  545. prepareTranscribe(data).then((reses) => {
  546. _this.$set(_this.curQue, "taskId", reses.data.taskId);
  547. });
  548. });
  549. },
  550. getBase64(file) {
  551. return new Promise(function (resolve, reject) {
  552. let reader = new FileReader();
  553. let imgResult = "";
  554. reader.readAsDataURL(file);
  555. reader.onload = function () {
  556. imgResult = reader.result;
  557. };
  558. reader.onerror = function (error) {
  559. reject(error);
  560. };
  561. reader.onloadend = function () {
  562. resolve(imgResult);
  563. };
  564. });
  565. },
  566. createWordTime() {
  567. if (this.curQue.taskId) {
  568. let verseList = [];
  569. this.curQue.detail.forEach((item) => {
  570. verseList = verseList.concat(item.sentences);
  571. });
  572. if (verseList.length > 0) {
  573. this.isWordTime = true;
  574. let data = {
  575. taskId: this.curQue.taskId,
  576. verseList: JSON.stringify(verseList),
  577. language: "ch",
  578. };
  579. getWordTime(data).then((res) => {
  580. this.curQue.wordTime = res.data.result;
  581. this.isWordTime = false;
  582. });
  583. }
  584. } else {
  585. this.$message.warning("请先上传音频");
  586. }
  587. },
  588. againWordTime() {
  589. this.isWordTime = false;
  590. this.$set(this.curQue, "wordTime", []);
  591. },
  592. uploadLRC() {
  593. this.cTVisible = true;
  594. },
  595. //保存字幕节点
  596. saveTimeList() {
  597. this.cTVisible = false;
  598. let detail = JSON.parse(JSON.stringify(this.$refs.createtimelist.detail));
  599. let detailRes = detail.map((item) => {
  600. let timeList = item.time_str.split("\n");
  601. item.timeList = this.handleTimeReg(timeList);
  602. return item;
  603. });
  604. this.curQue.detail = JSON.parse(JSON.stringify(detailRes));
  605. },
  606. handleTimeReg(list) {
  607. list = list.map((item) => {
  608. let regArr = item.split("]");
  609. let reg = regArr[0];
  610. item = reg.replace("[", "");
  611. return item;
  612. });
  613. return list;
  614. },
  615. //点击字幕节点
  616. editTimeList() {
  617. this.cTVisible = true;
  618. },
  619. initData() {
  620. if (this.curQue) {
  621. if(this.curQue.detail&&this.curQue.detail[this.paraIndex]&&this.curQue.detail[this.paraIndex].segList){
  622. this.segList = this.curQue.detail[this.paraIndex].segList;
  623. }
  624. if (!this.curQue.number) {
  625. this.curQue.number = "";
  626. }
  627. if (this.curQue.detail && this.curQue.detail.length > 0) {
  628. if (this.curQue.detail[0].para) {
  629. this.isPara = true;
  630. }
  631. if (this.curQue.detail[0].sentences.length > 0) {
  632. this.isClause = true;
  633. }
  634. if (this.curQue.detail[0].seg_words.length > 0) {
  635. this.isByWord = true;
  636. }
  637. }
  638. if (!this.curQue.img_list) {
  639. this.curQue.img_list = [];
  640. }
  641. if (!this.curQue.mp3_list) {
  642. this.curQue.mp3_list = [];
  643. }
  644. this.fileCon.img_list = JSON.parse(
  645. JSON.stringify(this.curQue.img_list)
  646. );
  647. this.fileCon.mp3_list = JSON.parse(
  648. JSON.stringify(this.curQue.mp3_list)
  649. );
  650. }
  651. },
  652. },
  653. //生命周期 - 创建完成(可以访问当前this实例)
  654. created() {},
  655. //生命周期 - 挂载完成(可以访问DOM元素)
  656. mounted() {
  657. this.initData();
  658. },
  659. beforeCreate() {}, //生命周期 - 创建之前
  660. beforeMount() {}, //生命周期 - 挂载之前
  661. beforeUpdate() {}, //生命周期 - 更新之前
  662. updated() {}, //生命周期 - 更新之后
  663. beforeDestroy() {}, //生命周期 - 销毁之前
  664. destroyed() {}, //生命周期 - 销毁完成
  665. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  666. };
  667. </script>
  668. <style lang='scss' scoped>
  669. //@import url(); 引入公共css类
  670. p {
  671. margin: 0;
  672. padding: 0;
  673. }
  674. .adult-book-input-item {
  675. display: flex;
  676. justify-content: flex-start;
  677. align-items: center;
  678. > span {
  679. margin-right: 10px;
  680. width: 70px;
  681. }
  682. }
  683. .adult-book-input-role {
  684. clear: both;
  685. overflow: hidden;
  686. > li {
  687. float: left;
  688. display: flex;
  689. justify-content: flex-start;
  690. align-items: center;
  691. padding: 4px 8px;
  692. border: 1px #a7a7a7 solid;
  693. border-radius: 8px;
  694. margin: 0 10px 10px 0px;
  695. .rItem {
  696. display: flex;
  697. justify-content: flex-start;
  698. align-items: center;
  699. .adult-book-input {
  700. &-roleText {
  701. width: 40px;
  702. height: 40px;
  703. background: #a7a7a7;
  704. border-radius: 100%;
  705. text-align: center;
  706. line-height: 40px;
  707. }
  708. &-roleImg {
  709. width: 40px;
  710. height: 40px;
  711. }
  712. }
  713. .pinyin {
  714. font-family: "GB-PINYINOK-B";
  715. font-size: 14px;
  716. line-height: 22px;
  717. color: rgba(0, 0, 0, 0.85);
  718. margin-right: 8px;
  719. margin-left: 8px;
  720. }
  721. .chs {
  722. font-family: "FZJCGFKTK";
  723. font-size: 16px;
  724. line-height: 24px;
  725. color: #000000;
  726. margin-right: 16px;
  727. }
  728. }
  729. > i {
  730. cursor: pointer;
  731. }
  732. }
  733. }
  734. .uploadArt_list {
  735. border: 1px #ccc solid;
  736. border-bottom: 0;
  737. margin-top: 10px;
  738. > li {
  739. display: flex;
  740. justify-content: flex-start;
  741. align-items: center;
  742. border-bottom: 1px #ccc solid;
  743. > span {
  744. width: 320px;
  745. word-wrap: break-word;
  746. font-size: 14px;
  747. color: rgb(112, 110, 110);
  748. border-right: 1px #ccc solid;
  749. padding: 5px 10px;
  750. }
  751. > p {
  752. flex: 1;
  753. padding: 5px 10px;
  754. }
  755. .imgNumber {
  756. width: 80px;
  757. }
  758. .del-close {
  759. width: 24px;
  760. height: 24px;
  761. cursor: pointer;
  762. margin-right: 10px;
  763. }
  764. }
  765. }
  766. .NPC-Book-Article {
  767. > div {
  768. margin-bottom: 20px;
  769. }
  770. }
  771. .NPC-Book-model {
  772. display: flex;
  773. justify-content: flex-start;
  774. align-items: center;
  775. > span {
  776. margin: 0;
  777. }
  778. }
  779. .lrc-box {
  780. display: flex;
  781. justify-content: flex-start;
  782. align-items: center;
  783. > span {
  784. font-size: 14px;
  785. margin-right: 16px;
  786. }
  787. }
  788. </style>