Rbottom.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. <template>
  2. <div class="Rbottom" :style="`${leftList[1].done ? 'bottom:0px' : ''}`">
  3. <!--热点列表div -->
  4. <div class="hotBox" :class="{ activeHotBox: hotListShow }">
  5. <div class="hot_main">
  6. <!-- 关闭按钮 -->
  7. <div class="hot_close" @click="hotListShow = false"></div>
  8. <!-- 标题 -->
  9. <div class="hot_title">热点列表</div>
  10. <!-- 输入框 -->
  11. <div class="hot_search" @keyup.enter="mySearch">
  12. <!-- <input type="text" v-model="hotTxt"> -->
  13. <el-input
  14. type="text"
  15. placeholder="请输关键字"
  16. v-model="hotTxt"
  17. maxlength="30"
  18. show-word-limit
  19. >
  20. </el-input>
  21. <div class="hot_btn" @click="mySearch">搜索</div>
  22. </div>
  23. <!-- 历史记录 -->
  24. <div class="hot_his" v-show="hotHisList.length > 0">
  25. <div
  26. class="hot_hisRow"
  27. @click="selectHis(item)"
  28. v-for="(item, index) in hotHisList"
  29. :key="index"
  30. >
  31. {{ item }}
  32. </div>
  33. <!-- 清除 -->
  34. <div class="hot_clearHis" @click="clearHotHis">清除历史记录</div>
  35. </div>
  36. <!-- 热点列表 -->
  37. <div class="hot_listNone" v-show="hotListShowData.length === 0">
  38. 暂无内容
  39. </div>
  40. <div
  41. v-show="hotListShowData.length !== 0"
  42. class="hot_list"
  43. :style="`height:${hotHisList.length === 0 ? '540px' : '450px'}`"
  44. >
  45. <div
  46. class="hot_listRow"
  47. @click="openHot(item)"
  48. v-for="item in hotListShowData"
  49. :key="item.sid"
  50. >
  51. {{ item.title?.split("&")[0] }}
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <audio src="@/assets/media/bacMusic.mp3" loop id="bacMusic"></audio>
  57. <div class="box1">
  58. <div class="mainll mainrr">
  59. <div
  60. v-show="list.length !== 0 || item.type > 2"
  61. @click="leftCutClick(item.type)"
  62. class="row"
  63. :class="{ active2: item.done }"
  64. v-for="item in leftList"
  65. :key="item.type"
  66. >
  67. <img
  68. :src="
  69. require(`@/assets/img/LeftTop/inco${item.type}${
  70. item.done ? 'Ac' : ''
  71. }.png`)
  72. "
  73. alt=""
  74. />
  75. <p>{{ item.name }}</p>
  76. </div>
  77. <!-- 热点列表 -->
  78. <div
  79. class="row"
  80. :class="{ active2: hotListShow }"
  81. @click="hotListShow = true"
  82. >
  83. <img
  84. :src="
  85. require(`@/assets/img/LeftTop/incoHot${
  86. hotListShow ? 'Ac' : ''
  87. }.png`)
  88. "
  89. alt=""
  90. />
  91. <p>热点列表</p>
  92. </div>
  93. </div>
  94. <div class="mainrr">
  95. <div
  96. class="row"
  97. @click="rightClisk(item.type)"
  98. v-for="item in rightList"
  99. :key="item.type"
  100. :class="{
  101. active2:
  102. (music && item.type === 2) ||
  103. (like && item.type === 3) ||
  104. (share && item.type === 4) ||
  105. (isFullscreen && item.type === 5),
  106. }"
  107. >
  108. <img
  109. :src="require(`@/assets/img/Goods/inco${item.type}Ac.png`)"
  110. alt=""
  111. v-if="music && item.type === 2"
  112. />
  113. <img
  114. :src="require(`@/assets/img/Goods/inco${item.type}Ac.png`)"
  115. alt=""
  116. v-else-if="like && item.type === 3"
  117. />
  118. <img
  119. :src="require(`@/assets/img/Goods/inco${item.type}Ac.png`)"
  120. alt=""
  121. v-else-if="share && item.type === 4"
  122. />
  123. <img
  124. :src="require(`@/assets/img/Goods/inco${item.type}Ac.png`)"
  125. alt=""
  126. v-else-if="isFullscreen && item.type === 5"
  127. />
  128. <img
  129. :src="require(`@/assets/img/Goods/inco${item.type}.png`)"
  130. alt=""
  131. v-else
  132. />
  133. <transition name="likeAddAnimate">
  134. <div class="likeMove" v-show="like && item.type === 3">+ 1</div>
  135. </transition>
  136. <p>
  137. {{ item.name }}
  138. </p>
  139. </div>
  140. </div>
  141. </div>
  142. <div
  143. class="box2"
  144. :style="`${leftList[1].done ? '' : 'height:0px;padding:0;opacity:0'}`"
  145. >
  146. <div class="swiper-container">
  147. <div class="swiper-wrapper" v-if="list.length">
  148. <div
  149. @click="cutGoods(index)"
  150. class="swiper-slide"
  151. v-for="(item, index) in list"
  152. :class="{
  153. active:
  154. (acList === index && playing) ||
  155. (clickBottomAc && acList === index),
  156. }"
  157. :key="index"
  158. >
  159. <img :src="item.list[0].enter.cover" alt="" />
  160. <div
  161. class="plan"
  162. v-show="
  163. (acList === index && playing) ||
  164. (clickBottomAc && acList === index)
  165. "
  166. :style="{ width: progressPart + '%' }"
  167. ></div>
  168. <p
  169. :class="{
  170. txtActive:
  171. (acList === index && playing) ||
  172. (clickBottomAc && acList === index),
  173. }"
  174. >
  175. {{ item.name }}
  176. </p>
  177. </div>
  178. <div class="swiper-slide" style="pointer-events: none"></div>
  179. </div>
  180. <div class="swiper-scrollbar"></div>
  181. </div>
  182. </div>
  183. <!-- 分享页面 -->
  184. <div class="shareBox" :class="{ shareBoxShow: share }">
  185. <div class="shareMain">
  186. <div class="close" @click="share = false"></div>
  187. <h3>分享</h3>
  188. <p>
  189. 请使用手机扫描二维码或
  190. <br />
  191. 复制分享链接
  192. </p>
  193. <img src="@/assets/img/Goods/Rcode.jpg" alt="" />
  194. <div class="btnn" @click="copyPcTxt">复制分享链接</div>
  195. </div>
  196. </div>
  197. </div>
  198. </template>
  199. <script>
  200. import { getHotHis, setHotHis, clearHotHis } from "../utils/storage";
  201. import { addNumAPI } from "@/utils/api";
  202. import Swiper from "./swiper.js";
  203. export default {
  204. name: "Rbottom",
  205. components: {},
  206. props: ["acList", "progressPart", "playing", "clickBottomAc"],
  207. data() {
  208. //这里存放数据
  209. return {
  210. rightList: [
  211. { name: "首页", type: 1 },
  212. { name: "声音", type: 2 },
  213. { name: "点赞", type: 3 },
  214. { name: "分享", type: 4 },
  215. { name: "全屏", type: 5 },
  216. ],
  217. rightType: "",
  218. music: false,
  219. like: false,
  220. share: false,
  221. isFullscreen: false,
  222. // --------------
  223. hotList: [],
  224. hotListShowData: [],
  225. hotHisList: [],
  226. hotTxt: "",
  227. hotListShow: false,
  228. leftList: [
  229. { name: "自动漫游", type: 1, done: false },
  230. { name: "场景导览", type: 2, done: false },
  231. { name: "全景漫游", type: 3, done: true },
  232. { name: "迷你模型", type: 4, done: false },
  233. { name: "顶部俯视", type: 5, done: false },
  234. ],
  235. list: [],
  236. Swiper: null,
  237. };
  238. },
  239. //监听属性 类似于data概念
  240. computed: {},
  241. //监控data中的数据变化
  242. watch: {
  243. hotListShow(val) {
  244. if (val) {
  245. if (this.leftList[0].done) {
  246. this.$emit("stopPlay", true);
  247. this.leftList[0].done = false;
  248. if (window.bacMusic) {
  249. setTimeout(() => {
  250. this.music = true;
  251. }, 100);
  252. }
  253. }
  254. } else {
  255. this.hotListShowData = [...this.hotList];
  256. this.hotTxt = "";
  257. let dom = document.querySelector(".hot_list");
  258. if (dom) dom.scrollTop = 0;
  259. }
  260. },
  261. acList(val) {
  262. let temp = val - 2;
  263. if (temp < 0) temp = 0;
  264. this.Swiper.slideTo(temp);
  265. },
  266. music(val) {
  267. let dom = document.querySelector("#bacMusic");
  268. if (val) {
  269. // 如果有对应的点位音频,删除
  270. const dotAudioDomId = document.querySelector("#dotAudioDomId");
  271. if (dotAudioDomId) document.body.removeChild(dotAudioDomId);
  272. dom.play();
  273. } else dom.pause();
  274. },
  275. },
  276. //方法集合
  277. methods: {
  278. // 给父组件调用,拿到热点数据
  279. getHotListToFather(data) {
  280. const tempArr = data.filter(
  281. (v) => v.title.split("&")[2] || !v.title.includes("&")
  282. );
  283. tempArr.forEach((v, i) => {
  284. const bs = v.title.split("&")[1];
  285. if (bs) v.myBs = Number(bs);
  286. else v.myBs = -i;
  287. });
  288. this.hotList = tempArr.sort((a, b) => a.myBs - b.myBs);
  289. this.hotListShowData = [...this.hotList];
  290. },
  291. openHot(item) {
  292. this.$emit("openHot", item);
  293. },
  294. selectHis(val) {
  295. this.hotHisList = this.hotHisList.filter((v) => v !== val);
  296. this.hotTxt = val;
  297. this.hotHisList.unshift(val);
  298. setHotHis(this.hotHisList);
  299. this.hotListShowData = this.hotList.filter((v) =>
  300. v.title.split("&")[0].includes(this.hotTxt)
  301. );
  302. this.$nextTick(() => {
  303. setTimeout(() => {
  304. let dom = document.querySelector(".hot_list");
  305. if (dom) dom.scrollTop = 0;
  306. }, 20);
  307. });
  308. },
  309. clearHotHis() {
  310. clearHotHis();
  311. this.hotHisList = [];
  312. },
  313. mySearch() {
  314. if (this.hotTxt.trim() === "") {
  315. this.hotListShowData = [...this.hotList];
  316. } else {
  317. this.hotListShowData = this.hotList.filter((v) =>
  318. v.title.split("&")[0].includes(this.hotTxt)
  319. );
  320. this.hotHisList = this.hotHisList.filter((v) => v !== this.hotTxt);
  321. this.hotHisList.unshift(this.hotTxt);
  322. if (this.hotHisList.length > 14) this.hotHisList.length = 14;
  323. setHotHis(this.hotHisList);
  324. }
  325. this.$nextTick(() => {
  326. setTimeout(() => {
  327. let dom = document.querySelector(".hot_list");
  328. if (dom) dom.scrollTop = 0;
  329. }, 20);
  330. });
  331. },
  332. cutGoods(index) {
  333. this.$emit("update:clickBottomAc", false);
  334. this.$emit("daoLanCut", index);
  335. this.leftList[0].done = false;
  336. if (window.bacMusic) {
  337. setTimeout(() => {
  338. this.music = true;
  339. }, 100);
  340. }
  341. },
  342. leftCutClick(type) {
  343. this.$emit("cutKankan", type - 1);
  344. if (type === 1) {
  345. let dom = document.querySelector("#bacMusic");
  346. if (!this.leftList[0].done) {
  347. // 防止多次点击自动漫游
  348. let mainApp = document.querySelector("#app");
  349. mainApp.style.pointerEvents = "none";
  350. // 自动漫游开始的时候的音乐播放状态
  351. window.bacMusic = !dom.paused;
  352. setTimeout(() => {
  353. this.music = false;
  354. }, 200);
  355. } else {
  356. if (window.bacMusic) {
  357. setTimeout(() => {
  358. this.music = true;
  359. }, 100);
  360. }
  361. }
  362. this.leftList[1].done = true;
  363. this.leftList[0].done = !this.leftList[0].done;
  364. } else if (type === 2) {
  365. this.leftList[1].done = !this.leftList[1].done;
  366. } else if (type >= 4) {
  367. this.$emit("stopPlay", true);
  368. }
  369. },
  370. // 给父组件调用的控制音乐播放的方法
  371. opMusic(val) {
  372. this.music = val;
  373. },
  374. // 给父组件操作控制左边按钮的方法
  375. leftCut(index) {
  376. if (index > 2) {
  377. if (window.bacMusic) {
  378. setTimeout(() => {
  379. this.music = true;
  380. }, 100);
  381. }
  382. this.leftList.forEach((v, i) => {
  383. if (i === index) v.done = true;
  384. else v.done = false;
  385. });
  386. } else if (index === -1) {
  387. if (window.bacMusic) {
  388. setTimeout(() => {
  389. this.music = true;
  390. }, 100);
  391. }
  392. this.leftList[0].done = false;
  393. } else if (index === 2) {
  394. this.leftList[2].done = true;
  395. this.leftList[3].done = this.leftList[4].done = false;
  396. }
  397. },
  398. // 点击全屏
  399. fullShow() {
  400. let element = document.documentElement;
  401. if (this.isFullscreen) {
  402. if (document.exitFullscreen) {
  403. document.exitFullscreen();
  404. } else if (document.webkitCancelFullScreen) {
  405. document.webkitCancelFullScreen();
  406. } else if (document.mozCancelFullScreen) {
  407. document.mozCancelFullScreen();
  408. } else if (document.msExitFullscreen) {
  409. document.msExitFullscreen();
  410. }
  411. } else {
  412. if (element.requestFullscreen) {
  413. element.requestFullscreen();
  414. } else if (element.webkitRequestFullScreen) {
  415. element.webkitRequestFullScreen();
  416. } else if (element.mozRequestFullScreen) {
  417. element.mozRequestFullScreen();
  418. } else if (element.msRequestFullscreen) {
  419. element.msRequestFullscreen();
  420. }
  421. }
  422. // 改变当前全屏状态
  423. this.isFullscreen = !this.isFullscreen;
  424. },
  425. rightClisk(type) {
  426. if (type === 1) window.location.replace("/YHT/index.html#/Home");
  427. else if (type === 2) {
  428. let dom = document.querySelector("#bacMusic");
  429. window.bacMusic = dom.paused;
  430. this.music = !this.music;
  431. this.$emit("stopPlay");
  432. } else if (type === 3) {
  433. if (this.like) return;
  434. this.like = true;
  435. setTimeout(() => {
  436. this.like = false;
  437. }, 2000);
  438. addNumAPI("star");
  439. } else if (type === 4) {
  440. this.$emit("stopPlay");
  441. this.share = true;
  442. } else this.fullShow();
  443. },
  444. //点击复制链接
  445. copyPcTxt() {
  446. // 存储传递过来的数据
  447. let OrderNumber = window.location.origin + "/YHT/index.html";
  448. // 创建一个input 元素
  449. // createElement() 方法通过指定名称创建一个元素
  450. let newInput = document.createElement("input");
  451. // 讲存储的数据赋值给input的value值
  452. newInput.value = OrderNumber;
  453. // appendChild() 方法向节点添加最后一个子节点。
  454. document.body.appendChild(newInput);
  455. // 选中input元素中的文本
  456. // select() 方法用于选择该元素中的文本。
  457. newInput.select();
  458. // 执行浏览器复制命令
  459. // execCommand方法是执行一个对当前文档,当前选择或者给出范围的命令
  460. document.execCommand("Copy");
  461. // 清空输入框
  462. newInput.remove();
  463. alert("复制成功");
  464. },
  465. // 初始化轮播图
  466. baseSw(data) {
  467. this.list = data;
  468. this.$nextTick(() => {
  469. this.Swiper = new Swiper(".Rbottom .swiper-container", {
  470. slidesPerView: 9,
  471. spaceBetween: 25,
  472. scrollbar: {
  473. el: ".swiper-scrollbar",
  474. },
  475. });
  476. });
  477. },
  478. },
  479. //生命周期 - 创建完成(可以访问当前this实例)
  480. created() {
  481. this.hotHisList = getHotHis();
  482. },
  483. //生命周期 - 挂载完成(可以访问DOM元素)
  484. mounted() {
  485. // 监听esc事件
  486. document.addEventListener("webkitfullscreenchange", (e) => {
  487. if (!e.currentTarget.webkitIsFullScreen) this.isFullscreen = false;
  488. });
  489. document.addEventListener("fullscreenchange", (e) => {
  490. if (!document.fullscreenElement) this.isFullscreen = false;
  491. });
  492. document.addEventListener("MSFullscreenChange", (e) => {
  493. if (!document.msFullscreenElement) this.isFullscreen = false;
  494. });
  495. document.addEventListener("mozfullscreenchange", (e) => {
  496. if (!document.mozFullScreenElement) this.isFullscreen = false;
  497. });
  498. },
  499. beforeCreate() {}, //生命周期 - 创建之前
  500. beforeMount() {}, //生命周期 - 挂载之前
  501. beforeUpdate() {}, //生命周期 - 更新之前
  502. updated() {}, //生命周期 - 更新之后
  503. beforeDestroy() {}, //生命周期 - 销毁之前
  504. destroyed() {}, //生命周期 - 销毁完成
  505. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  506. };
  507. </script>
  508. <style lang='less' scoped>
  509. .swiper-scrollbar {
  510. height: 4px;
  511. background-color: #fff;
  512. overflow: hidden;
  513. }
  514. /deep/.swiper-scrollbar-drag {
  515. background-color: #930909;
  516. }
  517. @import "./swiper.css";
  518. .likeAddAnimate-enter-active,
  519. .likeAddAnimate-leave-active {
  520. transition: all 2s ease;
  521. }
  522. .likeAddAnimate-enter,
  523. .likeAddAnimate-leave {
  524. transform: translateY(0) scale(0);
  525. opacity: 0;
  526. }
  527. .likeAddAnimate-enter-to,
  528. .likeAddAnimate-leave-to {
  529. transform: translateY(-50px) scale(1.2);
  530. opacity: 1;
  531. }
  532. .Rbottom {
  533. transition: all 0.5s;
  534. z-index: 11;
  535. position: absolute;
  536. bottom: 24px;
  537. right: 0px;
  538. width: 100%;
  539. // 热点列表页面
  540. .hotBox {
  541. transition: opacity 0.3s;
  542. opacity: 0;
  543. pointer-events: none;
  544. position: fixed;
  545. z-index: 99;
  546. top: 0;
  547. left: 0;
  548. width: 100%;
  549. height: 100%;
  550. backdrop-filter: blur(4px);
  551. .hot_main {
  552. padding: 25px 50px 15px;
  553. position: absolute;
  554. top: 50%;
  555. left: 50%;
  556. transform: translate(-50%, -50%);
  557. width: 1100px;
  558. height: 700px;
  559. background-image: url("../assets/img/LeftTop/hotBox.png");
  560. background-size: 100% 100%;
  561. .hot_close {
  562. cursor: pointer;
  563. position: absolute;
  564. background-image: url("../assets/img/Goods/shareClose.png");
  565. background-size: 100% 100%;
  566. right: -20px;
  567. top: -20px;
  568. z-index: 11;
  569. width: 48px;
  570. height: 48px;
  571. }
  572. .hot_title {
  573. font-size: 24px;
  574. color: #d8b275;
  575. margin-bottom: 15px;
  576. }
  577. .hot_search {
  578. display: flex;
  579. height: 40px;
  580. justify-content: space-between;
  581. .el-input {
  582. width: 860px;
  583. /deep/input {
  584. background-color: transparent;
  585. border-radius: 20px;
  586. border: 1px solid #d8b275;
  587. color: #fff;
  588. }
  589. /deep/.el-input__count-inner {
  590. background-color: transparent;
  591. color: #fff;
  592. }
  593. }
  594. .hot_btn {
  595. width: 100px;
  596. height: 40px;
  597. background-color: #d8b275;
  598. border-radius: 20px;
  599. cursor: pointer;
  600. text-align: center;
  601. line-height: 40px;
  602. color: #930909;
  603. font-size: 14px;
  604. }
  605. }
  606. .hot_his {
  607. display: flex;
  608. flex-wrap: wrap;
  609. position: relative;
  610. padding-right: 120px;
  611. .hot_clearHis {
  612. position: absolute;
  613. bottom: 0;
  614. right: 0;
  615. cursor: pointer;
  616. padding-left: 20px;
  617. background: url("../assets/img/LeftTop/delete.png") left center
  618. no-repeat;
  619. background-size: 17px 17px;
  620. color: #fff;
  621. font-size: 14px;
  622. }
  623. .hot_hisRow {
  624. height: 30px;
  625. line-height: 30px;
  626. padding: 0 8px;
  627. background-color: #eeeeee;
  628. margin-right: 15px;
  629. margin-top: 15px;
  630. cursor: pointer;
  631. border-radius: 15px;
  632. max-width: 110px;
  633. overflow: hidden;
  634. text-overflow: ellipsis;
  635. white-space: nowrap;
  636. }
  637. }
  638. .hot_list::-webkit-scrollbar {
  639. /*滚动条整体样式*/
  640. width: 5px;
  641. /*高宽分别对应横竖滚动条的尺寸*/
  642. height: 1px;
  643. }
  644. .hot_list::-webkit-scrollbar-thumb {
  645. /*滚动条里面小方块*/
  646. border-radius: 1px;
  647. -webkit-box-shadow: inset 0 0 5px transparent;
  648. background: #d8b275;
  649. }
  650. .hot_list::-webkit-scrollbar-track {
  651. /*滚动条里面轨道*/
  652. -webkit-box-shadow: inset 0 0 5px transparent;
  653. border-radius: 10px;
  654. background: transparent;
  655. }
  656. .hot_listNone {
  657. width: 100%;
  658. height: 450px;
  659. display: flex;
  660. justify-content: center;
  661. align-items: center;
  662. font-size: 20px;
  663. color: #fff;
  664. }
  665. .hot_list {
  666. padding-right: 15px;
  667. margin-top: 28px;
  668. height: 450px;
  669. overflow-y: auto;
  670. .hot_listRow {
  671. cursor: pointer;
  672. border-bottom: 1px solid #fff;
  673. height: 50px;
  674. line-height: 48px;
  675. color: #fff;
  676. font-size: 16px;
  677. &:nth-of-type(1) {
  678. border-top: 1px solid #fff;
  679. }
  680. &:hover {
  681. color: #d8b275;
  682. border-bottom: 1px solid #d8b275;
  683. position: relative;
  684. &::before {
  685. content: "";
  686. position: absolute;
  687. top: -1px;
  688. left: 0;
  689. width: 100%;
  690. height: 1px;
  691. background-color: #d8b275;
  692. }
  693. }
  694. }
  695. }
  696. }
  697. }
  698. .activeHotBox {
  699. opacity: 1;
  700. pointer-events: auto;
  701. }
  702. .box1 {
  703. padding: 0 25px;
  704. width: 100%;
  705. display: flex;
  706. justify-content: space-between;
  707. .mainrr {
  708. display: flex;
  709. .row {
  710. position: relative;
  711. cursor: pointer;
  712. width: 50px;
  713. text-align: center;
  714. margin-left: 18px;
  715. color: #fff;
  716. & > img {
  717. width: 50px;
  718. }
  719. p {
  720. font-size: 12px;
  721. }
  722. .likeMove {
  723. color: #930909;
  724. position: absolute;
  725. top: 10px;
  726. width: 100%;
  727. text-align: center;
  728. }
  729. }
  730. .active2 {
  731. color: #930909;
  732. font-weight: 700;
  733. p {
  734. font-size: 12px;
  735. }
  736. }
  737. }
  738. .mainll {
  739. .row {
  740. width: 80px;
  741. margin-left: 0;
  742. }
  743. }
  744. }
  745. .box2 {
  746. overflow: hidden;
  747. transition: height 0.5s;
  748. margin-top: 5px;
  749. width: 100%;
  750. height: 170px;
  751. background-color: #d8b275;
  752. padding: 15px 25px 0;
  753. .swiper-container {
  754. cursor: grab;
  755. height: 100%;
  756. .swiper-slide {
  757. cursor: pointer;
  758. height: 120px;
  759. img {
  760. width: 100%;
  761. height: 110px;
  762. object-fit: cover;
  763. }
  764. p {
  765. text-align: center;
  766. height: 30px;
  767. line-height: 30px;
  768. color: #ffffff;
  769. font-size: 14px;
  770. }
  771. .plan {
  772. height: 4px;
  773. background-color: #930909;
  774. }
  775. .txtActive {
  776. color: #930909;
  777. }
  778. }
  779. .active {
  780. img {
  781. border: 3px solid #930909;
  782. }
  783. }
  784. }
  785. }
  786. }
  787. .shareBox {
  788. z-index: 11;
  789. position: fixed;
  790. top: 0;
  791. left: 0;
  792. width: 100%;
  793. height: 100%;
  794. opacity: 0;
  795. pointer-events: none;
  796. backdrop-filter: blur(4px);
  797. transition: opacity 0.5s;
  798. .shareMain {
  799. padding: 40px 30px 0;
  800. position: absolute;
  801. top: 50%;
  802. left: 50%;
  803. transform: translate(-50%, -50%);
  804. width: 450px;
  805. height: 650px;
  806. background-image: url("../assets/img/Goods/shareBac.png");
  807. background-size: 100% 100%;
  808. text-align: center;
  809. .close {
  810. width: 48px;
  811. height: 48px;
  812. cursor: pointer;
  813. position: absolute;
  814. right: -24px;
  815. top: -24px;
  816. background-image: url("../assets/img/Goods/shareClose.png");
  817. background-size: 100% 100%;
  818. }
  819. h3 {
  820. text-align: left;
  821. color: #d8b275;
  822. font-size: 24px;
  823. margin-bottom: 50px;
  824. }
  825. p {
  826. font-size: 20px;
  827. color: #ffffff;
  828. margin-bottom: 40px;
  829. }
  830. img {
  831. width: 240px;
  832. margin-bottom: 50px;
  833. }
  834. .btnn {
  835. cursor: pointer;
  836. width: 280px;
  837. margin: 0 auto;
  838. height: 60px;
  839. border-radius: 30px;
  840. border: 2px solid #d8b275;
  841. line-height: 58px;
  842. font-size: 20px;
  843. color: #ffffff;
  844. }
  845. }
  846. }
  847. .shareBoxShow {
  848. opacity: 1;
  849. pointer-events: auto;
  850. }
  851. </style>