123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146 |
- <template>
- <div class="scene-layout">
- <div class="d-header">
- <ul class="tab-list" v-if="!deviceLogin">
- <li @click="tabActive = item.id" :class="{active:tabActive === item.id}" v-for="(item,i) in tabList" :key="i">
- {{item.name}}({{i===0?allTotal:xiezuoNum}})
- </li>
- </ul>
- <ul class="tab-list" v-else>
- <li class="active" v-for="(item,i) in [tabList[0]]" :key="i">
- {{item.name}}({{allTotal}})
- </li>
- </ul>
- <div class="rig-con">
- <div class="btns" v-if="tabActive===1&&!isImgType">
- <span class="button" @click="multCop">{{ $t('manage.sceneAdmin.collaborative') }}</span>
- <span class="button default" @click="multDel">{{ $t('common.delete') }}</span>
- </div>
- <div class="main-list">
- <i @click="changeType(true)" class="iconfont icon-main_grid" :title="langScenes.pictle" :class="{active:isImgType}"></i>
- <i @click="changeType(false)" class="iconfont icon-main_list" :title="langScenes.listtle" :class="{active:!isImgType}"></i>
- </div>
- </div>
- <div class="search-w">
- <div class="date-w">
- <span class="label">拍摄时间</span>
- <vueDate v-model="startTime" placeholder="开始时间" :isDateDisabled="isAfter" :weekdays="weekdays" :months="months"></vueDate>
- <span>-</span>
- <vueDate v-model="endTime" placeholder="结束时间" :isDateDisabled="isAfter" :weekdays="weekdays" :months="months"></vueDate>
- </div>
- <div class="tab-search">
- <input
- v-model="searchKey"
- @keyup.enter="gotoSearch(searchKey)"
- type="text"
- :placeholder="langScenes.placeholder.searchID"
- />
-
- <!-- <i class="iconfont icon-sousuo" @click="gotoSearch(searchKey)"></i> -->
- </div>
- <div class="search-btn" @click="gotoSearch(searchKey)">查询</div>
- </div>
- </div>
- <template v-if="total">
- <ul v-if="isImgType" ref="ulMenu">
- <template>
- <li v-for="(item,index) in myscene.list" :key="index">
- <div @click="((item.status === 1||item.status===-2)&&item.payStatus !== -2) && goto(item.webSite)" class="a-tap">
- <div class="share-btn" v-if="((item.status === 1||item.status===-2)&&item.payStatus !== -2)" @click.stop="handleShare(item)"></div>
- <div class="cooperation" v-if="item.cooperationUserName&&!deviceLogin"><i class="iconfont icon-case_teamwork"></i><span>{{langScenes.user}}: {{item.cooperationUserName}}</span></div>
- <div class="card-img" :style="{backgroundImage: `url(${getSceneImg(item)})`}"></div>
- <div class="loading-hover" v-if="item.status === 0">
- <div class="loading-icon">
- <span class="refreshing-loader"></span>
- <p>{{langScenes.share.calcule}}</p>
- </div>
- </div>
- <div @click.stop class="loading-hover" v-if="item.payStatus === -2">
- <div class="loading-icon" style="width:100%">
- <p style="font-weight:bold;" v-html="langScenes.limit.insufficient"></p>
- </div>
- <p class="huifu" @click.stop="rechargeTip(item)">{{langScenes.limit.recharge}}>></p>
- </div>
- </div>
- <div class="name" >
- <div class="title">{{item.sceneName}}</div>
- <div class="oper">
- <template v-if="tabActive===1">
- <div @click="handleMenu(index)">
- <span class="spot"></span>
- </div>
- <ul :style="{minWidth: language==='en'?'150px': '90px'}">
- <li v-if="item.status === 1||item.status===-2 && item.payStatus !== -2" @click="gotoEdit(item)">{{langScenes.edit}}</li>
- <li @click="handleCooperation(item)" v-if="(item.status === 1||item.status===-2)&&!deviceLogin && item.payStatus !== -2">{{langScenes.fenpei}}</li>
- <li v-if="item.status !== 0" @click="del(item)">{{langScenes.delete}}</li>
- </ul>
- </template>
- <template v-if="tabActive===2">
- <div
- class="b_default"
- v-if="item.status === 1||item.status===-2"
- @click="gotoEdit(item)">
- <span>{{langScenes.edit}}</span>
- </div>
- </template>
- </div>
- </div>
- <div>
- <span>{{langScenes.shooting}}</span>
- <span>{{item.createTime}}</span>
- </div>
- <div>
- <span>{{langScenes.id}}</span>
- <span>{{!deviceLogin?(item.snCode||item.childName):(cameradetail.snCode||cameradetail.childName)}}</span>
- </div>
- </li>
- </template>
- </ul>
- <tableList v-else @selection-change="data=>{selectedArr=data}" :header='tabHeader' :showLine='true' :selection='true' :data='myscene.list' class="table-list" >
- <div slot-scope="{data}" slot="header">
- {{language==='en'?data.en:data.name}}
- </div>
- <div slot-scope="{data,canclick,type,item}" slot="item" style="width:100%">
- <template v-if="canclick">
- <span class="edit table-btn" v-if="item.status === 1||item.status===-2 && item.payStatus !== -2" @click="gotoEdit(item)">{{langScenes.edit}}</span>
- <span class="edit table-btn" @click="handleCooperation(item)" v-if="(item.status === 1||item.status===-2 && item.payStatus !== -2)&&!deviceLogin&&tabActive===1" >{{ $t('manage.sceneAdmin.collaborative') }}</span>
- <span class="edit table-btn" v-if="item.payStatus === -2" @click="rechargeTip(item)">{{langScenes.limit.recharge}}</span>
- <span class="edit table-btn delete-btn" v-if="item.status !== 0 && item.status !== 1&&item.status !== -2 || item.payStatus === -2" @click="deleteOneScene(item)">{{ $t('common.delete') }}</span>
- </template>
- <div style="position:relative;" v-else-if="type === 'image'" >
- <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)})`, cursor: item.status !== 1 && item.status!==-2 ? 'initial' : 'pointer'}"></div>
- <div class="loading-hover" v-if="item.status === 0 || item.payStatus === -2">
- <div class="loading-icon" style="width:100%">
- <p style="margin-top:0;font-size:12px;">{{item.payStatus === -2 ? $t('manage.sceneAdmin.archived') : langScenes.share.calcule}}</p>
- </div>
- </div>
- </div>
- <span v-else-if="type === 'typefix'">{{ langScenes.typeObj[data] }}</span>
- <span v-else>{{data||'-'}}</span>
- </div>
- </tableList>
- </template>
- <div class="scene-nothing" v-else>
- <img :src="`${$cdn}images/nothing.png`" />
- <div>{{langScenes.noScenes}}</div>
- </div>
- <div class="paging" v-if="total">
- <Paging @clickHandle="pageChange" :current="currentPage" :total="total" :equable="pageSize" />
- </div>
- <div class="share-hover" v-show="showShare">
- <div class="share-con">
- <div class="t-header">
- <span>{{langScenes.share.share}}</span>
- <i @click="showShare = false" class="iconfont icon-cuowu"></i>
- </div>
- <div class="t-con">
- <p class="t-label">{{langScenes.share.website}}</p>
- <input type="text" v-model="url">
- <div class="copy-con">
- <div class="btn-copy" @click="copyTextToClipboard(url)" >{{langScenes.share.copy1}}</div>
- <div class="btn-copy" @click="copyTextToClipboard(num)" >{{langScenes.share.copy2}}</div>
- </div>
- <div class="t-label">{{langScenes.share.shareto}}</div>
- <div class="img-share" v-for="(item,i) in imgs" :key="i">
- <div v-if="item.id === 0" class="trangle"></div>
- <img v-if="item.id === 0 && num" class="qrcode" :src="`/sceneQRcode/${num}.png?rnd=${rnd}`" alt="">
- <img class="share-logo" :src="item.img" @click="toShare(item)" :alt="langScenes.share.share">
- </div>
- <p class="t-label">{{langScenes.share.qianru}}</p>
- <p class="sub-title">{{langScenes.share.size}}</p>
- <div class="window-con">
- {{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)">
- {{langScenes.share.height}}<input type="text" v-model="lheight" oninput="value=Math.max(Math.min(Number(value.replace(/[^\d]/g,'')),10000),1)">
- </div>
- <p class="p-sub">{{langScenes.share.defaultSize}}</p>
- <!-- <div class="produce-btn">{{`</> 生成嵌入式代码`}}</div> -->
- <div class="code-con" >
- <div>{{'<iframe'}}</div>
- <p>width=</p>
- <div>"{{lwidth}}"</div>
- <p>height=</p>
- <div>"{{lheight}}"</div>
- <p>src=</p>
- <div>"{{url}}"</div>
- <p>allowfullscreen="true" frameborder=</p>
- <div>"0"</div>
- <div>{{'></iframe>'}}</div>
- </div>
- <div class="btn-copy" @click="copyTextToClipboard(htmlCode)" style="margin-bottom:6px;">{{langScenes.share.copy}}</div>
- <div class="btm-dec">{{langScenes.share.sub}}<br/>{{langScenes.share.sub2}}</div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { mapState } from 'vuex'
- import tableList from '@/components/table'
- import {scene} from './iscene'
- import Paging from '@/components/Paging'
- import vueDate from '@/components/common/vueDate/vueDatePick'
- export default {
- components: { Paging, tableList, vueDate },
- data () {
- let imgs = [
- {
- img: this.$cdn + 'images/s-wechat.png',
- id: 0
- },
- {
- img: this.$cdn + 'images/s-weibo.png',
- id: 1
- },
- {
- img: this.$cdn + 'images/s-qq.png',
- id: 2
- }
- ]
- let isImgType = localStorage.getItem('isImgType') === '' ? true : (localStorage.getItem('isImgType') === 'true')
- return {
- tabHeader: scene,
- xiezuoNum: 0,
- pageSize: 12,
- lock: false,
- currentPage: 1,
- searchKey: '',
- selectedArr: [],
- total: 0,
- allTotal: 0,
- showShare: false,
- imgs,
- num: '',
- rnd: Math.random(),
- isImgType: isImgType,
- lwidth: 853,
- lheight: 480,
- url: 'https://www.4dkankan.com/showProPC.html?m=KcMeJlOr8',
- item: '',
- ulActive: '',
- tabActive: 1,
- tabList: [
- {
- name: this.$t('manage.sceneAdmin.myScene'),
- id: 1
- }, {
- name: this.$t('manage.sceneAdmin.collaborativeScene'),
- id: 2
- }
- ],
- startTime: '',
- endTime: '',
- weekdays: ['一', '二', '三', '四', '五', '六', '日'],
- months: ['1月', '2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月']
- }
- },
- watch: {
- currentPage () {
- this.getList()
- },
- '$route.query.cameraid': {
- immediate: true,
- handler: function (newVal) {
- if (newVal) {
- this.searchKey = newVal
- this.getList(newVal)
- }
- }
- },
- tabActive (newVal) {
- this.currentPage === 1 ? this.getList() : this.currentPage = 1
- }
- },
- computed: {
- ...mapState({
- token: state => state.user.token,
- language: state => state.language.current,
- langScenes: state => state.language.home.manage.myScenes,
- langToast: state => state.language.home.toast,
- deviceLogin: state => state.user.deviceLogin,
- cameradetail: state => {
- let type = Object.prototype.toString.call(state.user.cameradetail)
- if (type === '[object Object]') {
- return state.user.cameradetail
- }
- let condition =
- state.user.cameradetail &&
- state.user.cameradetail !== 'null' &&
- type !== '[object Array]'
- return condition ? JSON.parse(state.user.cameradetail) : ''
- },
- myscene: state => {
- let type = Object.prototype.toString.call(state.user.myscene)
- if (type === '[object Object]') {
- return state.user.myscene
- }
- let condition =
- state.user.myscene &&
- state.user.myscene !== 'null' &&
- type !== '[object Array]'
- return condition ? JSON.parse(state.user.myscene) : {}
- }
- }),
- htmlCode () {
- return `<iframe src="${this.url}" width="${this.lwidth}" height="${this.lheight}" allowfullscreen="true" frameborder="0"></iframe>`
- }
- },
- mounted () {
- document.addEventListener('click', (e) => {
- if (this.$refs.ulMenu) {
- if (!this.$refs.ulMenu.contains(e.target)) {
- this.ulActive = ''
- }
- }
- })
- if (this.deviceLogin) {
- this.$bus.$off('mycid')
- this.$bus.$on('mycid', item => {
- setTimeout(() => {
- this.getList()
- })
- })
- } else {
- this.getCooTotal()
- this.getList()
- }
- },
- methods: {
- changeType (status) {
- this.isImgType = status
- localStorage.setItem('isImgType', status)
- },
- checkSelect () {
- let pass = this.selectedArr.length <= 0
- if (pass) {
- return this.$toast.show('warn', `${this.language === 'en' ? 'Please select at least one.' : '请至少勾选一项'}`)
- }
- return true
- },
- multCop () {
- if (this.checkSelect()) {
- let nums = this.selectedArr.map(item => {
- return item.num
- })
- this.$toast.showCooperation({
- ids: nums.join(','),
- type: 'scene'
- }, () => {
- this.getList()
- })
- }
- },
- multDel () {
- if (this.checkSelect()) {
- let nums = this.selectedArr.map(item => {
- return item.num
- })
- this.del(nums.join(','), true)
- }
- },
- deleteOneScene (row) {
- this.del(row.num, true)
- },
- async handleCooperation (item) {
- this.$toast.showCooperation({
- num: item.num,
- cooName: item.cooperationUserName,
- type: 'scene',
- getListData: {
- cameraId: item.cameraId
- }
- }, () => {
- this.getList()
- })
- },
- handleMenu (index) {
- this.ulActive = index === this.ulActive ? '' : index
- },
- rechargeTip (item) {
- this.$toast.showConfirm('warn', this.langToast['28'], () => {
- let routeData = this.$router.resolve({name: 'introduce', params: {id: item.childName}})
- window.open(routeData.href, '_blank')
- }, '', this.langScenes.limit.expand)
- },
- recharge (item) {
- },
- toShare (item) {
- var n, t, i, r, u, f, sceneName
- n = screen
- t = document
- i = encodeURIComponent
- u = t.location.href
- sceneName = `${this.item.sceneName} 三维场景漫游 #由四维看看Pro拍摄#`
- if (item.id === 1) {
- r = 'http://v.t.sina.com.cn/share/share.php?'
- f = ['url=', i(this.url), '&title=', i(sceneName)].join('')
- } else if (item.id === 2) {
- // http:// connect.qq.com/widget/shareqq/index.html?url=;title=
- r = 'http://connect.qq.com/widget/shareqq/index.html?'
- f = ['url=',
- i(this.url),
- '&title=',
- i(sceneName)
- ].join('')
- } else {
- return
- }
- 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(''))
- },
- handleShare (item) {
- this.url = item.webSite.replace('http://', 'https://')
- this.num = item.num
- this.rnd = Math.random()
- this.item = item
- this.showShare = true
- },
- goto (url) {
- let temp = url.replace('show.html', 'showPC.html')
- window.open(temp.replace('http://', 'https://') + (this.language === 'en' ? '&lang=en' : ''), '_blank')
- },
- getSceneImg (item) {
- switch (item.status) {
- case -1:
- let to = this.language === 'en' ? this.$cdn + 'images/scene_error-en.png' : this.$cdn + 'images/scene_error.png'
- return to
- default:
- return item.thumb + '?v=' + item.version + '?rnd=' + this.rnd
- }
- },
- gotoEdit (item) {
- let url = item.webSite
- let page = url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('.html'))
- let pStr = 'edit'
- if (item.buildType) {
- switch (item.buildType.toLowerCase()) {
- case 'v1':
- pStr = 'edit'
- break
- case 'v2':
- pStr = 'editProPC'
- break
- case 'v3':
- pStr = 'epc'
- break
- default:
- pStr = 'edit'
- break
- }
- }
- url = pStr ? url.replace(page, pStr) : url
- window.open(url.replace('http://', 'https://') + (this.language === 'en' ? '&lang=en' : ''), '_blank')
- },
- async del (item, multi = false) {
- this.$toast.showConfirm('warn', this.langScenes.delwarn, async () => {
- let params = {
- sceneNum: multi ? item : item.num
- }
- let res = await this.$http({
- method: 'post',
- data: params,
- headers: {
- token: this.token
- },
- url: '/user/scene/delete'
- })
- let data = res.data
- if (data.code === 0) {
- return this.$toast.show('warn', this.langScenes.share.delsuccess, () => {
- this.getList()
- })
- }
- return this.$toast.show('error', `${this.langScenes.share.delfail}${this.langToast[data.code]}`)
- })
- },
- pageChange (data) {
- this.currentPage = data
- },
- gotoSearch (searchKey) {
- if (this.currentPage > 1) {
- this.currentPage = 1
- } else {
- this.getList(searchKey)
- }
- },
- async getCooTotal () {
- let res = await this.$http({
- method: 'post',
- data: {
- pageNum: this.currentPage,
- pageSize: this.pageSize,
- cameraId: null,
- searchKey: this.searchKey,
- cameraType: null
- },
- headers: {
- token: this.token
- },
- url: '/user/scene/cooperation/cooperationSceneList'
- })
- this.xiezuoNum = res.data.data.total
- },
- async getList (searchKey = null) {
- this.searchKey = searchKey || this.searchKey
- let { id: cameraId = null, type: cameraType = null } = this.cameradetail
- window.scrollTo(0, 0)
- let params = {
- pageNum: this.currentPage,
- pageSize: this.pageSize,
- cameraId,
- searchKey: this.searchKey.trim(),
- cameraType
- }
- if (this.tabActive === 2) {
- await this.$store.dispatch('getCooperationScene', params)
-
- } else {
- cameraId
- ? await this.$store.dispatch('getScanScene', params)
- : await this.$store.dispatch('getUserScene', params)
- }
- this.pageSize = this.myscene.pageSize
- this.total = this.myscene.total || 0
- if (this.tabActive === 1) {
- this.lock = true
- this.allTotal = this.total
- } else {
- this.xiezuoNum = this.total
- }
- },
- copyTextToClipboard (text) {
- var textArea = document.createElement('textarea')
- textArea.style.position = 'fixed'
- textArea.style.top = 0
- textArea.style.left = 0
- textArea.style.width = '2em'
- textArea.style.height = '2em'
- textArea.style.padding = 0
- textArea.style.border = 'none'
- textArea.style.outline = 'none'
- textArea.style.boxShadow = 'none'
- textArea.style.background = 'transparent'
- textArea.value = text
- document.body.appendChild(textArea)
- textArea.select()
- try {
- document.execCommand('copy') ? this.$toast.show('success', this.langScenes.share.copysuccess) : this.$toast.show('warn', this.langScenes.share.copyfail)
- } catch (err) {
- this.$toast.show('error', this.langScenes.share.copyfail)
- }
- document.body.removeChild(textArea)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- $theme-color: #1fe4dc;
- $font-color: #2d2d2d;
- .huifu{
- position: absolute;
- bottom: 10px;
- right: 10px;
- color: #1fe4dc;
- display: inline-block;
- border-bottom: 1px solid #1fe4dc;
- padding-bottom: 2px;
- cursor: pointer;
- }
- .scene-layout {
- width: 100%;
- margin-top: 30px;
- .d-header{
- margin-left: 40px;
- height: 30px;
- .tab-list{
- display: inline-block;
- li{
- display: inline-block;
- margin-right: 40px;
- cursor: pointer;
- font-size: 14px;
- line-height: 1.5;
- }
- .active{
- color: $theme-color;
- border-bottom: 1px solid $theme-color;
- }
- }
- .rig-con{
- margin-right: 40px;
- float: right;
- display: flex;
- align-items: center;
- .btns{
- margin-right: 20px;
- .button{
- line-height: 30px;
- height: 30px;
- min-width: 80px;
- padding: 0 10px;
- text-align: center;
- vertical-align: middle;
- font-size: 14px;
- color: #202020;
- cursor: pointer;
- }
- .default{
- background: #E4E4E4;
- margin-left: 10px;
- }
- }
-
- .main-list{
- display: inline-block;
- margin-left: 20px;
- .iconfont{
- cursor: pointer;
- font-size: 20px;
- margin-left: 5px;
- }
- .active{
- color: #1fe4dc;
- }
- }
- }
- .search-w {
- position: absolute;
- top: 0;
- right: 40px;
- top: 38px;
- display: flex;
- font-size: 12px;
- }
- .tab-search{
- position: relative;
- width: 230px;
- border: 1px solid #ccc;
- display: flex;
- .iconfont{
- width: 28px;
- height: 28px;
- padding: 6px;
- cursor: pointer;
- background: #e4e4e4;
- }
- input{
- width: 100%;
- font-size: 14px;
- appearance: none;
- padding-left: 10px;
- line-height: 28px;
- height: 28px;
- border: 0;
- }
- }
- }
- > ul {
- padding: 30px 0 0 40px;
- > li {
- width: 270px;
- display: inline-block;
- position: relative;
- margin-right: 25px;
- margin-bottom: 35px;
- color: #a0a0a0;
- max-width: 330px;
- font-size: 14px;
- .a-tap {
- cursor: pointer;
- width: 100%;
- height: 160px;
- display: inline-block;
- position: relative;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .card-img {
- width: 100%;
- height: 100%;
- cursor: pointer;
- background-position: center;
- background-size: auto 100%;
- background-repeat: no-repeat;
- }
- .share-btn {
- position: absolute;
- right: 10px;
- top: 10px;
- width: 35px;
- height: 35px;
- background-image: url(https://4dscene.4dage.com/new4dkk/images/share-btn.png);
- background-color: rgba(0, 0, 0, 0.3);
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- border-radius: 50%;
- }
- .cooperation{
- background:rgba(0,0,0,0.5);
- position: absolute;
- bottom: 0;
- width: 100%;
- height: 30px;
- text-align: center;
- line-height: 30px;
- color: #FFFFFF;
- >span{
- display: inline-block;
- margin-left: 6px;
- }
- }
- .name {
- display: flex;
- justify-content: space-between;
- align-items: center;
- line-height: 22px;
- margin-top: 8px;
- .title {
- font-weight: bold;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- color: #000;
- flex: 1;
- }
- .oper {
- flex: 1;
- text-align: right;
- cursor: pointer;
- position: relative;
- &:hover{
- >ul{
- display: block;
- }
- }
- >div {
- display: inline-block;
- width: 20%;
- .spot{
- width: 4px;
- height: 4px;
- display: inline-block;
- background-color: #202020;
- border-radius: 50%;
- position: relative;
- margin-right: 10px;
- &::after,&::before{
- content: '';
- position: absolute;
- width: 4px;
- height: 4px;
- display: inline-block;
- background-color: #202020;
- border-radius: 50%;
- left: -8px;
- top: 50%;
- transform: translateY(-50%);
- }
- &::before{
- right: -8px;
- left: unset;
- }
- }
- }
- >ul{
- display: none;
- position: absolute;
- top: 22px;
- z-index: 9;
- left: 58%;
- background: #F7F7F7;
- min-width: 90px;
- box-shadow:0px 1px 6px rgba(0,0,0,0.16);
- >li{
- text-align: left;
- width: 100%;
- line-height: 2.5;
- padding: 0 10px;
- color: #202020;
- &:hover{
- background-color: #EBEBEB;
- }
- }
- }
- .b_default{
- display: inline-block;
- background: #fff;
- color: #000;
- border: 1px solid #777;
- border-radius: 2px;
- font-size: 12px;
- width: 52px;
- height: 22px;
- line-height: 22px;
- text-align: center;
- vertical-align: middle;
- margin-left: 4px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- cursor: pointer;
- position: relative;
- >span{
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate(-50%,-50%);
- transform: translate(-50%,-50%);
- width: 100%;
- }
- }
- }
- }
- }
- }
- .table-list{
- width: calc(100% - 80px);
- margin: 30px auto;
- font-size: 14px;
- .card-img {
- width: 100%;
- height: 100%;
- cursor: pointer;
- background-position: center;
- background-size: auto 100%;
- background-repeat: no-repeat;
- }
- .table-btn {
- display: inline-block;
- &:hover {
- text-decoration: underline;
- }
- }
- .delete-btn {
- color: #f56c6c;
- }
- }
- .scene-nothing {
- // width: 75%;
- padding: 42px 0 210px 0;
- text-align: center;
- img {
- padding-bottom: 22px;
- }
- div {
- font-size: 16px;
- color: #969696;
- }
- }
- .paging {
- // border-left: #e5e5e5 1px solid;
- height: 100%;
- margin-bottom: 40px;
- & /deep/ .layout {
- text-align: left;
- margin-top: 0;
- margin-left: 30px;
- }
- & /deep/ .layout a:not(:last-child) {
- margin: 10px 8px;
- font-size: 16px;
- display: inline-block;
- font-weight: 500;
- cursor: pointer;
- user-select: none;
- color: #999;
- position: relative;
- transition: color 0.3s;
- }
- & /deep/ .layout a:last-child {
- position: relative;
- top: -5px;
- display: -ms-inline-flexbox;
- display: inline-flex;
- -ms-flex-align: center;
- align-items: center;
- height: 22px;
- padding: 0 9.6px;
- padding: 0 0.6rem;
- }
- & /deep/ .layout a:last-child::before,
- & /deep/ .layout a:last-child::after {
- content: "";
- display: inline-block;
- will-change: transform;
- transition: transform 0.3s;
- }
- & /deep/ .layout a:not(:last-child).active::after,
- & /deep/ .layout a:not(:last-child).active,
- & /deep/ .layout a:not(:last-child):hover,
- & /deep/ .layout a:not(:last-child):hover::after {
- color: #111111;
- transform: scaleX(1);
- }
- & /deep/ .layout a:not(:last-child)::after {
- content: "";
- height: 3px;
- width: 140%;
- background-color: #111;
- display: block;
- margin-left: -20%;
- margin-top: 3px;
- transform-origin: 50% 50%;
- transform: scaleX(0);
- will-change: transform;
- transition: transform 0.3s;
- }
- }
- .share-hover {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- margin: 0;
- z-index: 88888888;
- transition: all 0.2s linear;
- background: rgba(0, 0, 0, 0.3);
- .share-con {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 515px;
- transform: translate(-50%, -50%);
- background: #fff;
- border-radius: 6px;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
- overflow: hidden;
- line-height: 1;
- .t-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- color: #969696;
- height: 54px;
- padding: 0 30px;
- .iconfont{
- cursor: pointer;
- }
- }
- .t-con{
- padding: 30px;
- background: #e7e7e7;
- .t-label{
- font-size: 16px;
- color: #2d2d2d;
- font-weight: bold;
- }
- .img-share{
- display: inline-block;
- margin: 14px 16px 24px 4px;
- position: relative;
- .trangle{
- position: absolute;
- display: none;
- top: 44px;
- left: 14px;
- width: 0;
- height: 0;
- border: 10px solid transparent;
- border-bottom-color: #fff;
- z-index: 99;
- }
- .qrcode{
- position: absolute;
- display: none;
- top: 63px;
- left: -36px;
- width: 120px;
- box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3);
- }
- &:hover{
- .qrcode,.trangle{
- display: inline-block;
- }
- }
- }
- .share-logo{
- cursor: pointer;
- }
- input{
- width: 100%;
- border: 0;
- line-height: 48px;
- height: 48px;
- padding: 0 20px;
- margin: 14px 0 10px;
- }
- .window-con{
- display: inline-block;
- input{
- width: 60px;
- border-radius: 4px;
- padding: 0;
- margin: 0;
- text-align: center;
- line-height: 32px;
- height: 32px;
- }
- }
- .copy-con{
- display: flex;
- justify-content: space-between;
- align-items: center;
- .btn-copy{
- width: 49%;
- }
- }
- .btn-copy{
- text-align: center;
- background: #ddd;
- font-size: 14px;
- color: #2d2d2d;
- line-height: 26px;
- height: 26px;
- margin-bottom: 24px;
- cursor: pointer;
- font-weight: bold;
- &:hover{
- background: #c8c8c8;
- }
- }
- .sub-title{
- color: #2d2d2d;
- font-size: 16px;
- margin: 14px 0 10px;
- }
- .p-sub{
- font-size: 14px;
- margin: 14px 0 10px;
- }
- .produce-btn{
- text-align: center;
- height: 48px;
- line-height: 48px;
- background: #5e5e5e;
- border-radius: 4px;
- color: #fff;
- }
- .code-con{
- height: 50px;
- width: 100%;
- line-height: 1.5;
- overflow: auto;
- word-break: break-all;
- margin: 10px 0;
- cursor: pointer;
- position: relative;
- div,p{
- word-break: break-all;
- display: inline-block;
- }
- div{
- color: #b35e14;
- }
- }
- .btm-dec{
- font-size: 14px;
- line-height: 1.5;
- letter-spacing: -0.5px;
- }
- }
- }
- }
- }
- @media screen and (min-width: 2000px) {
- .scene-layout {
- width: 75%;
- }
- }
- @media screen and (max-width: 1400px){
- .scene-layout {
- width: 100%;
- > ul {
- > li {
- width: 265px;
- margin-right: 35px;
- .a-tap {
- height: 142px;
- }
- }
- }
- }
- }
- @media screen and (max-width: 1300px) {
- .scene-layout {
- width: 100%;
- > ul {
- > li {
- width: 240px;
- margin-right: 10px;
- .a-tap {
- height: 142px;
- }
- }
- }
- }
- }
- </style>
- <style lang="less">
- .scene-layout {
- .search-w {
- input {
- line-height: 28px;
- border: 1px solid #ccc;
- }
- .date-w {
- margin-right: 20px;
- .label {
- margin-right: 10px;
- font-size: 14px;
- }
- }
- .vdpWithInput {
- input {
- width: 140px;
- padding: 0 10px;
- }
- }
- .search-btn {
- padding: 0 20px;
- line-height: 28px;
- background: #1fe4dc;
- margin-left: 20px;
- cursor: pointer;
- // font-weight: bold;
- }
- }
- }
- </style>
|