Commit 7bd8383a by 杨北旺

修改默认时间

1 parent 3308d494
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
this.initTIme() this.initTIme()
}, },
methods: { methods: {
getOptions() { getOptions(len) {
var chartDom = document.getElementById(this.echartId) var chartDom = document.getElementById(this.echartId)
var myChart = echarts.init(chartDom) var myChart = echarts.init(chartDom)
var labelOption = { var labelOption = {
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
start: 0, //默认为0 start: 0, //默认为0
end: 100 - 1500 / 31, //默认为100 end: 100 - 1500 / 31, //默认为100
type: 'slider', type: 'slider',
show: true, show: len>5?true:false,
xAxisIndex: [0], xAxisIndex: [0],
handleSize: 0, //滑动条的 左右2个滑动条的大小 handleSize: 0, //滑动条的 左右2个滑动条的大小
height: 1, //组件高度 height: 1, //组件高度
...@@ -147,7 +147,8 @@ export default { ...@@ -147,7 +147,8 @@ export default {
// 初始化时间 // 初始化时间
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) 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()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) this.couponsChartData(startDate, endDate)
}, },
...@@ -174,7 +175,7 @@ export default { ...@@ -174,7 +175,7 @@ export default {
return item return item
}) })
} }
this.getOptions() this.getOptions(arr.length)
}) })
} }
} }
......
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// let startDate = utils.dateFormat(openInfo.openDate) // let startDate = utils.dateFormat(openInfo.openDate)
let startDate = '2020-01-01' let startDate = this.$defaultStartDate
let endDate = utils.dateFormat(new Date()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) this.couponsChartData(startDate, endDate)
}, },
......
...@@ -91,7 +91,8 @@ export default { ...@@ -91,7 +91,8 @@ export default {
// 初始化时间 // 初始化时间
initTIme() { initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) 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()) let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate, endDate) 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 }) { ...@@ -20,6 +20,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox 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.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
......
<template> <template>
<div class="service-home"> <div class="service-home">
<div class="header_widget"> <!-- <div class="header_widget">
<span class="title">【嘀加企微管家】</span> <span class="title">【嘀加企微管家】</span>
<div class="tip">给您一套帮您变现的服务系统</div> <div class="tip">给您一套帮您变现的服务系统</div>
</div> </div>
...@@ -37,145 +37,145 @@ ...@@ -37,145 +37,145 @@
<div class="line_widget">服务收益在线预估</div> <div class="line_widget">服务收益在线预估</div>
<div class="echart_wrapper"> <div class="echart_wrapper">
<PieChart echartId="introduce"></PieChart> <PieChart echartId="introduce"></PieChart>
</div> </div> -->
</div> </div>
</template> </template>
<script> <script>
import PieChart from '../../components/service-echart/pie.vue' // import PieChart from '../../components/service-echart/pie.vue'
export default { export default {
name: 'home', name: 'home',
components: { // components: {
PieChart // PieChart
}, // },
data() { data() {
return { return {
currentClickIndex: -1, // currentClickIndex: -1,
localList: [ // localList: [
{ // {
title: '新车售前打包增值方案', // title: '新车售前打包增值方案',
message: '4S店会员权益服务——赚钱、锁客两不误', // message: '4S店会员权益服务——赚钱、锁客两不误',
tip: '帮您年增值50万' // tip: '帮您年增值50万'
}, // },
{ // {
title: '精品售中升级', // title: '精品售中升级',
message: '驻店升级转化精品——帮助门店新车流量托管式增值变现', // message: '驻店升级转化精品——帮助门店新车流量托管式增值变现',
tip: '帮门店年度产值增加70W+' // tip: '帮门店年度产值增加70W+'
}, // },
{ // {
title: '售后代运营服务', // title: '售后代运营服务',
message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现', // message: '企微魔方帮用户沉淀企微——精准推荐、直播实现复购变现',
tip: '帮您售后产值增加20W/年' // tip: '帮您售后产值增加20W/年'
} // }
] // ]
} }
}, },
methods: { methods: {
toShowCase(index) { // toShowCase(index) {
this.currentClickIndex = index // this.currentClickIndex = index
this.$refs[`animation${index + 1}`].style.opacity = 1 // this.$refs[`animation${index + 1}`].style.opacity = 1
this.$refs[`animation${index + 1}`].style['z-index'] = 20 // this.$refs[`animation${index + 1}`].style['z-index'] = 20
}, // },
closeAnimation() { // closeAnimation() {
let index = this.currentClickIndex // let index = this.currentClickIndex
this.$refs[`animation${index + 1}`].style.opacity = 0 // this.$refs[`animation${index + 1}`].style.opacity = 0
this.$refs[`animation${index + 1}`].style['z-index'] = -999 // this.$refs[`animation${index + 1}`].style['z-index'] = -999
}, // },
computed() {} // computed() {}
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.flex-fac { // .flex-fac {
display: flex; // display: flex;
flex-direction: column; // flex-direction: column;
align-items: center; // align-items: center;
} // }
.flex-fsc { // .flex-fsc {
display: flex; // display: flex;
} // }
.header_widget { // .header_widget {
.title { // .title {
font-size: 20px; // font-size: 20px;
color: blue; // color: blue;
} // }
} // }
.fc_widget { // .fc_widget {
margin-top: 16px; // margin-top: 16px;
display: flex; // display: flex;
justify-content: space-between; // justify-content: space-between;
position: relative; // position: relative;
.fc_wrapper { // .fc_wrapper {
flex: 1; // flex: 1;
height: 200px; // height: 200px;
background: #fff; // background: #fff;
border-radius: 16px; // border-radius: 16px;
margin: 0 16px; // margin: 0 16px;
position: relative; // position: relative;
padding: 20px 0; // padding: 20px 0;
.title { // .title {
font-size: 20px; // font-size: 20px;
color: #333; // color: #333;
} // }
.btn { // .btn {
width: 60%; // width: 60%;
position: absolute; // position: absolute;
bottom: 20px; // bottom: 20px;
left: 50%; // left: 50%;
transform: translate(-50%, 0); // transform: translate(-50%, 0);
padding: 8px 11px; // padding: 8px 11px;
background: rgb(148, 142, 142); // background: rgb(148, 142, 142);
border-radius: 12px; // border-radius: 12px;
font-size: 15px; // font-size: 15px;
cursor: pointer; // cursor: pointer;
display: flex; // display: flex;
justify-content: space-around; // justify-content: space-around;
.btn_go { // .btn_go {
margin-left: 10px; // margin-left: 10px;
} // }
} // }
} // }
.animation_one { // .animation_one {
position: absolute; // position: absolute;
left: 0; // left: 0;
right: 0; // right: 0;
top: 0; // top: 0;
bottom: 0; // bottom: 0;
opacity: 0; // opacity: 0;
z-index: -999; // z-index: -999;
.close_icon { // .close_icon {
position: absolute; // position: absolute;
right: 10px; // right: 10px;
top: 10px; // top: 10px;
cursor: pointer; // cursor: pointer;
color: #999; // color: #999;
z-index: 999; // z-index: 999;
} // }
.content_wrap { // .content_wrap {
flex: 1; // flex: 1;
background: #fff; // background: #fff;
.bg { // .bg {
width: 110px; // width: 110px;
height: 100px; // height: 100px;
} // }
} // }
.content_two_wrap { // .content_two_wrap {
flex: 1; // flex: 1;
background: rgb(204, 197, 102); // background: rgb(204, 197, 102);
} // }
.bg2 { // .bg2 {
background: greenyellow; // background: greenyellow;
} // }
} // }
} // }
.line_widget { // .line_widget {
width: 100%; // width: 100%;
text-align: center; // text-align: center;
font-size: 20px; // font-size: 20px;
margin-top: 20px; // margin-top: 20px;
} // }
.echart_wrapper{ // .echart_wrapper{
height: 250px; // height: 250px;
padding: 20px; // padding: 20px;
} // }
</style> </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 \ No newline at end of file
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
routerMethod: method, routerMethod: method,
currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1, currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10, pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10,
merchantId: 44209532 merchantId,
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.tabletotal1 = res.total 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 \ No newline at end of file
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
judgeOpen() { judgeOpen() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// this.bengintime = utils.dateFormat(openInfo.openDate) // this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = '2020-01-01' this.bengintime = this.$defaultStartDate
this.endtime = utils.dateFormat(new Date()) this.endtime = utils.dateFormat(new Date())
this.orderDataInfo() this.orderDataInfo()
}, },
......
...@@ -72,10 +72,11 @@ export default { ...@@ -72,10 +72,11 @@ export default {
orderAll() { orderAll() {
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate) this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = this.$defaultStartDate
let method = orderTotalOfJT() let method = orderTotalOfJT()
let para = { let para = {
routerMethod: method, routerMethod: method,
beginDateStr: '2020-01-01', beginDateStr: this.bengintime,
endDateStr: this.today, endDateStr: this.today,
reportType: 2, reportType: 2,
orderByType: 1 //1 分账 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!