home.vue 7.3 KB

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