You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.5 KiB

9 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
8 months ago
9 months ago
8 months ago
  1. <template>
  2. <view class="main" :style="{ background: `url(${imgUrl}) #f6f6f6 no-repeat`, backgroundSize: backgroundSize }">
  3. <operateCoach v-if="identity=='实操教练'"/>
  4. <principal v-if="identity=='校长'||identity=='驾校财务'"/>
  5. <UserTab name ='统计'></UserTab>
  6. <u-popup :show="show" mode="center" round="20rpx">
  7. <view class="box">
  8. <view class="tit">您还未上传签名请尽快上传!</view>
  9. <view class="btnBg" @click="goPage">去签名</view>
  10. </view>
  11. </u-popup>
  12. </view>
  13. </template>
  14. <script>
  15. import operateCoach from './comp/operateCoach'
  16. import principal from './comp/principal'
  17. import { imgUrl } from '@/config/site.config'
  18. import { needSign } from '@/config/api.js'
  19. export default {
  20. components: {
  21. operateCoach,
  22. principal
  23. },
  24. data() {
  25. return {
  26. imgUrl: imgUrl+'indexTopBanner.png',
  27. backgroundSize: '100% 492rpx',
  28. show: false,
  29. }
  30. },
  31. onShow() {
  32. uni.hideTabBar();
  33. },
  34. onLoad() {
  35. this.needSignFn()
  36. },
  37. methods: {
  38. async needSignFn() {
  39. const {data: res} = await needSign()
  40. if(res) {
  41. this.show = true
  42. }
  43. },
  44. goPage() {
  45. this.show = false
  46. this.$goPage('/pages/userCenter/signature/signature')
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .box {
  53. padding: 40rpx 50rpx;
  54. text-align: center;
  55. font-size: 28rpx;
  56. color: #333;
  57. .tit {
  58. padding: 30rpx 0 60rpx 0;
  59. color: $themC;
  60. font-weight: 700;
  61. }
  62. .btnBg {
  63. width: 370rpx;
  64. margin: auto;
  65. }
  66. }
  67. </style>