scene.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  1. <template>
  2. <div class="scene-layout">
  3. <div class="d-header">
  4. <ul class="tab-list">
  5. <li @click="tabActive = item.id" :class="{active:tabActive === item.id}" v-for="(item,i) in langScenes.tabList" :key="i">
  6. {{item.name}}
  7. </li>
  8. </ul>
  9. <div class="tab-search">
  10. <input
  11. v-model="searchKey"
  12. @keyup.enter="gotoSearch(searchKey)"
  13. type="text"
  14. :placeholder="langScenes.placeholder.searchID"
  15. />
  16. <i class="iconfont icon-sousuo" @click="gotoSearch(searchKey)"></i>
  17. </div>
  18. </div>
  19. <ul v-if="total" ref="ulMenu">
  20. <template>
  21. <li v-for="(item,index) in myscene.list" :key="index">
  22. <div @click="((item.status === 1||item.status===-2)&&item.payStatus !== -2) && goto(item.webSite)" class="a-tap">
  23. <div class="share-btn" v-if="((item.status === 1||item.status===-2)&&item.payStatus !== -2)" @click.stop="handleShare(item)"></div>
  24. <div class="cooperation" v-if="item.cooperationUserName"><i class="iconfont icon-case_teamwork"></i><span>{{langScenes.user}}: {{item.cooperationUserName}}</span></div>
  25. <div class="card-img" :style="{backgroundImage: `url(${getSceneImg(item)})`}"></div>
  26. <div class="loading-hover" v-if="item.status === 0">
  27. <div class="loading-icon">
  28. <span class="refreshing-loader"></span>
  29. <p>{{langScenes.share.calcule}}</p>
  30. </div>
  31. </div>
  32. <div @click.stop class="loading-hover" v-if="item.payStatus === -2">
  33. <div class="loading-icon" style="width:100%">
  34. <p style="font-weight:bold;" v-html="langScenes.limit.insufficient"></p>
  35. </div>
  36. <p class="huifu" @click.stop="rechargeTip(item)">{{langScenes.limit.recharge}}</p>
  37. </div>
  38. </div>
  39. <div class="name" >
  40. <div class="title">{{item.sceneName}}</div>
  41. <div class="oper">
  42. <template v-if="tabActive===1">
  43. <div @click="handleMenu(index)">
  44. <span class="spot"></span>
  45. </div>
  46. <ul :style="{minWidth: language==='en'?'150px': '90px'}">
  47. <li v-if="item.status === 1||item.status===-2" @click="gotoEdit(item)">{{langScenes.edit}}</li>
  48. <li @click="handleCooperation(item)" v-if="item.status === 1||item.status===-2">{{item.cooperationUserId?langScenes.qxfp:langScenes.fenpei}}</li>
  49. <li v-if="item.status !== 0" @click="del(item)">{{langScenes.delete}}</li>
  50. </ul>
  51. </template>
  52. <template v-if="tabActive===2">
  53. <div
  54. class="b_default"
  55. v-if="item.status === 1||item.status===-2"
  56. @click="gotoEdit(item)">
  57. <span>{{langScenes.edit}}</span>
  58. </div>
  59. </template>
  60. </div>
  61. </div>
  62. <div>
  63. <span>{{langScenes.shooting}}</span>
  64. <span>{{item.createTime}}</span>
  65. </div>
  66. <div>
  67. <span>{{langScenes.id}}</span>
  68. <span>{{!deviceLogin?(item.snCode||item.childName):(cameradetail.snCode||cameradetail.childName)}}</span>
  69. </div>
  70. </li>
  71. </template>
  72. </ul>
  73. <div class="scene-nothing" v-else>
  74. <img :src="`${$cdn}images/nothing.png`" />
  75. <div>{{langScenes.noScenes}}</div>
  76. </div>
  77. <div class="paging" v-if="total">
  78. <Paging @clickHandle="pageChange" :current="currentPage" :total="total" :equable="pageSize" />
  79. </div>
  80. <div class="share-hover" v-show="showShare">
  81. <div class="share-con">
  82. <div class="t-header">
  83. <span>{{langScenes.share.share}}</span>
  84. <i @click="showShare = false" class="iconfont icon-cuowu"></i>
  85. </div>
  86. <div class="t-con">
  87. <p class="t-label">{{langScenes.share.website}}</p>
  88. <input type="text" v-model="url">
  89. <div class="btn-copy" @click="copyTextToClipboard(url)" >{{langScenes.share.copy}}</div>
  90. <div class="t-label">{{langScenes.share.shareto}}</div>
  91. <div class="img-share" v-for="(item,i) in imgs" :key="i">
  92. <div v-if="item.id === 0" class="trangle"></div>
  93. <img v-if="item.id === 0 && num" class="qrcode" :src="`/sceneQRcode/${num}.png?rnd=${rnd}`" alt="">
  94. <img class="share-logo" :src="item.img" @click="toShare(item)" :alt="langScenes.share.share">
  95. </div>
  96. <p class="t-label">{{langScenes.share.qianru}}</p>
  97. <p class="sub-title">{{langScenes.share.size}}</p>
  98. <div class="window-con">
  99. {{langScenes.share.width}}<input type="text" style="margin-right:10px;" v-model="lwidth" oninput="value=Math.max(Math.min(Number(value.replace(/[^\d]/g,'')),10000),1)">
  100. {{langScenes.share.height}}<input type="text" v-model="lheight" oninput="value=Math.max(Math.min(Number(value.replace(/[^\d]/g,'')),10000),1)">
  101. </div>
  102. <p class="p-sub">{{langScenes.share.defaultSize}}</p>
  103. <!-- <div class="produce-btn">{{`&lt;/&gt; 生成嵌入式代码`}}</div> -->
  104. <div class="code-con" >
  105. <div>{{'&lt;iframe'}}</div>
  106. <p>width=</p>
  107. <div>"{{lwidth}}"</div>
  108. <p>height=</p>
  109. <div>"{{lheight}}"</div>
  110. <p>src=</p>
  111. <div>"{{url}}"</div>
  112. <p>allowfullscreen="true" frameborder=</p>
  113. <div>"0"</div>
  114. <div>{{'&gt;&lt;/iframe>'}}</div>
  115. </div>
  116. <div class="btn-copy" @click="copyTextToClipboard(htmlCode)" style="margin-bottom:6px;">{{langScenes.share.copy}}</div>
  117. <div class="btm-dec">{{langScenes.share.sub}}<br/>{{langScenes.share.sub2}}</div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </template>
  123. <script>
  124. import { mapState } from 'vuex'
  125. import Paging from '@/components/Paging'
  126. export default {
  127. components: { Paging },
  128. data () {
  129. let imgs = [
  130. {
  131. img: this.$cdn + 'images/s-wechat.png',
  132. id: 0
  133. },
  134. {
  135. img: this.$cdn + 'images/s-weibo.png',
  136. id: 1
  137. },
  138. {
  139. img: this.$cdn + 'images/s-qq.png',
  140. id: 2
  141. }
  142. ]
  143. return {
  144. pageSize: 12,
  145. currentPage: 1,
  146. searchKey: '',
  147. total: 0,
  148. showShare: false,
  149. imgs,
  150. num: '',
  151. rnd: Math.random(),
  152. lwidth: 853,
  153. lheight: 480,
  154. url: 'https://www.4dkankan.com/showProPC.html?m=KcMeJlOr8',
  155. item: '',
  156. ulActive: '',
  157. tabActive: 1
  158. }
  159. },
  160. watch: {
  161. currentPage () {
  162. this.getList()
  163. },
  164. '$route.query.cameraid': {
  165. immediate: true,
  166. handler: function (newVal) {
  167. if (newVal) {
  168. this.searchKey = newVal
  169. this.getList(newVal)
  170. }
  171. }
  172. },
  173. tabActive (newVal) {
  174. this.currentPage === 1 ? this.getList() : this.currentPage = 1
  175. }
  176. },
  177. computed: {
  178. ...mapState({
  179. token: state => state.user.token,
  180. language: state => state.language.current,
  181. langScenes: state => state.language.home.manage.myScenes,
  182. langToast: state => state.language.home.toast,
  183. deviceLogin: state => state.user.deviceLogin,
  184. cameradetail: state => {
  185. let type = Object.prototype.toString.call(state.user.cameradetail)
  186. if (type === '[object Object]') {
  187. return state.user.cameradetail
  188. }
  189. let condition =
  190. state.user.cameradetail &&
  191. state.user.cameradetail !== 'null' &&
  192. type !== '[object Array]'
  193. return condition ? JSON.parse(state.user.cameradetail) : ''
  194. },
  195. myscene: state => {
  196. let type = Object.prototype.toString.call(state.user.myscene)
  197. if (type === '[object Object]') {
  198. return state.user.myscene
  199. }
  200. let condition =
  201. state.user.myscene &&
  202. state.user.myscene !== 'null' &&
  203. type !== '[object Array]'
  204. return condition ? JSON.parse(state.user.myscene) : {}
  205. }
  206. }),
  207. htmlCode () {
  208. return `<iframe src="${this.url}" width="${this.lwidth}" height="${this.lheight}" allowfullscreen="true" frameborder="0"></iframe>`
  209. }
  210. },
  211. mounted () {
  212. document.addEventListener('click', (e) => {
  213. if (this.$refs.ulMenu) {
  214. if (!this.$refs.ulMenu.contains(e.target)) {
  215. this.ulActive = ''
  216. }
  217. }
  218. })
  219. if (this.deviceLogin) {
  220. this.$bus.$off('mycid')
  221. this.$bus.$on('mycid', item => {
  222. setTimeout(() => {
  223. this.getList()
  224. })
  225. })
  226. } else {
  227. this.getList()
  228. }
  229. },
  230. methods: {
  231. async handleCooperation (item) {
  232. if (item.cooperationUserId) {
  233. let result = await this.$http({
  234. method: 'post',
  235. data: {
  236. sceneNum: item.num
  237. },
  238. headers: {
  239. token: this.token
  240. },
  241. url: '/user/scene/cooperation/delete'
  242. })
  243. let data = result.data
  244. if (data.code === 0) {
  245. this.$toast.show('success', this.langToast['45'], () => {
  246. this.getList()
  247. })
  248. } else {
  249. return this.$toast.show('warn', this.langToast[data.code], () => {})
  250. }
  251. } else {
  252. this.$toast.showCooperation(item.num, () => {
  253. this.getList()
  254. })
  255. }
  256. },
  257. handleMenu (index) {
  258. this.ulActive = index === this.ulActive ? '' : index
  259. },
  260. rechargeTip (item) {
  261. this.$toast.showConfirm('warn', this.langToast['28'], () => {
  262. let routeData = this.$router.resolve({name: 'introduce', params: {id: item.childName}})
  263. window.open(routeData.href, '_blank')
  264. }, '', this.langScenes.limit.expand)
  265. },
  266. recharge (item) {
  267. },
  268. toShare (item) {
  269. var n, t, i, r, u, f, sceneName
  270. n = screen
  271. t = document
  272. i = encodeURIComponent
  273. u = t.location.href
  274. sceneName = `${this.item.sceneName} 三维场景漫游 #由四维看看Pro拍摄#`
  275. if (item.id === 1) {
  276. r = 'http://v.t.sina.com.cn/share/share.php?'
  277. f = ['url=', i(this.url), '&title=', i(sceneName)].join('')
  278. } else if (item.id === 2) {
  279. // http:// connect.qq.com/widget/shareqq/index.html?url=;title=
  280. r = 'http://connect.qq.com/widget/shareqq/index.html?'
  281. f = ['url=',
  282. i(this.url),
  283. '&title=',
  284. i(sceneName)
  285. ].join('')
  286. } else {
  287. return
  288. }
  289. window.open([r, f].join(''), '', ['toolbar=0,status=0,resizable=1,width=620,height=450,left=', ((n.width) / 2) - 310, ',top=', ((n.height) / 2) - 225].join('')) || (u.href = [r, f].join(''))
  290. },
  291. handleShare (item) {
  292. this.url = item.webSite.replace('http://', 'https://')
  293. this.num = item.num
  294. this.rnd = Math.random()
  295. this.item = item
  296. this.showShare = true
  297. },
  298. goto (url) {
  299. let temp = url.replace('show.html', 'showPC.html')
  300. window.open(temp.replace('http://', 'https://') + (this.language === 'en' ? '&lang=en' : ''), '_blank')
  301. },
  302. getSceneImg (item) {
  303. switch (item.status) {
  304. case -1:
  305. let to = this.language === 'en' ? this.$cdn + 'images/scene_error-en.png' : this.$cdn + 'images/scene_error.png'
  306. return to
  307. default:
  308. return item.thumb + '?v=' + item.version + '?rnd=' + this.rnd
  309. }
  310. },
  311. gotoEdit (item) {
  312. let url = item.webSite
  313. let page = url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('.html'))
  314. let pStr = 'edit'
  315. if (item.buildType) {
  316. switch (item.buildType.toLowerCase()) {
  317. case 'v1':
  318. pStr = 'edit'
  319. break
  320. case 'v2':
  321. pStr = 'editProPC'
  322. break
  323. case 'v3':
  324. pStr = 'epc'
  325. break
  326. default:
  327. pStr = 'edit'
  328. break
  329. }
  330. }
  331. url = pStr ? url.replace(page, pStr) : url
  332. window.open(url.replace('http://', 'https://') + (this.language === 'en' ? '&lang=en' : ''), '_blank')
  333. },
  334. async del (item) {
  335. this.$toast.showConfirm('warn', this.langScenes.delwarn, async () => {
  336. let params = {
  337. sceneNum: item.num
  338. }
  339. let res = await this.$http({
  340. method: 'post',
  341. data: params,
  342. headers: {
  343. token: this.token
  344. },
  345. url: '/user/scene/delete'
  346. })
  347. let data = res.data
  348. if (data.code === 0) {
  349. return this.$toast.show('warn', this.langScenes.share.delsuccess, () => {
  350. this.getList()
  351. })
  352. }
  353. return this.$toast.show('error', `${this.langScenes.share.delfail}${this.langToast[data.code]}`)
  354. })
  355. },
  356. pageChange (data) {
  357. this.currentPage = data
  358. },
  359. gotoSearch (searchKey) {
  360. if (this.currentPage > 1) {
  361. this.currentPage = 1
  362. } else {
  363. this.getList(searchKey)
  364. }
  365. },
  366. async getList (searchKey = null) {
  367. this.searchKey = searchKey || this.searchKey
  368. let { id: cameraId = null, type: cameraType = null } = this.cameradetail
  369. window.scrollTo(0, 0)
  370. let params = {
  371. pageNum: this.currentPage,
  372. pageSize: this.pageSize,
  373. cameraId,
  374. searchKey: this.searchKey,
  375. cameraType
  376. }
  377. if (this.tabActive === 2) {
  378. await this.$store.dispatch('getCooperationScene', params)
  379. } else {
  380. cameraId
  381. ? await this.$store.dispatch('getScanScene', params)
  382. : await this.$store.dispatch('getUserScene', params)
  383. }
  384. this.pageSize = this.myscene.pageSize
  385. this.total = this.myscene.total || 0
  386. },
  387. copyTextToClipboard (text) {
  388. var textArea = document.createElement('textarea')
  389. textArea.style.position = 'fixed'
  390. textArea.style.top = 0
  391. textArea.style.left = 0
  392. textArea.style.width = '2em'
  393. textArea.style.height = '2em'
  394. textArea.style.padding = 0
  395. textArea.style.border = 'none'
  396. textArea.style.outline = 'none'
  397. textArea.style.boxShadow = 'none'
  398. textArea.style.background = 'transparent'
  399. textArea.value = text
  400. document.body.appendChild(textArea)
  401. textArea.select()
  402. try {
  403. document.execCommand('copy') ? this.$toast.show('success', this.langScenes.share.copysuccess) : this.$toast.show('warn', this.langScenes.share.copyfail)
  404. } catch (err) {
  405. this.$toast.show('error', this.langScenes.share.copyfail)
  406. }
  407. document.body.removeChild(textArea)
  408. }
  409. }
  410. }
  411. </script>
  412. <style lang="scss" scoped>
  413. $theme-color: #1fe4dc;
  414. $font-color: #2d2d2d;
  415. .huifu{
  416. position: absolute;
  417. bottom: 10px;
  418. right: 10px;
  419. color: #1fe4dc;
  420. display: inline-block;
  421. border-bottom: 1px solid #1fe4dc;
  422. padding-bottom: 2px;
  423. cursor: pointer;
  424. }
  425. .scene-layout {
  426. width: 100%;
  427. margin-top: 30px;
  428. .d-header{
  429. margin-left: 40px;
  430. height: 30px;
  431. .tab-list{
  432. display: inline-block;
  433. li{
  434. display: inline-block;
  435. margin-right: 40px;
  436. cursor: pointer;
  437. font-size: 14px;
  438. line-height: 1.5;
  439. }
  440. .active{
  441. color: $theme-color;
  442. border-bottom: 1px solid $theme-color;
  443. }
  444. }
  445. .tab-search{
  446. float: right;
  447. position: relative;
  448. width: 230px;
  449. padding-left: 10px;
  450. margin-right: 120px;
  451. border: 1px solid #ccc;
  452. display: flex;
  453. .iconfont{
  454. width: 28px;
  455. height: 28px;
  456. padding: 6px;
  457. cursor: pointer;
  458. background: #e4e4e4;
  459. }
  460. input{
  461. width: 100%;
  462. font-size: 14px;
  463. appearance: none;
  464. line-height: 28px;
  465. height: 28px;
  466. border: 0;
  467. }
  468. }
  469. }
  470. > ul {
  471. padding: 30px 0 0 40px;
  472. > li {
  473. width: 270px;
  474. display: inline-block;
  475. position: relative;
  476. margin-right: 25px;
  477. margin-bottom: 35px;
  478. color: #a0a0a0;
  479. max-width: 330px;
  480. font-size: 14px;
  481. .a-tap {
  482. cursor: pointer;
  483. width: 100%;
  484. height: 160px;
  485. display: inline-block;
  486. position: relative;
  487. img {
  488. width: 100%;
  489. height: 100%;
  490. }
  491. }
  492. .card-img {
  493. width: 100%;
  494. height: 100%;
  495. cursor: pointer;
  496. background-position: center;
  497. background-size: auto 100%;
  498. background-repeat: no-repeat;
  499. }
  500. .share-btn {
  501. position: absolute;
  502. right: 10px;
  503. top: 10px;
  504. width: 35px;
  505. height: 35px;
  506. background-image: url(https://4dscene.4dage.com/new4dkk/images/share-btn.png);
  507. background-color: rgba(0, 0, 0, 0.3);
  508. background-position: center;
  509. background-repeat: no-repeat;
  510. background-size: cover;
  511. border-radius: 50%;
  512. }
  513. .cooperation{
  514. background:rgba(0,0,0,0.5);
  515. position: absolute;
  516. bottom: 0;
  517. width: 100%;
  518. height: 30px;
  519. text-align: center;
  520. line-height: 30px;
  521. color: #FFFFFF;
  522. >span{
  523. display: inline-block;
  524. margin-left: 6px;
  525. }
  526. }
  527. .name {
  528. display: flex;
  529. justify-content: space-between;
  530. align-items: center;
  531. line-height: 22px;
  532. margin-top: 8px;
  533. .title {
  534. font-weight: bold;
  535. overflow: hidden;
  536. text-overflow: ellipsis;
  537. white-space: nowrap;
  538. color: #000;
  539. flex: 1;
  540. }
  541. .oper {
  542. flex: 1;
  543. text-align: right;
  544. cursor: pointer;
  545. position: relative;
  546. &:hover{
  547. >ul{
  548. display: block;
  549. }
  550. }
  551. >div {
  552. display: inline-block;
  553. width: 20%;
  554. .spot{
  555. width: 4px;
  556. height: 4px;
  557. display: inline-block;
  558. background-color: #202020;
  559. border-radius: 50%;
  560. position: relative;
  561. margin-right: 10px;
  562. &::after,&::before{
  563. content: '';
  564. position: absolute;
  565. width: 4px;
  566. height: 4px;
  567. display: inline-block;
  568. background-color: #202020;
  569. border-radius: 50%;
  570. left: -8px;
  571. top: 50%;
  572. transform: translateY(-50%);
  573. }
  574. &::before{
  575. right: -8px;
  576. left: unset;
  577. }
  578. }
  579. }
  580. >ul{
  581. display: none;
  582. position: absolute;
  583. top: 22px;
  584. z-index: 9;
  585. left: 58%;
  586. background: #F7F7F7;
  587. min-width: 90px;
  588. box-shadow:0px 1px 6px rgba(0,0,0,0.16);
  589. >li{
  590. text-align: left;
  591. width: 100%;
  592. line-height: 2.5;
  593. padding: 0 10px;
  594. color: #202020;
  595. &:hover{
  596. background-color: #EBEBEB;
  597. }
  598. }
  599. }
  600. .b_default{
  601. display: inline-block;
  602. background: #fff;
  603. color: #000;
  604. border: 1px solid #777;
  605. border-radius: 2px;
  606. font-size: 12px;
  607. width: 52px;
  608. height: 22px;
  609. line-height: 22px;
  610. text-align: center;
  611. vertical-align: middle;
  612. margin-left: 4px;
  613. -webkit-box-sizing: border-box;
  614. box-sizing: border-box;
  615. cursor: pointer;
  616. position: relative;
  617. >span{
  618. position: absolute;
  619. top: 50%;
  620. left: 50%;
  621. -webkit-transform: translate(-50%,-50%);
  622. transform: translate(-50%,-50%);
  623. width: 100%;
  624. }
  625. }
  626. }
  627. }
  628. }
  629. }
  630. // .tab-search {
  631. // float: right;
  632. // position: relative;
  633. // width: 230px;
  634. // padding-left: 10px;
  635. // border: 1px solid #ccc;
  636. // top: -30px;
  637. // right: 6vw;
  638. // display: flex;
  639. // .iconfont {
  640. // width: 28px;
  641. // height: 28px;
  642. // padding: 6px;
  643. // background: #e4e4e4;
  644. // cursor: pointer;
  645. // }
  646. // input {
  647. // width: 100%;
  648. // font-size: 14px;
  649. // appearance: none;
  650. // line-height: 28px;
  651. // height: 28px;
  652. // border: 0;
  653. // }
  654. // }
  655. .scene-nothing {
  656. width: 75%;
  657. padding: 42px 0 210px 0;
  658. text-align: center;
  659. img {
  660. padding-bottom: 22px;
  661. }
  662. div {
  663. font-size: 16px;
  664. color: #969696;
  665. }
  666. }
  667. .paging {
  668. // border-left: #e5e5e5 1px solid;
  669. height: 100%;
  670. margin-bottom: 40px;
  671. & /deep/ .layout {
  672. text-align: left;
  673. margin-top: 0;
  674. margin-left: 15px;
  675. }
  676. & /deep/ .layout a:not(:last-child) {
  677. margin: 10px 8px;
  678. font-size: 16px;
  679. display: inline-block;
  680. font-weight: 500;
  681. cursor: pointer;
  682. user-select: none;
  683. color: #999;
  684. position: relative;
  685. transition: color 0.3s;
  686. }
  687. & /deep/ .layout a:last-child {
  688. position: relative;
  689. top: -5px;
  690. display: -ms-inline-flexbox;
  691. display: inline-flex;
  692. -ms-flex-align: center;
  693. align-items: center;
  694. height: 22px;
  695. padding: 0 9.6px;
  696. padding: 0 0.6rem;
  697. }
  698. & /deep/ .layout a:last-child::before,
  699. & /deep/ .layout a:last-child::after {
  700. content: "";
  701. display: inline-block;
  702. will-change: transform;
  703. transition: transform 0.3s;
  704. }
  705. & /deep/ .layout a:not(:last-child).active::after,
  706. & /deep/ .layout a:not(:last-child).active,
  707. & /deep/ .layout a:not(:last-child):hover,
  708. & /deep/ .layout a:not(:last-child):hover::after {
  709. color: #111111;
  710. transform: scaleX(1);
  711. }
  712. & /deep/ .layout a:not(:last-child)::after {
  713. content: "";
  714. height: 3px;
  715. width: 140%;
  716. background-color: #111;
  717. display: block;
  718. margin-left: -20%;
  719. margin-top: 3px;
  720. transform-origin: 50% 50%;
  721. transform: scaleX(0);
  722. will-change: transform;
  723. transition: transform 0.3s;
  724. }
  725. }
  726. .share-hover {
  727. position: fixed;
  728. top: 0;
  729. left: 0;
  730. width: 100%;
  731. height: 100%;
  732. margin: 0;
  733. z-index: 88888888;
  734. transition: all 0.2s linear;
  735. background: rgba(0, 0, 0, 0.3);
  736. .share-con {
  737. position: absolute;
  738. top: 50%;
  739. left: 50%;
  740. width: 515px;
  741. transform: translate(-50%, -50%);
  742. background: #fff;
  743. border-radius: 6px;
  744. box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  745. overflow: hidden;
  746. line-height: 1;
  747. .t-header {
  748. display: flex;
  749. justify-content: space-between;
  750. align-items: center;
  751. color: #969696;
  752. height: 54px;
  753. padding: 0 30px;
  754. .iconfont{
  755. cursor: pointer;
  756. }
  757. }
  758. .t-con{
  759. padding: 30px;
  760. background: #e7e7e7;
  761. .t-label{
  762. font-size: 16px;
  763. color: #2d2d2d;
  764. font-weight: bold;
  765. }
  766. .img-share{
  767. display: inline-block;
  768. margin: 14px 16px 24px 4px;
  769. position: relative;
  770. .trangle{
  771. position: absolute;
  772. display: none;
  773. top: 44px;
  774. left: 14px;
  775. width: 0;
  776. height: 0;
  777. border: 10px solid transparent;
  778. border-bottom-color: #fff;
  779. z-index: 99;
  780. }
  781. .qrcode{
  782. position: absolute;
  783. display: none;
  784. top: 63px;
  785. left: -36px;
  786. width: 120px;
  787. box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3);
  788. }
  789. &:hover{
  790. .qrcode,.trangle{
  791. display: inline-block;
  792. }
  793. }
  794. }
  795. .share-logo{
  796. cursor: pointer;
  797. }
  798. input{
  799. width: 100%;
  800. border: 0;
  801. line-height: 48px;
  802. height: 48px;
  803. padding: 0 20px;
  804. margin: 14px 0 10px;
  805. }
  806. .window-con{
  807. display: inline-block;
  808. input{
  809. width: 60px;
  810. border-radius: 4px;
  811. padding: 0;
  812. margin: 0;
  813. text-align: center;
  814. line-height: 32px;
  815. height: 32px;
  816. }
  817. }
  818. .btn-copy{
  819. text-align: center;
  820. background: #ddd;
  821. font-size: 14px;
  822. color: #2d2d2d;
  823. line-height: 26px;
  824. height: 26px;
  825. margin-bottom: 24px;
  826. cursor: pointer;
  827. font-weight: bold;
  828. &:hover{
  829. background: #c8c8c8;
  830. }
  831. }
  832. .sub-title{
  833. color: #2d2d2d;
  834. font-size: 16px;
  835. margin: 14px 0 10px;
  836. }
  837. .p-sub{
  838. font-size: 14px;
  839. margin: 14px 0 10px;
  840. }
  841. .produce-btn{
  842. text-align: center;
  843. height: 48px;
  844. line-height: 48px;
  845. background: #5e5e5e;
  846. border-radius: 4px;
  847. color: #fff;
  848. }
  849. .code-con{
  850. height: 50px;
  851. width: 100%;
  852. line-height: 1.5;
  853. overflow: auto;
  854. word-break: break-all;
  855. margin: 10px 0;
  856. cursor: pointer;
  857. position: relative;
  858. div,p{
  859. word-break: break-all;
  860. display: inline-block;
  861. }
  862. div{
  863. color: #b35e14;
  864. }
  865. }
  866. .btm-dec{
  867. font-size: 14px;
  868. line-height: 1.5;
  869. letter-spacing: -0.5px;
  870. }
  871. }
  872. }
  873. }
  874. }
  875. @media screen and (min-width: 2000px) {
  876. .scene-layout {
  877. width: 75%;
  878. }
  879. }
  880. @media screen and (max-width: 1400px){
  881. .scene-layout {
  882. width: 100%;
  883. > ul {
  884. > li {
  885. width: 265px;
  886. margin-right: 35px;
  887. .a-tap {
  888. height: 142px;
  889. }
  890. }
  891. }
  892. }
  893. }
  894. @media screen and (max-width: 1300px) {
  895. .scene-layout {
  896. width: 100%;
  897. > ul {
  898. > li {
  899. width: 240px;
  900. margin-right: 10px;
  901. .a-tap {
  902. height: 142px;
  903. }
  904. }
  905. }
  906. }
  907. }
  908. </style>