referral.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <template>
  2. <view class="box">
  3. <view class="contBox">
  4. <view class="top">
  5. <view class="topLeft">
  6. <view class="topLeftTitle">未提现返利</view>
  7. <view class="topLeftNum">{{detail.noMoney}}</view>
  8. </view>
  9. <view class="topRight" @click="goRouter('extract')">提现</view>
  10. </view>
  11. <view class="xffl">
  12. <view class="xfflTitle">消费返利</view>
  13. <view class="xfflLine">
  14. <view class="xfflLineLeft">
  15. <view class="xfflyq"></view>
  16. <view class="xfflLineLeftTxt">一级人脉/返利</view>
  17. </view>
  18. <view class="xfflLineM" @click="goRouter('myConnections')">{{detail.oneNum}} 人</view>
  19. <view class="xfflLineR" @click="goRouter('rebateList')">¥ {{detail.oneMoney}}</view>
  20. </view>
  21. <view class="xfflLine">
  22. <view class="xfflLineLeft">
  23. <view class="xfflyq2"></view>
  24. <view class="xfflLineLeftTxt">二级人脉/返利</view>
  25. </view>
  26. <view class="xfflLineM" @click="goRouter('myConnections')">{{detail.twoNum}} 人</view>
  27. <view class="xfflLineR" @click="goRouter('rebateList')">¥ {{detail.twoMoney}}</view>
  28. </view>
  29. <view class="xfflLine">
  30. <view class="xfflLineLeft">
  31. <view class="xfflyq3"></view>
  32. <view class="xfflLineLeftTxt">三级人脉/返利</view>
  33. </view>
  34. <view class="xfflLineM" @click="goRouter('myConnections')">{{detail.threeNum}} 人</view>
  35. <view class="xfflLineR" @click="goRouter('rebateList')">¥ {{detail.threeMoney}}</view>
  36. </view>
  37. <view class="xfflLine">
  38. <view class="xfflLineLeft">
  39. <view class="xfflyq4"></view>
  40. <view class="xfflLineLeftTxt">累计人脉/返利</view>
  41. </view>
  42. <view class="xfflLineM" @click="goRouter('myConnections')">{{detail.totalNum}} 人</view>
  43. <view class="xfflLineR" @click="goRouter('rebateList')">¥ {{detail.totalMoney}}</view>
  44. </view>
  45. </view>
  46. <view class="xffl" >
  47. <view class="xfflTitle">扫码注册返利</view>
  48. <view class="xfflLine">
  49. <view class="xfflLineLeft">
  50. <view class="xfflyq"></view>
  51. <view class="xfflLineLeftTxt">人数/返利</view>
  52. </view>
  53. <view class="xfflLineM">{{detail.scanNum}} 人</view>
  54. <view class="xfflLineR">¥{{detail.scanMoney}}</view>
  55. </view>
  56. </view>
  57. <view class="lineBox">
  58. <view class="line" @click="goRouter('../partner/myQr?type=2')">
  59. <view class="lineLeft">
  60. <image src="../../static/timg/icon_erweima.png" mode="" class="lineLeftImg"></image>
  61. <view class="lineLeftTxt">生成二维码</view>
  62. </view>
  63. <view class="lineRight">
  64. <image src="../../static/timg/icon_arrow_right.png" mode="" class="lineRightImg"></image>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="smBox" @click="goRouter('referralExplain')">
  69. <image src="../../static/timg/icon_shuom.png" mode="" class="smImg"></image>
  70. <view class="smTxt">说明</view>
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. export default {
  77. components: {
  78. },
  79. data() {
  80. return {
  81. detail:'',
  82. themeColor:'',
  83. userInfo:'',
  84. }
  85. },
  86. onLoad(opt) {
  87. this.themeColor = uni.getStorageSync("themeColor");
  88. this.userInfo = uni.getStorageSync("userInfo");
  89. this.getData();
  90. //this.getExplain();
  91. },
  92. onShow() {
  93. },
  94. methods: {
  95. getData(){
  96. uni.showLoading({
  97. title: '加载中'
  98. })
  99. this.$http('openMCustomer/getIndexData', {
  100. }, 'GET').then(res => {
  101. uni.hideLoading();
  102. this.detail = res.data
  103. //console.log('list+=', this.queryShopList);
  104. })
  105. },
  106. getExplain(){
  107. this.$http('openMCustomer/getExplain', {
  108. }, 'GET').then(res => {
  109. //uni.hideLoading();
  110. //this.detail = res.data
  111. //console.log('list+=', this.queryShopList);
  112. })
  113. },
  114. goRouter(url){
  115. uni.navigateTo({
  116. url:url
  117. })
  118. }
  119. }
  120. }
  121. </script>
  122. <style scoped lang="less">
  123. .box {
  124. width: 100vw;
  125. min-height: 100vh;
  126. background: #F4F5F7;
  127. }
  128. .contBox{
  129. padding: 20rpx 24rpx;
  130. }
  131. .top{
  132. background: #FFFFFF;
  133. border-radius: 10rpx;
  134. padding: 24rpx 20rpx;
  135. display: flex;
  136. justify-content: space-between;
  137. }
  138. .topLeftTitle{
  139. font-size: 30rpx;
  140. font-family: PingFangSC-Medium, PingFang SC;
  141. font-weight: 500;
  142. color: #333333;
  143. }
  144. .topLeftNum{
  145. font-size: 40rpx;
  146. font-family: PingFangSC-Semibold, PingFang SC;
  147. font-weight: 600;
  148. color: #FF0000;
  149. padding-top: 24rpx;
  150. }
  151. .topRight{
  152. width: 138rpx;
  153. height: 64rpx;
  154. background: #FF0000;
  155. border-radius: 10rpx;
  156. line-height: 64rpx;
  157. text-align: center;
  158. color: #FFFFFF;
  159. font-size: 28rpx;
  160. margin-top: 34rpx;
  161. }
  162. .xffl{
  163. background: #FFFFFF;
  164. margin-top: 20rpx;
  165. padding: 20rpx;
  166. border-radius: 10rpx;
  167. }
  168. .xfflTitle{
  169. font-size: 30rpx;
  170. font-family: PingFangSC-Medium, PingFang SC;
  171. font-weight: 500;
  172. color: #333333;
  173. }
  174. .xfflLine{
  175. display: flex;
  176. justify-content: space-between;
  177. font-size: 24rpx;
  178. font-family: PingFangSC-Regular, PingFang SC;
  179. font-weight: 400;
  180. color: #333333;
  181. line-height: 33rpx;
  182. padding: 15rpx 0;
  183. }
  184. .xfflyq{
  185. width: 10rpx;
  186. height: 10rpx;
  187. background: #D53533;
  188. border-radius: 50%;
  189. margin-top: 12rpx;
  190. margin-right: 14rpx;
  191. }
  192. .xfflyq2{
  193. width: 10rpx;
  194. height: 10rpx;
  195. background: #3F90F7;
  196. border-radius: 50%;
  197. margin-top: 12rpx;
  198. margin-right: 14rpx;
  199. }
  200. .xfflyq3{
  201. width: 10rpx;
  202. height: 10rpx;
  203. background: #FF4F00;
  204. border-radius: 50%;
  205. margin-top: 12rpx;
  206. margin-right: 14rpx;
  207. }
  208. .xfflyq4{
  209. width: 10rpx;
  210. height: 10rpx;
  211. background: #6F2BE8;
  212. border-radius: 50%;
  213. margin-top: 12rpx;
  214. margin-right: 14rpx;
  215. }
  216. .xfflLineLeft{
  217. display: flex;
  218. width: 200rpx;
  219. }
  220. .xfflLineM{
  221. width: 200rpx;
  222. text-align: right;
  223. }
  224. .xfflLineR{
  225. width: 200rpx;
  226. text-align: right;
  227. }
  228. .lineLeftImg{
  229. width: 34rpx;
  230. height: 34rpx;
  231. }
  232. .lineLeftTxt{
  233. color: #333333;font-size: 28rpx;line-height: 34rpx;padding-left: 24rpx;
  234. }
  235. .lineRIghtNUm{
  236. color: #666666;font-size: 28rpx;line-height: 34rpx;padding-right: 16rpx;
  237. }
  238. .lineRightImg{
  239. width: 12rpx;
  240. height: 20rpx;
  241. margin-top: 7rpx;
  242. }
  243. .lineBox{
  244. background: #FFFFFF;width: 702rpx;margin-top: 20rpx;
  245. }
  246. .line{
  247. display: flex;
  248. justify-content: space-between;
  249. padding: 38rpx 32rpx;
  250. }
  251. .lineLeft{
  252. display: flex;
  253. }
  254. .lineRight{
  255. display: flex;
  256. }
  257. .smImg{
  258. width: 30rpx;height: 30rpx;
  259. }
  260. .smTxt{
  261. font-size: 28rpx;
  262. font-family: PingFangSC-Regular, PingFang SC;
  263. font-weight: 400;
  264. color: #999999;
  265. line-height: 30rpx;
  266. padding-left: 5rpx;
  267. }
  268. .smBox{
  269. display: flex;
  270. justify-content: center;
  271. padding-top: 30rpx;
  272. }
  273. </style>