about.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <app-layout>
  3. <view v-if="loadingOver" class="page">
  4. <view class="list">提现比例分{{list.length}}个等级</view>
  5. <view class="list" v-for="item in list" :key="item.id">
  6. <text v-if="item.update_type == 0">分销佣金</text>
  7. <text v-if="item.update_type == 1">已提现佣金</text>
  8. <text v-if="item.update_type == 2">下线人数</text>
  9. <text v-if="item.update_type == 3">下线分销商数</text>
  10. <text v-if="item.update_type == 4">下级队长数</text>
  11. <text>达到{{item.update_condition}}</text>
  12. <text v-if="item.update_type > 1">人,</text>
  13. <text v-if="item.update_type < 2">元,</text>
  14. <text>提成等级比例为{{item.rate}}%</text>
  15. </view>
  16. </view>
  17. </app-layout>
  18. </template>
  19. <script>
  20. import { mapState } from "vuex";
  21. export default {
  22. data() {
  23. return {
  24. loadingOver: false,
  25. list: []
  26. }
  27. },
  28. computed: {
  29. ...mapState({
  30. userInfo: state => state.user.info,
  31. bonusImg: state => state.mallConfig.__wxapp_img.bonus
  32. })
  33. },
  34. methods: {
  35. getList() {
  36. this.$request({
  37. url: this.$api.bonus.member,
  38. }).then(response=>{
  39. this.$hideLoading();
  40. if(response.code === 0) {
  41. this.list = response.data.list;
  42. this.loadingOver = true;
  43. }else {
  44. uni.showToast({
  45. title: response.msg,
  46. icon: 'none',
  47. duration: 1000
  48. });
  49. }
  50. }).catch(() => {
  51. this.$hideLoading();
  52. });
  53. },
  54. },
  55. onLoad() { this.$commonLoad.onload();
  56. let that = this;
  57. that.$showLoading({
  58. type: 'global',
  59. text: '加载中...'
  60. });
  61. that.getList();
  62. }
  63. }
  64. </script>
  65. <style scoped lang="scss">
  66. .page {
  67. font-size:#{28rpx};
  68. color:#353535;
  69. position: absolute;
  70. width: 100%;
  71. height: 100%;
  72. background-color: #fff;
  73. padding: #{28rpx} 0;
  74. }
  75. .list {
  76. background-color: #fff;
  77. padding: 0 #{28rpx};
  78. }
  79. </style>