coverBase.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <!--
  3. info里面的数据介绍
  4. 封面类型下拉框 coverSelect
  5. videoAndImg:图片+视频
  6. img:图片
  7. video:视频
  8. ----------图片
  9. pc端图片地址 coverPc
  10. pc端图片位置 coverPcLoc
  11. centen:居中
  12. full:全屏
  13. 移动端图片地址 coverMo
  14. 移动端图片位置 coverMoLoc
  15. centen:居中
  16. full:全屏
  17. 图片的背景设置下拉框 coverImgBac
  18. colorFill:纯色填充
  19. imgTile:图片平铺
  20. 图片背景颜色选择纯色填充的色值 imgColorSelec
  21. 图片背景选择图片平铺的图片地址 coverBac
  22. --------视频
  23. pc端视频地址 videoPc
  24. pc端视频位置 videoPcLoc
  25. centen:居中
  26. full:全屏
  27. 移动端视频地址 videoMo
  28. 移动端视频位置 videoMoLoc
  29. centen:居中
  30. full:全屏
  31. 视频的背景设置下拉框 coverVideoBac
  32. colorFill:纯色填充
  33. imgTile:图片平铺
  34. 视频背景颜色选择纯色填充的色值 videoColorSelec
  35. 视频背景选择图片平铺的图片地址 videoBacImg
  36. 视频的进入方式 coverVideoInWay
  37. 0:播放完不自动进入
  38. 1:播放完自动进入
  39. 视频控件是否显示 coverVideoControl
  40. 0:不显示
  41. 1:显示
  42. 视频的出场顺序 coverVideoOrder
  43. before:开场图片前
  44. later:开场图片后
  45. -->
  46. <div class="coverBase">
  47. <!-- 顶上标题 -->
  48. <span class="title">{{ coverBase_button }}</span>
  49. <i
  50. class="iconfont icon-material_prompt tool-tip-for-editor"
  51. v-tooltip="coverBase_button_tips"
  52. >
  53. </i>
  54. <br />
  55. <div class="cover_pull">
  56. <!-- 封面类型选择下拉框 -->
  57. <div class="cover_pull_tit">{{ cover_pull_tit }}</div>
  58. <Select v-model="coverSelect">
  59. <Option
  60. v-for="item in selecList"
  61. :key="item.type"
  62. :label="item.txt"
  63. :value="item.type"
  64. >
  65. </Option>
  66. </Select>
  67. <!-- 关于图片 -->
  68. <div class="mainImgBox" v-show="coverSelect !== 'video'">
  69. <div class="coverImgTit">{{ coverImgTit }}</div>
  70. <div class="coverImgBox">
  71. <!-- pc图片 -->
  72. <div class="coverImgBox_ll">
  73. <div class="tit">{{ $i18n.t(`edit_settings.pc`) }}</div>
  74. <div class="coverImgMain">
  75. <SelectedImage
  76. :imgSrc="info.coverPc"
  77. :defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
  78. @cancel="onCancelPcTip"
  79. ></SelectedImage>
  80. <div class="imgRight">
  81. <!-- 上传图片按钮 -->
  82. <button
  83. class="ui-button submit"
  84. @click="
  85. (isShowSelectionWindow = true),
  86. (selectingFor = 'pc'),
  87. (upType = 'image'),
  88. (upTypeSta = 'imgBac')
  89. "
  90. >
  91. {{ $i18n.t(`edit_settings.select_image`) }}
  92. </button>
  93. <!-- 上传提示 -->
  94. <div
  95. class="ui-remark"
  96. v-html="$i18n.t(`edit_settings.coverUpTit1`)"
  97. ></div>
  98. <!-- 选择居中和全屏 -->
  99. <div class="coverImglocBox">
  100. <div
  101. :class="{ active: coverPcLoc === 'centen' }"
  102. @click="coverPcLoc = 'centen'"
  103. >
  104. <div class="inco"></div>
  105. <div class="txt">{{ coverImgLoc1 }}</div>
  106. </div>
  107. <div
  108. :class="{ active: coverPcLoc === 'full' }"
  109. @click="coverPcLoc = 'full'"
  110. >
  111. <div class="inco inco2"></div>
  112. <div class="txt">{{ coverImgLoc2 }}</div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="coverImgBox_rr">
  119. <div class="tit">{{ $i18n.t(`edit_settings.mobile`) }}</div>
  120. <!-- 移动端图片 -->
  121. <div class="coverImgMain">
  122. <SelectedImage
  123. :imgSrc="info.coverMo"
  124. :defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
  125. @cancel="onCancelAppTip"
  126. ></SelectedImage>
  127. <div class="imgRight">
  128. <!-- 上传图片按钮 -->
  129. <button
  130. class="ui-button submit"
  131. @click="
  132. (isShowSelectionWindow = true),
  133. (selectingFor = 'mobile'),
  134. (upType = 'image'),
  135. (upTypeSta = 'imgBac')
  136. "
  137. >
  138. {{ $i18n.t(`edit_settings.select_image`) }}
  139. </button>
  140. <!-- 上传提示 -->
  141. <div
  142. class="ui-remark"
  143. v-html="$i18n.t(`edit_settings.coverUpTit2`)"
  144. ></div>
  145. <!-- 选择居中和全屏 -->
  146. <div class="coverImglocBox">
  147. <div
  148. :class="{ active: coverMoLoc === 'centen' }"
  149. @click="coverMoLoc = 'centen'"
  150. >
  151. <div class="inco"></div>
  152. <div class="txt">{{ coverImgLoc1 }}</div>
  153. </div>
  154. <div
  155. :class="{ active: coverMoLoc === 'full' }"
  156. @click="coverMoLoc = 'full'"
  157. >
  158. <div class="inco inco2"></div>
  159. <div class="txt">{{ coverImgLoc2 }}</div>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <!-- 图片背景设置 -->
  167. <div class="coverImgBacBox">
  168. <div class="tit">{{ $i18n.t(`edit_settings.coverImgBacTit`) }}</div>
  169. <Select v-model="coverImgBac">
  170. <Option
  171. v-for="item in coverImgBacList"
  172. :key="item.type"
  173. :label="item.txt"
  174. :value="item.type"
  175. >
  176. </Option>
  177. </Select>
  178. <!-- 选择颜色 -->
  179. <div class="imgColorSelec" v-show="coverImgBac === 'colorFill'">
  180. <div class="ll">{{ imgColorSelec }}</div>
  181. <div
  182. class="rr"
  183. :style="`background-color: ${imgColorSelec};`"
  184. ></div>
  185. <ColorPicker
  186. @change="imgColorSelecChange"
  187. v-model="imgColorSelec"
  188. :predefine="predefineColors"
  189. >
  190. </ColorPicker>
  191. </div>
  192. <!-- 选择背景图片 -->
  193. <div class="imgClolrBacImg" v-show="coverImgBac === 'imgTile'">
  194. <SelectedImage
  195. :imgSrc="info.coverBac"
  196. :defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
  197. @cancel="onCancelBac"
  198. ></SelectedImage>
  199. <!-- 上传图片按钮 -->
  200. <div class="imgRight">
  201. <button
  202. class="ui-button submit"
  203. @click="
  204. (isShowSelectionWindow = true),
  205. (selectingFor = 'bac'),
  206. (upType = 'image'),
  207. (upTypeSta = 'imgBac')
  208. "
  209. >
  210. {{ $i18n.t(`edit_settings.select_image`) }}
  211. </button>
  212. <div
  213. class="ui-remark"
  214. v-html="$i18n.t(`edit_settings.coverUpTit3`)"
  215. ></div>
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. <!-- 关于视频 -->
  221. <div class="mainVideoBox" v-show="coverSelect !== 'img'">
  222. <div class="coverImgTit">
  223. {{ $i18n.t(`edit_settings.coverVideoTit`) }}
  224. </div>
  225. <div class="coverImgBox">
  226. <!-- pc视频 -->
  227. <div class="coverImgBox_ll">
  228. <div class="tit">{{ $i18n.t(`edit_settings.pc`) }}</div>
  229. <div class="coverImgMain">
  230. <SelectedImage
  231. :imgSrc="info.videoPc"
  232. :defaultImgSrc="require('@/assets/img/coverUpTit2.png')"
  233. @cancel="clearVideoPc"
  234. ></SelectedImage>
  235. <div class="imgRight">
  236. <!-- 上传视频按钮 -->
  237. <button
  238. class="ui-button submit"
  239. @click="
  240. (isShowSelectionWindow = true),
  241. (selectingFor = 'pc'),
  242. (upType = 'video'),
  243. (upTypeSta = 'videoBac')
  244. "
  245. >
  246. {{ $i18n.t(`edit_settings.select_video`) }}
  247. </button>
  248. <!-- 上传提示 -->
  249. <div
  250. class="ui-remark"
  251. v-html="$i18n.t(`edit_settings.coverUpTit4`)"
  252. ></div>
  253. <!-- 选择居中和全屏 -->
  254. <div class="coverImglocBox">
  255. <div
  256. :class="{ active: videoPcLoc === 'centen' }"
  257. @click="videoPcLoc = 'centen'"
  258. >
  259. <div class="inco"></div>
  260. <div class="txt">{{ coverImgLoc1 }}</div>
  261. </div>
  262. <div
  263. :class="{ active: videoPcLoc === 'full' }"
  264. @click="videoPcLoc = 'full'"
  265. >
  266. <div class="inco inco2"></div>
  267. <div class="txt">{{ coverImgLoc2 }}</div>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. <div class="coverImgBox_rr">
  274. <div class="tit">{{ $i18n.t(`edit_settings.mobile`) }}</div>
  275. <!-- 移动端视频 -->
  276. <div class="coverImgMain">
  277. <SelectedImage
  278. :imgSrc="info.videoMo"
  279. :defaultImgSrc="require('@/assets/img/coverUpTit2.png')"
  280. @cancel="claerVideoMo"
  281. ></SelectedImage>
  282. <div class="imgRight">
  283. <!-- 上传视频按钮 -->
  284. <button
  285. class="ui-button submit"
  286. @click="
  287. (isShowSelectionWindow = true),
  288. (selectingFor = 'mobile'),
  289. (upType = 'video'),
  290. (upTypeSta = 'videoBac')
  291. "
  292. >
  293. {{ $i18n.t(`edit_settings.select_video`) }}
  294. </button>
  295. <!-- 上传提示 -->
  296. <div
  297. class="ui-remark"
  298. v-html="$i18n.t(`edit_settings.coverUpTit5`)"
  299. ></div>
  300. <!-- 选择居中和全屏 -->
  301. <div class="coverImglocBox">
  302. <div
  303. :class="{ active: videoMoLoc === 'centen' }"
  304. @click="videoMoLoc = 'centen'"
  305. >
  306. <div class="inco"></div>
  307. <div class="txt">{{ coverImgLoc1 }}</div>
  308. </div>
  309. <div
  310. :class="{ active: videoMoLoc === 'full' }"
  311. @click="videoMoLoc = 'full'"
  312. >
  313. <div class="inco inco2"></div>
  314. <div class="txt">{{ coverImgLoc2 }}</div>
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. <!-- 视频背景设置 -->
  322. <div class="coverImgBacBox">
  323. <div class="tit">{{ $i18n.t(`edit_settings.coverImgBacTit`) }}</div>
  324. <Select v-model="coverVideoBac">
  325. <Option
  326. v-for="item in coverImgBacList"
  327. :key="item.type"
  328. :label="item.txt"
  329. :value="item.type"
  330. >
  331. </Option>
  332. </Select>
  333. <!-- 选择颜色 -->
  334. <div class="imgColorSelec" v-show="coverVideoBac === 'colorFill'">
  335. <div class="ll">{{ videoColorSelec }}</div>
  336. <div
  337. class="rr"
  338. :style="`background-color: ${videoColorSelec};`"
  339. ></div>
  340. <ColorPicker
  341. @change="videoColorSelecChange"
  342. v-model="videoColorSelec"
  343. :predefine="predefineColors"
  344. >
  345. </ColorPicker>
  346. </div>
  347. <!-- 选择背景图片 -->
  348. <div class="imgClolrBacImg" v-show="coverVideoBac === 'imgTile'">
  349. <SelectedImage
  350. :imgSrc="info.videoBacImg"
  351. :defaultImgSrc="require('@/assets/img/coverUpTit1.png')"
  352. @cancel="onCancelBac2"
  353. ></SelectedImage>
  354. <!-- 上传图片按钮 -->
  355. <div class="imgRight">
  356. <button
  357. class="ui-button submit"
  358. @click="
  359. (isShowSelectionWindow = true),
  360. (selectingFor = 'bac'),
  361. (upType = 'image'),
  362. (upTypeSta = 'videoBac')
  363. "
  364. >
  365. {{ $i18n.t(`edit_settings.select_image`) }}
  366. </button>
  367. <div
  368. class="ui-remark"
  369. v-html="$i18n.t(`edit_settings.coverUpTit3`)"
  370. ></div>
  371. </div>
  372. </div>
  373. </div>
  374. <!-- 进入方式 -->
  375. <div class="coverImgTit">
  376. {{ $i18n.t(`edit_settings.coverVideoInWay`) }}
  377. </div>
  378. <div class="VideoTit">
  379. <div class="VideoTitL">
  380. {{ $i18n.t(`edit_settings.coverVideoInWayTit`) }}
  381. </div>
  382. <div class="VideoTitR">
  383. <Switcher
  384. :value="coverVideoInWay"
  385. @change="coverVideoInWayChange"
  386. ></Switcher>
  387. </div>
  388. </div>
  389. <!-- 视频控件 -->
  390. <div class="coverImgTit">
  391. {{ $i18n.t(`edit_settings.coverVideoControl`) }}
  392. </div>
  393. <div class="VideoTit">
  394. <div class="VideoTitL">
  395. {{ $i18n.t(`edit_settings.coverVideoControlTit`) }}
  396. </div>
  397. <div class="VideoTitR">
  398. <Switcher
  399. :value="coverVideoControl"
  400. @change="coverVideoControlChange"
  401. ></Switcher>
  402. </div>
  403. </div>
  404. <!-- 出现顺序 -->
  405. <div class="coverImgTit">
  406. {{ $i18n.t(`edit_settings.coverVideoOrder`) }}
  407. </div>
  408. <Select v-model="coverVideoOrder">
  409. <Option
  410. v-for="item in coverVideoOrderList"
  411. :key="item.type"
  412. :label="item.txt"
  413. :value="item.type"
  414. >
  415. </Option>
  416. </Select>
  417. </div>
  418. <br />
  419. <br />
  420. </div>
  421. <div class="dialog" style="z-index: 2000" v-if="isShowSelectionWindow">
  422. <MaterialSelectorForEditor
  423. :title="$i18n.t(`gather.select_material`)"
  424. :isMultiSelection="false"
  425. @cancle="isShowSelectionWindow = false"
  426. @submit="handleSubmitFromMaterialSelector"
  427. :selectableType="[upType]"
  428. :initialMaterialType="upType"
  429. />
  430. </div>
  431. </div>
  432. </template>
  433. <script>
  434. import Switcher from "@/components/shared/Switcher";
  435. import { Select, Option, ColorPicker } from "element-ui";
  436. import { i18n } from "@/lang";
  437. import { mapGetters } from "vuex";
  438. import SelectedImage from "@/components/selectedImageInEditor.vue";
  439. import MaterialSelectorForEditor from "@/components/materialSelectorForEditor.vue";
  440. export default {
  441. name: "coverBase",
  442. components: {
  443. Select,
  444. Option,
  445. ColorPicker,
  446. Switcher,
  447. MaterialSelectorForEditor,
  448. SelectedImage,
  449. },
  450. data() {
  451. return {
  452. coverBase_button: i18n.t("edit_settings.coverBase_button"),
  453. coverBase_button_tips: i18n.t("edit_settings.coverBase_button_tips"),
  454. cover_pull_tit: i18n.t("edit_settings.cover_pull_tit"),
  455. coverImgTit: i18n.t("edit_settings.coverImgTit"),
  456. coverImgLoc1: i18n.t("edit_settings.coverImgLoc1"),
  457. coverImgLoc2: i18n.t("edit_settings.coverImgLoc2"),
  458. upType: "",
  459. upTypeSta: "",
  460. selecList: [
  461. {
  462. txt: i18n.t("edit_settings.coverSelecVideoAndImg"),
  463. type: "videoAndImg",
  464. },
  465. { txt: i18n.t("edit_settings.coverSelecImg"), type: "img" },
  466. { txt: i18n.t("edit_settings.coverSelecVideo"), type: "video" },
  467. ],
  468. // 封面类型下拉框数据
  469. coverSelect: "img",
  470. // 图片pc端位置
  471. coverPcLoc: "centen",
  472. // 图片移动端位置
  473. coverMoLoc: "centen",
  474. // 图片的背景设置
  475. coverImgBac: "colorFill",
  476. coverImgBacList: [
  477. { txt: i18n.t("edit_settings.coverImgBacSelec1"), type: "colorFill" },
  478. { txt: i18n.t("edit_settings.coverImgBacSelec2"), type: "imgTile" },
  479. ],
  480. imgColorSelec: "#000000",
  481. predefineColors: [
  482. "#000000",
  483. "#ff4500",
  484. "#ff8c00",
  485. "#ffd700",
  486. "#90ee90",
  487. "#00ced1",
  488. "#1e90ff",
  489. "#c71585",
  490. ],
  491. isShowSelectionWindow: false,
  492. selectingFor: "", // 'pc', 'mobile'
  493. // 有关上传视频
  494. // 视频pc端位置
  495. videoPcLoc: "centen",
  496. // 视频移动端位置
  497. videoMoLoc: "centen",
  498. // 视频的背景设置
  499. coverVideoBac: "colorFill",
  500. videoColorSelec: "#000000",
  501. // 视频的进入方式
  502. coverVideoInWay: 0,
  503. // 视频控件是否显示
  504. coverVideoControl: 0,
  505. // 视频的出现顺序
  506. coverVideoOrder: "before",
  507. coverVideoOrderList: [
  508. { txt: i18n.t("edit_settings.coverVideoOrderTit1"), type: "before" },
  509. { txt: i18n.t("edit_settings.coverVideoOrderTit2"), type: "later" },
  510. ],
  511. };
  512. },
  513. computed: {
  514. ...mapGetters({
  515. info: "info",
  516. }),
  517. },
  518. watch: {
  519. coverVideoOrder(val) {
  520. this.info.coverVideoOrder = val;
  521. },
  522. coverSelect(val) {
  523. this.info.coverSelect = val;
  524. },
  525. coverPcLoc(val) {
  526. this.info.coverPcLoc = val;
  527. },
  528. coverMoLoc(val) {
  529. this.info.coverMoLoc = val;
  530. },
  531. coverImgBac(val) {
  532. this.info.coverImgBac = val;
  533. },
  534. coverVideoBac(val) {
  535. this.info.coverVideoBac = val;
  536. },
  537. videoPcLoc(val) {
  538. this.info.videoPcLoc = val;
  539. },
  540. videoMoLoc(val) {
  541. this.info.videoMoLoc = val;
  542. },
  543. },
  544. methods: {
  545. // 视频的进入方式
  546. coverVideoInWayChange(val) {
  547. this.coverVideoInWay = this.info.coverVideoInWay = val;
  548. },
  549. coverVideoControlChange(val) {
  550. this.coverVideoControl = this.info.coverVideoControl = val;
  551. },
  552. // 图片的颜色选择器改变事件
  553. imgColorSelecChange(val) {
  554. this.imgColorSelec = val;
  555. this.info.imgColorSelec = val;
  556. },
  557. videoColorSelecChange(val) {
  558. this.videoColorSelec = val;
  559. this.info.videoColorSelec = val;
  560. },
  561. handleSubmitFromMaterialSelector(selected) {
  562. // 点击确定的时候是选择的图片上传
  563. if (this.upTypeSta === "imgBac") {
  564. if (this.selectingFor === "pc") this.info.coverPc = selected[0].icon;
  565. else if (this.selectingFor === "mobile")
  566. this.info.coverMo = selected[0].icon;
  567. else this.info.coverBac = selected[0].icon;
  568. } else {
  569. // 视频上传
  570. if (this.selectingFor === "pc") this.info.videoPc = selected[0].icon;
  571. else if (this.selectingFor === "mobile")
  572. this.info.videoMo = selected[0].icon;
  573. else this.info.videoBacImg = selected[0].icon;
  574. }
  575. this.isShowSelectionWindow = false;
  576. },
  577. onCancelPcTip() {
  578. this.info.coverPc = "";
  579. },
  580. onCancelAppTip() {
  581. this.info.coverMo = "";
  582. },
  583. onCancelBac() {
  584. this.info.coverBac = "";
  585. },
  586. // 关于视频
  587. clearVideoPc() {
  588. this.info.videoPc = "";
  589. },
  590. claerVideoMo() {
  591. this.info.videoMo = "";
  592. },
  593. onCancelBac2() {
  594. this.info.videoBacImg = "";
  595. },
  596. },
  597. created() {},
  598. mounted() {
  599. const arr = [
  600. "coverSelect",
  601. "coverPcLoc",
  602. "coverMoLoc",
  603. "coverImgBac",
  604. "imgColorSelec",
  605. "videoPcLoc",
  606. "videoMoLoc",
  607. "coverVideoBac",
  608. "coverVideoInWay",
  609. "coverVideoControl",
  610. "videoColorSelec",
  611. "coverVideoOrder",
  612. ];
  613. arr.forEach((v) => {
  614. if (!this.info[v]) {
  615. this.info[v] = this[v];
  616. } else this[v] = this.info[v];
  617. });
  618. },
  619. beforeCreate() {}, //生命周期 - 创建之前
  620. beforeMount() {}, //生命周期 - 挂载之前
  621. beforeUpdate() {}, //生命周期 - 更新之前
  622. updated() {}, //生命周期 - 更新之后
  623. beforeDestroy() {}, //生命周期 - 销毁之前
  624. destroyed() {}, //生命周期 - 销毁完成
  625. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  626. };
  627. </script>
  628. <style lang='less' scoped>
  629. .coverBase {
  630. padding: 24px 30px;
  631. background: #252526;
  632. height: 520px;
  633. overflow-y: auto;
  634. .title {
  635. font-size: 18px;
  636. color: #ffffff;
  637. }
  638. .tool-tip-for-editor {
  639. margin-left: 4px;
  640. font-size: 12px;
  641. cursor: default;
  642. position: relative;
  643. top: -2px;
  644. }
  645. .cover_pull {
  646. margin-top: 10px;
  647. .cover_pull_tit {
  648. margin-bottom: 10px;
  649. font-size: 14px;
  650. color: rgba(255, 255, 255, 0.5);
  651. }
  652. /deep/.el-select {
  653. background: #1a1b1d;
  654. border-radius: 4px;
  655. border: 1px solid #404040;
  656. width: 300px;
  657. height: 36px;
  658. }
  659. /deep/.el-input {
  660. height: 36px;
  661. line-height: 36px;
  662. }
  663. /deep/.el-input__inner {
  664. color: #fff;
  665. height: 36px;
  666. line-height: 36px;
  667. background-color: transparent;
  668. border-color: transparent !important;
  669. }
  670. }
  671. .coverImgTit {
  672. font-size: 18px;
  673. color: #ffffff;
  674. margin-top: 16px;
  675. margin-bottom: 10px;
  676. }
  677. .coverImgBox {
  678. display: flex;
  679. justify-content: space-between;
  680. & > div {
  681. width: 48%;
  682. .tit {
  683. font-size: 14px;
  684. opacity: 0.5;
  685. margin-bottom: 10px;
  686. }
  687. .coverImgMain {
  688. display: flex;
  689. .imgBox {
  690. width: 136px;
  691. height: 136px;
  692. background: #1a1b1d;
  693. border-radius: 4px;
  694. border: 1px solid #404040;
  695. }
  696. .ui-remark {
  697. margin: 12px 0;
  698. font-size: 14px;
  699. }
  700. .coverImglocBox {
  701. display: flex;
  702. width: 140px;
  703. height: 36px;
  704. background: #1a1b1d;
  705. border-radius: 4px;
  706. border: 1px solid #404040;
  707. & > div {
  708. cursor: pointer;
  709. width: 50%;
  710. font-size: 14px;
  711. color: #fff;
  712. opacity: 0.5;
  713. display: flex;
  714. justify-content: center;
  715. align-items: center;
  716. .inco {
  717. margin-top: 2px;
  718. width: 16px;
  719. height: 16px;
  720. position: relative;
  721. border: 1px solid #fff;
  722. margin-right: 3px;
  723. &::before {
  724. content: "";
  725. position: absolute;
  726. top: 1px;
  727. left: 3px;
  728. width: 8px;
  729. height: 12px;
  730. background-color: #fff;
  731. }
  732. }
  733. .inco2 {
  734. &::before {
  735. content: "";
  736. position: absolute;
  737. top: 1px;
  738. left: 1px;
  739. width: 12px;
  740. height: 12px;
  741. background-color: #fff;
  742. }
  743. }
  744. }
  745. .active {
  746. opacity: 1;
  747. background-color: #0076f6;
  748. }
  749. }
  750. }
  751. }
  752. }
  753. .coverImgBacBox {
  754. margin-top: 16px;
  755. .tit {
  756. font-size: 14px;
  757. opacity: 0.5;
  758. margin-bottom: 10px;
  759. }
  760. }
  761. .imgColorSelec {
  762. cursor: pointer;
  763. width: 300px;
  764. height: 36px;
  765. margin-top: 10px;
  766. background: #1a1b1d;
  767. border-radius: 4px;
  768. border: 1px solid #404040;
  769. display: flex;
  770. justify-content: space-between;
  771. padding: 0 12px;
  772. align-items: center;
  773. position: relative;
  774. .rr {
  775. width: 20px;
  776. height: 20px;
  777. }
  778. /deep/.el-color-picker {
  779. position: absolute;
  780. top: 0;
  781. left: 0;
  782. z-index: 10;
  783. width: 298px;
  784. height: 36px;
  785. }
  786. /deep/.el-color-picker__trigger {
  787. opacity: 0;
  788. width: 298px;
  789. height: 36px;
  790. }
  791. }
  792. .imgClolrBacImg {
  793. margin-top: 10px;
  794. width: 334px;
  795. display: flex;
  796. .ui-remark {
  797. margin: 12px 0;
  798. font-size: 14px;
  799. }
  800. }
  801. .mainVideoBox {
  802. .VideoTit {
  803. display: flex;
  804. justify-content: space-between;
  805. margin-bottom: 10px;
  806. .VideoTitL {
  807. font-size: 14px;
  808. color: rgba(255, 255, 255, 0.5);
  809. }
  810. }
  811. }
  812. }
  813. </style>