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

92 lines
2.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. <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 selectedIndex ='2'></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. console.log('我的页面')
  39. },
  40. onShow() {
  41. // uni.hideTabBar();
  42. },
  43. methods: {
  44. goPage() {}
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .pageBgImg {
  50. padding: 140rpx 28rpx 40rpx 28rpx;
  51. }
  52. .card {
  53. margin-bottom: 24rpx;
  54. padding: 28rpx;
  55. position: relative;
  56. .qcode {
  57. width: 76rpx;
  58. height: 76rpx;
  59. position: absolute;
  60. right: 16rpx;
  61. top: 50%;
  62. transform: translateY(-50%);
  63. }
  64. }
  65. .ul {
  66. display: flex;
  67. flex-wrap: wrap;
  68. .li {
  69. display: flex;
  70. align-items: center;
  71. flex-direction: column;
  72. padding: 10rpx 0 50rpx 0;
  73. width: 33.33%;
  74. .icon {
  75. width: 72rpx;
  76. height: 72rpx;
  77. }
  78. .text {
  79. font-size: 28rpx;
  80. margin-top: 16rpx;
  81. }
  82. }
  83. }
  84. </style>