partner.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <view class="box">
  3. <view class="top-box" :style="{background:'#'+themeColor}"> </view>
  4. <view class="topCont">
  5. <view class="topContLIne topContLIne1">
  6. <view class="topContLIneTitle">未提现金额</view>
  7. <view class="topContLIneNum">{{detail.surplus}}</view>
  8. </view>
  9. <view class="topContLIne topContLIne2">
  10. <view class="topContLIneTitle">剩余股本金额</view>
  11. <view class="topContLIneNum">{{detail.PRemaindMoney}}</view>
  12. </view>
  13. <view class="topContLIne topContLIne3">
  14. <view class="topContLIneTitle">累计提现金额</view>
  15. <view class="topContLIneNum">{{detail.PTotalCashMoney}}</view>
  16. </view>
  17. <view class="topContLIne topContLIne4">
  18. <view class="topContLIneTitle">累计分红金额</view>
  19. <view class="topContLIneNum">{{detail.BonusSum}}</view>
  20. </view>
  21. </view>
  22. <view class="lineBox">
  23. <view class="line" @click="goRouter('bonus')">
  24. <view class="lineLeft">
  25. <image src="../../static/timg/icon_fenhongjilu.png" mode="" class="lineLeftImg"></image>
  26. <view class="lineLeftTxt">分红记录</view>
  27. </view>
  28. <view class="lineRight">
  29. <view class="lineRIghtNUm">{{detail.BonusCount}}</view>
  30. <image src="../../static/timg/icon_arrow_right.png" mode="" class="lineRightImg"></image>
  31. </view>
  32. </view>
  33. <view class="line" @click="goRouter('people')">
  34. <view class="lineLeft">
  35. <image src="../../static/timg/icon_renmai.png" mode="" class="lineLeftImg"></image>
  36. <view class="lineLeftTxt">下线人脉</view>
  37. </view>
  38. <view class="lineRight">
  39. <view class="lineRIghtNUm">{{detail.PSCount}}</view>
  40. <image src="../../static/timg/icon_arrow_right.png" mode="" class="lineRightImg"></image>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="lineBox">
  45. <view class="line" @click="goRouter('myQr?type=1')">
  46. <view class="lineLeft">
  47. <image src="../../static/timg/icon_erweima.png" mode="" class="lineLeftImg"></image>
  48. <view class="lineLeftTxt">生成二维码</view>
  49. </view>
  50. <view class="lineRight">
  51. <image src="../../static/timg/icon_arrow_right.png" mode="" class="lineRightImg"></image>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. components: {
  60. },
  61. data() {
  62. return {
  63. detail:'',
  64. themeColor:'',
  65. userInfo:'',
  66. }
  67. },
  68. onLoad(opt) {
  69. this.themeColor = uni.getStorageSync("themeColor");
  70. this.userInfo = uni.getStorageSync("userInfo");
  71. this.getData()
  72. },
  73. onShow() {
  74. },
  75. methods: {
  76. getData(){
  77. uni.showLoading({
  78. title: '加载中'
  79. })
  80. this.$http('opencarInfoOwner/queryPartnerDetail', {
  81. }, 'GET').then(res => {
  82. uni.hideLoading();
  83. this.detail = res.data
  84. //console.log('list+=', this.queryShopList);
  85. })
  86. },
  87. goRouter(url){
  88. uni.navigateTo({
  89. url:url
  90. })
  91. }
  92. },
  93. onPullDownRefresh(){
  94. this.getData();
  95. setTimeout(() => {
  96. uni.stopPullDownRefresh(); // 关闭下拉刷新
  97. }, 2000);
  98. }
  99. }
  100. </script>
  101. <style scoped lang="less">
  102. .box {
  103. width: 100vw;
  104. min-height: 100vh;
  105. background: #F4F5F7;
  106. }
  107. .top-box{
  108. width: 750rpx;
  109. height: 192rpx;
  110. background: #FF0000;
  111. }
  112. .topCont{
  113. width: 702rpx;
  114. height: 358rpx;
  115. background: #FFFFFF;
  116. border-radius: 10rpx;
  117. margin-left: 24rpx;
  118. margin-top: -148rpx;
  119. display: flex;
  120. flex-wrap: wrap;
  121. }
  122. .topContLIne{
  123. width: 348rpx;
  124. height: 178rpx;
  125. text-align: center;
  126. }
  127. .topContLIne1{
  128. border-right: 1px solid #EEEEEE;
  129. border-bottom: 1px solid #EEEEEE;
  130. }
  131. .topContLIne2{
  132. border-bottom: 1px solid #EEEEEE;
  133. }
  134. .topContLIne3{
  135. border-right: 1px solid #EEEEEE;
  136. }
  137. .topContLIneTitle{
  138. color: #666666; font-size: 28rpx;padding-top: 28rpx;
  139. }
  140. .topContLIneNum{
  141. color: #FF0000;
  142. font-size: 40rpx;
  143. font-family: PingFangSC-Medium, PingFang SC;
  144. font-weight: 500;
  145. padding-top: 10rpx;
  146. }
  147. .lineLeftImg{
  148. width: 34rpx;
  149. height: 34rpx;
  150. }
  151. .lineLeftTxt{
  152. color: #333333;font-size: 28rpx;line-height: 34rpx;padding-left: 24rpx;
  153. }
  154. .lineRIghtNUm{
  155. color: #666666;font-size: 28rpx;line-height: 34rpx;padding-right: 16rpx;
  156. }
  157. .lineRightImg{
  158. width: 12rpx;
  159. height: 20rpx;
  160. margin-top: 7rpx;
  161. }
  162. .lineBox{
  163. background: #FFFFFF;width: 702rpx;margin-top: 20rpx;margin-left: 24rpx;
  164. border-radius: 10rpx;
  165. }
  166. .line{
  167. display: flex;
  168. justify-content: space-between;
  169. padding: 38rpx 32rpx;
  170. }
  171. .lineLeft{
  172. display: flex;
  173. }
  174. .lineRight{
  175. display: flex;
  176. }
  177. </style>