result.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--pages/result/result.wxml-->
  2. <view class='container'>
  3. <image src='../../image/block.png' class='block' style="padding-top:{{statusBar+10}}px" bindtap='blockCtl'></image>
  4. <view class='wrapper' style="margin-top:{{statusBar-10}}px">
  5. <image src='../../image/nian_ling_bg.png' class='logo'></image>
  6. <view class='list' wx:if="{{!isTest}}">
  7. <!-- <view class='title' style="margin-top:{{statusBar}}px"> {{appraisal}}</view> -->
  8. <view class='li-canvas'>
  9. <view class='li-canvas-core'>
  10. <view class='li-canvas-core-num'>{{score}}</view>
  11. <view class="li-canvas-progress">
  12. <view class="li-canvas-progress-items" style="width: {{(score/600)*100}}%;border-radius:{{score==600?'8rpx':'8rpx 0 0 8rpx'}}"></view>
  13. </view>
  14. <!-- <view class='list-number'>第{{level}}关测评得分</view>
  15. <view class='li-canvas-core-text' wx:if="{{isRefer==0}}">累计得分 : {{totalScore}}</view> -->
  16. </view>
  17. <view class="li-canvas-items">
  18. <canvas canvas-id='result' class='li-canvas-item'></canvas>
  19. </view>
  20. </view>
  21. <view class='post' wx:if="{{!isTest}}">
  22. <view class='post-item' wx:for='{{list}}' wx:key='index'>
  23. <view class='post-items'>
  24. <text class='post-item-num'>{{item.value}}</text>
  25. <view class='post-item-content' style='height:{{item.value*3}}rpx;background:{{item.value<60?"#F94747":59.9<item.value&&item.value<81?"#475CF9":"#26B949"}}'></view>
  26. <text class='post-item-value'>{{item.text}}</text>
  27. </view>
  28. </view>
  29. </view>
  30. <view class='footer' wx:if="{{!isTest&&isHistory!=1}}">
  31. <image src='../../image/history.png' class="footer-btn" data-url='history' bindtap='redirectCtl' wx:if='{{userInfo}}'></image>
  32. <image src='../../image/cha_kan_pai_ming.png' class="footer-btn" data-url='ranking' bindtap='navigateCtl' wx:if='{{userInfo}}'></image>
  33. <!-- <view class='footer-btn' data-url='ranking' bindtap='navigateCtl' wx:if='{{userInfo}}'>查看排名</view> -->
  34. <button class='head-text' open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo" wx:if='{{!userInfo}}'>
  35. <image src='../../image/cha_kan_pai_ming.png' class="footer-btn"></image>
  36. </button>
  37. </view>
  38. </view>
  39. <view class='no' wx:if="{{isTest}}">
  40. <image class='no-img' src='../../image/no_test.png'></image>
  41. <image class='no-test' src='../../image/qu_ce_shi.png' bindtap='getTest'></image>
  42. </view>
  43. </view>
  44. </view>