41 lines
1.2 KiB
Vue
41 lines
1.2 KiB
Vue
<template>
|
|
<div class="main">
|
|
<header-top :bgUrl="bgUrl" :menu="menu" :bgColor="bgColor" :title="title" :labelList="labelList"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import headerTop from "./components/headerTop.vue";
|
|
|
|
export default {
|
|
name: "businessPortrait",
|
|
components: {headerTop},
|
|
data() {
|
|
return {
|
|
labelList:['女性','高消费','喜爱奶茶','浙江','20-30岁','江苏'],//标签
|
|
title:'经营画像',//页面标题
|
|
bgColor: '180deg, #996CFF 0%, #5D43F8 100%',
|
|
bgUrl: 'https://eshangtech.com/ShopICO/ahyd-BID/commercial/managePortraitBg.svg',//背景图片路径
|
|
time: '',//跳转携带的时间
|
|
menu: {},//手机配置信息
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
//跳转的时候带上时间
|
|
this.time = option.time
|
|
// 获取手机参数对页面进行适配
|
|
let systemInfo = uni.getSystemInfoSync()
|
|
// 把获取到的手机参数保存
|
|
uni.setStorageSync('phoneInfo', systemInfo)
|
|
this.statusBarHeight = Number(systemInfo.statusBarHeight)
|
|
this.menu = uni.getMenuButtonBoundingClientRect()
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.main {
|
|
width: 100vw;
|
|
min-height: 100vh;
|
|
}
|
|
</style> |