scene.vue 26 KB

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