Commit 6cbec3f7 by xinla

--no commit message

1 parent d33e4009
...@@ -29,30 +29,27 @@ export default { ...@@ -29,30 +29,27 @@ export default {
margin: 0 auto; margin: 0 auto;
padding: 0 10px; padding: 0 10px;
position: relative; position: relative;
width: 300px; width: 375px;
height: 640px; height: 800px;
background: url(../assets/drainageCode/preview-bg.png); background: url(../assets/drainageCode/preview-bg.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
.preview-title { .preview-title {
position: absolute; position: absolute;
top: 37px; top: 55px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
} }
.preview-content { .preview-content {
position: relative; position: relative;
height: 545px; height: calc(100% - 120px);
overflow-y: auto; overflow-y: auto;
top: 70px; top: 88px;
// left: 50%;
// transform: translateX(-50%);
border-bottom-left-radius: 20px; border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px; border-bottom-right-radius: 20px;
} }
......
<script>
export default {
name: '',
components: {},
data() {
return {}
},
computed: {},
watch: {},
created() {},
mounted() {},
methods: {
getAnalysis() {
this.loading = true
getAnalysis()
.then(({ data }) => {
this.cardData = [
{
title: '访问总数(pv)',
tips: '短链页面访问的总次数',
value: data.pvTotalCount,
},
{
title: '访问总人数(uv)',
tips: '短链页面访问的独立IP数',
value: data.uvTotalCount,
},
{
title: '小程序打开数',
tips: '小程序成功打开的总次数',
value: data.openTotalCount,
},
{
title: '今日访问总数(pv)',
tips: '今日短链页面访问的总次数',
value: data.pvTodayCount,
title1: '较昨日',
value1: data.pvDiff,
},
{
title: '今日访问总人数(uv)',
tips: '今日短链页面访问的独立IP数',
value: data.uvTodayCount,
title1: '较昨日',
value1: data.uvDiff,
},
{
title: '今日小程序打开数',
tips: '今日小程序成功打开的总次数',
value: data.openTodayCount,
title1: '较昨日',
value1: data.openDiff,
},
]
})
.catch((e) => {
console.log(e)
})
.finally(() => {
this.loading = false
})
},
},
}
</script>
<template>
<div>
<div class="fxbw">
<div style="width: 40%">
<div class="g-card g-pad20">
<div class="title">短链内容</div>
</div>
</div>
<div class="g-card g-pad20" style="width: 40%; margin-top: 0">
<PhoneTemplate :title="dictDesc[form.touchType].previewMobileTitle"></PhoneTemplate>
</div>
</div>
<div class="g-card g-pad20">
<div class="title">数据趋势</div>
<CardGroupIndex :data="cardData"></CardGroupIndex>
</div>
</div>
</template>
<style lang="scss" scoped></style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!