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>
\ No newline at end of file
<!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
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){}}]);
\ No newline at end of file
(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
This diff is collapsed.
This diff is collapsed.
<template>
<div id="dialogBarDemand"></div>
</template>
<script>
export default {
name: 'demand',
data() {
return {
title:'互动频次'
}
},
props:{
data:{
type:Object,
default:()=>{return {}}
}
},
mounted() {
},
methods: {
init(){
let option = {
tooltip: {
trigger: 'axis'
},
grid: {
top:20,
left: '3%',
right: '2%',
bottom: '5%',
containLabel: true
},
xAxis: {
type: 'category',
boundaryGap: true,//坐标轴两边留白
data: this.data.xAxisData,
axisLabel: { //坐标轴刻度标签的相关设置。
interval:0,
textStyle: {
color: '#FFFFFF',
fontStyle: 'normal',
fontFamily: '微软雅黑',
fontSize: 14,
},
formatter: function (value, index) {
if(value.length > 4){
return value.slice(0,4)+ '...'
}else {
return value
}
}
},
axisTick:{//坐标轴刻度相关设置。
show: false,
},
axisLine:{//坐标轴轴线相关设置
lineStyle:{
color:'rgba(98,186,255,0.6)',
type:'solid'
}
},
splitLine: { //坐标轴在 grid 区域中的分隔线。
show: false,
}
},
yAxis: [
{
type: 'value',
name:'单位/次',
splitNumber: 5,
max:100,
axisLabel: {
textStyle: {
color: '#FFFFFFFF',
fontStyle: 'normal',
fontFamily: '微软雅黑',
fontSize: 12,
},
interval:'auto'
},
axisLine:{
show: false
},
axisTick:{
show: false
},
splitLine: {
show: true,
lineStyle: {
color: 'rgba(98,186,255,0.6)',
type:'dashed'
}
}
}
],
series: [
{
type: 'bar',
barWidth: 16, // 柱子宽度
itemStyle:{
barBorderRadius: 120, // 圆角(左上、右上、右下、左下)
},
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
'rgba(78,255,253,1)', 'rgba(255,74,83,1)'
].map((color, offset) => ({
color,
offset
}))), // 渐变
data: this.data.yAxisData
}
]
};
let echartsDiv = this.$echarts.init(document.querySelector('#dialogBarDemand'))
echartsDiv.setOption(option,true)
},
}
}
</script>
<style lang=scss>
#dialogBarDemand{
width: 100%;
height: 16vh;
margin-top: 0.6rem;
}
</style>
<template>
<div id="dialogBarDemand"></div>
</template>
<script>
export default {
name: 'demand',
data() {
return {
title:'互动频次'
}
},
props:{
data:{
type:Object,
default:()=>{return {}}
}
},
mounted() {
},
methods: {
init(){
let option = {
tooltip: {
trigger: 'axis'
},
grid: {
top:20,
left: '3%',
right: '2%',
bottom: '5%',
containLabel: true
},
xAxis: {
type: 'category',
boundaryGap: true,//坐标轴两边留白
data: this.data.xAxisData,
axisLabel: { //坐标轴刻度标签的相关设置。
interval:0,
textStyle: {
color: '#FFFFFF',
fontStyle: 'normal',
fontFamily: '微软雅黑',
fontSize: 14,
},
formatter: function (value, index) {
if(value.length > 4){
return value.slice(0,4)+ '...'
}else {
return value
}
}
},
axisTick:{//坐标轴刻度相关设置。
show: false,
},
axisLine:{//坐标轴轴线相关设置
lineStyle:{
color:'rgba(98,186,255,0.6)',
type:'solid'
}
},
splitLine: { //坐标轴在 grid 区域中的分隔线。
show: false,
}
},
yAxis: [
{
type: 'value',
name:'单位/次',
splitNumber: 5,
// // max:100,
// max:this.data.cntList,
axisLabel: {
textStyle: {
color: '#FFFFFFFF',
fontStyle: 'normal',
fontFamily: '微软雅黑',
fontSize: 12,
},
interval:'auto'
},
axisLine:{
show: false
},
axisTick:{
show: false
},
splitLine: {
show: true,
lineStyle: {
color: 'rgba(98,186,255,0.6)',
type:'dashed'
}
}
}
],
series: [
{
type: 'bar',
barWidth: 16, // 柱子宽度
itemStyle:{
barBorderRadius: 120, // 圆角(左上、右上、右下、左下)
},
color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
'rgba(78,255,253,1)', 'rgba(255,74,83,1)'
].map((color, offset) => ({
color,
offset
}))), // 渐变
data: this.data.yAxisData
}
]
};
let echartsDiv = this.$echarts.init(document.querySelector('#dialogBarDemand'))
echartsDiv.setOption(option,true)
console.log(option)
},
}
}
</script>
<style lang=scss>
#dialogBarDemand{
width: 100%;
height: 16vh;
margin-top: 0.6rem;
}
</style>
let baseUrl="/mall/";
let routerMode='history';
let backToken = "back";
let frontToken = "front";
export {
baseUrl,
backToken,
frontToken,
routerMode
let baseUrl="http://111.203.232.175:8088/mall/";
let routerMode='history';
let backToken = "back";
let frontToken = "front";
export {
baseUrl,
backToken,
frontToken,
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