coverBase.vue 24 KB

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