index.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <template>
  2. <view class="total-page page_env page-box">
  3. <Nav :title="'工作台导航'" :back="false" :is_fixed="true" :opacity="scrollTop" :justify="'left'" :color="'#fff'">
  4. <view class="">
  5. <view class="p-30">
  6. <view class="bor-f1 row-justify-sb center p-40 r-20"
  7. style="box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);">
  8. <view class="center">
  9. <image class="wh-100 r-circle" src="/static/img/index/index-avatar.png" mode="">
  10. </image>
  11. <view class="m-l20">
  12. <text class="text-color-fff">HI,李亮</text>
  13. <view class="text-color-fff size-24 text-center r-20 line-30 p-tb6 p-lr20 m-t10 "
  14. style="background-color: rgba(0, 0, 0, 0.2);opacity: 0.6;">
  15. 业务专员
  16. </view>
  17. </view>
  18. </view>
  19. <image class="wh-80 r-circle is-hover" src="/static/img/index/index-system.png"
  20. @click="onSystemShow">
  21. </image>
  22. </view>
  23. <view class="row-c m-t30">
  24. <view class="sys-background-dominant r-30 column-justify-sb" style="width: 50%;height: 300rpx;"
  25. v-if="!is_admin">
  26. <view class="column-c p-t40">
  27. <view class="row-c" style="height: 80rpx;line-height: 80rpx;">
  28. <image class="wh-80 m-r20 r20" src="/static/img/index/index-add.png" mode="">
  29. </image>
  30. <text class="text-color-fff sys-weight-600 size-30">新建任务</text>
  31. </view>
  32. </view>
  33. <view class="p-l40 column justify-center"
  34. style="background-color: rgba(255, 255, 255, 0.2);height: 140rpx;border-radius: 16rpx 16rpx 30rpx 30rpx;">
  35. <view class="row-c m-b16" style="height: 30rpx;line-height: 30rpx;">
  36. <image class="wh-30 m-r16" src="/static/img/index/index-record.png"></image>
  37. <text class="size-26 text-color-fff">任务记录</text>
  38. </view>
  39. <text class="text-color-fff size-24 text-center r-30 line-30 p-tb6 p-lr20"
  40. style="background-color: rgba(0, 0, 0, 0.2);opacity: 0.7;width: 140rpx;line-height: 40rpx;">
  41. 创建中(2)
  42. </text>
  43. </view>
  44. </view>
  45. <view class="column-justify-sb" style="width: 50%;height: 300rpx;" v-else>
  46. <view class="column justify-center r-30 p-lr24"
  47. style="height: 140rpx;background: linear-gradient( 180deg, #94ECE1 0%, rgba(255,255,255,1) 100%);">
  48. <view class="row-c">
  49. <view class="sys-background-dominant r-10" style="width: 8rpx;height: 24rpx;">
  50. </view>
  51. <text class="text-color-12 sys-weight-600 size-24 m-l10">今日放款</text>
  52. </view>
  53. <view class="row-justify-sb center m-t20" style="line-height: 40rpx;">
  54. <text class="sys-weight-600" style="color: #02154E;">13678.45万</text>
  55. <view class="row-c">
  56. <text style="color: #02154E;padding-right: 6rpx;">34</text>
  57. <text class="size-24" style="color: #999999;">笔</text>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="column justify-center r-30 p-lr24"
  62. style="height: 140rpx;background: linear-gradient( 180deg, #FFF5DA 0%, rgba(255,255,255,1) 100%);">
  63. <view class="row-c">
  64. <view class="sys-background-dominant r-10" style="width: 8rpx;height: 24rpx;">
  65. </view>
  66. <text class="text-color-12 sys-weight-600 size-24 m-l10">今日回款</text>
  67. </view>
  68. <view class="row-justify-sb center m-t20" style="line-height: 40rpx;">
  69. <text class="sys-weight-600" style="color: #02154E;">78459.80万</text>
  70. <view class="row-c">
  71. <text style="color: #02154E;padding-right: 6rpx;">56</text>
  72. <text class="size-24" style="color: #999999;">笔</text>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="m-l20 column-justify-sb" style="width: 50%;height: 300rpx;">
  78. <view class="row-justify-c center r-30"
  79. style="height: 140rpx;background: linear-gradient( 180deg, #FFEEDA 0%, rgba(255,255,255,1) 100%);"
  80. @click="onGetTask">
  81. <view style="position: relative;">
  82. <image class="wh-90 r-circle m-r20" src="/static/img/index/index-task.png"
  83. style="margin-right: 20rpx;" mode="">
  84. </image>
  85. <view class="text-color-fff size-20"
  86. style="border-radius: 40rpx;background: red;padding: 2rpx 10rpx;position: absolute;right: 10rpx;top: -10rpx;line-height: 30rpx;">
  87. 12
  88. </view>
  89. </view>
  90. <text class="text-color-12 sys-weight-600">领取任务</text>
  91. </view>
  92. <view class="row-justify-c center r-30"
  93. style="height: 140rpx;background: linear-gradient( 180deg, #DAF4FF 0%, rgba(255,255,255,1) 100%);"
  94. @click="onMessage">
  95. <image class="wh-90 r-circle m-r20" src="/static/img/index/index-money.png" mode="">
  96. </image>
  97. <text class="text-color-12 sys-weight-600">任务消息</text>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. </Nav>
  104. <view class="p-lr20 m-tb30">
  105. <view class="m-lr10 row-justify-sb center" style="height: 54rpx;line-height: 54rpx;">
  106. <text class="sys-weight-600">我的待办</text>
  107. <view class="row-justify-sb center">
  108. <image class="wh-30 m-r16" src="/static/img/address.png" mode=""></image>
  109. <text class="sys-background-fff size-24 sys-weight-600 p-lr30 r-40">2024年03月08日</text>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="page-box-bg-fff m-t30 m-lr20 m-b20 r-30 row-justify-sb flex p-b30">
  114. <view class="">
  115. <view class="row-c">
  116. <view class="column-c" style="width: 135px;">
  117. <PieChart></PieChart>
  118. <text class="size-24 text-color-12">任务完成情况</text>
  119. </view>
  120. <view class="m-b30">
  121. <view class="row-c p-tb10" v-for="(item,index) in chartList" :key="index">
  122. <view class="row-c">
  123. <view class="row-c" style="line-height: 30rpx;">
  124. <view class="chart_dot" :style="{backgroundColor:item.color}"></view>
  125. <text class="m-l16 text-color-787">{{item.name}}</text>
  126. </view>
  127. </view>
  128. <text class="text-color-12 sys-weight-600" style="margin-left: 40rpx;">{{item.value}}</text>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="column-sb-c" style="width: 135px;padding-top: 20rpx;">
  134. <CircleChart :bgColor="'#0FB160'"></CircleChart>
  135. <text class="size-24 text-color-12">任务进度</text>
  136. </view>
  137. </view>
  138. <TaskItem :type="2"></TaskItem>
  139. <uni-popup background-color="#fff" ref="popup" type="left" border-radius="10px 10px 0 0"
  140. @touchmove.stop.prevent="moveHandle">
  141. <SystemPopup ref="system" @onCloseSystem="onCloseSystem"></SystemPopup>
  142. </uni-popup>
  143. <Tab :tab-index="0"></Tab>
  144. </view>
  145. </template>
  146. <script>
  147. import TaskItem from "@/common/task/task-item.vue";
  148. import SystemPopup from "@/common/system_popup/system_popup.vue";
  149. import PieChart from "@/common/chart/pie_chart.vue";
  150. import CircleChart from "@/common/chart/circle_chart.vue";
  151. export default {
  152. components: {
  153. TaskItem,
  154. SystemPopup,
  155. PieChart,
  156. CircleChart
  157. },
  158. data() {
  159. return {
  160. is_admin: false,
  161. scrollTop: 0,
  162. topNavHeight: 0,
  163. chartList:[{
  164. name:"超期",
  165. color:'#DE5847',
  166. value:"100%"
  167. },{
  168. name:"滞后",
  169. color:'#EF8F27',
  170. value:"100%"
  171. },{
  172. name:"正常",
  173. color:'#3ABF7D',
  174. value:"100%"
  175. },]
  176. }
  177. },
  178. created() {
  179. this.topNavHeight = getApp().globalData.topNavHeight
  180. },
  181. onLaunch() {
  182. },
  183. onLoad() {
  184. uni.hideTabBar()
  185. },
  186. watch: {
  187. },
  188. onPageScroll(res) {
  189. this.scrollTop = res.scrollTop / 120
  190. },
  191. mounted() {
  192. },
  193. methods: {
  194. onSystemShow() {
  195. this.$refs.popup.open('left')
  196. },
  197. onGetTask() {
  198. uni.navigateTo({
  199. url: "/page_subpack/gain_task/gain_task"
  200. })
  201. },
  202. onMessage() {
  203. uni.navigateTo({
  204. url: "/page_subpack/message/message"
  205. })
  206. },
  207. moveHandle() {
  208. return false
  209. },
  210. },
  211. }
  212. </script>
  213. <style lang="scss" scoped>
  214. // .page-box{
  215. // height: 100vh;
  216. // background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/index/index-bg.png?imageMogr2/quality/20");
  217. // background-repeat: no-repeat;
  218. // background-size: 100% auto;
  219. // display: flex;
  220. // flex-direction: column;
  221. // .top-data{
  222. // flex: 1;
  223. // overflow: hidden;
  224. // .top-row{
  225. // height: 680rpx;
  226. // }
  227. // }
  228. // .bottom-data{
  229. // }
  230. // }
  231. .chart_dot {
  232. width: 16rpx;
  233. height: 16rpx;
  234. border-radius: 50%;
  235. }
  236. </style>