home.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. <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" @tap="toTurn('/pages/questionnaire')">
  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" @tap="toTurn('/pages/report')">
  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. if(url!=='/pages/dialog'&&!this.isLogin()) return
  81. uni.navigateTo({
  82. url
  83. })
  84. },
  85. getWjList(){
  86. this.$api.get('/core/teammember/que/listByUser').then(res=>{
  87. // if(res.data.code!==0) return this.$showToast(res.data.msg)
  88. if(res.data.code!==0) return
  89. this.wjDwc = res.data.data.filter(d=>d.status===0).length;
  90. this.wjYwc = res.data.data.filter(d=>d.status===1).length;
  91. })
  92. },
  93. getReportList(){
  94. this.$api.get('/core/report/member/personalReportList/2').then(res=>{
  95. if(res.data.code!==0) return
  96. this.bgGr = res.data.data.filter(d=>d.type==2).length;
  97. })
  98. },
  99. getReportList2(){
  100. this.$api.get('/core/report/member/personalReportList/1').then(res=>{
  101. if(res.data.code!==0) return
  102. this.bgTd = res.data.data.filter(d=>d.type==1).length;
  103. })
  104. }
  105. }
  106. }
  107. </script>
  108. <style scoped lang="less">
  109. .tabPage{
  110. background: #FFFFFF;
  111. padding: 0 30rpx 192rpx;
  112. box-sizing: border-box;
  113. .topbg{
  114. width: 100%;
  115. height: 720rpx;
  116. position: fixed;
  117. top: 0;
  118. left: 0;
  119. }
  120. .home_top{
  121. width: 100%;
  122. height: 288rpx;
  123. position: relative;
  124. background:url(https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/537756e6-f473-479e-ab0a-1a56cce38cd2.png) no-repeat;
  125. background-size: 100% 100%;
  126. padding-left: 275rpx;
  127. box-sizing: border-box;
  128. padding-top: 71rpx;
  129. margin-top: 52rpx;
  130. &>image{
  131. width: 184rpx;
  132. height: 312rpx;
  133. position: absolute;
  134. left: 31rpx;
  135. bottom: 19rpx;
  136. }
  137. &>p{
  138. font-family: PingFang-SC, PingFang-SC;
  139. font-weight: bold;
  140. font-size: 34rpx;
  141. color: #252525;
  142. line-height: 48rpx;
  143. &.tip{
  144. font-family: PingFangSC, PingFang SC;
  145. font-weight: 400;
  146. font-size: 28rpx;
  147. color: #6B7280;
  148. line-height: 40rpx;
  149. margin-top: 11rpx;
  150. }
  151. }
  152. }
  153. .order{
  154. display: flex;
  155. justify-content: space-between;
  156. position: relative;
  157. margin-top: 20rpx;
  158. position: relative;
  159. .pre{
  160. width: calc(50% - 9rpx);
  161. background: linear-gradient( 180deg, #FFFFFF 0%, #FFFFFF 100%);
  162. box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(131,52,120,0.08);
  163. border-radius: 12rpx;
  164. padding: 40rpx 24rpx;
  165. box-sizing: border-box;
  166. .top{
  167. display: flex;
  168. align-items: center;
  169. justify-content: space-between;
  170. .left{
  171. p{
  172. font-family: PingFangSC, PingFang SC;
  173. font-weight: 400;
  174. font-size: 28rpx;
  175. color: #252525;
  176. line-height: 28rpx;
  177. &:last-child{
  178. font-family: DINAlternate, DINAlternate;
  179. font-weight: bold;
  180. font-size: 40rpx;
  181. color: #333333;
  182. line-height: 40rpx;
  183. margin-top: 30rpx;
  184. }
  185. }
  186. }
  187. .right{
  188. p{
  189. font-family: PingFangSC, PingFang SC;
  190. font-weight: 400;
  191. font-size: 24rpx;
  192. color: #657588;
  193. position: relative;
  194. padding-left: 16rpx;
  195. &::before{
  196. content: '';
  197. width: 10rpx;
  198. height: 10rpx;
  199. background: #FEA400;
  200. border-radius: 50%;
  201. position: absolute;
  202. left: 0;
  203. top: 50%;
  204. margin-top: -5rpx;
  205. }
  206. &.gr::before{
  207. background: #31D1D6;
  208. }
  209. &:last-child{
  210. margin-top: 44rpx;
  211. &::before{
  212. background: #DDE0E6;
  213. }
  214. }
  215. span{
  216. color: #1D2129;
  217. }
  218. }
  219. }
  220. }
  221. .bottom{
  222. width: 100%;
  223. height: 10rpx;
  224. background: #DFE5EE;
  225. border-radius: 3rpx;
  226. margin-top: 30rpx;
  227. position: relative;
  228. .jd{
  229. height: 10rpx;
  230. background: #FEA400;
  231. border-radius: 3rpx;
  232. position: absolute;
  233. left: 0;
  234. top: 0;
  235. &.green{
  236. background: #31D1D6;
  237. }
  238. }
  239. }
  240. }
  241. }
  242. &>.title{
  243. font-family: PingFang-SC, PingFang-SC;
  244. font-weight: bold;
  245. font-size: 34rpx;
  246. color: #111111;
  247. line-height: 48rpx;
  248. margin-top: 44rpx;
  249. }
  250. .menus{
  251. margin-top: 64rpx;
  252. .m_pre{
  253. width: calc(100% / 3);
  254. image{
  255. width: 110rpx;
  256. height: 110rpx;
  257. }
  258. p{
  259. font-family: PingFangSC, PingFang SC;
  260. font-weight: 400;
  261. font-size: 26rpx;
  262. color: #252525;
  263. line-height: 37rpx;
  264. text-align: center;
  265. margin-top: 24rpx;
  266. }
  267. }
  268. }
  269. }
  270. </style>