dev
liuyongli 3 years ago
parent 6d98071457
commit 9e0246e1f3

@ -6,7 +6,7 @@
</view> </view>
<view class="event_distribution"> <view class="event_distribution">
<view class="chart_title">事件调性分布</view> <view class="chart_title">事件调性分布</view>
<view style="width: 100%;display: flex; justify-content: space-between;" > <view style="width: 100%;display: flex;" >
<view class="table_pie"> <view class="table_pie">
<view style="margin-left:32rpx;font-size: 32rpx;"> 事件一</view> <view style="margin-left:32rpx;font-size: 32rpx;"> 事件一</view>
<c-echars showChart="{{showChart}}" canvasId="wbtype-canvas" chartId="wbtype" chartOption="{{eventDist[0].func}}" height="100%"></c-echars> <c-echars showChart="{{showChart}}" canvasId="wbtype-canvas" chartId="wbtype" chartOption="{{eventDist[0].func}}" height="100%"></c-echars>

@ -78,8 +78,8 @@
} }
.event_distribution{ .event_distribution{
height: 894rpx; height: 894rpx;
padding-top:32rpx ; padding:32rpx;
width: 686rpx; width: calc(100% - 32px);
background: #ffffff; background: #ffffff;
margin-top: 28rpx; margin-top: 28rpx;
} }

@ -20,7 +20,7 @@
</view> </view>
<view class="event_distribution"> <view class="event_distribution">
<view class="chart_title">事件调性分布</view> <view class="chart_title1">事件调性分布</view>
<view style="width: 100%;display: flex; justify-content: space-between;" > <view style="width: 100%;display: flex; justify-content: space-between;" >
<view class="table_pie"> <view class="table_pie">
<view style="margin-left:32rpx;font-size: 32rpx;"> 事件一</view> <view style="margin-left:32rpx;font-size: 32rpx;"> 事件一</view>
@ -84,7 +84,7 @@
</view> </view>
</view> </view>
<view class="event_distribution" style="margin-top:36rpx;"> <view class="event_distribution" style="margin-top:36rpx;">
<view class="chart_title">微博用户性别对比</view> <view class="chart_title1">微博用户性别对比</view>
<view style="width: 100%;display: flex; justify-content: space-between;" > <view style="width: 100%;display: flex; justify-content: space-between;" >
<view class="table_pie"> <view class="table_pie">
<view style="margin-left:32rpx;font-size: 32rpx;"> 事件一</view> <view style="margin-left:32rpx;font-size: 32rpx;"> 事件一</view>
@ -133,7 +133,7 @@
<view class="event_distribution"> <view class="event_distribution">
<view class="chart_title">微博认证用户对比</view> <view class="chart_title1">微博认证用户对比</view>
<view style="width: 100%;display: flex; justify-content: space-between;" > <view style="width: 100%;display: flex; justify-content: space-between;" >
<view class="table_pie"> <view class="table_pie">
<view style="margin-left:32rpx;font-size: 32rpx;"> 事件一</view> <view style="margin-left:32rpx;font-size: 32rpx;"> 事件一</view>

@ -1,28 +1,35 @@
.chart_box{ .chart_box {
margin-top: 24rpx; margin-top: 24rpx;
width: 686rpx; width: 686rpx;
height: 468rpx; height: 468rpx;
padding-top:32rpx ; padding-top: 32rpx;
background: white; background: white;
} }
.chart_title{
font-size: 18px; .chart_title {
margin-left:32rpx ; font-size: 18px;
margin-left: 32rpx;
} }
.table{ .chart_title1 {
height: 380rpx; font-size: 18px;
}
.table {
height: 380rpx;
width: 95%; width: 95%;
margin-left:16rpx ; margin-left: 16rpx;
margin-top: 32rpx; margin-top: 32rpx;
} }
.top_box{
.top_box {
margin-top: 24rpx; margin-top: 24rpx;
width: 686rpx; width: 686rpx;
height: 1312rpx; height: 1312rpx;
background:#ffffff; background: #ffffff;
border-radius: 8rpx; border-radius: 8rpx;
padding-top:32rpx; padding-top: 32rpx;
} }
.top-title { .top-title {
width: 100%; width: 100%;
font-size: 18px; font-size: 18px;
@ -32,31 +39,38 @@
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
} }
.rank_list{
.rank_list {
margin-left: 32rpx; margin-left: 32rpx;
margin-top: 16rpx; margin-top: 16rpx;
} }
.ranking{
.ranking {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
} }
.ranking_cell{
.ranking_cell {
height: 104rpx; height: 104rpx;
display: flex ; align-items: center; display: flex;
align-items: center;
} }
.henxian{
.henxian {
height: 2rpx; height: 2rpx;
background:linear-gradient(to right,white, #f2f1f1,white); background: linear-gradient(to right, white, #f2f1f1, white);
} }
.cloud_box{
.cloud_box {
margin-top: 24rpx; margin-top: 24rpx;
width: 686rpx; width: 686rpx;
height: 884rpx; height: 884rpx;
background:#ffffff; background: #ffffff;
border-radius: 8rpx; border-radius: 8rpx;
padding-top:32rpx; padding-top: 32rpx;
} }
.cloud_title { .cloud_title {
width: 100%; width: 100%;
font-size: 18px; font-size: 18px;
@ -66,31 +80,36 @@
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
} }
.area_box{
.area_box {
margin-top: 24rpx; margin-top: 24rpx;
width: 686rpx; width: 686rpx;
/* height: 100%; */ /* height: 100%; */
background:#ffffff; background: #ffffff;
border-radius: 8rpx; border-radius: 8rpx;
padding:32rpx 0; padding: 32rpx 0;
} }
.event_distribution{
.event_distribution {
height: 900rpx; height: 900rpx;
padding-top:32rpx ; padding: 32rpx;
width: 686rpx; width: calc(100% - 32px);
background: #ffffff; background: #ffffff;
margin-top: 28rpx; margin-top: 28rpx;
} }
.circle-data { .circle-data {
width: 50%; width: 50%;
height: 340rpx; height: 340rpx;
} }
.circle-data-item { .circle-data-item {
color: #999999; color: #999999;
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 12px;
width: 33%; width: 33%;
} }
.circle-data-title { .circle-data-title {
font-size: 12px; font-size: 12px;
/* font-weight: 600; */ /* font-weight: 600; */
@ -101,12 +120,16 @@
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
} }
.table_pie{
height: 380rpx; .table_pie {
height: 380rpx;
width: 60%; width: 60%;
/* margin-left:16rpx ; */ /* margin-left:16rpx ; */
margin-top: 32rpx; margin-top: 32rpx;
} }
.colorTags { .colorTags {
width: 10px;height: 10px;border-radius: 1px; width: 10px;
height: 10px;
border-radius: 1px;
} }

@ -356,8 +356,8 @@ Page({
if (Statu == 0) { if (Statu == 0) {
let dtData = { let dtData = {
"AnalyzeWord": this.data.totalMode == 1 ? this.data.highAnalizeWord.replace("+","%2B") : this.data.AnalyzeWord.replace("+","%2B"), "AnalyzeWord": this.data.totalMode == 1 ? this.data.highAnalizeWord.replace("+","%2B") : this.data.AnalyzeWord.replace("+","%2B"),
"HuoWord": this.data.HuoWord, "HuoWord": this.data.HuoWord.replace("+","%2B"),
"PaiChu": this.data.PaiChu, "PaiChu": this.data.PaiChu.replace("+","%2B"),
"IsAdvancedQuery": this.data.totalMode == 0 && this.data.currWordType == '必选词和的关系' ? 0 : this.data.totalMode == 1 ? 1 : 2, "IsAdvancedQuery": this.data.totalMode == 0 && this.data.currWordType == '必选词和的关系' ? 0 : this.data.totalMode == 1 ? 1 : 2,
"Source": this.data.Source, "Source": this.data.Source,
"UserAuthor": this.data.UserAuthor "UserAuthor": this.data.UserAuthor
@ -385,8 +385,8 @@ Page({
}else{ }else{
let dtData = { let dtData = {
"AnalyzeWord": this.data.totalMode == 1 ? this.data.highAnalizeWord.replace("+","%2B") : this.data.AnalyzeWord.replace("+","%2B"), "AnalyzeWord": this.data.totalMode == 1 ? this.data.highAnalizeWord.replace("+","%2B") : this.data.AnalyzeWord.replace("+","%2B"),
"HuoWord": this.data.HuoWord, "HuoWord": this.data.HuoWord.replace("+","%2B"),
"PaiChu": this.data.PaiChu, "PaiChu": this.data.PaiChu.replace("+","%2B"),
"IsAdvancedQuery": this.data.totalMode == 0 && this.data.currWordType == '必选词和的关系' ? 0 : this.data.totalMode == 1 ? 1 : 2, "IsAdvancedQuery": this.data.totalMode == 0 && this.data.currWordType == '必选词和的关系' ? 0 : this.data.totalMode == 1 ? 1 : 2,
"Source": this.data.Source, "Source": this.data.Source,
"UserAuthor": this.data.UserAuthor "UserAuthor": this.data.UserAuthor

@ -81,7 +81,7 @@ Page({
isSelect: false isSelect: false
} }
], ],
show:false show: false
}, },
onLoad: function (options) { onLoad: function (options) {
this.setData({ this.setData({
@ -96,26 +96,49 @@ Page({
Guids: this.data.Guid, Guids: this.data.Guid,
}).then(res => { }).then(res => {
// todo: 回显预警信息 // todo: 回显预警信息
let warning = res.Warning.Es || {}; if (typeof (res.Warning.Es) == "string") {
let that = this; let warning = JSON.parse(res.Warning.Es);
let qudaos = warning.QuDao == ""?[]:warning.QuDao.split(','); let that = this;
let crisises = warning.Crisis == ""?[]:warning.Crisis.split(','); let qudaos = warning.QuDao == "" ? [] : warning.QuDao.split(',');
let qinggans = warning.QingGan == ""?[]:warning.QingGan.split(','); let crisises = warning.Crisis == "" ? [] : warning.Crisis.split(',');
crisises.forEach(ele => { let qinggans = warning.QingGan == "" ? [] : warning.QingGan.split(',');
console.log('vcfx',crisises) crisises.forEach(ele => {
that.data.wjList[ele-1].isSelect = !that.data.wjList[ele-1].isSelect that.data.wjList[ele - 1].isSelect = !that.data.wjList[ele - 1].isSelect
}); });
qinggans.forEach(ele => { qinggans.forEach(ele => {
that.data.qgList[ele-1].isSelect = !that.data.qgList[ele-1].isSelect that.data.qgList[ele - 1].isSelect = !that.data.qgList[ele - 1].isSelect
}); });
qudaos.forEach(ele => { qudaos.forEach(ele => {
that.data.affList[ele].isSelect = !that.data.affList[ele].isSelect that.data.affList[ele].isSelect = !that.data.affList[ele].isSelect
}); });
this.setData({ this.setData({
qgList: that.data.qgList, qgList: that.data.qgList,
wjList: that.data.wjList, wjList: that.data.wjList,
affList:that.data.affList, affList: that.data.affList,
}); });
} else {
let warning = res.Warning.Es || {};
let that = this;
let qudaos = warning.QuDao == "" ? [] : warning.QuDao.split(',');
let crisises = warning.Crisis == "" ? [] : warning.Crisis.split(',');
let qinggans = warning.QingGan == "" ? [] : warning.QingGan.split(',');
crisises.forEach(ele => {
that.data.wjList[ele - 1].isSelect = !that.data.wjList[ele - 1].isSelect
});
qinggans.forEach(ele => {
that.data.qgList[ele - 1].isSelect = !that.data.qgList[ele - 1].isSelect
});
qudaos.forEach(ele => {
that.data.affList[ele].isSelect = !that.data.affList[ele].isSelect
});
this.setData({
qgList: that.data.qgList,
wjList: that.data.wjList,
affList: that.data.affList,
});
}
// let warnings = JSON.parse(res.Warning.Es);
if (res.DetailsData) { if (res.DetailsData) {
if (res.DetailsData[0].IsAdvancedQuery == 1) { if (res.DetailsData[0].IsAdvancedQuery == 1) {
this.setData({ this.setData({
@ -141,7 +164,7 @@ Page({
Source: res.DetailsData[0].Source, Source: res.DetailsData[0].Source,
}) })
} }
this.setData({ this.setData({
Name: res.Name, Name: res.Name,
StartTime: res.StartTime, StartTime: res.StartTime,
@ -150,10 +173,10 @@ Page({
end: res.EndTime, end: res.EndTime,
startShow: new Date(res.StartTime).valueOf(), startShow: new Date(res.StartTime).valueOf(),
endShow: new Date(res.EndTime).valueOf(), endShow: new Date(res.EndTime).valueOf(),
Statu:res.Warning.Statu Statu: res.Warning.Statu
}) })
}); });
}, },
getApi() { getApi() {
app.globalData.request({ app.globalData.request({
@ -198,7 +221,7 @@ Page({
let that = this; let that = this;
let val = event.currentTarget.dataset.value; let val = event.currentTarget.dataset.value;
that.data.qgList[val.key - 1].isSelect = !that.data.qgList[val.key - 1].isSelect; that.data.qgList[val.key - 1].isSelect = !that.data.qgList[val.key - 1].isSelect;
this.setData({ this.setData({
qgList: that.data.qgList qgList: that.data.qgList
}); });
@ -423,7 +446,7 @@ Page({
} }
}); });
let dtData = { let dtData = {
"AnalyzeWord": this.data.AnalyzeWord.replace("+","%2B"), "AnalyzeWord": this.data.AnalyzeWord.replace("+", "%2B"),
"HuoWord": this.data.HuoWord, "HuoWord": this.data.HuoWord,
"PaiChu": this.data.PaiChu, "PaiChu": this.data.PaiChu,
"IsAdvancedQuery": this.data.totalMode == 0 && this.data.currWordType == '必选词和的关系' ? 0 : this.data.totalMode == 1 ? 1 : 2, "IsAdvancedQuery": this.data.totalMode == 0 && this.data.currWordType == '必选词和的关系' ? 0 : this.data.totalMode == 1 ? 1 : 2,
@ -453,7 +476,7 @@ Page({
token: wx.getStorageSync('token') || 't%2BrswgjvzGM=', token: wx.getStorageSync('token') || 't%2BrswgjvzGM=',
DataJson: dtJson, DataJson: dtJson,
}).then(res => { }).then(res => {
if(res !=[]) if (res != [])
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: '编辑成功', content: '编辑成功',
@ -465,11 +488,11 @@ Page({
} }
} }
}); });
}).catch(err => { }).catch(err => {
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: err.Msg, content: err.Msg,
}) })
}); });
} }
}) })

@ -87,26 +87,30 @@ Page({
openid: wx.getStorageSync('openid'), openid: wx.getStorageSync('openid'),
token: wx.getStorageSync('token') || 't%2BrswgjvzGM=' token: wx.getStorageSync('token') || 't%2BrswgjvzGM='
} }
app.globalData.request(obj, (res => { return new Promise((resolve, reject) => {
if (res.Code == 1) { app.globalData.request(obj, (res) => {
wx.showModal({ if (res.Code == 1) {
title: '提示', wx.showModal({
content: "确定要退出嘛?", title: '提示',
success(res) { content: "确定要退出嘛?",
if (res.confirm) { success(res) {
wx.setStorageSync("userInfo", null); if (res.confirm) {
wx.setStorageSync("token", ""); wx.setStorageSync("userInfo", null);
wx.setStorageSync("openid", ""); wx.setStorageSync("token", "");
that.getUser(); wx.setStorageSync("openid", "");
that.getUser();
}
} }
} })
}) }
} else { resolve(true)
}).catch(err => {
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: err.Msg, content: err.Msg,
}) })
} reject(false)
})) })
})
} }
}); });

@ -68,20 +68,24 @@ Page({
action: 'getVERCode', action: 'getVERCode',
sPhone: this.data.sPhone, sPhone: this.data.sPhone,
} }
app.globalData.request(obj).then(res => { return new Promise((resolve, reject) => {
// 定时60s app.globalData.request(obj, (res) => {
timer(this) // 定时60s
if (res.Code == 1) { timer(this)
// if (res.Code == 1) {
// wx.showModal({
// title: '提示',
// content: res.Msg,
// })
// }
resolve(true)
}).catch(err => {
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: data.Msg, content: err.Msg,
}) })
} reject(false)
}).catch(err => {
wx.showModal({
title: '提示',
content: err.Msg,
}) })
}) })
}, },
@ -109,49 +113,56 @@ Page({
// content: res.Msg, // content: res.Msg,
// }) // })
// }) // })
app.globalData.request(obj, (res) => { return new Promise((resolve, reject) => {
if (res.Code == 1) { app.globalData.request(obj, (res) => {
wx.showModal({ if (res.Code == 1) {
title: '提示', wx.showModal({
content: res.Msg, title: '提示',
}) content: res.Msg,
})
} else { }
resolve(true)
}).catch(err => {
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: err.Msg, content: err.Msg,
}) })
} reject(false)
})
}) })
}, },
getlist() { getlist() {
let that = this
let obj = { let obj = {
action: 'ifUserAdminOnly', action: 'ifUserAdminOnly',
sUserName: this.data.sUserName, sUserName: this.data.sUserName,
sPhone: this.data.sPhone, sPhone: this.data.sPhone,
sEmail: this.data.sEmail, sEmail: this.data.sEmail,
} }
console.log('cdssx', obj) return new Promise((resolve, reject) => {
app.globalData.request(obj, (res) => { app.globalData.request(obj, (res) => {
console.log('cdx', res.data) if (res.Code == 1) {
if (res.Code == 1) { wx.showModal({
wx.showModal({ title: '提示',
title: '提示', content: res.Msg,
content: res.Msg, success(res) {
success(res) { if (res.confirm) {
if (res.confirm) { that.captcha()
this.captcha() } else {
} else {
}
} }
} })
}) }
} else { resolve(true)
}).catch(err => {
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: res.Msg, content: err.Msg,
}) })
} reject(false)
})
}) })
}, },

@ -21,6 +21,13 @@
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
},
{
"name": "",
"pathName": "pages/mine/pages/bindUser/index",
"query": "",
"launchMode": "default",
"scene": null
} }
] ]
} }

Loading…
Cancel
Save