diff --git a/src/App.vue b/src/App.vue index b27ebb1..5795151 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,6 +14,8 @@ import Header from "@/components/Header.vue" \ No newline at end of file diff --git a/src/view/finance.vue b/src/view/finance.vue index 21ab563..570c35f 100644 --- a/src/view/finance.vue +++ b/src/view/finance.vue @@ -4,16 +4,113 @@
-
提现记录
-
资金记录
-
账单管理
+
提现记录
+
资金记录
+
账单管理
-
- +
+ + +
+ + +
+ + +
+
+ 日账单 + 2011.11-06 + + 关闭 +
+ +
+ 订单收入总金额: 16.6 + 2笔 +
+
+ +
+ 订单支付: 16.6 + 2笔 +
+
+ 返回优惠券补贴: 16.6 + 2笔 +
+
+ 返回会员优惠券补贴: 16.6 + 2笔 +
+
+
+ 充值金额: 5000 2笔 +
+
+ 支出总金额: 5000 2笔 +
+ + + +
+ +
+ 应付商户金额 16.6 + 2笔 +
+
+ 佣金 16.6 + 2笔 +
+
+ 返回手续费 16.6 + 2笔 +
+
+ + + + +
+ +
+ 优惠券补贴 16.6 + 2笔 +
+
+ 会员优惠券补贴 16.6 + 2笔 +
+
+ 返回手续费 16.6 + 2笔 +
+
+
+ 平台手续费收入总金额: 16.6 元 +
+
+
+ +
+ +
@@ -25,12 +122,77 @@ import { ref, reactive, onMounted } from "vue" import { useRouter } from 'vue-router' const route = useRouter() - const ShwostoreType = ref(false) -const test = () => { - console.log(6) +const changeTable = (type) => { + headerIndex.value = type + addConfigHead() + a(configList[headerIndex.value], congigData[headerIndex.value]) } +const congigData = reactive( + [ + { + d: [`
排序
`, + `
排sd序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`,], + q: [`
排序
`, + `
排sd序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`,] + }, + { + d: [`
排序
`, + `
排sd序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + ], + q: [`
排序
`, + `
排sd序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
排序
`, + ] + }, + { + d: [`
排序
`, + `
排sd序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
详情
`, + ], + q: [`
排序
`, + `
排sd序
`, + `
排序
`, + `
排序
`, + `
排序
`, + `
详情
`, + ] + } + ] + + +) const hdClick = (e) => { if (e.columnIndex == 10) { // route.push('/storeLogin') @@ -39,47 +201,15 @@ const hdClick = (e) => { } -const a = (aaa) => { + + +const a = (aaa, data) => { for (let i = 0; i < 100; i++) { if (i % 2 == 0) { - aaa.data.push( - [ - `
排序
`, - `
排sd序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - ] - ) + aaa.data.push(data.d) } else { - aaa.data.push( - [ - `
排序
`, - `
排sd序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - `
排序
`, - ] - - - ) + aaa.data.push(data.q) } - - } } const configs = reactive({ @@ -88,24 +218,68 @@ const configs = reactive({ evenRowBGC: "", rowNum: 20, header: [ - `
序号
`, - `
二维码
`, - `
用户信息
`, - `
用户UID
`, - `
户名
`, - `
提现金额
`, - `
提现方式
`, - `
银行名称
`, - `
账号
`, - `
审核状态
`, - `
拒绝原因
`, - `
添加时间
`, ], data: [ ] }) +const configs1 = reactive({ + headerBGC: "linear-gradient(to right, #ff0000, #00ff00)", + oddRowBGC: '', + evenRowBGC: "", + rowNum: 20, + header: [ + + ], + data: [ + ] +}) +const configs2 = reactive({ + headerBGC: "linear-gradient(to right, #ff0000, #00ff00)", + oddRowBGC: '', + evenRowBGC: "", + rowNum: 20, + header: [ + + ], + data: [ + ] +}) + +const headerIndex = ref(0) +const configList = reactive([configs, configs1, configs2]) +const headerList = [ + ['序号', '二维码', '用户信息', '用户UID', '户名', '提现金额', '提现方式', '银行名称', '账号', '审核状态', '拒绝原因', '添加时间'], + ['会员ID', '昵称', '金额', '明细类型', '备注', '创建时间'], + ['序号', '日期', '账期内收入', '账期内支出', '平台入账金额', '操作'], + +] +const addConfigHead = () => { + configList[headerIndex.value].header.splice(0, 9999) + headerList[headerIndex.value].forEach(item => { + configList[headerIndex.value].header.push( + `
${item}
` + ) + }) + + + +} + + +// 详情弹窗 +const showPop = ref(false) +const hdClick3 = (e) => { + if (e.columnIndex == 5) { + showPop.value = true + } + +} + + + onMounted(() => { - a(configs) + a(configs, congigData[headerIndex.value]) + addConfigHead() }) @@ -127,6 +301,7 @@ onMounted(() => { transform: translate(-50%, -50%); // background-color: #fff; box-sizing: border-box; + // cursor: pointer; .content { width: 100%; @@ -138,6 +313,9 @@ onMounted(() => { .btns { display: flex; + z-index: 999999; + position: relative; + cursor: pointer; .btn { color: white; @@ -172,8 +350,78 @@ onMounted(() => { padding: 0 !important; } +.pop { + position: absolute; + z-index: 99999999999999; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 35vw; + height: 40vh; + + .pop-content { + // background-color: #fff; + width: 85%; + height: 85%; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + font-size: 12px; + + .pop-content-head { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 2vh; + + } + + .off { + padding: 0 1vw; + border: 1px solid white; + border-radius: 1vw; + color: white; + cursor: pointer; + font-size: 14px; + } + .pop-li { + margin-top: 1vh; + color: white; + border-bottom: 1px solid #43BEE2; + padding-bottom: .5vh; -.row {} + .price { + color: #8F4C46; + font-size: 16px; + } + } + + } +} + +.gradient-text { + font-family: 'FZCYJ'; + + // background: linear-gradient(to bottom, #C6F2FB); + color: #C6F2FB; + font-size: 16px; + // -webkit-background-clip: text; + // -webkit-text-fill-color: transparent; + // font-size: 48px; + // font-weight: bold; +} + +.v-enter-active, +.v-leave-active { + transition: opacity 0.5s ease; +} + +.v-enter-from, +.v-leave-to { + opacity: 0; + +} \ No newline at end of file diff --git a/src/view/index.vue b/src/view/index.vue index 61f7bfc..29cefa9 100644 --- a/src/view/index.vue +++ b/src/view/index.vue @@ -25,14 +25,24 @@
+
+
+
-
- - +
+ + +
+
+
+
-
- - +
+ + +
+
+
@@ -536,4 +546,151 @@ onMounted(() => { background: linear-gradient(to right, #455CCC, #51C2E0); transition: width 0.5s ease-in-out; } + +.bubble { + width: 5px; + height: 5px; + background-color: white; + position: absolute; + border-radius: 50%; + top: 7vh; + animation-name: bubbleAnimation; + animation-duration: 1s; + animation-iteration-count: infinite; +} + +.bubble1 { + width: 5px; + height: 5px; + background-color: white; + position: absolute; + border-radius: 50%; + top: 7vh; + left: 6.5vw; + animation-name: bubbleAnimation; + animation-duration: 1.5s; + animation-iteration-count: infinite; +} + +.bubble2 { + width: 5px; + height: 5px; + background-color: white; + position: absolute; + border-radius: 50%; + top: 7vh; + left: 8.5vw; + animation-name: bubbleAnimation; + animation-duration: 1.25s; + animation-iteration-count: infinite; +} + + +@keyframes bubbleAnimation { + 0% { + top: 7vh; + // opacity: 0; + transform: scale(0); + } + + 25% { + top: 6.5vh; + opacity: 1; + transform: scale(0.55); + + + } + + 50% { + top: 6vh; + opacity: 1; + transform: scale(0.5); + + // left: 5vw; + } + + 75% { + transform: scale(1); + top: 5vh; + opacity: 1; + } + + 100% { + + top: 4vh; + opacity: 0; + } +} + +@keyframes bubbleAnimation1 { + 0% { + top: 7vh; + // opacity: 0; + transform: scale(0); + } + + 25% { + top: 6.5vh; + opacity: 1; + transform: scale(0.55); + + + } + + 50% { + top: 6vh; + opacity: 1; + transform: scale(0.5); + + // left: 5vw; + } + + 75% { + transform: scale(1); + top: 5vh; + opacity: 1; + } + + 100% { + + top: 4vh; + opacity: 0; + } +} + +@keyframes bubbleAnimation2 { + 0% { + top: 7vh; + // opacity: 0; + transform: scale(0); + } + + 25% { + top: 6.5vh; + opacity: 1; + transform: scale(0.55); + + + } + + 50% { + top: 6vh; + opacity: 1; + transform: scale(0.5); + + // left: 5vw; + } + + 75% { + transform: scale(1); + top: 5vh; + opacity: 1; + } + + 100% { + + top: 4vh; + opacity: 0; + } +} \ No newline at end of file diff --git a/src/view/option.js b/src/view/option.js index c6d87b8..c97c261 100644 --- a/src/view/option.js +++ b/src/view/option.js @@ -1,582 +1,652 @@ import * as echarts from 'echarts'; let angle = 0;//角度,用来做简单的动画效果的 - let value = 78; //图上角度数据 - let result = [ - { name: '制造业', value: 5713,itemStyle: {color: '#FF7734'}}, - { name: '信息传输、软件和信息技术服务业', value: 3022 ,itemStyle: {color: '#FFC700'}}, - { name: '科学研究和技术服务业', value: 2647 ,itemStyle: {color: '#34FFE7'}}, - { name: '金融业', value: 2291 }, - { name: '批发和零售业', value: 1946 }, - { name: '交通运输、仓储和邮政业', value: 1812 }, - { name: '教育', value: 1756 }, - { name: '建筑业', value: 1712 }, - { name: '房地产业', value: 1666 }, - { name: '水利、环境和公共设施管理业', value: 1621 } +let value = 78; //图上角度数据 +let result = [ + { name: '制造业', value: 5713, itemStyle: { color: '#FF7734' } }, + { name: '信息传输、软件和信息技术服务业', value: 3022, itemStyle: { color: '#FFC700' } }, + { name: '科学研究和技术服务业', value: 2647, itemStyle: { color: '#34FFE7' } }, + { name: '金融业', value: 2291 }, + { name: '批发和零售业', value: 1946 }, + { name: '交通运输、仓储和邮政业', value: 1812 }, + { name: '教育', value: 1756 }, + { name: '建筑业', value: 1712 }, + { name: '房地产业', value: 1666 }, + { name: '水利、环境和公共设施管理业', value: 1621 } ] -const optins={ +const optins = { - /******首页***********/ - // 用户图表 - userChartOption : { - color:[ - new echarts.graphic.LinearGradient(0, 1, 0, 0, [ - { offset: 1, color: 'transparent' }, - { offset: 0, color: '#0081C3' }, - ]) - , new echarts.graphic.LinearGradient(0, 1, 0, 0, [ - { offset: 1, color: 'transparent' }, - { offset: 0, color: '#3E54BF' }, - ]) , new echarts.graphic.LinearGradient(0, 1, 0, 0, [ - { offset: 1, color: 'transparent' }, - { offset: 0, color: '#4DBFD9' }, - ]) , - ], - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow' - } - }, - // color: transparent; - - legend: {}, - grid: { - left: '3%', - right: '4%', - bottom: '3%', - containLabel: true - }, - xAxis: [ - { - type: 'category', - data: ['11.01', '11-02', '11-03', '11-04', '11-05',] - } - ], - yAxis: [ - { - type: 'value', - splitLine:{ - show:true, - lineStyle:{ - type:'dashed',//背景色为虚线, - color:'#256980' - } - } - - }, - - ], - series: [ - { - name: '新增用户数量', - type: 'bar', - emphasis: { - focus: 'series' - }, - data: [320, 332, 301, 334, 390, 330, 320], - itemStyle: { - borderWidth: 1, - borderColor: "#384FB4", - }, - - backgroundStyle: { - color: ['red'] - } - }, - { - name: '访问用户数量', - type: 'bar', - emphasis: { - focus: 'series' - }, - data: [120, 132, 101, 134, 90, 230, 210], - itemStyle: { - borderWidth: 1, - borderColor: "#3E54BF", - }, - }, - { - name: '累计用户数量', - type: 'bar', - emphasis: { - focus: 'series' - }, - data: [220, 182, 191, 234, 290, 330, 310], - itemStyle: { - borderWidth: 1, - borderColor: "#4EC1DB", - }, - }, - - ] + /******首页***********/ + // 用户图表 + userChartOption: { + color: [ + new echarts.graphic.LinearGradient(0, 1, 0, 0, [ + { offset: 1, color: 'transparent' }, + { offset: 0, color: '#0081C3' }, + ]) + , new echarts.graphic.LinearGradient(0, 1, 0, 0, [ + { offset: 1, color: 'transparent' }, + { offset: 0, color: '#3E54BF' }, + ]), new echarts.graphic.LinearGradient(0, 1, 0, 0, [ + { offset: 1, color: 'transparent' }, + { offset: 0, color: '#4DBFD9' }, + ]), + ], + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + }, }, - // 地方店铺数量统计 - storeNum:{ - backgroundColor:"#061740", - title: { - text: '{a|'+ 70 +'}{c|%}', - x: 'center', - y: 'center', - textStyle: { - rich:{ - a: { - fontSize: 10, - color: '#ffffff', - fontWeight: 'bold' - }, - c: { - fontSize: 10, - color: '#ffffff', - fontWeight: 'normal' - } - } - } - }, - series: [ - //内环 - { - name: "", - type: 'custom', - coordinateSystem: "none", - renderItem: function(params, api) { - return { - type: 'arc', - shape: { - cx: api.getWidth() / 2, - cy: api.getHeight() / 2, - r: Math.min(api.getWidth(), api.getHeight()) / 2.3 * 0.65, - startAngle: (0+-angle) * Math.PI / 180, - endAngle: (360+-angle) * Math.PI / 180 - }, - style: { - stroke: "#0CD3DB", - fill: "transparent", - lineWidth: 0.5 - }, - silent: true - }; - }, - data: [0] - }, - //外环 - { - name: '', - type: 'pie', - radius: ['85%', '70%'], - silent: true, - clockwise: true, - startAngle: 90, - z: 0, - zlevel: 0, - label: { - normal: { - position: "center", - } - }, - data: [ - { - value: 60, - name: "", - itemStyle: { - normal: { - //外环发光 - borderWidth: 0.5, - shadowBlur: 20, - borderColor: '#4bf3f9', - shadowColor: '#9bfeff', - color: { // 圆环的颜色 - colorStops: [{ - offset: 0, - color: '#4bf3f9', // 0% 处的颜色 - }, { - offset: 1, - color: '#4bf3f9', // 100% 处的颜色 - }] - }, - } - } - }, - { - value: 100-70, - name: "", - label: { - normal: { - show: false - } - }, - itemStyle: { - normal: { - color: "#173164" - } - } - } - ] - }, - ] + // color: transparent; + + legend: { + textStyle: { + color: "white" + } + + }, - // 成交用户统计信息表 - - transactionUsers : { - color: ['#015989', '#583936', '#416979'], - title: { - text: '' - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross', - label: { - backgroundColor: '#6a7985' - } - } - }, - legend: { - data: ['访客人数', '下单人数', '支付人数', 'Line 4', 'Line 5'] - // data: ['访客人数','下单人数','支付人数'] - - }, - // toolbox: { - // feature: { - // saveAsImage: {} - // } - // }, - grid: { - left: '3%', - right: '4%', - bottom: '3%', - containLabel: true - }, - xAxis: [ - { - type: 'category', - boundaryGap: false, - data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] - } - ], - yAxis: [ - { - type: 'value', - splitLine:{ - show:true, - lineStyle:{ - type:'dashed',//背景色为虚线, - color:'#256980' - } - } - } - ], - series: [ - { - name: '访客人数', - type: 'line', - stack: 'Total', - smooth: true, - lineStyle: { - width: 0 - }, - showSymbol: false, - areaStyle: { - opacity: 0.8, - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: '#18394A' - }, - { - offset: 1, - color: '#2885A4' - } - ]) - }, - emphasis: { - focus: 'series' - }, - data: [140, 232, 101, 264, 90, 340, 250] - }, - { - name: '下单人数', - type: 'line', - stack: 'Total', - smooth: true, - lineStyle: { - width: 0 - }, - showSymbol: false, - areaStyle: { - opacity: 0.8, - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: '#004367' - }, - { - offset: 1, - color: '#005886' - } - ]) - }, - emphasis: { - focus: 'series' - }, - data: [120, 282, 111, 234, 220, 340, 310] - }, - { - name: '支付人数', - type: 'line', - stack: 'Total', - smooth: true, - lineStyle: { - width: 0 - }, - showSymbol: false, - areaStyle: { - opacity: 0.8, - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: '#5A3A37' - }, - { - offset: 1, - color: '#355969' - } - ]) - }, - emphasis: { - focus: 'series' - }, - data: [320, 132, 201, 334, 190, 130, 220] - }, - - - ] - }, - - /*******townDetail**********/ - // 订单金额 - orderAmount:{ - color:[ - new echarts.graphic.LinearGradient(0, 1, 0, 0, [ - { offset: 1, color: '#57D3ED' }, - { offset: 0, color: 'transparent' }, - ]) - , new echarts.graphic.LinearGradient(0, 1, 0, 0, [ - { offset: 1, color: '#4156C2' }, - { offset: 0, color: 'transparent' }, - ]) - ], - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'shadow' - } - }, - // color: transparent; - - legend: {}, - grid: { - left: '3%', - right: '4%', - bottom: '3%', - containLabel: true - }, - xAxis: [ - { - type: 'category', - data: ['0-4时', '4-8时', '8-12时', '12-16时', '16-20时','20-0时'] - } - ], - yAxis: [ - { - type: 'value', - splitLine:{ - show:true, - lineStyle:{ - type:'dashed',//背景色为虚线, - color:'#256980' - } - } - - }, - - ], - series: [ - { - name: '昨日订单额', - type: 'bar', - emphasis: { - focus: 'series' - }, - data: [320, 332, 301, 334, 390, 330, 322,222], - // itemStyle: { - // borderWidth: 1, - // borderColor: "#384FB4", - // }, - - backgroundStyle: { - color: ['red'] - } - }, - { - name: '今日订单额', - type: 'bar', - emphasis: { - focus: 'series' - }, - data: [120, 132, 101, 134, 90, 230, 210,366], - - }, - - - ] - - - - - + grid: { + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true }, - // 成交用户数据 - transactionUsersTown : { - color: ['#015989', '#583936', '#416979'], - title: { - text: '' - }, - tooltip: { - trigger: 'axis', - axisPointer: { - type: 'cross', - label: { - backgroundColor: '#6a7985' + xAxis: [ + { + type: 'category', + data: ['11.01', '11-02', '11-03', '11-04', '11-05',] + } + ], + yAxis: [ + { + type: 'value', + splitLine: { + show: true, + lineStyle: { + type: 'dashed',//背景色为虚线, + color: '#256980' } } + }, - legend: { - data: ['访客人数', '下单人数', '支付人数', ] + + ], + series: [ + { + name: '新增用户数量', + type: 'bar', + emphasis: { + focus: 'series' + }, + data: [320, 332, 301, 334, 390, 330, 320], + itemStyle: { + borderWidth: 1, + borderColor: "#384FB4", + }, + + backgroundStyle: { + color: ['red'] + } + }, + { + name: '访问用户数量', + type: 'bar', + emphasis: { + focus: 'series' + }, + data: [120, 132, 101, 134, 90, 230, 210], + itemStyle: { + borderWidth: 1, + borderColor: "#3E54BF", + }, + }, + { + name: '累计用户数量', + type: 'bar', + emphasis: { + focus: 'series' + }, + data: [220, 182, 191, 234, 290, 330, 310], + itemStyle: { + borderWidth: 1, + borderColor: "#4EC1DB", + }, + }, + + ] + }, + // 地方店铺数量统计 + storeNum: { + backgroundColor: "#061740", + title: { + text: '{a|' + 70 + '}{c|%}', + x: 'center', + y: 'center', + textStyle: { + rich: { + a: { + fontSize: 10, + color: '#ffffff', + fontWeight: 'bold' + }, + c: { + fontSize: 10, + color: '#ffffff', + fontWeight: 'normal' + } + } + } + }, + series: [ + //内环 + { + name: "", + type: 'custom', + coordinateSystem: "none", + renderItem: function (params, api) { + return { + type: 'arc', + shape: { + cx: api.getWidth() / 2, + cy: api.getHeight() / 2, + r: Math.min(api.getWidth(), api.getHeight()) / 2.3 * 0.65, + startAngle: (0 + -angle) * Math.PI / 180, + endAngle: (360 + -angle) * Math.PI / 180 + }, + style: { + stroke: "#0CD3DB", + fill: "transparent", + lineWidth: 0.5 + }, + silent: true + }; + }, + data: [0] + }, + //外环 + { + name: '', + type: 'pie', + radius: ['85%', '70%'], + silent: true, + clockwise: true, + startAngle: 90, + z: 0, + zlevel: 0, + label: { + normal: { + position: "center", + } + }, + data: [ + { + value: 60, + name: "", + itemStyle: { + normal: { + //外环发光 + borderWidth: 0.5, + shadowBlur: 20, + borderColor: '#4bf3f9', + shadowColor: '#9bfeff', + color: { // 圆环的颜色 + colorStops: [{ + offset: 0, + color: '#4bf3f9', // 0% 处的颜色 + }, { + offset: 1, + color: '#4bf3f9', // 100% 处的颜色 + }] + }, + } + } + }, + { + value: 100 - 70, + name: "", + label: { + normal: { + show: false + } + }, + itemStyle: { + normal: { + color: "#173164" + } + } + } + ] + }, + ] + }, + // 成交用户统计信息表 + + transactionUsers: { + color: ['#015989', '#583936', '#416979'], + title: { + text: '' + }, + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross', + label: { + backgroundColor: '#6a7985' + } + } + }, + legend: { + data: ['访客人数', '下单人数', '支付人数'], + textStyle: { + color: "white" + } // data: ['访客人数','下单人数','支付人数'] - }, - // toolbox: { - // feature: { - // saveAsImage: {} - // } - // }, - grid: { - left: '3%', - right: '4%', - bottom: '3%', - containLabel: true - }, - xAxis: [ - { - type: 'category', - boundaryGap: false, - data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] - } - ], - yAxis: [ - { - type: 'value', - splitLine:{ - show:true, - lineStyle:{ - type:'dashed',//背景色为虚线, - color:'#256980' - } - } - } - ], - series: [ - { - name: '访客人数', - type: 'line', - stack: 'Total', - smooth: true, - lineStyle: { - width: 0 - }, - showSymbol: false, - areaStyle: { - opacity: 0.8, - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: '#18394A' - }, - { - offset: 1, - color: '#2885A4' - } - ]) - }, - emphasis: { - focus: 'series' - }, - data: [140, 232, 101, 264, 90, 340, 250] - }, - { - name: '下单人数', - type: 'line', - stack: 'Total', - smooth: true, - lineStyle: { - width: 0 - }, - showSymbol: false, - areaStyle: { - opacity: 0.8, - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: '#2752A6' - }, - { - offset: 1, - color: '#005886' - } - ]) - }, - emphasis: { - focus: 'series' - }, - data: [120, 282, 111, 234, 220, 340, 310] - }, - { - name: '支付人数', - type: 'line', - stack: 'Total', - smooth: true, - lineStyle: { - width: 0 - }, - showSymbol: false, - areaStyle: { - opacity: 0.8, - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: '#005685' - }, - { - offset: 1, - color: '#355969' - } - ]) - }, - emphasis: { - focus: 'series' - }, - data: [320, 132, 201, 334, 190, 130, 220] - }, - - - ] }, + // toolbox: { + // feature: { + // saveAsImage: {} + // } + // }, + grid: { + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true + }, + xAxis: [ + { + type: 'category', + boundaryGap: false, + data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] + } + ], + yAxis: [ + { + type: 'value', + splitLine: { + show: true, + lineStyle: { + type: 'dashed',//背景色为虚线, + color: '#256980' + } + } + } + ], + series: [ + { + name: '访客人数', + type: 'line', + stack: 'Total', + smooth: true, + lineStyle: { + width: 0 + }, + showSymbol: false, + areaStyle: { + opacity: 0.8, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#18394A' + }, + { + offset: 1, + color: '#2885A4' + } + ]) + }, + emphasis: { + focus: 'series' + }, + data: [140, 232, 101, 264, 90, 340, 250] + }, + { + name: '下单人数', + type: 'line', + stack: 'Total', + smooth: true, + lineStyle: { + width: 0 + }, + showSymbol: false, + areaStyle: { + opacity: 0.8, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#004367' + }, + { + offset: 1, + color: '#005886' + } + ]) + }, + emphasis: { + focus: 'series' + }, + data: [120, 282, 111, 234, 220, 340, 310] + }, + { + name: '支付人数', + type: 'line', + stack: 'Total', + smooth: true, + lineStyle: { + width: 0 + }, + showSymbol: false, + areaStyle: { + opacity: 0.8, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#5A3A37' + }, + { + offset: 1, + color: '#355969' + } + ]) + }, + emphasis: { + focus: 'series' + }, + data: [320, 132, 201, 334, 190, 130, 220] + }, + + + ] + }, + + /*******townDetail**********/ + // 订单金额 + orderAmount: { + color: [ + new echarts.graphic.LinearGradient(0, 1, 0, 0, [ + { offset: 1, color: '#57D3ED' }, + { offset: 0, color: 'transparent' }, + ]) + , new echarts.graphic.LinearGradient(0, 1, 0, 0, [ + { offset: 1, color: '#4156C2' }, + { offset: 0, color: 'transparent' }, + ]) + ], + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + } + }, + // color: transparent; + + legend: {}, + grid: { + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true + }, + xAxis: [ + { + type: 'category', + data: ['0-4时', '4-8时', '8-12时', '12-16时', '16-20时', '20-0时'] + } + ], + yAxis: [ + { + type: 'value', + splitLine: { + show: true, + lineStyle: { + type: 'dashed',//背景色为虚线, + color: '#256980' + } + } + + }, + + ], + series: [ + { + name: '昨日订单额', + type: 'bar', + emphasis: { + focus: 'series' + }, + data: [320, 332, 301, 334, 390, 330, 322, 222], + // itemStyle: { + // borderWidth: 1, + // borderColor: "#384FB4", + // }, + + backgroundStyle: { + color: ['red'] + } + }, + { + name: '今日订单额', + type: 'bar', + emphasis: { + focus: 'series' + }, + data: [120, 132, 101, 134, 90, 230, 210, 366], + + }, + + + ] + + + + + + }, + // 成交用户数据 + transactionUsersTown: { + color: ['#015989', '#583936', '#416979'], + title: { + text: '' + }, + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross', + label: { + backgroundColor: '#6a7985' + } + } + }, + legend: { + data: ['访客人数', '下单人数', '支付人数',] + // data: ['访客人数','下单人数','支付人数'] + + }, + // toolbox: { + // feature: { + // saveAsImage: {} + // } + // }, + grid: { + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true + }, + xAxis: [ + { + type: 'category', + boundaryGap: false, + data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] + } + ], + yAxis: [ + { + type: 'value', + splitLine: { + show: true, + lineStyle: { + type: 'dashed',//背景色为虚线, + color: '#256980' + } + } + } + ], + series: [ + { + name: '访客人数', + type: 'line', + stack: 'Total', + smooth: true, + lineStyle: { + width: 0 + }, + showSymbol: false, + areaStyle: { + opacity: 0.8, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#18394A' + }, + { + offset: 1, + color: '#2885A4' + } + ]) + }, + emphasis: { + focus: 'series' + }, + data: [140, 232, 101, 264, 90, 340, 250] + }, + { + name: '下单人数', + type: 'line', + stack: 'Total', + smooth: true, + lineStyle: { + width: 0 + }, + showSymbol: false, + areaStyle: { + opacity: 0.8, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#2752A6' + }, + { + offset: 1, + color: '#005886' + } + ]) + }, + emphasis: { + focus: 'series' + }, + data: [120, 282, 111, 234, 220, 340, 310] + }, + { + name: '支付人数', + type: 'line', + stack: 'Total', + smooth: true, + lineStyle: { + width: 0 + }, + showSymbol: false, + areaStyle: { + opacity: 0.8, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: '#005685' + }, + { + offset: 1, + color: '#355969' + } + ]) + }, + emphasis: { + focus: 'series' + }, + data: [320, 132, 201, 334, 190, 130, 220] + }, + + + ] + }, + // 订单数据 + orderData: { + + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + } + }, + legend: {}, + grid: { + left: '3%', + right: '4%', + bottom: '3%', + containLabel: true + }, + xAxis: { + type: 'value', + boundaryGap: [0, 0.01], + splitLine: { + show: true, + lineStyle: { + type: 'dashed',//背景色为虚线, + color: '#256980' + } + } + }, + yAxis: { + type: 'category', + data: ['当日订单数', '当月订单数'], + + }, + series: [ + { + barWidth: 15, + barGap: '1000%',/*多个并排柱子设置柱子之间的间距*/ + barCategoryGap: '100%',/*多个并排柱子设置柱子之间的间距*/ + data: [120, 200], + type: 'bar', + itemStyle: { + normal: { + color: function (params) { + var colorList = [new echarts.graphic.LinearGradient(1, 0, 0, 0, [ + { offset: 1, color: '#0298E5' }, + { offset: 0, color: 'transparent' }, + ]), new echarts.graphic.LinearGradient(1, 0, 0, 0, [ + { offset: 1, color: '#4358C8' }, + { offset: 0, color: 'transparent' }, + ])]; + return colorList[params.dataIndex] + }, + borderColor: ['blue'] + + }, + borderWidth: 2, + borderColor: "red", + }, + + } + ] + } + - } export default optins \ No newline at end of file diff --git a/src/view/order.vue b/src/view/order.vue index e93ac97..da9f4d6 100644 --- a/src/view/order.vue +++ b/src/view/order.vue @@ -7,6 +7,8 @@
订单列表
退款单
核销订单
+ +
订单列表
@@ -15,7 +17,7 @@
- +
@@ -35,20 +37,100 @@ const test = () => { console.log(6) } -const hdClick = (e) => { - if (e.columnIndex == 10) { - // route.push('/storeLogin') +const tableHdClick = (e) => { + + + if (e.ceil) { + if (e.columnIndex == 0) { + // console.log(e.rowIndex) + let tag = document.getElementById(`order${e.rowIndex}`) + let tag2 = document.getElementById(`card${e.rowIndex}`) + tag.style.display = 'none' + tag2.style.display = 'block' + console.log(tag.style.display) + console.log(tag2.style.display) + + } else { + let tag = document.getElementsByClassName(`order`) + let tag2 = document.getElementsByClassName(`card`) + for (let i = 0; i < tag.length; i++) { + tag[i].style.display = 'block' + tag2[i].style.display = 'none' + } + + console.log(tag[0].style.display) + console.log(tag2[0].style.display) + } + + } + } const a = (aaa) => { - for (let i = 0; i < 100; i++) { + for (let i = 0; i < 50; i++) { if (i % 2 == 0) { aaa.data.push( [ - `
排序
`, + `
+
+
+
4554545
+ + + + + + + +
`, `
排sd序
`, `
排序
`, `
排序
`, @@ -63,7 +145,63 @@ const a = (aaa) => { } else { aaa.data.push( [ - `
排序
`, + `
+
+
+
1111
+ + + + + + + +
`, `
排sd序
`, `
排序
`, `
排序
`, @@ -125,6 +263,7 @@ onMounted(() => { transform: translate(-50%, -50%); // background-color: #fff; box-sizing: border-box; + // cursor: pointer; .content { width: 100%; diff --git a/src/view/townDetail.vue b/src/view/townDetail.vue index fce3e5f..6412887 100644 --- a/src/view/townDetail.vue +++ b/src/view/townDetail.vue @@ -37,7 +37,24 @@
+
+
+
+
+
+ 日订单数据 +
+
+
+
+ 日订单数据 +
+
+
+
+ +
@@ -144,42 +161,6 @@ const config3 = reactive({ `
5495
`, ], - // [`
2
`, - // ``, - // `
商品名称
`, - // `
`, - // `
5495
`, - - - // ], - // [`
3
`, - // ``, - // `
商品名称
`, - // `
`, - // `
5495
`, - - // ], - // [`
4
`, - // ``, - // `
商品名称
`, - // `
`, - // `
5495
`, - - // ], - // [`
5
`, - // ``, - // `
商品名称
`, - // `
`, - // `
5495
`, - - // ], - // [`
6
`, - // ``, - // `
商品名称
`, - // `
`, - // `
5495
`, - - // ], ] } @@ -194,9 +175,16 @@ const initCharts = (tag, option) => { } onMounted(() => { + document.getElementById("orderData").removeAttribute('_echarts_instance_'); + document.getElementById("orderData2").removeAttribute('_echarts_instance_'); + document.getElementById("user").removeAttribute('_echarts_instance_'); + document.getElementById("orderAmount").removeAttribute('_echarts_instance_'); + document.getElementById("transactionUsers").removeAttribute('_echarts_instance_'); initCharts('user', option.userChartOption) initCharts('orderAmount', option.orderAmount) initCharts('transactionUsers', option.transactionUsersTown) + initCharts('orderData', option.orderData) + initCharts('orderData2', option.orderData) }) @@ -315,6 +303,32 @@ onMounted(() => { height: 46vh; position: relative; + .order-data { + width: 100%; + height: 100%; + box-sizing: border-box; + padding-right: 1vw; + position: relative; + + .tit { + position: absolute; + color: white; + // background-color: #fff; + top: 5vh; + width: 100%; + font-size: 10px; + display: flex; + justify-content: space-around; + + .gradient-circle { + width: 10px; + height: 10px; + background: radial-gradient(at top left, transparent, #029BE9); + border-radius: 50%; + } + } + } + } } diff --git a/static/finance/TC.png b/static/finance/TC.png new file mode 100644 index 0000000..c3fecd3 Binary files /dev/null and b/static/finance/TC.png differ diff --git a/static/font/font.css b/static/font/font.css new file mode 100644 index 0000000..05af72f --- /dev/null +++ b/static/font/font.css @@ -0,0 +1,6 @@ +@font-face { + font-family: 'FZCYJ'; + src: url('ifonts.ttf'); + font-weight: normal; + font-style: normal; +} diff --git a/static/font/ifonts.ttf b/static/font/ifonts.ttf new file mode 100644 index 0000000..8c44db6 Binary files /dev/null and b/static/font/ifonts.ttf differ diff --git a/static/index/DW.png b/static/index/DW.png new file mode 100644 index 0000000..b17048a Binary files /dev/null and b/static/index/DW.png differ diff --git a/static/index/GJ.png b/static/index/GJ.png new file mode 100644 index 0000000..b7e42e3 Binary files /dev/null and b/static/index/GJ.png differ diff --git a/static/index/PHSJK.png b/static/index/PHSJK.png new file mode 100644 index 0000000..1a71a90 Binary files /dev/null and b/static/index/PHSJK.png differ diff --git a/static/index/中间图标2_3.png b/static/index/SDTB.png similarity index 100% rename from static/index/中间图标2_3.png rename to static/index/SDTB.png diff --git a/static/index/中间展示框背景3.png b/static/index/SPBGR.png similarity index 100% rename from static/index/中间展示框背景3.png rename to static/index/SPBGR.png diff --git a/static/index/中间展示框背景2.png b/static/index/SPBGZ.png similarity index 100% rename from static/index/中间展示框背景2.png rename to static/index/SPBGZ.png diff --git a/static/storeLogin/SPFKPH.png b/static/storeLogin/SPFKPH.png index 1f47462..5c8799a 100644 Binary files a/static/storeLogin/SPFKPH.png and b/static/storeLogin/SPFKPH.png differ