report.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <template>
  2. <view class="zxbox">
  3. <view class="navbox">
  4. <uni-nav-bar color="#ffffff" rightWidth="200rpx" @clickLeft="getBack" title="年度履职报告" :background-color="backgroundColor" :border="false"
  5. statusBar='true' fixed="true">
  6. <block slot="left">
  7. <view class="topl">
  8. <image :src="backimg" ></image>
  9. </view>
  10. </block>
  11. <block slot="right">
  12. <picker mode="date" fields="year" value="nd" class="infolist_a" @change='bindDateChange'>
  13. <view class="picks">
  14. <view :class="nd?'':'f16 co80'">{{nd||"请选择"}}</view>
  15. <image :src="upimg"></image>
  16. </view>
  17. </picker>
  18. </block>
  19. </uni-nav-bar>
  20. </view>
  21. <image :src="bgimg" class="bgimg"></image>
  22. <view class="mbox">
  23. <view class="head flexc mb18">
  24. <image :src="headimg" class="headimg"></image>
  25. <view class="hinfo">
  26. <view class="tit">何潇潇</view>
  27. <view class="medal flexc">
  28. <view class="bg bg1">
  29. <image :src="medala"></image>
  30. 界别<text></text>中国共产党
  31. </view>
  32. <view class="bg bg2">
  33. <image :src="medalb"></image>
  34. 党派<text></text>中国共产党
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="jinfo">
  40. <view class="tit mb14">基本信息</view>
  41. <view class="flex mb11">
  42. <view class="imgs"><image :src="infoa" class="imga"></image></view>
  43. <view class="txt">身份证号 | 32000019810205003X</view>
  44. </view>
  45. <view class="flex mb11">
  46. <view class="imgs"><image :src="infob" class="imgb"></image></view>
  47. <view class="txt">联系方式 | 13700558100</view>
  48. </view>
  49. <view class="flex mb11">
  50. <view class="imgs"><image :src="infoc" class="imgc"></image></view>
  51. <view class="txt">工作单位及职务 | 潜山市政协委员会 委员</view>
  52. </view>
  53. <view class="flex mb11">
  54. <view class="imgs"><image :src="infod" class="imgd"></image></view>
  55. <view class="txt">乡镇(经开区)委员工作室 | 黄铺镇工作室</view>
  56. </view>
  57. </view>
  58. <!-- 分 -->
  59. <view class="score flexcj mb20">
  60. <view class="scorea">
  61. <image :src="bga"></image>
  62. <view class="box flexccc">
  63. <view class="num">85</view>
  64. <view class="f12 fw coe2">履职得分情况</view>
  65. <view class="f12 co22">(满分100分)</view>
  66. </view>
  67. </view>
  68. <view class="scorea">
  69. <image :src="bgb"></image>
  70. <view class="box flexccc">
  71. <view class="num">85</view>
  72. <view class="f12 fw co83">综合排名</view>
  73. <view class="f12 co22">(共436名)</view>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- tab -->
  78. <view class="tabs mb27">
  79. <view v-for="(ite,idx) in tabList" @click="getTabFn(ite.val)" :class="tabval==ite.val?'act':''" class="tab" :key="ite.val">{{ite.tit}}</view>
  80. </view>
  81. <view class="flexcw mb28">
  82. <view class="nums bga">
  83. <view class="tit flex1">政协提案</view>
  84. <view class="txt"><text>5</text>件</view>
  85. </view>
  86. <view class="nums bgb">
  87. <view class="tit flex1">社情民意</view>
  88. <view class="txt"><text>5</text>件</view>
  89. </view>
  90. <view class="nums bga">
  91. <view class="tit flex1">全会</view>
  92. <view class="txt"><text>5</text>件</view>
  93. </view>
  94. <view class="nums bgb">
  95. <view class="tit flex1">活动</view>
  96. <view class="txt"><text>5</text>件</view>
  97. </view>
  98. <view class="nums bga">
  99. <view class="tit flex1">普通会议</view>
  100. <view class="txt"><text>5</text>件</view>
  101. </view>
  102. <view class="nums bgb">
  103. <view class="tit flex1">会议发言</view>
  104. <view class="txt"><text>5</text>件</view>
  105. </view>
  106. </view>
  107. <!-- 雷达图 -->
  108. <view class="mb32">
  109. <qiun-data-charts type="radar" :opts="opts" :chartData="chartData"></qiun-data-charts>
  110. </view>
  111. <!-- 各项得分 -->
  112. <view class="jinfo">
  113. <view class="tit mb14">各项得分</view>
  114. <view class="gsbox">
  115. <view class="gslist">
  116. <view class="gtit">活动</view>
  117. <view class="gtxt">3.1</view>
  118. </view>
  119. <view class="gslist">
  120. <view class="gtit">会议 </view>
  121. <view class="gtxt">3.1</view>
  122. </view>
  123. <view class="gslist">
  124. <view class="gtit">社情民意</view>
  125. <view class="gtxt">3.1</view>
  126. </view>
  127. <view class="gslist">
  128. <view class="gtit">政协提案</view>
  129. <view class="gtxt">3.1</view>
  130. </view>
  131. <view class="gslist">
  132. <view class="gtit">会议发言</view>
  133. <view class="gtxt">3.1</view>
  134. </view>
  135. <view class="gslist">
  136. <view class="gtit">其他</view>
  137. <view class="gtxt">3.1</view>
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 提案方便 -->
  142. <view class="list">
  143. <report-list type='2' :wtdt="wtdt" :datalist="tabList"></report-list>
  144. <view class="upmore flexccc">
  145. <image :src="upmimg"></image>
  146. <view>下拉更多</view>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </template>
  152. <script>
  153. import reportList from "@/work/components/report/list.vue"
  154. export default {
  155. components:{reportList},
  156. data() {
  157. return {
  158. headimg:require("@/static/images/mine/header.png"),
  159. backimg:require("@/work/static/images/back.png"),
  160. bgimg: require("@/work/static/images/report/bg.png"),
  161. infoa:require("@/work/static/images/report/infoa.png"),
  162. infob:require("@/work/static/images/report/infob.png"),
  163. infoc:require("@/work/static/images/report/infoc.png"),
  164. infod:require("@/work/static/images/report/infod.png"),
  165. bga:require("@/work/static/images/report/bga.png"),
  166. bgb:require("@/work/static/images/report/bgb.png"),
  167. medala:require("@/work/static/images/report/medala.png"),
  168. medalb:require("@/work/static/images/report/medalb.png"),
  169. upimg:require("@/work/static/images/report/up.png"),
  170. upmimg:require("@/static/images/home/up.png"),
  171. backgroundColor:'transparent',
  172. nd:'2024',
  173. tabval:0,
  174. wtdt:'',
  175. tabList:[{tit:'履职状况',val:'0'},{tit:'提案方面',val:'1'},{tit:'社情民意方面',val:'2'},{tit:'会议参与情况',val:'3'},{tit:'活动参与情况',val:'4'}],
  176. chartData:{
  177. categories: ["活动","其他","维度3","维度4","维度5","维度6"],
  178. series: [{ name: "成交量1", data: [90,110,165,195,187,172]},],
  179. },
  180. opts: {
  181. color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
  182. padding: [5,5,5,5],
  183. dataLabel: false,
  184. enableScroll: false,
  185. legend: {
  186. show: true,
  187. position: "right",
  188. lineHeight: 25
  189. },
  190. "legend": {"show": false,},
  191. extra: {
  192. radar: {
  193. gridType: "radar",
  194. gridColor: "#CCCCCC",
  195. gridCount: 3,
  196. opacity: 0.2,
  197. max: 200,
  198. labelShow: true,
  199. border: true
  200. }
  201. }
  202. }
  203. }
  204. },
  205. onPageScroll(e) {
  206. var scrollTop = Number(e.scrollTop);
  207. var listTop=Number(this.listTop)-Number(this.nvaHeight)
  208. if (scrollTop <=this.nvaHeight) {
  209. const opacity = scrollTop / 100 // 计算透明度值
  210. const color = `rgba(29, 100, 226, ${opacity})`
  211. this.backgroundColor = color // 更新盒子背景颜色
  212. } else {
  213. this.backgroundColor = '#1D64E2'
  214. }
  215. },
  216. onLoad() {
  217. },
  218. methods: {
  219. getBack(){
  220. uni.navigateBack({
  221. delta:1
  222. })
  223. },
  224. getTabFn(val){
  225. this.tabval=val
  226. }
  227. }
  228. }
  229. </script>
  230. <style lang="scss">
  231. page {background-color: #ffffff;}
  232. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4;
  233. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  234. image{width: 40rpx;height: 30rpx;}
  235. }
  236. .topr{width: 36rpx;height: 36rpx;position: relative;margin-right: 10rpx;
  237. image{width: 100%;height: 100%;}
  238. .cir{width: 14rpx;height: 14rpx;background: #DF0024;border-radius: 50%;position: absolute;right: -7rpx;top: -7rpx;}
  239. }
  240. }
  241. .zxbox{
  242. .bgimg{width: 100%;height: 196rpx;}
  243. .mbox{margin-top: -34rpx;padding: 34rpx 24rpx 30rpx;z-index: 1;position: relative;border-radius: 30rpx 30rpx 0 0;background-color: #ffffff;
  244. .head{
  245. .headimg{width: 140rpx;height: 140rpx;flex: 0 0 auto;margin-right: 34rpx;}
  246. .hinfo{
  247. .tit{font-weight: bold;font-size: 34rpx;color: #222327;margin-bottom: 26rpx;}
  248. .medal{
  249. .bg{position: relative;height: 40rpx;border-radius: 4rpx;min-width: 200rpx;font-weight: 500;
  250. font-size: 20rpx;padding-left: 16rpx;box-sizing: border-box;text-align: center;
  251. color: #FFFFFF;line-height: 40rpx;
  252. text{border-right: 2rpx solid #ffffff;margin: 0 8rpx;}
  253. &.bg1{background: #C8A46D;margin-right: 36rpx;}
  254. &.bg2{background: #BC2828;}
  255. image{width: 32rpx;height: 40rpx;position: absolute;left: -16rpx;top: 0;}
  256. }
  257. }
  258. }
  259. }
  260. .jinfo{padding-bottom: 22rpx;
  261. .tit{font-weight: bold;font-size: 30rpx;color: #222327;}
  262. .imgs{width: 30rpx;height: 34rpx;display: flex;align-items: center;justify-content: center;margin-right: 14rpx;
  263. .imga{width:30rpx;height: 24rpx;}
  264. .imgb{width:18rpx;height: 26rpx;}
  265. .imgc{width:30rpx;height: 26rpx;}
  266. .imgd{width:26rpx;height: 26rpx;}
  267. }
  268. .txt{font-weight: 500;font-size: 26rpx;color: #222327;}
  269. .gsbox{background: #ECF1FD;border-radius: 10rpx;padding: 48rpx 26rpx 18rpx;display: flex;flex-wrap: wrap;justify-content: space-between;
  270. .gslist{width: 242rpx;display: flex;align-items: center;margin-bottom: 28rpx;flex: 0 1 auto;
  271. .gtit{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;}
  272. .gtxt{font-weight: bold;font-size: 30rpx;color: #004BF6;flex:1;text-align: right;}
  273. }
  274. }
  275. }
  276. .score{
  277. .scorea{width: 334rpx;height: 146rpx;position: relative;
  278. image{width: 100%;height: 100%;}
  279. .box{position: absolute;left: 0;right: 0;top: 0;bottom: 0;text-align: center;
  280. .num{font-weight: 800;font-size: 40rpx;color: #222327;}
  281. }
  282. }
  283. }
  284. .tabs{display: flex;align-items: center;overflow-x: auto;
  285. .tab{font-weight: 500;font-size: 26rpx;color: #666666;position: relative;height: 88rpx;line-height: 88rpx;margin-right: 40rpx;flex: 0 0 auto;
  286. &.act{font-size: 30rpx;font-weight: bold;color: #222327;
  287. &::after{content: '';width:52rpx;height: 10rpx;background: #1D64E2;border-radius: 6rpx;position: absolute;left: 50%;margin-left: -26rpx;bottom: 0rpx;}
  288. }
  289. }
  290. }
  291. .nums{width: 332rpx;height: 110rpx;border-radius: 10rpx;display: flex;align-items: center;padding: 0 26rpx;margin-bottom: 24rpx;margin-right: 38rpx;
  292. &:nth-child(2n){margin-right: 0;}
  293. .tit{font-weight: bold;font-size: 30rpx;}
  294. .txt{font-weight: 500;font-size: 24rpx;
  295. text{font-weight: 500;font-size: 40rpx;color: #343434;margin-right: 8rpx;}
  296. }
  297. &.bga{background: #E8EFFF;
  298. .tit{color: #004BF6;}
  299. text{color: #004BF6;}
  300. }
  301. &.bgb{background: #FFECE3;
  302. .tit{color: #FF4E00;}
  303. text{color: #FF4E00;}
  304. }
  305. }
  306. }
  307. }
  308. .picks{
  309. width: 160rpx;height: 56rpx;background-color: rgba(15, 57, 116, 0.5);display: flex;align-items: center;padding: 0 24rpx;box-sizing: border-box;border-radius: 10rpx;
  310. image{width: 16rpx;height: 10rpx;flex: 0 0 auto;}
  311. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;flex: 1;}
  312. }
  313. .upmore{
  314. image{width: 40rpx;height: 32rpx;margin-bottom: 16rpx;}
  315. view{font-weight: 500;font-size: 26rpx;color: #AAAAAA;}
  316. }
  317. </style>