scene.vue 30 KB

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