江西小程序管理端
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.

106 lines
3.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <view class="card">
  4. <view class="qcode" @click="$goPage('/pages/userCenter/scanCode/scanCode')">
  5. <image src="@/static/images/coach/ic_erweima.png" mode=""></image>
  6. </view>
  7. <user-info/>
  8. </view>
  9. <view class="card">
  10. <view class="ul">
  11. <view class="li" v-for="(item,index) in tabData" :key="index" @click="$goPage(item.url)">
  12. <view class="icon">
  13. <image :src="item.icon" mode=""></image>
  14. </view>
  15. <view class="text">{{ item.text }}</view>
  16. </view>
  17. </view>
  18. </view>
  19. <UserTab name ='我的'></UserTab>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. tabData: [
  27. {text: '待结算记录', icon: require('../../../static/images/coach/ic_daijiesuan.png'), id: 1, url: '/pages/userCenter/settled/settled'},
  28. {text: '指标充值记录', icon: require('../../../static/images/coach/ic_zhibiao.png'), id: 2, url: '/pages/userCenter/indicatorRecharge/indicatorRecharge'},
  29. {text: '我的车辆', icon: require('../../../static/images/coach/ic_cheliang.png'), id: 3, url: '/pages/userCenter/myCar/myCar'},
  30. {text: '考场信息', icon: require('../../../static/images/coach/ic_changdi.png'), id: 4, url: '/pages/userCenter/examinInfo/examinInfo'},
  31. {text: '学员评价', icon: require('../../../static/images/coach/ic_pingjia.png'), id: 5, url: '/pages/userCenter/studentComment/studentComment'},
  32. {text: '教学数据', icon: require('../../../static/images/coach/ic_shuju.png'), id: 6, url: '/pages/userCenter/teachingData/teachingData'},
  33. {text: '学员退款', icon: require('../../../static/images/coach/ic_tuikuan.png'), id: 7, url: '/pages/userCenter/refund/refund'},
  34. ]
  35. }
  36. },
  37. onLoad() {
  38. if(this.identity==2) {
  39. this.tabData = [
  40. {text: '我的车辆', icon: require('../../../static/images/coach/ic_cheliang.png'), id: 3, url: '/pages/userCenter/myCar/myCar'},
  41. {text: '学员评价', icon: require('../../../static/images/coach/ic_pingjia.png'), id: 5, url: '/pages/userCenter/studentComment/studentComment'},
  42. {text: '学员退款', icon: require('../../../static/images/coach/ic_tuikuan.png'), id: 7, url: '/pages/userCenter/refund/refund'},
  43. {text: '教学数据', icon: require('../../../static/images/coach/ic_shuju.png'), id: 6, url: '/pages/userCenter/teachingData/teachingData'},
  44. ]
  45. }else if(this.identity==3) {
  46. this.tabData = [
  47. {text: '我的车辆', icon: require('../../../static/images/coach/ic_cheliang.png'), id: 3, url: '/pages/userCenter/myCar/myCar'},
  48. {text: '学员评价', icon: require('../../../static/images/coach/ic_pingjia.png'), id: 5, url: '/pages/userCenter/studentComment/studentComment'},
  49. ]
  50. }
  51. console.log('我的页面')
  52. },
  53. onShow() {
  54. uni.hideTabBar();
  55. },
  56. methods: {
  57. goPage() {}
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .pageBgImg {
  63. padding: 140rpx 28rpx 40rpx 28rpx;
  64. }
  65. .card {
  66. margin-bottom: 24rpx;
  67. padding: 28rpx;
  68. position: relative;
  69. .qcode {
  70. width: 76rpx;
  71. height: 76rpx;
  72. position: absolute;
  73. right: 16rpx;
  74. top: 50%;
  75. transform: translateY(-50%);
  76. }
  77. }
  78. .ul {
  79. display: flex;
  80. flex-wrap: wrap;
  81. .li {
  82. display: flex;
  83. align-items: center;
  84. flex-direction: column;
  85. padding: 10rpx 0 50rpx 0;
  86. width: 33.33%;
  87. .icon {
  88. width: 72rpx;
  89. height: 72rpx;
  90. }
  91. .text {
  92. font-size: 28rpx;
  93. margin-top: 16rpx;
  94. }
  95. }
  96. }
  97. </style>