|
|
|
@ -1,6 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<div :class="wrpCls"> |
|
|
|
|
<!-- PRO标识 --> |
|
|
|
|
<span style="color: #001529; font-size: 14px">商城截止时间:{{ storeInfo.effective_time | formatDate }}</span> |
|
|
|
|
<div v-if="isPro" class="pro-edition"> |
|
|
|
|
<a-tooltip placement="bottom"> |
|
|
|
|
<template slot="title"> |
|
|
|
@ -20,50 +21,58 @@ |
|
|
|
|
<script> |
|
|
|
|
import AvatarDropdown from './AvatarDropdown' |
|
|
|
|
// import SelectLang from '@/components/SelectLang' |
|
|
|
|
import moment from 'moment' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'RightContent', |
|
|
|
|
components: { |
|
|
|
|
AvatarDropdown |
|
|
|
|
AvatarDropdown, |
|
|
|
|
// SelectLang |
|
|
|
|
}, |
|
|
|
|
props: { |
|
|
|
|
prefixCls: { |
|
|
|
|
type: String, |
|
|
|
|
default: 'ant-pro-global-header-index-action' |
|
|
|
|
default: 'ant-pro-global-header-index-action', |
|
|
|
|
}, |
|
|
|
|
isMobile: { |
|
|
|
|
type: Boolean, |
|
|
|
|
default: () => false |
|
|
|
|
default: () => false, |
|
|
|
|
}, |
|
|
|
|
topMenu: { |
|
|
|
|
type: Boolean, |
|
|
|
|
required: true |
|
|
|
|
required: true, |
|
|
|
|
}, |
|
|
|
|
theme: { |
|
|
|
|
type: String, |
|
|
|
|
required: true |
|
|
|
|
} |
|
|
|
|
required: true, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
data () { |
|
|
|
|
data() { |
|
|
|
|
const currentUser = this.$store.getters.userInfo |
|
|
|
|
return { |
|
|
|
|
showMenu: true, |
|
|
|
|
currentUser, |
|
|
|
|
isPro: true |
|
|
|
|
isPro: true, |
|
|
|
|
storeInfo: '', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
filters: { |
|
|
|
|
formatDate(value) { |
|
|
|
|
return value ? moment(value * 1000).format('YYYY-MM-DD HH:mm:ss') : '-' |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
wrpCls () { |
|
|
|
|
wrpCls() { |
|
|
|
|
return { |
|
|
|
|
'ant-pro-global-header-index-right': true, |
|
|
|
|
[`ant-pro-global-header-index-${(this.isMobile || !this.topMenu) ? 'light' : this.theme}`]: true |
|
|
|
|
} |
|
|
|
|
[`ant-pro-global-header-index-${this.isMobile || !this.topMenu ? 'light' : this.theme}`]: true, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.storeInfo = JSON.parse(window.localStorage.getItem('storeInfo')) |
|
|
|
|
console.log(this.storeInfo.effective_time) |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|