Rbottom.vue 23 KB

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