SelectCorrect.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. <template>
  2. <!-- 选择正确对话 -->
  3. <div class="SelectCorrect">
  4. <div class="SelectCorrect-top">
  5. <img alt src="../../assets/qp/Ellipse 27.png">
  6. <img alt src="../../assets/qp/Ellipse 28.png">
  7. <img alt src="../../assets/qp/Ellipse 29.png">
  8. </div>
  9. <div class="SelectCorrect-main">
  10. <div class="main-box">
  11. <div class="left">
  12. <img alt src="../../assets/dialogue/Ellipse 41.png">
  13. <img alt class="wx-arrow" src="../../assets/dialogue/Rectangle 540.png">
  14. <div class="dialogue_content_box">
  15. <div class="bubble" v-if="cur.stem[0].mp3_url">
  16. <div class="bubble_dv">
  17. <VoicePlay
  18. :mp3="cur.stem[0].mp3_url"
  19. :seconds="cur.stem[0].duration+'’’'"
  20. v-if="cur.stem[0].mp3_url && cur.stem[0].mp3_url.indexOf('http') > -1"
  21. />
  22. </div>
  23. </div>
  24. <div
  25. :class="['translate_box',cur.stem[0].mp3_url?'':'novoice']"
  26. v-if="cur.stem[0].english||cur.stem[0].con"
  27. >
  28. <div class="translate">
  29. <div :key="index" v-for="(item,index) in stemCn">
  30. <p
  31. :class="bd.indexOf(stemPy[index]) != -1 ? 'pinyin_hidden' : 'spell'"
  32. v-if="lanactiveArr.indexOf('简单')>-1"
  33. >{{stemPy[index]}}</p>
  34. <p class="chinese">{{item}}</p>
  35. </div>
  36. </div>
  37. <p
  38. class="english"
  39. v-if="lanactiveArr.indexOf('简单')>-1"
  40. >{{cur.stem[0].english}}</p>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="right" v-show="visible">
  45. <div class="bubble">
  46. <div class="r_bubble_dv">
  47. <div class="translate" v-if="visibleArr">
  48. <div :key="indx" v-for="indx of visibleArr.conArr.length">
  49. <p
  50. :class="bd.indexOf(visibleArr.pinyinArr[indx - 1]) != -1 ? 'pinyin_hidden' : 'spell'"
  51. v-if="lanactiveArr.indexOf('简单')>-1 &&visibleArr.pinyin"
  52. >{{ visibleArr.pinyinArr[indx - 1] }}</p>
  53. <p class="chinese">{{ visibleArr.conArr[indx - 1] }}</p>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <img alt class="wx-arrow" src="../../assets/dialogue/Rectangle 556.png">
  59. <img alt src="../../assets/dialogue/Ellipse 46.png">
  60. </div>
  61. <img class="icon-answer" v-if="isJudgeOption&&cur.stem[1].correct[0].con&&visibleArr&&visibleArr.con==cur.stem[1].correct[0].con" src="../../assets/common/icon-answer-right.png">
  62. <img class="icon-answer" v-if="isJudgeOption&&cur.stem[1].correct[0].con&&visibleArr&&visibleArr.con!=cur.stem[1].correct[0].con" src="../../assets/common/icon-answer-error.png">
  63. </div>
  64. <div class="bottom">
  65. <div class="switch">
  66. <!-- <img
  67. @click="lanShow =!lanShow"
  68. alt
  69. class="switchBtn"
  70. src="../../assets/dialogue/Group 1991.png"
  71. >-->
  72. <ul>
  73. <li
  74. :class="lanactiveArr.indexOf(item)>-1?'active':''"
  75. :key="index"
  76. @click="changeLan(item,index)"
  77. v-for="(item,index) in languageArr"
  78. >{{item}}</li>
  79. </ul>
  80. </div>
  81. <div class="bottom-box">
  82. <div class="bottom-right">
  83. <div
  84. :class="optionIndex==index?'select':''"
  85. :key="index"
  86. @click="selectAnswer(item,index)"
  87. v-for="(item, index) in option"
  88. >
  89. <div :key="indx" v-for="indx of item.conArr.length">
  90. <p
  91. :class="bd.indexOf(item.pinyinArr[indx - 1]) != -1 ? 'pinyin_hidden' : 'spell'"
  92. v-if="lanactiveArr.indexOf('简单')>-1&&item.pinyinArr"
  93. >{{ item.pinyinArr[indx - 1] }}</p>
  94. <p class="chinese">{{ item.conArr[indx - 1] }}</p>
  95. </div>
  96. </div>
  97. </div>
  98. <img alt src="../../assets/dialogue/Ellipse 46.png">
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </template>
  104. <script>
  105. import VoicePlay from "../../components/common/VoicePlay";
  106. export default {
  107. props: [
  108. "cur",
  109. "getAnswer",
  110. "queIndex",
  111. "answer",
  112. "uiType",
  113. "watchIndex",
  114. "TaskModel"
  115. ],
  116. components: {
  117. VoicePlay
  118. },
  119. data () {
  120. return {
  121. userAnswer: null,
  122. visible: false,
  123. visibleArr: null,
  124. optionIndex: 10000,
  125. option: [
  126. ], // 选项
  127. stemCn: [], // 题干 中文
  128. stemPy: [], // 题干 拼音
  129. languageArr: [
  130. '简单',
  131. '困难'
  132. ],
  133. lanactiveArr: [
  134. '简单'
  135. ],
  136. lanShow: false, // 语言分类按钮是否显示
  137. bd: [
  138. ",",
  139. ",",
  140. "。",
  141. ".",
  142. "!",
  143. "?",
  144. ":",
  145. ";",
  146. "(",
  147. ")",
  148. "【",
  149. "】",
  150. "{",
  151. "}",
  152. "‘",
  153. "“",
  154. "’",
  155. "”",
  156. "、",
  157. "、",
  158. "《",
  159. "》",
  160. "…",
  161. "·",
  162. "—",
  163. "~"
  164. ],
  165. isJudgeOption:false,// 是否为最后选择的选项
  166. };
  167. },
  168. watch: {
  169. watchIndex: {
  170. handler: function (val, oldVal) {
  171. let _this = this;
  172. if (val) {
  173. _this.handleData()
  174. }
  175. },
  176. // 深度观察监听
  177. deep: true,
  178. },
  179. },
  180. methods: {
  181. selectAnswer (item, index) {
  182. this.isJudgeOption = false
  183. this.visible = true;
  184. this.visibleArr = item;
  185. this.optionIndex = index
  186. this.userAnswer = []
  187. this.userAnswer.push(item)
  188. this.getAnswer(this.userAnswer, this.queIndex)
  189. this.cur.Bookanswer = this.userAnswer
  190. },
  191. handleData () {
  192. this.stemCn = this.cur.stem[0].con.split("")
  193. this.stemPy = this.cur.stem[0].pinyin.split(" ")
  194. this.option = this.cur.stem[1].option
  195. this.option.forEach((item) => {
  196. if (item.pinyin) item.pinyinArr = item.pinyin.split(" ");
  197. item.conArr = item.con.split("");
  198. });
  199. if (this.cur.Bookanswer) {
  200. this.cur.Bookanswer.forEach((item, index) => {
  201. this.option.forEach((items, indexs) => {
  202. if (item.con === items.con) {
  203. this.visible = true
  204. this.visibleArr = items
  205. this.optionIndex = indexs
  206. return false
  207. }
  208. })
  209. })
  210. if(this.TaskModel=="PRACTICE") this.practiceJudge()
  211. } else {
  212. this.visible = false
  213. this.visibleArr = null
  214. this.optionIndex = 1000
  215. }
  216. },
  217. // 切换语言
  218. changeLan (item, index) {
  219. this.lanactiveArr = item
  220. },
  221. // 判断对错
  222. practiceJudge () {
  223. this.isJudgeOption = true
  224. if(this.cur.Bookanswer&&this.cur.Bookanswer[0]){
  225. if(this.cur.stem[1].correct[0].con&&this.cur.stem[1].correct[0].con==this.cur.Bookanswer[0].con){
  226. return true
  227. }else if(this.cur.stem[1].correct[0].con&&this.cur.stem[1].correct[0].con!=this.cur.Bookanswer[0].con){
  228. return false
  229. }else if(!this.cur.stem[1].correct[0].con){
  230. return true
  231. }
  232. }
  233. }
  234. },
  235. created () {
  236. this.handleData()
  237. },
  238. };
  239. </script>
  240. <style lang="scss" scoped>
  241. * {
  242. margin: 0;
  243. padding: 0;
  244. }
  245. .SelectCorrect {
  246. width: 1200px;
  247. height: 708px;
  248. margin: 76px auto 0 auto;
  249. background: #fff;
  250. border-radius: 24px;
  251. .SelectCorrect-top {
  252. width: 100%;
  253. height: 60px;
  254. background: rgba(255, 214, 107, 0.3);
  255. border-top-left-radius: 24px;
  256. border-top-right-radius: 24px;
  257. display: flex;
  258. align-items: center;
  259. > img {
  260. margin-left: 20px;
  261. width: 24px;
  262. }
  263. }
  264. .SelectCorrect-main {
  265. background: #fff;
  266. padding: 65px 0px 32px 0;
  267. border-bottom-left-radius: 24px;
  268. border-bottom-right-radius: 24px;
  269. box-shadow: 0px 6px 0px rgba(239, 167, 28, 0.4);
  270. &::after {
  271. content: '';
  272. display: block;
  273. height: 0;
  274. clear: both;
  275. visibility: hidden;
  276. }
  277. .main-box {
  278. height: 432px;
  279. overflow: auto;
  280. position: relative;
  281. .icon-answer{
  282. width: 156px;
  283. height: 60px;
  284. position: absolute;
  285. left: 50%;
  286. margin-left: -78px;
  287. bottom: 17px;
  288. }
  289. }
  290. }
  291. .right {
  292. display: flex;
  293. align-items: flex-start;
  294. justify-content: flex-end;
  295. margin-top: 44px;
  296. margin-right: 60px;
  297. > img {
  298. width: 84px;
  299. }
  300. .wx-arrow {
  301. width: 12px;
  302. margin-top: 34px;
  303. margin-right: 24px;
  304. }
  305. }
  306. .left {
  307. display: flex;
  308. align-items: flex-start;
  309. position: relative;
  310. margin-top: 10px;
  311. margin-left: 60px;
  312. > img {
  313. width: 84px;
  314. }
  315. .wx-arrow {
  316. width: 12px;
  317. margin-top: 34px;
  318. margin-left: 24px;
  319. }
  320. .dialogue_content_box {
  321. padding-top: 10px;
  322. }
  323. .translate_box {
  324. background: #f6f6f6;
  325. border-radius: 14px;
  326. padding: 9px 20px;
  327. max-width: 600px;
  328. &.novoice {
  329. background: #e1f2fa;
  330. min-height: 68px;
  331. }
  332. }
  333. .translate {
  334. display: inline-block;
  335. align-items: center;
  336. color: #2c2c2c;
  337. > div {
  338. margin-left: 3px;
  339. text-align: center;
  340. float: left;
  341. }
  342. .spell {
  343. font-family: 'GB-PINYINOK-B';
  344. font-style: normal;
  345. font-weight: normal;
  346. font-size: 16px;
  347. height: 18px;
  348. }
  349. .chinese {
  350. font-family: 'FZJCGFKTK';
  351. font-style: normal;
  352. font-weight: normal;
  353. font-size: 32px;
  354. }
  355. }
  356. .english {
  357. color: #2c2c2c;
  358. font-size: 16px;
  359. line-height: 20px;
  360. // font-family: sourceR;
  361. display: block;
  362. margin-left: 5px;
  363. }
  364. }
  365. .wx-arrow {
  366. margin-bottom: 8px;
  367. }
  368. .bubble {
  369. display: flex;
  370. align-items: center;
  371. // padding: 0 24px;
  372. .bubble_dv {
  373. width: 200px;
  374. height: 72px;
  375. background: #e1f2fa;
  376. border-radius: 14px;
  377. font-size: 24px;
  378. display: flex;
  379. align-items: center;
  380. cursor: pointer;
  381. margin-bottom: 8px;
  382. > img {
  383. margin-left: 20px;
  384. }
  385. > span {
  386. margin-left: 10px;
  387. }
  388. }
  389. .r_bubble_dv {
  390. min-height: 72px;
  391. background: #eeeeee;
  392. border-radius: 14px;
  393. font-size: 24px;
  394. display: flex;
  395. align-items: center;
  396. max-width: 600px;
  397. margin-top: 8px;
  398. > img {
  399. margin-left: 20px;
  400. }
  401. > span {
  402. margin-left: 10px;
  403. }
  404. .translate {
  405. display: flex;
  406. align-items: center;
  407. padding: 0px 20px;
  408. color: #2c2c2c;
  409. > div {
  410. margin-left: 5px;
  411. text-align: center;
  412. }
  413. .spell {
  414. font-family: 'GB-PINYINOK-B';
  415. font-style: normal;
  416. font-weight: normal;
  417. font-size: 16px;
  418. height: 18px;
  419. }
  420. .chinese {
  421. font-family: 'FZJCGFKTK';
  422. font-style: normal;
  423. font-weight: normal;
  424. font-size: 32px;
  425. }
  426. }
  427. }
  428. }
  429. .bottom {
  430. .switch {
  431. display: flex;
  432. align-items: center;
  433. padding-bottom: 16px;
  434. padding-left: 52px;
  435. }
  436. .bottom-box{
  437. border-top: 1px solid #e5e5e5;
  438. display: flex;
  439. justify-content: flex-end;
  440. img {
  441. margin-right: 60px;
  442. width: 84px;
  443. height: 84px;
  444. margin-top: 32px;
  445. }
  446. }
  447. ul {
  448. display: inline-block;
  449. width: 900px;
  450. li {
  451. display: inline-block;
  452. min-width: 48px;
  453. padding: 4px 8px;
  454. font-size: 18px;
  455. line-height: 1.5;
  456. background: #ffedbf;
  457. border-radius: 8px;
  458. margin: 0 4px;
  459. text-align: center;
  460. cursor: pointer;
  461. // font-family: sourceR;
  462. }
  463. .active {
  464. background: #7663ec;
  465. color: #ffffff;
  466. font-weight: 700;
  467. }
  468. }
  469. .switchBtn {
  470. width: 40px;
  471. margin-left: 24px;
  472. margin-right: 8px;
  473. cursor: pointer;
  474. }
  475. .bottom-right {
  476. display: flex;
  477. margin-top: 32px;
  478. // float: right;
  479. // height: 72px;
  480. flex-flow: wrap;
  481. justify-content: flex-end;
  482. > img {
  483. margin-left: 10px;
  484. cursor: pointer;
  485. }
  486. > div {
  487. cursor: pointer;
  488. margin-right: 20px;
  489. background: #fff6dd;
  490. border-radius: 14px;
  491. text-align: center;
  492. display: flex;
  493. align-items: center;
  494. padding: 0px 20px;
  495. color: #000;
  496. min-height: 72px;
  497. }
  498. .spell {
  499. font-family: 'GB-PINYINOK-B';
  500. font-style: normal;
  501. font-weight: normal;
  502. font-size: 16px;
  503. height: 18px;
  504. }
  505. .chinese {
  506. font-family: 'FZJCGFKTK';
  507. font-style: normal;
  508. font-weight: normal;
  509. font-size: 32px;
  510. }
  511. }
  512. }
  513. .select {
  514. background: #7663ec !important;
  515. > div {
  516. color: #fff;
  517. }
  518. }
  519. }
  520. .pinyin_hidden {
  521. visibility: hidden;
  522. height: 18px;
  523. }
  524. .questionMiddle {
  525. .SelectCorrect {
  526. width: 800px;
  527. height: 472px;
  528. margin: 44px auto 0 auto;
  529. background: #fff;
  530. border-radius: 16px;
  531. .SelectCorrect-top {
  532. width: 100%;
  533. height: 40px;
  534. border-top-left-radius: 16px;
  535. border-top-right-radius: 16px;
  536. display: flex;
  537. align-items: center;
  538. > img {
  539. margin-left: 13px;
  540. width: 16px;
  541. }
  542. }
  543. .SelectCorrect-main {
  544. background: #fff;
  545. padding: 44px 0px 20px 0;
  546. border-bottom-left-radius: 16px;
  547. border-bottom-right-radius: 16px;
  548. box-shadow: 0px 4px 0px rgba(239, 167, 28, 0.4);
  549. .main-box {
  550. height: 288px;
  551. overflow: auto;
  552. .icon-answer{
  553. width: 104px;
  554. height: 40px;
  555. position: absolute;
  556. left: 50%;
  557. margin-left: -52px;
  558. bottom: 10px;
  559. }
  560. }
  561. }
  562. .right {
  563. margin-top: 28px;
  564. margin-right: 40px;
  565. > img {
  566. width: 56px;
  567. }
  568. .wx-arrow {
  569. width: 8px;
  570. margin-top: 22px;
  571. margin-right: 18px;
  572. }
  573. }
  574. .left {
  575. display: flex;
  576. align-items: flex-start;
  577. position: relative;
  578. margin-top: 10px;
  579. margin-left: 40px;
  580. > img {
  581. width: 56px;
  582. }
  583. .wx-arrow {
  584. width: 8px;
  585. margin-top: 22px;
  586. margin-left: 16px;
  587. }
  588. .dialogue_content_box {
  589. padding-top: 6px;
  590. }
  591. .translate_box {
  592. border-radius: 10px;
  593. padding: 6px 14px;
  594. max-width: 400px;
  595. &.novoice {
  596. background: #e1f2fa;
  597. min-height: 45px;
  598. }
  599. }
  600. .translate {
  601. > div {
  602. margin-left: 2px;
  603. }
  604. .spell {
  605. font-size: 12px;
  606. height: 18px;
  607. }
  608. .chinese {
  609. font-size: 22px;
  610. }
  611. }
  612. .english {
  613. color: #2c2c2c;
  614. font-size: 12px;
  615. line-height: 20px;
  616. // font-family: sourceR;
  617. display: block;
  618. margin-left: 4px;
  619. }
  620. }
  621. .wx-arrow {
  622. margin-bottom: 6px;
  623. }
  624. .bubble {
  625. .bubble_dv {
  626. width: 134px;
  627. height: 48px;
  628. border-radius: 10px;
  629. font-size: 16px;
  630. margin-bottom: 6px;
  631. > img {
  632. margin-left: 13px;
  633. }
  634. > span {
  635. margin-left: 6px;
  636. }
  637. }
  638. .r_bubble_dv {
  639. min-height: 48px;
  640. border-radius: 10px;
  641. font-size: 16px;
  642. max-width: 400px;
  643. margin-top: 6px;
  644. > img {
  645. margin-left: 13px;
  646. }
  647. > span {
  648. margin-left: 6px;
  649. }
  650. .translate {
  651. padding: 0px 13px;
  652. > div {
  653. margin-left: 4px;
  654. }
  655. .spell {
  656. font-size: 12px;
  657. height: 18px;
  658. }
  659. .chinese {
  660. font-size: 22px;
  661. }
  662. }
  663. }
  664. }
  665. .bottom {
  666. .switch {
  667. padding-bottom: 11px;
  668. padding-left: 34px;
  669. }
  670. ul {
  671. width: 600px;
  672. li {
  673. min-width: 32px;
  674. padding: 3px 6px;
  675. font-size: 12px;
  676. border-radius: 6px;
  677. margin: 0 3px;
  678. }
  679. }
  680. .bottom-box{
  681. img {
  682. margin-right: 40px;
  683. width: 56px;
  684. height: 56px;
  685. margin-top: 22px;
  686. }
  687. }
  688. .switchBtn {
  689. width: 26px;
  690. margin-left: 16px;
  691. margin-right: 6px;
  692. }
  693. .bottom-right {
  694. margin-top: 22px;
  695. > img {
  696. margin-left: 6px;
  697. }
  698. > div {
  699. margin-right: 12px;
  700. margin-bottom: 4px;
  701. border-radius: 10px;
  702. padding: 0px 13px;
  703. min-height: 48px;
  704. }
  705. .spell {
  706. font-size: 12px;
  707. height: 18px;
  708. }
  709. .chinese {
  710. font-size: 22px;
  711. }
  712. }
  713. }
  714. .select {
  715. background: #7663ec !important;
  716. > div {
  717. color: #fff;
  718. }
  719. }
  720. }
  721. }
  722. .questionSmall {
  723. .SelectCorrect {
  724. width: 600px;
  725. height: 354px;
  726. margin: 28px auto 0 auto;
  727. border-radius: 12px;
  728. .SelectCorrect-top {
  729. height: 30px;
  730. border-top-left-radius: 12px;
  731. border-top-right-radius: 12px;
  732. > img {
  733. margin-left: 10px;
  734. width: 12px;
  735. }
  736. }
  737. .SelectCorrect-main {
  738. padding: 32px 0px 16px 0;
  739. border-bottom-left-radius: 12px;
  740. border-bottom-right-radius: 12px;
  741. box-shadow: 0px 3px 0px rgba(239, 167, 28, 0.4);
  742. .main-box {
  743. height: 216px;
  744. .icon-answer{
  745. width: 78px;
  746. height: 30px;
  747. position: absolute;
  748. left: 50%;
  749. margin-left: -36px;
  750. bottom: 10px;
  751. }
  752. }
  753. }
  754. .right {
  755. margin-top: 22px;
  756. margin-right: 30px;
  757. > img {
  758. width: 42px;
  759. }
  760. .wx-arrow {
  761. width: 6px;
  762. margin-top: 17px;
  763. margin-right: 12px;
  764. }
  765. }
  766. .left {
  767. margin-top: 5px;
  768. margin-left: 30px;
  769. > img {
  770. width: 42px;
  771. }
  772. .wx-arrow {
  773. width: 6px;
  774. margin-top: 17px;
  775. margin-left: 12px;
  776. }
  777. .dialogue_content_box {
  778. padding-top: 5px;
  779. }
  780. .translate_box {
  781. border-radius: 7px;
  782. padding: 5px 10px;
  783. max-width: 300px;
  784. &.novoice {
  785. background: #e1f2fa;
  786. min-height: 34px;
  787. }
  788. }
  789. .translate {
  790. > div {
  791. margin-left: 2px;
  792. }
  793. .spell {
  794. font-size: 12px;
  795. height: 12px;
  796. }
  797. .chinese {
  798. font-size: 16px;
  799. }
  800. }
  801. .english {
  802. font-size: 12px;
  803. line-height: 18px;
  804. // font-family: sourceR;
  805. display: block;
  806. margin-left: 2px;
  807. }
  808. }
  809. .wx-arrow {
  810. margin-bottom: 4px;
  811. }
  812. .bubble {
  813. .bubble_dv {
  814. width: 100px;
  815. height: 36px;
  816. border-radius: 7px;
  817. font-size: 12px;
  818. margin-bottom: 4px;
  819. > img {
  820. margin-left: 10px;
  821. }
  822. > span {
  823. margin-left: 5px;
  824. }
  825. }
  826. .r_bubble_dv {
  827. min-height: 36px;
  828. border-radius: 7px;
  829. font-size: 12px;
  830. max-width: 300px;
  831. margin-top: 4px;
  832. > img {
  833. margin-left: 10px;
  834. }
  835. > span {
  836. margin-left: 5px;
  837. }
  838. .translate {
  839. padding: 0px 10px;
  840. > div {
  841. margin-left: 2px;
  842. }
  843. .spell {
  844. font-size: 12px;
  845. height: 12px;
  846. }
  847. .chinese {
  848. font-size: 16px;
  849. }
  850. }
  851. }
  852. }
  853. .bottom {
  854. .switch {
  855. padding-bottom: 8px;
  856. padding-left: 26px;
  857. }
  858. .bottom-box{
  859. img {
  860. margin-right: 30px;
  861. width: 42px;
  862. height: 42px;
  863. margin-top: 16px;
  864. }
  865. }
  866. ul {
  867. width: 450px;
  868. li {
  869. min-width: 24px;
  870. padding: 2px 4px;
  871. font-size: 12px;
  872. border-radius: 4px;
  873. margin: 0 2px;
  874. }
  875. .active {
  876. background: #7663ec;
  877. color: #ffffff;
  878. font-weight: 700;
  879. }
  880. }
  881. .switchBtn {
  882. width: 20px;
  883. margin-left: 12px;
  884. margin-right: 4px;
  885. }
  886. .bottom-right {
  887. margin-top: 16px;
  888. > img {
  889. margin-left: 5px;
  890. }
  891. > div {
  892. margin-right: 10px;
  893. border-radius: 7px;
  894. padding: 0px 10px;
  895. min-height: 36px;
  896. }
  897. .spell {
  898. font-size: 12px;
  899. height: 12px;
  900. }
  901. .chinese {
  902. font-size: 16px;
  903. }
  904. }
  905. }
  906. .select {
  907. background: #7663ec !important;
  908. > div {
  909. color: #fff;
  910. }
  911. }
  912. }
  913. .pinyin_hidden {
  914. visibility: hidden;
  915. height: 12px;
  916. }
  917. }
  918. </style>