|
@@ -1,11 +1,11 @@
|
|
<template>
|
|
<template>
|
|
<div class="bg">
|
|
<div class="bg">
|
|
- <van-nav-bar
|
|
|
|
|
|
+ <!-- <van-nav-bar
|
|
title="智慧“和顺”"
|
|
title="智慧“和顺”"
|
|
left-text="民宗干事"
|
|
left-text="民宗干事"
|
|
left-arrow
|
|
left-arrow
|
|
@click-left="onClickLeft"
|
|
@click-left="onClickLeft"
|
|
- />
|
|
|
|
|
|
+ /> -->
|
|
|
|
|
|
<!-- <van-image
|
|
<!-- <van-image
|
|
width="100%"
|
|
width="100%"
|
|
@@ -24,7 +24,7 @@
|
|
<div class="tabtitle1"></div>
|
|
<div class="tabtitle1"></div>
|
|
<div class="tabtitle">我的待办</div>
|
|
<div class="tabtitle">我的待办</div>
|
|
<div class="tabtitle2">(</div>
|
|
<div class="tabtitle2">(</div>
|
|
- <div class="tabtitle3">15</div>
|
|
|
|
|
|
+ <div class="tabtitle3">{{sum}}</div>
|
|
<div class="tabtitle4">)</div>
|
|
<div class="tabtitle4">)</div>
|
|
<van-icon name="ellipsis" class="tabtitle5" @click="goToBeDone" />
|
|
<van-icon name="ellipsis" class="tabtitle5" @click="goToBeDone" />
|
|
</div>
|
|
</div>
|
|
@@ -32,12 +32,12 @@
|
|
<div class="flexll">
|
|
<div class="flexll">
|
|
<div class="ffl2">
|
|
<div class="ffl2">
|
|
<div class="textRegular">待处理</div>
|
|
<div class="textRegular">待处理</div>
|
|
- <div class="textRed">{{con1}}</div>
|
|
|
|
|
|
+ <div class="textRed">{{sum1}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="verticalLine"></div>
|
|
<div class="verticalLine"></div>
|
|
<div class="ffl2">
|
|
<div class="ffl2">
|
|
<div class="textRegular">已处理</div>
|
|
<div class="textRegular">已处理</div>
|
|
- <div class="textBlue">8</div>
|
|
|
|
|
|
+ <div class="textBlue">{{sum2}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="hLine"></div>
|
|
<div class="hLine"></div>
|
|
@@ -86,13 +86,16 @@ import userSets from "@/api/sys/userSets";
|
|
password:"",
|
|
password:"",
|
|
password2:"",
|
|
password2:"",
|
|
con1:"0",
|
|
con1:"0",
|
|
|
|
+ sum:"0",
|
|
|
|
+ sum1:"0",
|
|
|
|
+ sum2:"0",
|
|
BannerImgurls:['https://img1.baidu.com/it/u=2086445453,3056906789&fm=253&fmt=auto&app=138&f=GIF?w=1378&h=400','https://img1.baidu.com/it/u=2086445453,3056906789&fm=253&fmt=auto&app=138&f=GIF?w=1378&h=400']
|
|
BannerImgurls:['https://img1.baidu.com/it/u=2086445453,3056906789&fm=253&fmt=auto&app=138&f=GIF?w=1378&h=400','https://img1.baidu.com/it/u=2086445453,3056906789&fm=253&fmt=auto&app=138&f=GIF?w=1378&h=400']
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
created(){
|
|
created(){
|
|
let id=this.$route.query.id;
|
|
let id=this.$route.query.id;
|
|
- window.xm.setNavigationBarTitle({ title: '智慧“和顺”'})
|
|
|
|
|
|
+ //window.xm.setNavigationBarTitle({ title: '智慧“和顺”'})
|
|
this.TokenLogin2();
|
|
this.TokenLogin2();
|
|
},
|
|
},
|
|
|
|
|
|
@@ -177,6 +180,7 @@ import userSets from "@/api/sys/userSets";
|
|
that.$store.commit('setUser',res.account);
|
|
that.$store.commit('setUser',res.account);
|
|
that.getBannerImg();//获取轮播图
|
|
that.getBannerImg();//获取轮播图
|
|
that.getSelectColor();//获取主题颜色
|
|
that.getSelectColor();//获取主题颜色
|
|
|
|
+ that.getStatistics();//获取待办事项数
|
|
});
|
|
});
|
|
|
|
|
|
//})//上线取消注释
|
|
//})//上线取消注释
|
|
@@ -184,11 +188,23 @@ import userSets from "@/api/sys/userSets";
|
|
}else{
|
|
}else{
|
|
that.getBannerImg();//获取轮播图
|
|
that.getBannerImg();//获取轮播图
|
|
that.getSelectColor();//获取主题颜色
|
|
that.getSelectColor();//获取主题颜色
|
|
|
|
+ that.getStatistics();//获取待办事项数
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ getStatistics(){
|
|
|
|
+ let that=this;
|
|
|
|
+ new userSets()
|
|
|
|
+ .Statistics()
|
|
|
|
+ .then((res) => {
|
|
|
|
+ that.sum=res[0].sum;
|
|
|
|
+ that.sum1=res[0].sum1;
|
|
|
|
+ that.sum2=res[0].sum2;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
getBannerImg(){
|
|
getBannerImg(){
|
|
new userSets()
|
|
new userSets()
|
|
.BannerImg({
|
|
.BannerImg({
|