invite.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <template>
  2. <view class="box">
  3. <view class="header">
  4. <image :src="detailData.tSSetting.bannerImg" mode="" class="bar"></image>
  5. <image src="../../static/img/btn_act@2x.png" mode="" class="guizeBtn" @click="guize"></image>
  6. </view>
  7. <!-- 统计 -->
  8. <view class="sumBg">
  9. <view class="viewBg" @click="gonavigateTo('commissionHistory')">
  10. <view class="money" style="color: #FF4F00;">¥{{detailData.totalMoney}}</view>
  11. <view class="moneyTitle">累计佣金
  12. <image src="../../static/img/icon_arrow@2x.png" mode="" style="width: 18rpx; height: 18rpx;">
  13. </image>
  14. </view>
  15. </view>
  16. <view class="line"></view>
  17. <view class="viewBg" @click="gonavigateTo('extractHistory')">
  18. <view class="money">¥{{detailData.withdrawalMoney}}</view>
  19. <view class="moneyTitle">累计提现
  20. <image src="../../static/img/icon_arrow@2x.png" mode="" style="width: 18rpx; height: 18rpx;">
  21. </image>
  22. </view>
  23. </view>
  24. <view class="line"></view>
  25. <view class="viewBg" @click="gonavigateTo('invitePeople')">
  26. <view class="money">¥{{detailData.shareCount}}</view>
  27. <view class="moneyTitle">邀请人数
  28. <image src="../../static/img/icon_arrow@2x.png" mode="" style="width: 18rpx; height: 18rpx;">
  29. </image>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 明细 -->
  34. <view class="mingxiBg" v-if="arr.length > 0">
  35. <view class="mingxi">
  36. <view v-for="(item,index) in arr" :key="index">
  37. <view class="itemBg">
  38. <image :src='item.MemberHeadImg' mode="" style="width: 72rpx; height: 72rpx; border-radius: 36rpx;"></image>
  39. <view class="nickName" v-if="item.MemberNickName">{{item.MemberNickName}}</view>
  40. <view class="time">{{item.CreateTime.slice(0,item.CreateTime.length-8)}}</view>
  41. <view class="jine">+{{item.Money}}</view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 查看更多 -->
  46. <view class="moreView">
  47. <view style="color: #3F90F7; font-size: 30rpx;" @click="gonavigateTo('commissionHistory')">查看更多</view>
  48. <image src="../../static/img/icon_arrow_blue.png" mode="" style="width: 24rpx; height: 24rpx;"></image>
  49. </view>
  50. </view>
  51. <view class="mingxiBg" v-else>
  52. <image :src="emptyImg" mode="" class="emptyImg"></image>
  53. </view>
  54. <view style="height: 180rpx;"></view>
  55. <view class="bottomView">
  56. <view class="bottomImg" @click="gonavigateTo('inviteImg')">
  57. <image src="../../static/img/icon_ma@2x.png" mode="" style="width: 30rpx; height: 30rpx; margin-right: 10rpx;">面对面邀请</image>
  58. </view>
  59. <button class="bottomImg2" open-type="share">立即邀请</button>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. export default {
  65. data() {
  66. return {
  67. detailData:{},
  68. arr: [],
  69. emptyImg:'http://123.56.219.146:10086/keepCar/jqsy.png',
  70. uidStr:'',
  71. share:{
  72. title:'车蓝图4S店养车服务',
  73. path: 'pages/homePage/homePage?scene=' + this.uidStr,
  74. imageUrl:'',
  75. desc:'',
  76. content:''
  77. }
  78. }
  79. },
  80. onLoad() {
  81. this.uidStr = uni.getStorageSync("logodata").uid.replace(/\-/g, "")
  82. },
  83. onShow() {
  84. this.getDetailData();
  85. },
  86. methods: {
  87. onShareAppMessage:function() {
  88. },
  89. guize(){
  90. uni.navigateTo({
  91. url:'guize?couContent=' + this.detailData.tSSetting.activityRules
  92. })
  93. },
  94. getDetailData() {
  95. uni.showLoading({
  96. title: '加载中'
  97. })
  98. let url = 'worldKeepCar/worldDistribution/queryDistributionIndexDetail',
  99. params = {
  100. }
  101. this.$http(url, params, 'GET').then(res => {
  102. uni.hideLoading();
  103. var data = res.data
  104. // 处理 undefined和null转为空白字符串
  105. for (const key in data) {
  106. data[key] = this.$praseStrEmpty(data[key])
  107. }
  108. this.detailData = data
  109. this.arr = this.detailData.recentEarnings
  110. })
  111. },
  112. gonavigateTo(url) {
  113. uni.navigateTo({
  114. url: url
  115. })
  116. }
  117. },
  118. // 下拉刷新 上拉加载更多
  119. onPullDownRefresh() {
  120. this.getDetailData()
  121. setTimeout(function() {
  122. uni.stopPullDownRefresh();
  123. }, 1000);
  124. },
  125. // onReachBottom() {
  126. // this.page++;
  127. // this.getItemData()
  128. // },
  129. }
  130. </script>
  131. <style scoped>
  132. .box {
  133. min-height: 100vh;
  134. background: #F4F5F7;
  135. }
  136. .header {
  137. width: 100%;
  138. height: 750rpx;
  139. position: relative;
  140. }
  141. .bar{
  142. width: 100%;
  143. height: 750rpx;
  144. }
  145. .guizeBtn {
  146. position: absolute;
  147. left: 580rpx;
  148. top: 48rpx;
  149. width: 169rpx;
  150. height: 56rpx;
  151. }
  152. .sumBg {
  153. display: flex;
  154. justify-content: space-between;
  155. align-items: center;
  156. margin: 20rpx 24rpx;
  157. padding: 36rpx 50rpx;
  158. background-color: #FFFFFF;
  159. border-radius: 10rpx;
  160. }
  161. .viewBg {
  162. display: flex;
  163. flex-direction: column;
  164. align-items: center;
  165. background-color: #FFFFFF;
  166. }
  167. .money {
  168. font-size: 38rpx;
  169. color: #000000;
  170. font-weight: bold;
  171. }
  172. .moneyTitle {
  173. font-size: 28rpx;
  174. color: #666666;
  175. }
  176. .line {
  177. width: 1rpx;
  178. height: 73rpx;
  179. background-color: #EEEEEE;
  180. }
  181. .mingxiBg{
  182. margin: 0rpx 24rpx;
  183. background-color: #FFFFFF;
  184. border-radius: 10rpx;
  185. }
  186. .mingxi {
  187. background-image: url('http://123.56.219.146:10086/keepCar/jqsy2.png');
  188. background-size: 100%;
  189. background-repeat: no-repeat;
  190. padding-top: 89rpx;
  191. }
  192. .emptyImg{
  193. height: 493rpx;
  194. width: 100%;
  195. }
  196. .itemBg {
  197. height: 98rpx;
  198. margin: 0 20rpx;
  199. display: flex;
  200. justify-content: space-between;
  201. align-items: center;
  202. }
  203. .nickName {
  204. font-size: 30rpx;
  205. color: #3C3C3C;
  206. width: 40%;
  207. margin: 0 15rpx;
  208. overflow: hidden;
  209. text-overflow: ellipsis;
  210. white-space: nowrap;
  211. }
  212. .time {
  213. font-size: 30rpx;
  214. color: #999999;
  215. width: 27%;
  216. }
  217. .jine {
  218. font-size: 32rpx;
  219. color: #FF4F00;
  220. font-weight: bold;
  221. margin: 0 15rpx;
  222. }
  223. .moreView{
  224. height: 92rpx;
  225. display: flex;
  226. justify-content: center;
  227. align-items: center;
  228. }
  229. .bottomView{
  230. background-color: #FFFFFF;
  231. width: 100%;
  232. height: 120rpx;
  233. position: fixed;
  234. bottom: 0rpx;
  235. display: flex;
  236. justify-content: space-around;
  237. align-items: center;
  238. }
  239. .bottomImg{
  240. background-color: #FFFFFF;
  241. border: #FF4F00 1rpx solid;
  242. margin: 23rpx 30rpx;
  243. height: 74rpx;
  244. width: 50%;
  245. border-radius: 37rpx;
  246. color: #FF4F00;
  247. font-size: 30rpx;
  248. text-align: center;
  249. line-height: 74rpx;
  250. align-items: center;
  251. display: flex;
  252. justify-content: center;
  253. }
  254. .bottomImg2{
  255. background: linear-gradient(135deg, #FD5300 0%, #FF270A 100%);
  256. margin: 23rpx 30rpx;
  257. height: 74rpx;
  258. width: 50%;
  259. border-radius: 37rpx;
  260. color: #FFFFFF;
  261. font-size: 30rpx;
  262. text-align: center;
  263. }
  264. </style>