my-commission.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!-- 我的佣金 -->
  2. <template>
  3. <view class="wrap">
  4. <view class="card">
  5. <view class="card-label">我的佣金</view>
  6. <view class="card-middle">
  7. <view class="money">
  8. <text>13490.28</text>
  9. </view>
  10. <button type="default" class="btn">立即提现</button>
  11. </view>
  12. <view class="card-bottom">
  13. <view class="card-bottom-row">
  14. <text class="card-bottom-row-label">累计提现</text>
  15. <view class="small-money">
  16. <text>13490.28</text>
  17. </view>
  18. </view>
  19. <view class="password-msg">
  20. 修改密码
  21. </view>
  22. </view>
  23. </view>
  24. <scroll-view scroll-x="true" class="tab-list">
  25. <view :class="{ 'active' : isActive === index }" class="child" v-for="(item,index) in navList" :key="index"
  26. @click="checked(index)">
  27. {{item.title}}
  28. </view>
  29. </scroll-view>
  30. <view class="list">
  31. <view class="item">
  32. <view class="item-sidebar">
  33. <view class="item-name">
  34. 商品购买
  35. </view>
  36. <view class="item-msg">2020-02-24 14:3:23</view>
  37. </view>
  38. <text :class="[num==true?'numadd':'numless']">{{num==true ? '+' : '-'}}1239.98</text>
  39. </view>
  40. <view class="item">
  41. <view class="item-sidebar">
  42. <view class="item-name">
  43. 商品购买
  44. </view>
  45. <view class="item-msg">2020-02-24 14:3:23</view>
  46. </view>
  47. <text :class="[num==true?'numadd':'numless']">{{num==true ? '+' : '-'}}1239.98</text>
  48. </view>
  49. <view class="item">
  50. <view class="item-sidebar">
  51. <view class="item-name">
  52. 商品购买
  53. </view>
  54. <view class="item-msg">2020-02-24 14:3:23</view>
  55. </view>
  56. <text :class="[num==true?'numadd':'numless']">{{num==true ? '+' : '-'}}1239.98</text>
  57. </view>
  58. <!-- 无内容时显示 -->
  59. <!-- <view class="normal-box">
  60. <image src="../../../static/normal-3.png" mode="widthFix"></image>
  61. 暂无佣金明细
  62. </view> -->
  63. </view>
  64. </view>
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. //选项卡
  71. isActive: 0,
  72. navList: [{
  73. index: 0,
  74. title: '佣金明细',
  75. }, {
  76. index: 1,
  77. title: "提现明细",
  78. }],
  79. num: true
  80. }
  81. },
  82. methods: {
  83. checked(index) {
  84. this.isActive = index
  85. },
  86. }
  87. }
  88. </script>
  89. <style scoped lang="scss">
  90. @import "./my-commission.css";
  91. </style>