home.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='创衡正念企业教练' bgColor="transparent" :showback="false"></cus-header>
  4. <image class="topbg" src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/dbb693be-c302-4848-8e2e-a4eb263aa60c.png"></image>
  5. <div class="home_top">
  6. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/12c326b4-7328-4282-9175-a87903adbf12.png"></image>
  7. <p>Hi,我是AI团队教练助手</p>
  8. <p class="tip">可以为你提供全方位多角度的PREILL团队分析</p>
  9. </div>
  10. <div class="order">
  11. <div class="pre">
  12. <div class="top">
  13. <div class="left">
  14. <p>我的问卷</p>
  15. <p>{{wjDwc}}/{{wjYwc}}</p>
  16. </div>
  17. <div class="right">
  18. <p>待完成:<span>{{wjDwc}}</span></p>
  19. <p>已完成:<span>{{wjYwc}}</span></p>
  20. </div>
  21. </div>
  22. <div class="bottom">
  23. <div class="jd" :style="{'width':(wjDwc/(wjDwc+wjYwc)*100)+'%'}"></div>
  24. </div>
  25. </div>
  26. <div class="pre">
  27. <div class="top">
  28. <div class="left">
  29. <p>我的报告</p>
  30. <p>{{bgGr}}/{{bgTd}}</p>
  31. </div>
  32. <div class="right">
  33. <p class="gr">个人:<span>{{bgGr}}</span></p>
  34. <p>团队:<span>{{bgTd}}</span></p>
  35. </div>
  36. </div>
  37. <div class="bottom">
  38. <div class="jd green" :style="{'width':(bgGr/(bgGr+bgTd)*100)+'%'}"></div>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="title">快速访问</div>
  43. <div class="menus adfacjb">
  44. <div class="m_pre adffcacjc" @tap="toTurn('/pages/dialog')">
  45. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/b86ddd7a-6111-48d8-a9db-54a62a3446c4.png"></image>
  46. <p>智能问答</p>
  47. </div>
  48. <div class="m_pre adffcacjc" @tap="toTurn('/pages/report')">
  49. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/35023203-f2d3-4c09-bd13-31047ec68d9e.png"></image>
  50. <p>我的报告</p>
  51. </div>
  52. <div class="m_pre adffcacjc" @tap="toTurn('/pages/questionnaire')">
  53. <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/79bf1765-b520-43c7-9ed0-ab1d1a84fe64.png"></image>
  54. <p>我的问卷</p>
  55. </div>
  56. </div>
  57. <Tabbar :tabbarIndex="0"></Tabbar>
  58. </view>
  59. </template>
  60. <script>
  61. import Tabbar from '@/components/CusTabbar/index.vue'
  62. export default {
  63. components:{ Tabbar },
  64. data(){
  65. return {
  66. wjDwc:0,
  67. wjYwc:0,
  68. bgGr:0,
  69. bgTd:0
  70. }
  71. },
  72. onLoad() {
  73. this.getWjList();
  74. this.getReportList2();
  75. this.getReportList();
  76. },
  77. methods:{
  78. toTurn(url){
  79. if(!url) return
  80. uni.navigateTo({
  81. url
  82. })
  83. },
  84. getWjList(){
  85. this.$api.get('/core/teammember/que/listByUser').then(res=>{
  86. if(res.data.code!==0) return this.$showToast(res.data.msg)
  87. this.wjDwc = res.data.data.filter(d=>d.status===0).length;
  88. this.wjYwc = res.data.data.filter(d=>d.status===1).length;
  89. })
  90. },
  91. getReportList(){
  92. this.$api.get('/core/report/member/personalReportList/2').then(res=>{
  93. if(res.data.code!==0) return this.$showToast(res.data.msg)
  94. this.bgGr = res.data.data.filter(d=>d.type==2).length;
  95. })
  96. },
  97. getReportList2(){
  98. this.$api.get('/core/report/member/personalReportList/1').then(res=>{
  99. if(res.data.code!==0) return this.$showToast(res.data.msg)
  100. this.bgTd = res.data.data.filter(d=>d.type==1).length;
  101. })
  102. }
  103. }
  104. }
  105. </script>
  106. <style scoped lang="less">
  107. .tabPage{
  108. background: #FFFFFF;
  109. padding: 0 30rpx 192rpx;
  110. box-sizing: border-box;
  111. .topbg{
  112. width: 100%;
  113. height: 720rpx;
  114. position: fixed;
  115. top: 0;
  116. left: 0;
  117. }
  118. .home_top{
  119. width: 100%;
  120. height: 288rpx;
  121. position: relative;
  122. background:url(https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/537756e6-f473-479e-ab0a-1a56cce38cd2.png) no-repeat;
  123. background-size: 100% 100%;
  124. padding-left: 275rpx;
  125. box-sizing: border-box;
  126. padding-top: 71rpx;
  127. margin-top: 52rpx;
  128. &>image{
  129. width: 184rpx;
  130. height: 312rpx;
  131. position: absolute;
  132. left: 31rpx;
  133. bottom: 19rpx;
  134. }
  135. &>p{
  136. font-family: PingFang-SC, PingFang-SC;
  137. font-weight: bold;
  138. font-size: 34rpx;
  139. color: #252525;
  140. line-height: 48rpx;
  141. &.tip{
  142. font-family: PingFangSC, PingFang SC;
  143. font-weight: 400;
  144. font-size: 28rpx;
  145. color: #6B7280;
  146. line-height: 40rpx;
  147. margin-top: 11rpx;
  148. }
  149. }
  150. }
  151. .order{
  152. display: flex;
  153. justify-content: space-between;
  154. position: relative;
  155. margin-top: 20rpx;
  156. position: relative;
  157. .pre{
  158. width: calc(50% - 9rpx);
  159. background: linear-gradient( 180deg, #FFFFFF 0%, #FFFFFF 100%);
  160. box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(131,52,120,0.08);
  161. border-radius: 12rpx;
  162. padding: 40rpx 24rpx;
  163. box-sizing: border-box;
  164. .top{
  165. display: flex;
  166. align-items: center;
  167. justify-content: space-between;
  168. .left{
  169. p{
  170. font-family: PingFangSC, PingFang SC;
  171. font-weight: 400;
  172. font-size: 28rpx;
  173. color: #252525;
  174. line-height: 28rpx;
  175. &:last-child{
  176. font-family: DINAlternate, DINAlternate;
  177. font-weight: bold;
  178. font-size: 40rpx;
  179. color: #333333;
  180. line-height: 40rpx;
  181. margin-top: 30rpx;
  182. }
  183. }
  184. }
  185. .right{
  186. p{
  187. font-family: PingFangSC, PingFang SC;
  188. font-weight: 400;
  189. font-size: 24rpx;
  190. color: #657588;
  191. position: relative;
  192. padding-left: 16rpx;
  193. &::before{
  194. content: '';
  195. width: 10rpx;
  196. height: 10rpx;
  197. background: #FEA400;
  198. border-radius: 50%;
  199. position: absolute;
  200. left: 0;
  201. top: 50%;
  202. margin-top: -5rpx;
  203. }
  204. &.gr::before{
  205. background: #31D1D6;
  206. }
  207. &:last-child{
  208. margin-top: 44rpx;
  209. &::before{
  210. background: #DDE0E6;
  211. }
  212. }
  213. span{
  214. color: #1D2129;
  215. }
  216. }
  217. }
  218. }
  219. .bottom{
  220. width: 100%;
  221. height: 10rpx;
  222. background: #DFE5EE;
  223. border-radius: 3rpx;
  224. margin-top: 30rpx;
  225. position: relative;
  226. .jd{
  227. height: 10rpx;
  228. background: #FEA400;
  229. border-radius: 3rpx;
  230. position: absolute;
  231. left: 0;
  232. top: 0;
  233. &.green{
  234. background: #31D1D6;
  235. }
  236. }
  237. }
  238. }
  239. }
  240. &>.title{
  241. font-family: PingFang-SC, PingFang-SC;
  242. font-weight: bold;
  243. font-size: 34rpx;
  244. color: #111111;
  245. line-height: 48rpx;
  246. margin-top: 44rpx;
  247. }
  248. .menus{
  249. margin-top: 64rpx;
  250. .m_pre{
  251. width: calc(100% / 3);
  252. image{
  253. width: 110rpx;
  254. height: 110rpx;
  255. }
  256. p{
  257. font-family: PingFangSC, PingFang SC;
  258. font-weight: 400;
  259. font-size: 26rpx;
  260. color: #252525;
  261. line-height: 37rpx;
  262. text-align: center;
  263. margin-top: 24rpx;
  264. }
  265. }
  266. }
  267. }
  268. </style>