标题改变、返回集市
This commit is contained in:
parent
4c4de0abea
commit
60d8b97335
Binary file not shown.
After Width: | Height: | Size: 379 B |
Binary file not shown.
After Width: | Height: | Size: 898 B |
|
@ -9,7 +9,8 @@
|
||||||
<div class="capacitySquare">
|
<div class="capacitySquare">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="left">城市云脑通用能力服务平台(UCS)</div>
|
<div class="left">城市云脑通用能力服务平台(UCS)</div>
|
||||||
应用广场
|
{{ squareType }}
|
||||||
|
<div class="right" @click="backClick">返回集市</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="light"></div>
|
<div class="light"></div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
@ -28,15 +29,29 @@
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const abilityToType = router.currentRoute.value.query.abilityToType
|
const abilityToType = router.currentRoute.value.query.abilityToType
|
||||||
const show = ref('algorithm')
|
const show = ref('algorithm')
|
||||||
|
const squareType = ref('应用广场')
|
||||||
if (abilityToType === '应用资源') {
|
if (abilityToType === '应用资源') {
|
||||||
show.value = 'application'
|
show.value = 'application'
|
||||||
|
squareType.value = '应用广场'
|
||||||
} else if (abilityToType === '图层服务') {
|
} else if (abilityToType === '图层服务') {
|
||||||
show.value = 'layer'
|
show.value = 'layer'
|
||||||
|
squareType.value = '图层广场'
|
||||||
} else if (abilityToType === '智能算法') {
|
} else if (abilityToType === '智能算法') {
|
||||||
show.value = 'algorithm'
|
show.value = 'algorithm'
|
||||||
|
squareType.value = '算法广场'
|
||||||
} else {
|
} else {
|
||||||
console.log('no')
|
console.log('no')
|
||||||
}
|
}
|
||||||
|
// 返回集市
|
||||||
|
const backClick = () => {
|
||||||
|
const newpage = router.resolve({
|
||||||
|
path: '/DetailsPageconetent',
|
||||||
|
query: {
|
||||||
|
select: '组件服务',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
window.location.href = newpage.href
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@ -68,6 +83,19 @@
|
||||||
font-size: 0.18rem;
|
font-size: 0.18rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
.right {
|
||||||
|
width: 1rem;
|
||||||
|
height: 0.3rem;
|
||||||
|
line-height: 0.3rem;
|
||||||
|
position: absolute;
|
||||||
|
top: 0.05rem;
|
||||||
|
right: 0.2rem;
|
||||||
|
font-size: 0.14rem;
|
||||||
|
font-weight: 500;
|
||||||
|
background: url('~@/assets/capacitySquare/backShop.png') no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.light {
|
.light {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
@ -633,8 +633,8 @@
|
||||||
.fixedmount div:nth-child(3) p:nth-child(1) {
|
.fixedmount div:nth-child(3) p:nth-child(1) {
|
||||||
height: 0.24rem;
|
height: 0.24rem;
|
||||||
width: 0.24rem;
|
width: 0.24rem;
|
||||||
background: url('~@/assets/home/shangjia.png') no-repeat;
|
background: url('~@/assets/home/abilitysquare.png') no-repeat;
|
||||||
background-size: contain;
|
background-size: 140% 126%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue