EditPanel.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. <template>
  2. <transition
  3. appear
  4. name="custom-classes-transition"
  5. enter-active-class="animated slideInRight speed"
  6. leave-active-class="animated slideOutRight speed"
  7. >
  8. <div class="hots-panel" v-show="show">
  9. <div class="ui-between header">
  10. <span>{{ editTitle }}{{ $i18n.t("hotspot.hotspot_name") }}</span>
  11. <i class="iconfont icon_close" @click="cancel"></i>
  12. </div>
  13. <div class="content" ref="content">
  14. <div class="type-setting">
  15. <div class="remark">{{ $i18n.t("hotspot.hotspot_type") }}</div>
  16. <combox
  17. class="combox"
  18. :data="hotspotTypeList"
  19. :selected-id="hotspot.hotspotType"
  20. @change="onHotSpotTypeChange"
  21. />
  22. </div>
  23. <div class="icon-setting">
  24. <div class="remark">{{ $i18n.t("hotspot.hotspot_icon") }}</div>
  25. <combox
  26. class="combox"
  27. :data="hotspotIconTypeList"
  28. :selected-id="hotspot.hotspotIconType"
  29. @change="onHotspotIconTypeChange"
  30. />
  31. <component
  32. class="icon-setting-component"
  33. :is="iconTypeComponent"
  34. ref="icon-setting-component"
  35. />
  36. <div
  37. class="bars"
  38. v-if="hotspot.hotspotIconType !== 'personalized_tag'"
  39. >
  40. <RangeItem :value="rang" @input="onRangeChange" />
  41. </div>
  42. </div>
  43. <div
  44. class="title-setting"
  45. v-if="hotspot.hotspotIconType !== 'personalized_tag'"
  46. >
  47. <div class="remark-highlight">
  48. {{ $i18n.t("hotspot.hotspot_title") }}
  49. </div>
  50. <div class="title-input-wrapper">
  51. <input
  52. v-model.trim="hotspot.hotspotTitle"
  53. type="text"
  54. maxlength="50"
  55. :placeholder="$i18n.t('hotspot.title_placeholder')"
  56. />
  57. <span class="count">{{ hotspot.hotspotTitle.length }}/50</span>
  58. </div>
  59. <div class="remark">
  60. {{ $i18n.t("hotspot.title_show_mode") }}
  61. </div>
  62. <TabbarSwitcher
  63. class="display-mode-selector"
  64. :tabList="[
  65. // $i18n.t('hotspot.show_on_hover'),
  66. $i18n.t('hotspot.always_show'),
  67. $i18n.t('hotspot.never_show'),
  68. ]"
  69. :activeIdx="currentTitleDispayModeIdx"
  70. @select="onSelectTitleDisplayMode"
  71. />
  72. <div class="remark">
  73. {{ $i18n.t("hotspot.title_position") }}
  74. </div>
  75. <TabbarSwitcherIcon
  76. class="display-mode-selector"
  77. :tabList="[
  78. {
  79. icon: 'icon-up',
  80. tip: $i18n.t('hotspot.title_top'),
  81. },
  82. {
  83. icon: 'icon-down',
  84. tip: $i18n.t('hotspot.title_bottom'),
  85. },
  86. {
  87. icon: 'icon-left',
  88. tip: $i18n.t('hotspot.title_left'),
  89. },
  90. {
  91. icon: 'icon-right',
  92. tip: $i18n.t('hotspot.title_right'),
  93. },
  94. // {
  95. // icon: 'icon-mobile',
  96. // tip: $i18n.t('hotspot.title_custom'),
  97. // },
  98. ]"
  99. :activeIdx="currentTitlePositionIdx"
  100. @select="onSelectTitlePosition"
  101. />
  102. </div>
  103. <div class="effect-setting">
  104. <div class="title-line">
  105. <div
  106. class="remark-highlight"
  107. v-if="
  108. $i18n.t(
  109. `hotspot.hotspot_type_specific_settings_title.${hotspot.hotspotType}`
  110. )
  111. "
  112. >
  113. {{
  114. $i18n.t(
  115. `hotspot.hotspot_type_specific_settings_title.${hotspot.hotspotType}`
  116. )
  117. }}
  118. </div>
  119. <div class="tip" v-if="currentHotspotTypeConfigData.tip">
  120. {{ currentHotspotTypeConfigData.tip }}
  121. </div>
  122. </div>
  123. <component
  124. class="effect-setting-component"
  125. @sceneSelect="handleSceneSelect"
  126. :scene="hotspot.secne"
  127. @imageChange="
  128. (data) => {
  129. hotspot.image = data;
  130. }
  131. "
  132. :image="hotspot.image"
  133. @linkChange="
  134. (data) => {
  135. hotspot.hyperlink = data;
  136. }
  137. "
  138. :link="hotspot.hyperlink"
  139. @linkOpenType="
  140. (data) => {
  141. hotspot.linkOpenType = data;
  142. }
  143. "
  144. :linkOpenType="hotspot.linkOpenType"
  145. @textChange="
  146. (data) => {
  147. hotspot.textarea = data;
  148. }
  149. "
  150. :textarea="hotspot.textarea"
  151. @audioChange="
  152. (data) => {
  153. hotspot.audio = data;
  154. }
  155. "
  156. :audio="hotspot.audio"
  157. @videoChange="
  158. (data) => {
  159. hotspot.video = data;
  160. }
  161. "
  162. :video="hotspot.video"
  163. :is="effectSettingComponent"
  164. />
  165. </div>
  166. </div>
  167. <div class="ui-between footer" app-border dir-top>
  168. <button
  169. class="ui-button deepcancel"
  170. :class="{ disable: false }"
  171. @click="cancel"
  172. >
  173. {{ $i18n.t("hotspot.cancel") }}
  174. </button>
  175. <button
  176. class="ui-button submit"
  177. :class="{ disable: !canSubmit }"
  178. @click="save"
  179. >
  180. {{ $i18n.t("hotspot.finish") }}
  181. </button>
  182. </div>
  183. </div>
  184. </transition>
  185. </template>
  186. <script>
  187. import RangeItem from "@/components/rangeItem/index.vue";
  188. import Combox from "@/components/shared/Combox";
  189. import { mapGetters } from "vuex";
  190. import Switcher from "@/components/shared/Switcher.vue";
  191. import TabbarSwitcher from "@/components/shared/TabbarSwitcher.vue";
  192. import TabbarSwitcherIcon from "@/components/shared/TabbarSwitcherIcon.vue";
  193. import hotspotTypeList from "./hotspotTypeList.js";
  194. import { isValidPhoneNumber } from "libphonenumber-js/max";
  195. export default {
  196. props: ["show", "data", "editTitle"],
  197. components: {
  198. RangeItem,
  199. Combox,
  200. Switcher,
  201. TabbarSwitcher,
  202. TabbarSwitcherIcon,
  203. },
  204. data() {
  205. return {
  206. hotspotTypeList,
  207. hotspotIconTypeList: [
  208. {
  209. name: this.$i18n.t("hotspot.hotspot_icon_type.system_icon"),
  210. id: "system_icon",
  211. },
  212. {
  213. name: this.$i18n.t("hotspot.hotspot_icon_type.custom_image"),
  214. id: "custom_image",
  215. },
  216. {
  217. name: this.$i18n.t("hotspot.hotspot_icon_type.serial_frame"),
  218. id: "serial_frame",
  219. },
  220. {
  221. name: this.$i18n.t("hotspot.hotspot_icon_type.personalized_tag"),
  222. id: "personalized_tag",
  223. },
  224. ],
  225. rang: {
  226. label: this.$i18n.t("hotspot.icon_size"),
  227. unit: this.$i18n.t("hotspot.unit"),
  228. gradient: 0.1,
  229. value: 1,
  230. min: 0.5,
  231. max: 2,
  232. },
  233. };
  234. },
  235. watch: {
  236. "hotspot.fontSize": {
  237. handler(val) {
  238. const rangeValue = val / 12;
  239. // console.log("rangeValue", rangeValue);
  240. this.rang.value = rangeValue.toFixed(1);
  241. },
  242. immediate: true,
  243. },
  244. hotspot: {
  245. handler(val) {
  246. // console.error("this.hotspot", val);
  247. console.warn("hotspot", val);
  248. this.$bus.emit("edithotspot", val);
  249. // console.log("this.$bus", this.$bus);
  250. // this.$getKrpano().call("removeJQHotspot(" + val.name + ");");
  251. // this.$bus.emit("addhotspot", val);
  252. },
  253. deep: true,
  254. },
  255. // hotspotIcon: {
  256. // handler(val) {
  257. // console.error("this.hotspotIcon", val);
  258. // val.img.length > 0 &&
  259. // this.$getKrpano().set(`hotspot[${this.hotspot.name}].url`, val.img);
  260. // },
  261. // deep: true,
  262. // },
  263. // "hotspot.img": function () {
  264. // console.log("this.hotspot.img", this.hotspot.img);
  265. // this.$getKrpano().set(
  266. // `hotspot[${this.hotspot.name}].url`,
  267. // this.hotspot.img
  268. // );
  269. // },
  270. // "hotspot.titlePosition": function (val) {
  271. // console.log("111", val);
  272. // if (val === "bottom") {
  273. // this.$getKrpano().set("layer[tooltip_" + this.hotspot.name + "].css");
  274. // }
  275. // },
  276. // "hotspot.hotspotTitle": function () {
  277. // this.$getKrpano().set(
  278. // "layer[tooltip_" + this.hotspot.name + "].html",
  279. // `<span style="color:white">${this.hotspot.hotspotTitle}</span>`
  280. // );
  281. // },
  282. // 'hotspot.visible': function () {
  283. // this.$getKrpano().set('layer[tooltip_' + this.hotspot.name + '].visible', this.hotspot.visible)
  284. // },
  285. // "hotspot.size": {
  286. // immediate: true,
  287. // handler: function (newVal) {
  288. // let h = 52;
  289. // let scaleH = h * newVal;
  290. // let offset = "-130%";
  291. // this.rang = { ...this.rang, value: newVal };
  292. // this.$getKrpano().set(`hotspot[${this.hotspot.name}].height`, scaleH);
  293. // if (newVal < 1) {
  294. // offset = "-200%";
  295. // }
  296. // if (newVal > 1) {
  297. // offset = "-100%";
  298. // }
  299. // this.$getKrpano().set(
  300. // "layer[tooltip_" + this.hotspot.name + "].y",
  301. // `${offset}`
  302. // );
  303. // },
  304. // },
  305. // "hotspot.fontSize": {
  306. // handler: function (newVal) {
  307. // this.$getKrpano().set(
  308. // "layer[tooltip_" + this.hotspot.name + "].css",
  309. // `text-align:center; color:#FFFFFF;
  310. // font-family:STXihei;font-size:${newVal}px;`
  311. // );
  312. // },
  313. // },
  314. },
  315. beforeDestroy() {
  316. this.$bus.removeListener("resethotspotTitle", this.listerFnReset);
  317. },
  318. computed: {
  319. ...mapGetters({
  320. hotspot: "hotspot",
  321. backupHotSpot: "backupHotSpot",
  322. hotspotIcon: "hotspotIcon",
  323. }),
  324. iconTypeComponent() {
  325. let tmp = this.hotspot.hotspotIconType;
  326. return () => import(`./hotspotIconType/${tmp}.vue`);
  327. },
  328. currentTitleDispayModeIdx() {
  329. switch (this.hotspot.titleDisplayMode) {
  330. // case "hover":
  331. // return 0;
  332. case "always":
  333. return 0;
  334. case "never":
  335. return 1;
  336. default:
  337. return 0;
  338. }
  339. },
  340. currentTitlePositionIdx() {
  341. switch (this.hotspot.titlePosition) {
  342. case "top":
  343. return 0;
  344. case "bottom":
  345. return 1;
  346. case "left":
  347. return 2;
  348. case "right":
  349. return 3;
  350. case "custom":
  351. return 4;
  352. default:
  353. return 0;
  354. }
  355. },
  356. effectSettingComponent() {
  357. let tmp = this.hotspot.hotspotType;
  358. return () => import(`./hotspotType/${tmp}.vue`);
  359. },
  360. canSubmit() {
  361. // 热点类型相关设置项
  362. switch (this.hotspot.hotspotType) {
  363. case "scene":
  364. if (!(this.hotspot.secne && this.hotspot.secne.id)) {
  365. return false;
  366. }
  367. break;
  368. case "image":
  369. if (!this.hotspot.image || this.hotspot.image.length === 0) {
  370. return false;
  371. }
  372. break;
  373. case "video":
  374. if (!this.hotspot.video) {
  375. return false;
  376. }
  377. break;
  378. case "audio":
  379. if (!this.hotspot.audio) {
  380. return false;
  381. }
  382. break;
  383. case "link":
  384. if (!this.hotspot.hyperlink) {
  385. return false;
  386. }
  387. break;
  388. case "textarea":
  389. if (!this.hotspot.textarea) {
  390. return false;
  391. }
  392. break;
  393. case "tag":
  394. break;
  395. case "imageText":
  396. if (
  397. this.hotspot.imageTextInfo.imageList.length === 0 ||
  398. this.hotspot.imageTextInfo.text.length === 0
  399. ) {
  400. return false;
  401. }
  402. break;
  403. case "article":
  404. if (!this.hotspot.articleInfo.html) {
  405. return false;
  406. }
  407. break;
  408. case "pdf":
  409. if (!this.hotspot.pdfInfo.name || !this.hotspot.pdfInfo.url) {
  410. return false;
  411. }
  412. break;
  413. case "phone":
  414. if (
  415. !isValidPhoneNumber(this.hotspot.phoneInfo.phone) &&
  416. !isValidPhoneNumber("+86" + this.hotspot.phoneInfo.phone)
  417. ) {
  418. return false;
  419. }
  420. break;
  421. default:
  422. break;
  423. }
  424. // 热点图标类型相关设置项
  425. switch (this.hotspot.hotspotIconType) {
  426. case "system_icon":
  427. break;
  428. case "custom_image":
  429. if (!this.hotspot.customIconInfo.img) {
  430. return false;
  431. }
  432. break;
  433. case "serial_frame":
  434. if (
  435. !this.hotspot.serialFrameInfo.img ||
  436. this.hotspot.serialFrameInfo.img.length === 0
  437. ) {
  438. return false;
  439. }
  440. break;
  441. case "personalized_tag":
  442. if (
  443. this.hotspot.personalizedTagInfo.isTextWrap &&
  444. this.hotspot.personalizedTagInfo.textNumPerLine <= 0
  445. ) {
  446. return false;
  447. }
  448. break;
  449. default:
  450. break;
  451. }
  452. // 其他设置项
  453. if (!this.hotspot.hotspotTitle) {
  454. return false;
  455. }
  456. return true;
  457. },
  458. currentHotspotTypeConfigData() {
  459. return hotspotTypeList.find((item) => {
  460. return item.id === this.hotspot.hotspotType;
  461. });
  462. },
  463. },
  464. beforeDestroy() {
  465. this.$bus.off("edithotspot", this.handleEditHotspot);
  466. this.$bus.off("delhotspot", this.cancel);
  467. },
  468. mounted() {
  469. this.$bus.on("resethotspotTitle", this.listerFnReset);
  470. this.$bus.on("delhotspot", this.cancel);
  471. this.$bus.on("edithotspot", this.handleEditHotspot);
  472. setTimeout(() => {
  473. if (
  474. this.editTitle != "编辑" &&
  475. this.editTitle != this.$i18n.t("hotspot.edit")
  476. ) {
  477. this.rang.value = window.g_hotspotCurrentScale;
  478. this.onRangeChange({ value: window.g_hotspotCurrentScale });
  479. }
  480. }, 300);
  481. },
  482. methods: {
  483. handleEditHotspot(data) {
  484. const krpano = document.getElementById("krpanoSWFObject");
  485. __krfn.utils.edithotspot(krpano, data);
  486. },
  487. handleSceneSelect(data) {
  488. this.hotspot.secne = {
  489. ...data,
  490. someData: {},
  491. };
  492. },
  493. onHotSpotTypeChange(data) {
  494. this.hotspot.hotspotType = data.id;
  495. },
  496. onHotspotIconTypeChange(data) {
  497. this.hotspot.hotspotIconType = data.id;
  498. },
  499. clamp(num, min, max) {
  500. return num <= min ? min : num >= max ? max : num;
  501. },
  502. onRangeChange(data) {
  503. console.log(data);
  504. this.rang = { ...this.rang, value: data.value };
  505. this.hotspot.size = data.value;
  506. const fontsize = data.value * 12;
  507. const updateSize = Math.floor(fontsize);
  508. this.hotspot.fontSize = updateSize;
  509. console.log("updateSize", updateSize);
  510. // switch (data.value) {
  511. // case 0.5:
  512. // case 0.6:
  513. // case 0.7:
  514. // this.hotspot.fontSize = 12;
  515. // break;
  516. // case 0.8:
  517. // case 0.9:
  518. // case 1.0:
  519. // case 1.1:
  520. // case 1.2:
  521. // this.hotspot.fontSize = 14;
  522. // break;
  523. // case 1.3:
  524. // case 1.4:
  525. // case 1.5:
  526. // case 1.6:
  527. // case 1.7:
  528. // this.hotspot.fontSize = 17;
  529. // break;
  530. // case 1.8:
  531. // case 1.9:
  532. // case 2:
  533. // this.hotspot.fontSize = 20;
  534. // break;
  535. // default:
  536. // break;
  537. // }
  538. },
  539. onSelectTitleDisplayMode(idx) {
  540. switch (idx) {
  541. // case 0:
  542. // this.hotspot.titleDisplayMode = "hover";
  543. // break;
  544. case 0:
  545. this.hotspot.titleDisplayMode = "always";
  546. break;
  547. case 1:
  548. this.hotspot.titleDisplayMode = "never";
  549. break;
  550. default:
  551. break;
  552. }
  553. },
  554. onSelectTitlePosition(idx) {
  555. switch (idx) {
  556. case 0:
  557. this.hotspot.titlePosition = "top";
  558. break;
  559. case 1:
  560. this.hotspot.titlePosition = "bottom";
  561. break;
  562. case 2:
  563. this.hotspot.titlePosition = "left";
  564. break;
  565. case 3:
  566. this.hotspot.titlePosition = "right";
  567. break;
  568. case 4:
  569. this.hotspot.titlePosition = "custom";
  570. break;
  571. default:
  572. break;
  573. }
  574. },
  575. listerFnReset() {
  576. if (
  577. this.hotspot.hotspotTitle == "单击确定热点位置" ||
  578. this.hotspot.hotspotTitle == this.$i18n.t("hotspot.click_to_comfirm")
  579. ) {
  580. this.hotspot.hotspotTitle = "";
  581. }
  582. },
  583. cancel() {
  584. if (!(this.editTitle == this.$i18n.t("hotspot.edit"))) {
  585. // this.$confirm({
  586. // title: this.$i18n.t("tips.title"),
  587. // content: this.$i18n.t("hotspot.cancel_add_hotspot"),
  588. // ok: () => {
  589. // this.realCancel();
  590. // },
  591. // });
  592. this.realCancel();
  593. }
  594. },
  595. realCancel() {
  596. this.$store.commit("SetHotspot", this.backupHotSpot);
  597. console.log("cancel", this.backupHotSpot);
  598. this.$getKrpano().call(
  599. "cancelJQHotspot(" + this.backupHotSpot.name + ");"
  600. );
  601. this.$emit("close", {
  602. type: this.editTitle == this.$i18n.t("hotspot.edit") ? "edit" : "add",
  603. data: this.backupHotSpot,
  604. });
  605. },
  606. reset(data) {
  607. this.$bus.emit("edithotspotTitle", data);
  608. this.$bus.emit("edithotspotTitleisShow", data);
  609. // this.$getKrpano().set(`hotspot[${data.name}].url`, data.img);
  610. },
  611. save() {
  612. this.$store.commit("SetHotspot", this.hotspot);
  613. this.$emit("close");
  614. this.$emit("save", this.hotspot);
  615. },
  616. },
  617. };
  618. </script>
  619. <style lang="less" scoped>
  620. .hots-panel {
  621. background: #252526;
  622. z-index: 10;
  623. display: flex;
  624. flex-direction: column;
  625. .header {
  626. padding: 20px;
  627. display: flex;
  628. font-size: 18px;
  629. color: #fff;
  630. flex: 0 0 auto;
  631. .icon_close {
  632. color: rgba(255, 255, 255, 0.6);
  633. cursor: pointer;
  634. }
  635. }
  636. .content {
  637. padding: 0 20px 14px 20px;
  638. flex: 1 0 1px;
  639. overflow: auto;
  640. .type-setting {
  641. .remark {
  642. font-size: 14px;
  643. color: #ababab;
  644. }
  645. .combox {
  646. margin-top: 16px;
  647. }
  648. }
  649. .icon-setting {
  650. .icon-setting-title {
  651. font-size: 18px;
  652. color: #ffffff;
  653. }
  654. .remark {
  655. margin-top: 16px;
  656. font-size: 14px;
  657. color: #ababab;
  658. }
  659. .combox {
  660. margin-top: 16px;
  661. }
  662. .icon-setting-component {
  663. margin-top: 16px;
  664. }
  665. .bars {
  666. margin-top: 16px;
  667. }
  668. }
  669. .title-setting {
  670. .remark-highlight {
  671. margin-top: 16px;
  672. font-size: 18px;
  673. color: #ffffff;
  674. }
  675. > .title-input-wrapper {
  676. position: relative;
  677. border: 1px solid rgba(151, 151, 151, 0.2);
  678. padding: 0 16px;
  679. background: #1a1b1d;
  680. border-radius: 2px;
  681. height: 36px;
  682. width: 100%;
  683. margin-top: 18px;
  684. &:focus-within {
  685. border-color: #0076f6;
  686. }
  687. > input {
  688. border: none;
  689. background: transparent;
  690. outline: none;
  691. height: 100%;
  692. width: calc(100% - 50px);
  693. padding: 0;
  694. color: #fff;
  695. letter-spacing: 1px;
  696. font-size: 14px;
  697. }
  698. > .count {
  699. position: absolute;
  700. top: 50%;
  701. transform: translateY(-50%);
  702. right: 16px;
  703. font-size: 14px;
  704. color: rgba(255, 255, 255, 0.2);
  705. }
  706. }
  707. .remark {
  708. margin-top: 18px;
  709. color: rgba(255, 255, 255, 0.6);
  710. font-size: 14px;
  711. }
  712. .display-mode-selector {
  713. margin-top: 18px;
  714. }
  715. }
  716. .effect-setting {
  717. margin-top: 16px;
  718. > .title-line {
  719. margin-top: 16px;
  720. display: flex;
  721. justify-content: space-between;
  722. align-items: center;
  723. > .remark-highlight {
  724. font-size: 18px;
  725. color: #ffffff;
  726. }
  727. > .tip {
  728. font-size: 14px;
  729. color: #ffffff;
  730. opacity: 0.6;
  731. }
  732. }
  733. .combox {
  734. margin-top: 16px;
  735. }
  736. .effect-setting-component {
  737. margin-top: 16px;
  738. }
  739. }
  740. }
  741. .footer {
  742. flex: 0 0 auto;
  743. padding: 15px;
  744. background: #252526;
  745. .deepcancel {
  746. margin-right: 10px;
  747. }
  748. .ui-button {
  749. width: 112px;
  750. }
  751. }
  752. }
  753. </style>