Commit 3da5c384 authored by 胡冲's avatar 胡冲

互动频次

parent edecb505
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel="icon" href="/h5/favicon.ico"><title>中国国家博物馆历史图鉴学习教育服务平台</title><link href="/h5/css/chunk-vendors.9434c8f9.css" rel="stylesheet"><link href="/h5/css/app.91d68c8d.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but party doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/h5/js/chunk-vendors.ba5981e2.js"></script><script src="/h5/js/app.3713eb2a.js"></script></body></html> <!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel="icon" href="/h5/favicon.ico"><title>中国国家博物馆历史图鉴学习教育服务平台</title><link href="/h5/css/chunk-vendors.9434c8f9.css" rel="stylesheet"><link href="/h5/css/app.91d68c8d.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but party doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/h5/js/chunk-vendors.ba5981e2.js"></script><script src="/h5/js/app.5e5e5c0e.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-322338bd"],{"46ea":function(e,t,s){"use strict";s("e57d")},dd7b:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login-container"},[s("div",{staticClass:"login-bg"}),s("div",{staticClass:"login-page"},[s("div",{staticClass:"login-page-body"},[s("div",{staticClass:"login-page-title"},[e._v("客户端登录")]),s("div",{staticClass:"login-page-form"},[s("van-form",{nativeOn:{submit:function(t){return e.onSubmit(t)}}},[s("van-field",{attrs:{name:"用户名","left-icon":"manager",placeholder:"请输入用户名",rules:[{required:!0,message:"用户名不能为空"}]},model:{value:e.userInfo.username,callback:function(t){e.$set(e.userInfo,"username",t)},expression:"userInfo.username"}}),s("van-field",{attrs:{type:"password",name:"密码","left-icon":"lock",placeholder:"请输入密码",rules:[{required:!0,message:"密码不能为空"}]},model:{value:e.userInfo.password,callback:function(t){e.$set(e.userInfo,"password",t)},expression:"userInfo.password"}}),s("div",{staticClass:"login-page-button"},[s("van-button",{attrs:{type:"default",block:"","native-type":"submit"}},[e._v("登录")])],1)],1)],1)])])])},n=[],o=s("ed08"),i={data:function(){return{userInfo:{}}},mounted:function(){},methods:{onSubmit:function(){var e=this,t=this,s={password:o["a"].encrypt(this.userInfo.password),username:this.userInfo.username};t.$https({url:"ajaxLogin",method:"post",authType:this.backToken},t.$qs.stringify(s)).then((function(t){if("200"!==t.data.resultCode||"2"!==t.data.user.type&&"4"!==t.data.user.type)"200"!==t.data.resultCode||"2"===t.data.user.type&&"4"===t.data.user.type?e.$toast.fail(t.data.message):e.$toast.fail("您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能");else{var s=t.data;s.isDefault&&e.$notify({type:"warning",message:"登录成功,为了安全,建议修改密码",duration:5e3});var a=+s.user.roleList[0],n=+s.user.type;sessionStorage.setItem("token",s.token),sessionStorage.setItem("userInfo",JSON.stringify(s.user)),17==a||2==a?e.$router.push("/commit"):4==n?e.$router.push("/opt"):e.$toast.fail("您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能")}})).catch((function(e){console.log(e)}))}}},r=i,u=(s("46ea"),s("2877")),l=Object(u["a"])(r,a,n,!1,null,null,null);t["default"]=l.exports},e57d:function(e,t,s){}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-322338bd"],{"46ea":function(e,t,s){"use strict";s("e57d")},dd7b:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login-container"},[s("div",{staticClass:"login-bg"}),s("div",{staticClass:"login-page"},[s("div",{staticClass:"login-page-body"},[s("div",{staticClass:"login-page-title"},[e._v("客户端登录")]),s("div",{staticClass:"login-page-form"},[s("van-form",{nativeOn:{submit:function(t){return e.onSubmit(t)}}},[s("van-field",{attrs:{name:"用户名","left-icon":"manager",placeholder:"请输入用户名",rules:[{required:!0,message:"用户名不能为空"}]},model:{value:e.userInfo.username,callback:function(t){e.$set(e.userInfo,"username",t)},expression:"userInfo.username"}}),s("van-field",{attrs:{type:"password",name:"密码","left-icon":"lock",placeholder:"请输入密码",rules:[{required:!0,message:"密码不能为空"}]},model:{value:e.userInfo.password,callback:function(t){e.$set(e.userInfo,"password",t)},expression:"userInfo.password"}}),s("div",{staticClass:"login-page-button"},[s("van-button",{attrs:{type:"default",block:"","native-type":"submit"}},[e._v("登录")])],1)],1)],1)])])])},n=[],o=s("ed08"),i={data:function(){return{userInfo:{}}},mounted:function(){},methods:{onSubmit:function(){var e=this,t=this,s={password:o["a"].encrypt(this.userInfo.password),username:this.userInfo.username,administrator:2};t.$https({url:"ajaxLogin",method:"post",authType:this.backToken},t.$qs.stringify(s)).then((function(t){if("200"!==t.data.resultCode||"2"!==t.data.user.type&&"4"!==t.data.user.type)"200"!==t.data.resultCode||"2"===t.data.user.type&&"4"===t.data.user.type?e.$toast.fail(t.data.message):e.$toast.fail("您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能");else{var s=t.data;s.isDefault&&e.$notify({type:"warning",message:"登录成功,为了安全,建议修改密码",duration:5e3});var a=+s.user.roleList[0],n=+s.user.type;sessionStorage.setItem("token",s.token),sessionStorage.setItem("userInfo",JSON.stringify(s.user)),17==a||2==a?e.$router.push("/commit"):4==n?e.$router.push("/opt"):e.$toast.fail("您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能")}})).catch((function(e){console.log(e)}))}}},r=i,u=(s("46ea"),s("2877")),l=Object(u["a"])(r,a,n,!1,null,null,null);t["default"]=l.exports},e57d:function(e,t,s){}}]);
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<template> <template>
<div id="dialogBarDemand"></div> <div id="dialogBarDemand"></div>
</template> </template>
<script> <script>
export default { export default {
name: 'demand', name: 'demand',
data() { data() {
return { return {
title:'互动频次' title:'互动频次'
} }
}, },
props:{ props:{
data:{ data:{
type:Object, type:Object,
default:()=>{return {}} default:()=>{return {}}
} }
}, },
mounted() { mounted() {
}, },
methods: { methods: {
init(){ init(){
let option = { let option = {
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis'
}, },
grid: { grid: {
top:20, top:20,
left: '3%', left: '3%',
right: '2%', right: '2%',
bottom: '5%', bottom: '5%',
containLabel: true containLabel: true
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: true,//坐标轴两边留白 boundaryGap: true,//坐标轴两边留白
data: this.data.xAxisData, data: this.data.xAxisData,
axisLabel: { //坐标轴刻度标签的相关设置。 axisLabel: { //坐标轴刻度标签的相关设置。
interval:0, interval:0,
textStyle: { textStyle: {
color: '#FFFFFF', color: '#FFFFFF',
fontStyle: 'normal', fontStyle: 'normal',
fontFamily: '微软雅黑', fontFamily: '微软雅黑',
fontSize: 14, fontSize: 14,
}, },
formatter: function (value, index) { formatter: function (value, index) {
if(value.length > 4){ if(value.length > 4){
return value.slice(0,4)+ '...' return value.slice(0,4)+ '...'
}else { }else {
return value return value
} }
} }
}, },
axisTick:{//坐标轴刻度相关设置。 axisTick:{//坐标轴刻度相关设置。
show: false, show: false,
}, },
axisLine:{//坐标轴轴线相关设置 axisLine:{//坐标轴轴线相关设置
lineStyle:{ lineStyle:{
color:'rgba(98,186,255,0.6)', color:'rgba(98,186,255,0.6)',
type:'solid' type:'solid'
} }
}, },
splitLine: { //坐标轴在 grid 区域中的分隔线。 splitLine: { //坐标轴在 grid 区域中的分隔线。
show: false, show: false,
} }
}, },
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',
name:'单位/次', name:'单位/次',
splitNumber: 5, splitNumber: 5,
max:100, // // max:100,
axisLabel: { // max:this.data.cntList,
textStyle: { axisLabel: {
color: '#FFFFFFFF', textStyle: {
fontStyle: 'normal', color: '#FFFFFFFF',
fontFamily: '微软雅黑', fontStyle: 'normal',
fontSize: 12, fontFamily: '微软雅黑',
}, fontSize: 12,
interval:'auto' },
}, interval:'auto'
axisLine:{ },
show: false axisLine:{
}, show: false
axisTick:{ },
show: false axisTick:{
}, show: false
splitLine: { },
show: true, splitLine: {
lineStyle: { show: true,
color: 'rgba(98,186,255,0.6)', lineStyle: {
type:'dashed' color: 'rgba(98,186,255,0.6)',
} type:'dashed'
} }
}
}
], }
series: [ ],
{ series: [
type: 'bar', {
barWidth: 16, // 柱子宽度 type: 'bar',
itemStyle:{ barWidth: 16, // 柱子宽度
barBorderRadius: 120, // 圆角(左上、右上、右下、左下) itemStyle:{
}, barBorderRadius: 120, // 圆角(左上、右上、右下、左下)
},
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
'rgba(78,255,253,1)', 'rgba(255,74,83,1)' color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
].map((color, offset) => ({ 'rgba(78,255,253,1)', 'rgba(255,74,83,1)'
color, ].map((color, offset) => ({
offset color,
}))), // 渐变 offset
data: this.data.yAxisData }))), // 渐变
} data: this.data.yAxisData
] }
}; ]
let echartsDiv = this.$echarts.init(document.querySelector('#dialogBarDemand')) };
echartsDiv.setOption(option,true) let echartsDiv = this.$echarts.init(document.querySelector('#dialogBarDemand'))
}, echartsDiv.setOption(option,true)
} console.log(option)
} },
</script> }
}
<style lang=scss> </script>
#dialogBarDemand{
width: 100%; <style lang=scss>
height: 16vh; #dialogBarDemand{
margin-top: 0.6rem; width: 100%;
} height: 16vh;
</style> margin-top: 0.6rem;
}
</style>
let baseUrl="/mall/"; let baseUrl="http://111.203.232.175:8088/mall/";
let routerMode='history'; let routerMode='history';
let backToken = "back"; let backToken = "back";
let frontToken = "front"; let frontToken = "front";
export { export {
baseUrl, baseUrl,
backToken, backToken,
frontToken, frontToken,
routerMode routerMode
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment