Commit 7bd8383a by 杨北旺

修改默认时间

1 parent 3308d494
......@@ -28,7 +28,7 @@ export default {
this.initTIme()
},
methods: {
getOptions() {
getOptions(len) {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var labelOption = {
......@@ -67,7 +67,7 @@ export default {
start: 0, //默认为0
end: 100 - 1500 / 31, //默认为100
type: 'slider',
show: true,
show: len>5?true:false,
xAxisIndex: [0],
handleSize: 0, //滑动条的 左右2个滑动条的大小
height: 1, //组件高度
......@@ -147,7 +147,8 @@ export default {
// 初始化时间
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = utils.dateFormat(openInfo.openDate)
let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
......@@ -174,7 +175,7 @@ export default {
return item
})
}
this.getOptions()
this.getOptions(arr.length)
})
}
}
......
......@@ -118,7 +118,7 @@ export default {
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate)
let startDate = '2020-01-01'
let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
......
......@@ -91,7 +91,8 @@ export default {
// 初始化时间
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = utils.dateFormat(openInfo.openDate)
let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate)
},
......
<!-- 选择商品弹窗 -->
<template>
<div :id="echartId" class="pie-line"></div>
</template>
<script>
import * as echarts from 'echarts'
export default {
name: 'piechart',
data() {
return {}
},
props: {
echartId: {
type: String,
default: ''
}
},
mounted() {
this.getOptions()
},
methods: {
getOptions() {
var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom)
var option
option = {
series: {
type: 'pie',
radius: [20, 60],
height: '33.33%',
top:'center',
left: 'center',
width: 400,
itemStyle: {
borderColor: '#fff',
borderWidth: 1
},
label: {
alignTo: 'edge',
formatter: '{name|{b}}\n{time|{c} 小时}',
minMargin: 5,
edgeDistance: 10,
lineHeight: 15,
rich: {
time: {
fontSize: 10,
color: '#999'
}
}
},
labelLine: {
length: 15,
length2: 0,
maxSurfaceAngle: 80
},
labelLayout: function (params) {
const isLeft = params.labelRect.x < myChart.getWidth() / 2
const points = params.labelLinePoints
// Update the end point.
points[2][0] = isLeft ? params.labelRect.x : params.labelRect.x + params.labelRect.width
return {
labelLinePoints: points
}
},
data: [
{ name: '圣彼得堡来客', value: 5.6 },
{ name: '陀思妥耶夫斯基全集', value: 1 },
{ name: '史记精注全译(全6册)', value: 0.8 },
{ name: '加德纳艺术通史', value: 0.5 },
{ name: '表象与本质', value: 0.5 },
{ name: '其它', value: 3.8 }
]
}
}
option && myChart.setOption(option)
}
}
}
</script>
<style>
.pie-line{
height: 400px;
}
</style>
......@@ -20,6 +20,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$common = common
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
......
<template>
<div class="service-home">
<div class="header_widget">
<!-- <div class="header_widget">
<span class="title">【嘀加企微管家】</span>
<div class="tip">给您一套帮您变现的服务系统</div>
</div>
......@@ -37,145 +37,145 @@
<div class="line_widget">服务收益在线预估</div>
<div class="echart_wrapper">
<PieChart echartId="introduce"></PieChart>
</div>
</div> -->
</div>
</template>
<script>
import PieChart from '../../components/service-echart/pie.vue'
// import PieChart from '../../components/service-echart/pie.vue'
export default {
name: 'home',
components: {
PieChart
},
// components: {
// PieChart
// },
data() {
return {
currentClickIndex: -1,
localList: [
{
title: '新车售前打包增值方案',
message: '4S店会员权益服务——赚钱、锁客两不误',
tip: '帮您年增值50万'
},
{
title: '精品售中升级',
message: '驻店升级转化精品——帮助门店新车流量托管式增值变现',
tip: '帮门店年度产值增加70W+'
},
{
title: '售后代运营服务',
message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现',
tip: '帮您售后产值增加20W/年'
}
]
// currentClickIndex: -1,
// localList: [
// {
// title: '新车售前打包增值方案',
// message: '4S店会员权益服务——赚钱、锁客两不误',
// tip: '帮您年增值50万'
// },
// {
// title: '精品售中升级',
// message: '驻店升级转化精品——帮助门店新车流量托管式增值变现',
// tip: '帮门店年度产值增加70W+'
// },
// {
// title: '售后代运营服务',
// message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现',
// tip: '帮您售后产值增加20W/年'
// }
// ]
}
},
methods: {
toShowCase(index) {
this.currentClickIndex = index
this.$refs[`animation${index + 1}`].style.opacity = 1
this.$refs[`animation${index + 1}`].style['z-index'] = 20
},
closeAnimation() {
let index = this.currentClickIndex
this.$refs[`animation${index + 1}`].style.opacity = 0
this.$refs[`animation${index + 1}`].style['z-index'] = -999
},
computed() {}
// toShowCase(index) {
// this.currentClickIndex = index
// this.$refs[`animation${index + 1}`].style.opacity = 1
// this.$refs[`animation${index + 1}`].style['z-index'] = 20
// },
// closeAnimation() {
// let index = this.currentClickIndex
// this.$refs[`animation${index + 1}`].style.opacity = 0
// this.$refs[`animation${index + 1}`].style['z-index'] = -999
// },
// computed() {}
}
}
</script>
<style lang="scss" scoped>
.flex-fac {
display: flex;
flex-direction: column;
align-items: center;
}
.flex-fsc {
display: flex;
}
.header_widget {
.title {
font-size: 20px;
color: blue;
}
}
.fc_widget {
margin-top: 16px;
display: flex;
justify-content: space-between;
position: relative;
.fc_wrapper {
flex: 1;
height: 200px;
background: #fff;
border-radius: 16px;
margin: 0 16px;
position: relative;
padding: 20px 0;
.title {
font-size: 20px;
color: #333;
}
.btn {
width: 60%;
position: absolute;
bottom: 20px;
left: 50%;
transform: translate(-50%, 0);
padding: 8px 11px;
background: rgb(148, 142, 142);
border-radius: 12px;
font-size: 15px;
cursor: pointer;
display: flex;
justify-content: space-around;
.btn_go {
margin-left: 10px;
}
}
}
.animation_one {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
opacity: 0;
z-index: -999;
.close_icon {
position: absolute;
right: 10px;
top: 10px;
cursor: pointer;
color: #999;
z-index: 999;
}
.content_wrap {
flex: 1;
background: #fff;
.bg {
width: 110px;
height: 100px;
}
}
.content_two_wrap {
flex: 1;
background: rgb(204, 197, 102);
}
.bg2 {
background: greenyellow;
}
}
}
.line_widget {
width: 100%;
text-align: center;
font-size: 20px;
margin-top: 20px;
}
.echart_wrapper{
height: 250px;
padding: 20px;
}
// .flex-fac {
// display: flex;
// flex-direction: column;
// align-items: center;
// }
// .flex-fsc {
// display: flex;
// }
// .header_widget {
// .title {
// font-size: 20px;
// color: blue;
// }
// }
// .fc_widget {
// margin-top: 16px;
// display: flex;
// justify-content: space-between;
// position: relative;
// .fc_wrapper {
// flex: 1;
// height: 200px;
// background: #fff;
// border-radius: 16px;
// margin: 0 16px;
// position: relative;
// padding: 20px 0;
// .title {
// font-size: 20px;
// color: #333;
// }
// .btn {
// width: 60%;
// position: absolute;
// bottom: 20px;
// left: 50%;
// transform: translate(-50%, 0);
// padding: 8px 11px;
// background: rgb(148, 142, 142);
// border-radius: 12px;
// font-size: 15px;
// cursor: pointer;
// display: flex;
// justify-content: space-around;
// .btn_go {
// margin-left: 10px;
// }
// }
// }
// .animation_one {
// position: absolute;
// left: 0;
// right: 0;
// top: 0;
// bottom: 0;
// opacity: 0;
// z-index: -999;
// .close_icon {
// position: absolute;
// right: 10px;
// top: 10px;
// cursor: pointer;
// color: #999;
// z-index: 999;
// }
// .content_wrap {
// flex: 1;
// background: #fff;
// .bg {
// width: 110px;
// height: 100px;
// }
// }
// .content_two_wrap {
// flex: 1;
// background: rgb(204, 197, 102);
// }
// .bg2 {
// background: greenyellow;
// }
// }
// }
// .line_widget {
// width: 100%;
// text-align: center;
// font-size: 20px;
// margin-top: 20px;
// }
// .echart_wrapper{
// height: 250px;
// padding: 20px;
// }
</style>
<template>
<div class="bloc-container">集团端已开通</div>
</template>
<script>
export default {
name: 'bloc',
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
......@@ -285,7 +285,7 @@ export default {
routerMethod: method,
currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10,
merchantId: 44209532
merchantId,
}
converterApi(para).then(res => {
this.tabletotal1 = res.total
......
<template>
<div class="not-open-container">
<div v-if="accountLevel == 4" class="store-tab-con">
<el-tabs v-model="activeName" @tab-click="handleClick">
<template v-for="(item, index) in tabList">
<el-tab-pane :key="index" :label="item.label" :name="item.name">
<!-- <custom v-if="activeName == 'custom'"></custom>
<rule v-if="activeName == 'rule'"></rule>
<Demo v-if="activeName == 'upgrade'"></Demo> -->
</el-tab-pane>
</template>
</el-tabs>
</div>
<div v-if="accountLevel!=4" class="bloc-page">
<!-- <Demo></Demo> -->
</div>
</div>
</template>
<script>
// import custom from './guestComments.vue'
// import rule from './accountRules.vue'
// import Demo from './demo.vue'
export default {
name: 'bloc',
// components: {
// custom,
// rule,
// Demo
// },
data() {
return {
accountLevel: 4,
activeName: 'upgrade',
tabList: [
{
name: 'upgrade',
label: '精品升级'
},
{
name: 'custom',
label: '客户评价'
},
{
name: 'rule',
label: '分账规则'
}
]
}
},
mounted() {
// const { session } = this.$globalState
// this.accountLevel = session.accountLevel
},
methods: {
handleClick(tab) {
console.log(tab.name)
}
}
}
</script>
<style lang="scss" scoped>
.store-tab-con {
width: 100%;
}
</style>
\ No newline at end of file
......@@ -207,7 +207,7 @@ export default {
judgeOpen() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = '2020-01-01'
this.bengintime = this.$defaultStartDate
this.endtime = utils.dateFormat(new Date())
this.orderDataInfo()
},
......
......@@ -72,10 +72,11 @@ export default {
orderAll() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = this.$defaultStartDate
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: '2020-01-01',
beginDateStr: this.bengintime,
endDateStr: this.today,
reportType: 2,
orderByType: 1 //1 分账 2分润
......
<template>
<div class="store-container">门店端</div>
</template>
<script>
export default {
name: 'index',
data() {
return {
}
},
mounted() {
},
methods: {}
}
</script>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!