jiangjin.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="main">
  3. <view class="top">
  4. <view class="title">推广奖金</view>
  5. <view class="num">{{ promoteRewardDetail.promote_reward }}元</view>
  6. <view class="mingxi" @click="mingxi()">提现明细</view>
  7. </view>
  8. <view class="keti">
  9. <view class="keti-name">可提现奖金</view>
  10. <view class="keti-money">{{ promoteRewardDetail.balance }}元</view>
  11. </view>
  12. <view class="box">
  13. <view class="line" style="border-bottom: 1px solid #eee;">
  14. <view class="line-name">已提现奖金</view>
  15. <view class="line-money">{{ promoteRewardDetail.withdrawn }}元</view>
  16. </view>
  17. <view class="line">
  18. <view class="line-name">待打款佣金</view>
  19. <view class="line-money">{{ promoteRewardDetail.audit_balance }}元</view>
  20. </view>
  21. </view>
  22. <!-- <view class="xuzhi">
  23. <view class="name">
  24. 用户须知
  25. </view>
  26. <view class="money">
  27. >
  28. </view>
  29. </view> -->
  30. <view class="tixian" @click="tixian()">立即提现</view>
  31. </view>
  32. </template>
  33. <script>
  34. import { mapState, mapMutations, mapGetters, mapActions } from 'vuex';
  35. export default {
  36. computed: {
  37. ...mapGetters({
  38. hasLogin: 'verifyJwt'
  39. }),
  40. ...mapState(['user'])
  41. },
  42. data() {
  43. return {
  44. promoteRewardDetail: { balance: '', withdrawn: '', audit_balance: '', promote_reward: '' }
  45. };
  46. },
  47. onLoad() {
  48. this.getPromoteRewardDetail();
  49. },
  50. methods: {
  51. getPromoteRewardDetail: async function() {
  52. let res = await this.$request.post('/api/userPromote/getPromoteRewardDetail', {});
  53. if (res.code == 200) {
  54. this.promoteRewardDetail = res.data;
  55. } else {
  56. uni.showToast({
  57. icon: 'none',
  58. title: res.message
  59. });
  60. }
  61. },
  62. tixian() {
  63. console.log('123456');
  64. uni.navigateTo({
  65. url: '/pages/tuijian/cash'
  66. });
  67. },
  68. mingxi() {
  69. uni.navigateTo({
  70. url: '/pages/tuijian/cashdetail'
  71. });
  72. }
  73. }
  74. };
  75. </script>
  76. <style>
  77. page {
  78. background: #f5f5f5;
  79. }
  80. .main {
  81. width: 100vw;
  82. height: auto;
  83. margin-bottom: 20px;
  84. }
  85. .top {
  86. width: 100%;
  87. height: 75px;
  88. padding: 10px 0;
  89. background: #f1c554;
  90. }
  91. .top .title {
  92. width: auto;
  93. height: 30px;
  94. line-height: 30px;
  95. color: #fff;
  96. text-indent: 20px;
  97. }
  98. .top .num {
  99. width: auto;
  100. height: 30px;
  101. line-height: 30px;
  102. color: #fff;
  103. text-indent: 20px;
  104. }
  105. .top .mingxi {
  106. width: auto;
  107. height: 20px;
  108. line-height: 20px;
  109. padding: 0 10px;
  110. border-radius: 20px;
  111. border: 1px solid #fff;
  112. color: #fff;
  113. position: absolute;
  114. top: 30px;
  115. right: 10px;
  116. }
  117. .keti,
  118. .xuzhi,
  119. .line {
  120. display: flex;
  121. justify-content: space-between;
  122. background: #fff;
  123. line-height: 30px;
  124. padding: 10px 15px;
  125. }
  126. .box {
  127. width: 100vw;
  128. padding: 0 15px;
  129. background: #fff;
  130. margin: 15px 0;
  131. }
  132. .line {
  133. padding: 10px 0;
  134. }
  135. .tixian {
  136. width: 80vw;
  137. height: 40px;
  138. line-height: 40px;
  139. border-radius: 40px;
  140. background: #f1c554;
  141. text-align: center;
  142. margin: 20px 10vw;
  143. color: #fff;
  144. }
  145. .keti .keti-name,.line .line-name{
  146. font-size: 30rpx;
  147. font-family: PingFangSC-Regular, sans-serif;
  148. font-weight:400;
  149. }
  150. .keti .keti-money,.line .line-money{
  151. font-size: 30rpx;
  152. font-family: PingFangSC-Regular, sans-serif;
  153. font-weight:400;
  154. }
  155. </style>