app.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. <template>
  2. <LoadingLogo v-if="hadVideo" :thumb="true" />
  3. <OpenVideo v-else @close="hadVideo = true" />
  4. <Guide />
  5. <div class="ui-view-layout" :class="{ show: show }" is-mobile="true">
  6. <div class="scene" ref="scene$"></div>
  7. <template v-if="dataLoaded">
  8. <Information v-if="!isshoppingguide" />
  9. <Control />
  10. <teleport v-if="refMiniMap && player.showWidgets" :to="refMiniMap">
  11. <span :class="{ gudieDisabled: isshoppingguide && role.value != 'leader' }" class="button-switch" @click.stop="toggleMap">
  12. <ui-icon type="show_map_collect"></ui-icon>
  13. </span>
  14. <p class="change" :class="{ gudieDisabled: isshoppingguide && role.value != 'leader' }" @click="changeMode('dollhouse', $event, 'focus3d')">
  15. <ui-icon type="show_3d_normal"></ui-icon>
  16. 3D模型
  17. </p>
  18. </teleport>
  19. <template v-if="refMiniMap && player.showWidgets">
  20. <div
  21. :class="{ disabled: flying, gudieDisabled: isshoppingguide && role.value != 'leader' }"
  22. v-show="mode != 'panorama'"
  23. v-if="controls.showFloorplan && controls.showDollhouse"
  24. class="tab-layer"
  25. >
  26. <div class="tabs" v-if="controls.showMap">
  27. <span :class="{ active: mode === 'floorplan' }" @click="changeMode('floorplan', $event)">
  28. <ui-icon :type="mode == 'floorplan' ? 'show_plane_selected' : 'show_plane_normal'"></ui-icon>
  29. 二維
  30. </span>
  31. <span :class="{ active: mode === 'dollhouse' }" @click="changeMode('dollhouse', $event)">
  32. <ui-icon :type="mode == 'dollhouse' ? 'show_3d_selected' : 'show_3d_normal'"></ui-icon>
  33. 三維
  34. </span>
  35. <div class="background" ref="background"></div>
  36. </div>
  37. </div>
  38. </template>
  39. </template>
  40. <!-- <UiTags /> -->
  41. </div>
  42. <GoodsList @close="closetagtype" />
  43. <Treasure @close="closetagtype" />
  44. <Waterfall @close="closetagtype" />
  45. </template>
  46. <script setup>
  47. import { useMusicPlayer } from "@/utils/sound";
  48. // import UiTags from "@/components/Tags";
  49. import GoodsList from "@/components/Tags/goods-list.vue";
  50. import Treasure from "@/components/Tags/treasure.vue";
  51. import Waterfall from "@/components/Tags/waterfall.vue";
  52. import Information from "@/components/Information";
  53. import Control from "@/components/Controls/Control.Mobile.vue";
  54. import LoadingLogo from "@/components/shared/Loading.vue";
  55. import OpenVideo from "@/components/openVideo/";
  56. import Guide from "@/components/shared/Guide.vue";
  57. import { Dialog } from "@/global_components/";
  58. import { createApp } from "@/app";
  59. import { ref, onMounted, computed, nextTick, watch } from "vue";
  60. import { useStore } from "vuex";
  61. import browser from "@/utils/browser";
  62. import { useApp, getApp } from "@/app";
  63. import common from "@/utils/common";
  64. import { Cache } from "@/utils/index";
  65. import * as apis from "@/apis/index.js";
  66. const store = useStore();
  67. let jumpNewScene = (sceneFirstView) => {
  68. let url = window.location.href;
  69. if (!browser.hasURLParam("pose")) {
  70. url += `&${sceneFirstView.sceneview}`;
  71. } else {
  72. url = browser.replaceQueryString(url, "pose", sceneFirstView.sceneview.replace("pose=", ""));
  73. }
  74. url = browser.replaceQueryString(url, "m", sceneFirstView.num);
  75. return url;
  76. };
  77. let visibilitychangeFn = () => {
  78. if (browser.isTabHidden()) {
  79. apis.burying_point({ type: 1 });
  80. }
  81. };
  82. let hashchangefn = () => {
  83. if (window.location.hash.indexOf("#showpage") >= 0) {
  84. window.history.go(-1);
  85. }
  86. };
  87. const musicPlayer = useMusicPlayer();
  88. let app = null;
  89. let tagid = browser.getURLParam("tagid");
  90. const role = ref(browser.getURLParam("role"));
  91. const closetagtype = () => {
  92. store.commit("tag/setTagClickType", {
  93. type: "",
  94. data: {},
  95. });
  96. if (isshoppingguide.value) {
  97. if (role.value == "leader") {
  98. socket.value &&
  99. socket.value.emit("action", {
  100. type: "tagclose",
  101. });
  102. }
  103. }
  104. };
  105. const socket = computed(() => store.getters["rtc/socket"]);
  106. const tags = computed(() => {
  107. return store.getters["tag/tags"] || [];
  108. });
  109. const isshoppingguide = computed(() => store.getters["shoppingguide"]);
  110. const player = computed(() => store.getters["player"]);
  111. const flying = computed(() => store.getters["flying"]);
  112. const metadata = computed(() => store.getters["scene/metadata"]);
  113. const controls = computed(() => {
  114. return metadata.value.controls;
  115. });
  116. const mode = computed(() => store.getters["mode"]);
  117. const showNavigations = computed(() => store.getters["showNavigations"]);
  118. const scene$ = ref(null);
  119. const hadVideo = ref(true);
  120. if (!Cache.get("HIDENVIDEOEXPIRES")) {
  121. if (browser.getURLParam("m") == "eur-KJ-z5ZEV22AeU" && browser.getURLParam("pose") == "pano:408,qua:-0.006,0.6299,0.0049,0.7766") {
  122. Cache.set("HIDENVIDEOEXPIRES", "yes", 60 * 8 * 60);
  123. hadVideo.value = false;
  124. } else {
  125. hadVideo.value = true;
  126. }
  127. }
  128. if (role.value) {
  129. hadVideo.value = true;
  130. }
  131. const show = ref(false);
  132. const dataLoaded = ref(false);
  133. const refMiniMap = ref(null);
  134. const isCollapse = ref(false);
  135. const background = ref(null);
  136. const resize = () => {
  137. if (this.$refs.background && (this.mode == "floorplan" || this.mode == "dollhouse")) {
  138. this.$nextTick(() => {
  139. let $active = $(this.$el).find(".tabs .active");
  140. background.value.style.width = $active[0].getBoundingClientRect().width + "px";
  141. background.value.style.left = $active.position().left + "px";
  142. });
  143. }
  144. };
  145. watch(
  146. () => isshoppingguide.value,
  147. (val, old) => {
  148. let $minmap = document.querySelector("[xui_min_map]");
  149. if ($minmap) {
  150. setTimeout(async () => {
  151. if (role.value == "leader") {
  152. return;
  153. }
  154. await nextTick();
  155. if (isshoppingguide.value) {
  156. $minmap.classList.add("gudieDisabled");
  157. } else {
  158. $minmap.classList.remove("gudieDisabled");
  159. }
  160. });
  161. }
  162. },
  163. {
  164. deep: true,
  165. }
  166. );
  167. watch(
  168. () => player.value.showMap,
  169. (val, old) => {
  170. if (!isCollapse.value) {
  171. let $minmap = document.querySelector("[xui_min_map]");
  172. if ($minmap) {
  173. if (val) {
  174. $minmap.classList.remove("collapse");
  175. } else {
  176. $minmap.classList.add("collapse");
  177. }
  178. }
  179. }
  180. },
  181. {
  182. deep: true,
  183. }
  184. );
  185. watch(
  186. () => player.value.showWidgets,
  187. (val, old) => {
  188. let $minmap = document.querySelector("[xui_min_map]");
  189. if ($minmap) {
  190. if (val) {
  191. $minmap.classList.remove("collapse");
  192. } else {
  193. $minmap.classList.add("collapse");
  194. }
  195. }
  196. },
  197. {
  198. deep: true,
  199. }
  200. );
  201. const changeMode = (name, e, focus3d = false) => {
  202. if (!flying.value) {
  203. let width, left;
  204. store.commit("setMode", name);
  205. nextTick(() => {
  206. if (focus3d) {
  207. let $active = document.querySelector(".tabs>span:last-of-type");
  208. background.value.style.width = $active.getBoundingClientRect().width + "px";
  209. background.value.style.left = $active.offsetLeft + "px";
  210. } else {
  211. background.value.style.width = width || e.srcElement.getBoundingClientRect().width + "px";
  212. background.value.style.left = left || e.srcElement.offsetLeft + "px";
  213. }
  214. });
  215. }
  216. // console.dir(document.querySelector(".tabs>span:last-of-type"));
  217. };
  218. const toggleMap = () => {
  219. isCollapse.value = !isCollapse.value;
  220. let $minmap = document.querySelector("[xui_min_map]");
  221. if ($minmap) {
  222. if (!isCollapse.value) {
  223. $minmap.classList.remove("collapse");
  224. } else {
  225. $minmap.classList.add("collapse");
  226. }
  227. }
  228. };
  229. const onClickTagInfo = (el) => {
  230. el.stopPropagation();
  231. let item = tags.value.find((item) => item.sid == el.target.dataset.id);
  232. if (item.type == "commodity") {
  233. store.commit("tag/setTagClickType", {
  234. type: "goodlist",
  235. data: item,
  236. });
  237. guideclicktag(item);
  238. } else if (item.type == "link_scene") {
  239. let sceneFirstView = item.hotContent.sceneFirstView;
  240. window.location.href = jumpNewScene(sceneFirstView);
  241. }
  242. };
  243. const guideclicktag = (tag) => {
  244. if (isshoppingguide.value) {
  245. if (role.value == "leader") {
  246. socket.value &&
  247. socket.value.emit("action", {
  248. type: "tagclick",
  249. data: {
  250. sid: tag.sid,
  251. },
  252. });
  253. }
  254. }
  255. };
  256. onMounted(async () => {
  257. apis.burying_point({ type: 0 });
  258. app = createApp({
  259. num: browser.getURLParam("m"),
  260. dom: scene$.value,
  261. mobile: true,
  262. isLoadTags: false,
  263. sceneKind:'tiles',
  264. scene: {
  265. markerOpacity: 1,
  266. markerURL: "https://eurs3.4dkankan.com/cdf/file/43aa29799bfd472298a47cc6370b10cc.png",
  267. pathEndColor: "#FF4641",
  268. },
  269. });
  270. app.use("MinMap", { theme: { camera_fillStyle: "#ED5D18" } });
  271. app.use("Tag");
  272. app
  273. .use("TagView", {
  274. render(data) {
  275. if (data.type == "waterfall") {
  276. return `<span class="tag-icon waterfall animate" style="background-image:url({{icon}})"></span>`;
  277. } else if (data.type == "coupon") {
  278. return `<span class="tag-icon coupon animate" style="background-image:url({{icon}})"></span>`;
  279. } else if (data.type == "applet_link") {
  280. try {
  281. data.hotContent = JSON.parse(data.hotContent);
  282. } catch (error) {}
  283. return `<span class="tag-icon applet_link animate" style="background-image:url(${
  284. data.hotContent.liveIcon.src ? common.changeUrl(data.hotContent.liveIcon.src) : "{{icon}}"
  285. })"></span>`;
  286. } else if (data.type == "link_scene") {
  287. return `<span class="tag-icon animate" style="background-image:url({{icon}})"></span>
  288. <div class="tag-body">
  289. <div data-id="${data.sid}" class="tag-commodity tag-link_scene">
  290. <p class="tag-title">點擊前往下一個區域</p>
  291. </div>
  292. </div>
  293. `;
  294. } else if (data.type == "commodity") {
  295. let arr = data.products.map((item) => item.price);
  296. let priceMin = isFinite(Math.min.apply(null, arr)) ? Math.min.apply(null, arr) : 0;
  297. let priceMax = isFinite(Math.max.apply(null, arr)) ? Math.max.apply(null, arr) : 0;
  298. let price = priceMin == priceMax ? priceMax : `${priceMin}-${priceMax}`;
  299. let range = `${data.products[0] ? data.products[0].symbol : "MOP$"} ${price}`;
  300. return `<span class="tag-icon animate" style="background-image:url({{icon}})"></span>
  301. <div class="tag-body">
  302. <div data-id="${data.sid}" class="tag-commodity">
  303. <div style="background-image:url(${data.products[0] ? data.products[0].pic : ""})" class='tag-avatar'>
  304. </div>
  305. <p class="tag-title">${data.title}</p>
  306. <p class="tag-info">${range} | 查看 ></p>
  307. </div>
  308. </div>
  309. `;
  310. } else {
  311. return `<span class="tag-icon animate" style="background-image:url({{icon}})"></span>`;
  312. }
  313. },
  314. })
  315. .then((view) => {
  316. view.on("click", (e) => {
  317. var tag = e.data;
  318. // 聚焦當前點擊的熱點
  319. view.focus(tag.sid).then(() => {
  320. if (tag.type == "coupon") {
  321. try {
  322. document.querySelector(`[data-tag-id="${tag.sid}"] .tag-icon`).style.display = "none";
  323. let hotcontent = typeof tag.hotContent == "string" ? JSON.parse(tag.hotContent) : tag.hotContent;
  324. browser.openLink(
  325. "/subPackage/pages/activity/activity?pageId=" + hotcontent.couponLink,
  326. `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.couponLink}`,
  327. `/pages/showactivity/showactivity?pageId=${hotcontent.couponLink}`
  328. );
  329. apis.burying_point({ type: 2 });
  330. } catch (error) {}
  331. } else if (tag.type == "waterfall") {
  332. store.commit("tag/setTagClickType", {
  333. type: "waterfall",
  334. data: tag,
  335. });
  336. guideclicktag(tag);
  337. } else if (tag.type == "applet_link") {
  338. try {
  339. let hotcontent = typeof tag.hotContent == "string" ? JSON.parse(tag.hotContent) : tag.hotContent;
  340. browser.openLink(
  341. "/subPackage/pages/home/home?pageType=2&pageId=" + hotcontent.liveLink,
  342. `https://m.cdfmembers.com/shop/600667208/showactivity?pageId=${hotcontent.liveLink}`,
  343. `/pages/showactivity/showactivity?pageId=${hotcontent.liveLink}`
  344. );
  345. } catch (error) {}
  346. } else if (tag.type == "link_scene") {
  347. let sceneFirstView = tag.hotContent.sceneFirstView;
  348. window.location.href = jumpNewScene(sceneFirstView);
  349. }
  350. });
  351. });
  352. view.on("focus", (e) => {
  353. document.querySelectorAll("[xui_tags_view] >div").forEach((el) => {
  354. if (el.getAttribute("data-tag-type") == "link_scene" || el.getAttribute("data-tag-type") == "commodity") {
  355. el.querySelector(".tag-body").classList.remove("show");
  356. el.style.zIndex = "auto";
  357. }
  358. });
  359. if (e.data.type == "commodity" || e.data.type == "link_scene") {
  360. e.target.style.zIndex = "999";
  361. e.target.querySelector(".tag-body").classList.add("show");
  362. e.target.querySelector(".tag-commodity").removeEventListener("click", onClickTagInfo);
  363. e.target.querySelector(".tag-commodity").addEventListener("click", onClickTagInfo);
  364. if (tagid) {
  365. document.querySelector(`[data-id="${tagid}"]`) && document.querySelector(`[data-id="${tagid}"]`).click();
  366. tagid = null;
  367. }
  368. }
  369. });
  370. view.on("rendered", (e) => {
  371. tagid && view.focus(tagid);
  372. }); //dom渲染完成
  373. });
  374. app.use("TourPlayer");
  375. // if (!hadVideo.value) {
  376. // app.Scene.lock();
  377. // }
  378. app.Scene.on("ready", () => {
  379. show.value = true;
  380. });
  381. app.Scene.on("error", (data) => {
  382. switch (data.code) {
  383. case 5033:
  384. Dialog.alert("该场景正在计算中,请稍后再试");
  385. break;
  386. case 5034:
  387. Dialog.alert("服务端开小差,请稍后再试");
  388. break;
  389. case 5009:
  390. Dialog.alert("服务端开小差,请稍后再试");
  391. break;
  392. case 5005:
  393. Dialog.alert("服务端开小差,请稍后再试");
  394. break;
  395. }
  396. });
  397. app.Scene.on("loaded", (pano) => {
  398. refMiniMap.value = "[xui_min_map]";
  399. store.commit("setFloorId", pano.floorIndex);
  400. store.commit("rtc/setShowdaogou", true);
  401. if (browser.getURLParam("roomId")) {
  402. store.commit("showShoppingguide", true);
  403. }
  404. app.resource.tags(`${process.env.VUE_APP_RESOURCE_URL}cdf/hot/${browser.getURLParam("m")}/hot.json?rnd=${Math.random()}`);
  405. useMusicPlayer();
  406. });
  407. app.Scene.on("panorama.videorenderer.resumerender", () => {
  408. musicPlayer.pause(true);
  409. });
  410. app.Scene.on("panorama.videorenderer.suspendrender", async () => {
  411. let player = await getApp().TourManager.player;
  412. if (!player.isPlaying) {
  413. musicPlayer.resume();
  414. }
  415. });
  416. app.store.on("metadata", (metadata) => {
  417. store.commit("scene/load", metadata);
  418. if (!metadata.controls.showMap) {
  419. app.MinMap.hide(true);
  420. }
  421. dataLoaded.value = true;
  422. });
  423. app.store.on("tags", (tags) => {
  424. store.commit("tag/load", tags);
  425. });
  426. app.Camera.on("mode.beforeChange", ({ fromMode, toMode, floorIndex }) => {
  427. if (fromMode) {
  428. store.commit("setFlying", true);
  429. }
  430. });
  431. app.Camera.on("mode.afterChange", ({ toMode, floorIndex }) => {
  432. store.commit("setFlying", false);
  433. });
  434. app.Camera.on("flying.started", (pano) => {
  435. store.commit("setFlying", true);
  436. });
  437. app.Camera.on("flying.ended", ({ targetPano }) => {
  438. store.commit("setFlying", false);
  439. store.commit("setPanoId", targetPano.id);
  440. if (app.Scene.isCurrentPanoHasVideo) {
  441. apis.burying_point({ type: 5 });
  442. }
  443. });
  444. app.Camera.on("pano.chosen", (pano) => {
  445. apis.burying_point({ type: 4 });
  446. });
  447. app.store.on("tour", async (tour) => {
  448. app.TourManager.load(tour);
  449. store.commit("tour/setData", {
  450. tours: JSON.parse(
  451. JSON.stringify(app.TourManager.tours, (key, val) => {
  452. if (key === "audio") {
  453. return null;
  454. } else {
  455. return val;
  456. }
  457. })
  458. ),
  459. });
  460. store.commit("tour/setBackUp", {
  461. tours: JSON.parse(
  462. JSON.stringify(app.TourManager.tours, (key, val) => {
  463. if (key === "audio") {
  464. return null;
  465. } else {
  466. return val;
  467. }
  468. })
  469. ),
  470. });
  471. });
  472. app.store.on("floorcad", (floor) => store.commit("scene/loadFloorData", floor));
  473. app.render();
  474. document.removeEventListener("visibilitychange", visibilitychangeFn);
  475. document.addEventListener("visibilitychange", visibilitychangeFn);
  476. if (browser.detectWeixin()) {
  477. //ios的ua中无miniProgram,但都有MicroMessenger(表示是微信浏览器)
  478. wx.miniProgram.getEnv((res) => {
  479. if (res.miniprogram) {
  480. window.removeEventListener("hashchange", hashchangefn);
  481. window.addEventListener("hashchange", hashchangefn);
  482. }
  483. });
  484. }
  485. });
  486. </script>
  487. <style lang="scss">
  488. .tab-layer {
  489. width: 100%;
  490. text-align: center;
  491. display: flex;
  492. justify-content: center;
  493. align-items: center;
  494. z-index: 10;
  495. position: fixed;
  496. left: 50%;
  497. transform: translateX(-50%);
  498. top: 2.3rem;
  499. pointer-events: none;
  500. }
  501. .tabs {
  502. pointer-events: auto;
  503. position: relative;
  504. display: flex;
  505. background: #222222;
  506. border-radius: 6px;
  507. padding: 2px;
  508. justify-content: center;
  509. align-items: center;
  510. border: 1px solid rgba(255, 255, 255, 0.1);
  511. box-shadow: inset 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
  512. .background {
  513. position: absolute;
  514. left: 2px;
  515. top: 2px;
  516. bottom: 2px;
  517. width: 50%;
  518. border-radius: 4px;
  519. background: #444444;
  520. box-shadow: 2px 0px 4px 0px rgba(0, 0, 0, 0.3);
  521. z-index: 0;
  522. transition: left 0.3s;
  523. }
  524. span {
  525. flex: 1;
  526. color: #fff;
  527. opacity: 0.5;
  528. border-radius: 6px;
  529. height: 0.94737rem;
  530. font-size: 0.36842rem;
  531. transition: all 0.3s ease;
  532. display: flex;
  533. align-items: center;
  534. justify-content: center;
  535. padding-left: 10px;
  536. padding-right: 10px;
  537. white-space: nowrap;
  538. z-index: 1;
  539. i {
  540. font-size: 0.47368rem;
  541. margin-right: 4px;
  542. pointer-events: none;
  543. }
  544. }
  545. span.active {
  546. opacity: 1;
  547. }
  548. }
  549. [xui_tags_view] {
  550. .tag-body {
  551. /* display: none; */
  552. position: absolute;
  553. left: 50%;
  554. bottom: 50px;
  555. transform: translateX(-50%) scale(0);
  556. transform-origin: bottom;
  557. transition: all 0.3s cubic-bezier(0.35, 0.32, 0.65, 0.63);
  558. // pointer-events: none;
  559. .tag-commodity,
  560. .tag-link_scene {
  561. min-width: 230px;
  562. height: 76px;
  563. background: rgba(255, 255, 255, 0.8);
  564. box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
  565. border-radius: 2px;
  566. position: relative;
  567. margin-bottom: 30px;
  568. &::before {
  569. content: "";
  570. display: inline-block;
  571. left: 50%;
  572. transform: translateX(-50%);
  573. width: 2px;
  574. height: 28px;
  575. bottom: -30px;
  576. background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  577. position: absolute;
  578. }
  579. .tag-avatar {
  580. position: absolute;
  581. z-index: 99;
  582. width: 80px;
  583. height: 80px;
  584. background: #ffffff;
  585. box-shadow: 0px 3px 6px 0px rgb(0 0 0 / 16%);
  586. border-radius: 2px;
  587. top: -14px;
  588. left: -12px;
  589. background-size: cover;
  590. pointer-events: none;
  591. }
  592. > p {
  593. color: #131d34;
  594. font-size: 16px;
  595. pointer-events: none;
  596. }
  597. .tag-title {
  598. padding: 10px 10px 10px 76px;
  599. overflow: hidden;
  600. text-overflow: ellipsis;
  601. white-space: nowrap;
  602. width: 240px;
  603. }
  604. .tag-info {
  605. padding: 0 20px 0 76px;
  606. font-size: 12px;
  607. overflow: hidden;
  608. text-overflow: ellipsis;
  609. white-space: nowrap;
  610. }
  611. }
  612. &.show {
  613. transform: translateX(-50%) scale(1);
  614. }
  615. .tag-link_scene {
  616. height: auto;
  617. min-width: unset;
  618. .tag-title {
  619. padding: 10px;
  620. width: auto;
  621. text-align: center;
  622. }
  623. }
  624. }
  625. .coupon {
  626. width: 84px !important;
  627. height: 84px !important;
  628. &::after {
  629. content: "發現好禮";
  630. width: 100%;
  631. color: #ed5d18;
  632. position: absolute;
  633. bottom: -24px;
  634. text-align: center;
  635. font-size: 14px;
  636. }
  637. }
  638. .waterfall {
  639. width: 90px !important;
  640. height: 90px !important;
  641. }
  642. .applet_link {
  643. width: 64px !important;
  644. height: 64px !important;
  645. border-radius: 50%;
  646. background-color: #fff;
  647. border: 1px solid #ed5d18;
  648. position: relative;
  649. overflow: hidden;
  650. &::after {
  651. content: "直播中";
  652. width: 100%;
  653. height: 20px;
  654. background: #ed5d18;
  655. position: absolute;
  656. bottom: 0;
  657. text-align: center;
  658. line-height: 1.2;
  659. font-size: 12px;
  660. border-radius: 26%;
  661. }
  662. }
  663. }
  664. .gudieDisabled {
  665. pointer-events: none !important;
  666. * {
  667. pointer-events: none !important;
  668. }
  669. }
  670. @media (orientation: landscape) {
  671. .tab-layer {
  672. top: 1.2rem;
  673. .tabs {
  674. height: 0.7rem;
  675. > span {
  676. height: 0.7rem;
  677. font-size: 0.25rem;
  678. }
  679. }
  680. }
  681. }
  682. </style>