Explorar o código

接口对接客户转介绍

twt %!s(int64=2) %!d(string=hai) anos
pai
achega
54742519e7

+ 7 - 0
pages.json

@@ -458,6 +458,13 @@
 				"navigationBarTitleText": "提现明细",
 				 "enablePullDownRefresh": true
 			}
+		},
+		{
+			"path": "pages/referral/referralExplain",
+			"style": {
+				"navigationBarTitleText": "提现说明"
+				 //"enablePullDownRefresh": true
+			}
 		}
     ],
 	"tabBar": {

+ 41 - 10
pages/partner/bonus.vue

@@ -1,54 +1,85 @@
 <template>
 <view class="box">
 	<view style="height: 20rpx;"></view>
- <view class="line" v-for="(item,index) in 3">
+ <view class="line" v-for="(item,index) in list">
 	 <view class="linetop">
-		 <view class="name">李瑞</view>
-		 <view class="amount">¥999</view>
+		 <view class="name">{{item.CustomerName}}</view>
+		 <view class="amount">¥{{item.BonusMoney}}</view>
 	 </view>
 	 <view class="lineCOnt">
 		 <view class="lineline">
 		 	<view class="lineContLeft">
 				 <image src="../../static/timg/icon_dianhua.png" mode="" class="lineContLeftImg"></image>
-				 <view class="lineContLeftMs">17891011123</view>
+				 <view class="lineContLeftMs">{{item.MobilePhone}}</view>
 		 	</view>
 		 </view>
 		<view class="lineline">
 			<view class="lineContLeft">
 				 <image src="../../static/timg/icon_danhao.png" mode="" class="lineContLeftImg"></image>
-				 <view class="lineContLeftMs">XS202009200001</view>
+				 <view class="lineContLeftMs">{{item.Code}}</view>
 			</view>
-			<view class="lineTIme">2020-09-20 12:13:23</view>
+			<view class="lineTIme">{{item.BillDate}}</view>
 		</view>
 	 </view>
  </view>
+ <nodata v-if="list.length==0"></nodata>
 </view>
 </template>
 
 <script>
+	import nodata from '../../components/nodata/nodata.vue'
 	export default {
 		components: {
-			
+			nodata
 		},
 		
 		data() {
 			return {
-				
+				list:'',
 				themeColor:'',
 				userInfo:'',
+				page:1,
+				limit:20,
 			}
 		},
 		onLoad(opt) {
 			this.themeColor = uni.getStorageSync("themeColor");
 			this.userInfo = uni.getStorageSync("userInfo");
-			
+			this.getList()
 		},
 		onShow() {
 			
 		},
 		methods: {
+			getList(){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('opencarInfoOwner/listBonusPage', {
+				    page:this.page,limit:this.limit,
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					//this.list = res.data.Items
+					var data=res.data.Items;
+					this.list=this.list.concat(data);
+					//console.log('list+=', this.queryShopList);
+				
+				})
+			}
 			
-			
+		},
+		onReachBottom(){
+			this.page++;
+			this.getList()
+			//console.log("shanglas")
+		},
+		onPullDownRefresh(){
+		    this.page=1;
+			this.list=[];
+			this.getList();
+			setTimeout(() => {
+					uni.stopPullDownRefresh(); // 关闭下拉刷新 
+			}, 2000);
 		}
 	}
 </script>

+ 28 - 8
pages/partner/partner.vue

@@ -4,19 +4,19 @@
   <view class="topCont">
 	  <view class="topContLIne topContLIne1">
 		  <view class="topContLIneTitle">未提现金额</view>
-		  <view class="topContLIneNum">99999.98</view>
+		  <view class="topContLIneNum">{{detail.surplus}}</view>
 	  </view>
 	  <view class="topContLIne topContLIne2">
 		  <view class="topContLIneTitle">剩余股本金额</view>
-		  <view class="topContLIneNum">99999.98</view>
+		  <view class="topContLIneNum">{{detail.PRemaindMoney}}</view>
 	  </view>
 	  <view class="topContLIne topContLIne3">
 		  <view class="topContLIneTitle">累计提现金额</view>
-		  <view class="topContLIneNum">99999.98</view>
+		  <view class="topContLIneNum">{{detail.PTotalCashMoney}}</view>
 	  </view>
 	  <view class="topContLIne topContLIne4">
 		  <view class="topContLIneTitle">累计分红金额</view>
-		  <view class="topContLIneNum">99999.98</view>
+		  <view class="topContLIneNum">{{detail.BonusSum}}</view>
 	  </view>
   </view>
   <view class="lineBox">
@@ -26,7 +26,7 @@
 		  	<view class="lineLeftTxt">分红记录</view>
 		  </view>
 		  <view class="lineRight">
-		  		  <view class="lineRIghtNUm">999</view>
+		  		  <view class="lineRIghtNUm">{{detail.BonusCount}}</view>
 		  		  <image src="../../static/timg/icon_arrow_right.png" mode="" class="lineRightImg"></image>
 		  </view>
 	  </view>
@@ -36,7 +36,7 @@
 	  		  	<view class="lineLeftTxt">下线人脉</view>
 	  		  </view>
 	  		  <view class="lineRight">
-				  <view class="lineRIghtNUm">999</view>
+				  <view class="lineRIghtNUm">{{detail.PSCount}}</view>
 				  <image src="../../static/timg/icon_arrow_right.png" mode="" class="lineRightImg"></image>
 	  	      </view>
 	  	  </view>
@@ -65,7 +65,7 @@
 		
 		data() {
 			return {
-				
+				detail:'',
 				themeColor:'',
 				userInfo:'',
 			}
@@ -73,18 +73,38 @@
 		onLoad(opt) {
 			this.themeColor = uni.getStorageSync("themeColor");
 			this.userInfo = uni.getStorageSync("userInfo");
-			
+			this.getData()
 		},
 		onShow() {
 			
 		},
 		methods: {
+			getData(){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('opencarInfoOwner/queryPartnerDetail', {
+				    
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					this.detail = res.data
+					//console.log('list+=', this.queryShopList);
+				
+				})
+			},
 			goRouter(url){
 				uni.navigateTo({
 					url:url
 				})
 			}
 			
+		},
+		onPullDownRefresh(){
+
+			this.getData();
+			setTimeout(() => {
+					uni.stopPullDownRefresh(); // 关闭下拉刷新 
+			}, 2000);
 		}
 	}
 </script>

+ 40 - 9
pages/partner/people.vue

@@ -1,52 +1,83 @@
 <template>
 <view class="box">
 	<view style="height: 20rpx;"></view>
- <view class="line" v-for="(item,index) in 3">
+ <view class="line" v-for="(item,index) in list">
 	 <view class="linetop">
-		 <view class="name">李瑞</view>
+		 <view class="name">{{item.CustomerName}}</view>
 		 <view class="nickNameBox">
 			 <image src="../../static/timg/icon_wechat.png" mode="" class="nickNameImg"></image>
-			 <view class="nickName">Eʟɪᴀᴜᴋ</view>
+			 <view class="nickName">{{item.WxNickName}}</view>
 		 </view>
 	 </view>
 	 <view class="lineCOnt">
 		 <view class="lineline">
 		 	<view class="lineContLeft">
 				 <image src="../../static/timg/icon_dianhua.png" mode="" class="lineContLeftImg"></image>
-				 <view class="lineContLeftMs">17891011123</view>
+				 <view class="lineContLeftMs">{{item.MobilePhone}}</view>
 		 	</view>
-			<view class="lineTIme">2020-09-20 12:13:23</view>
+			<view class="lineTIme">{{item.PJCreateTime}}</view>
 		 </view>
 		
 	 </view>
  </view>
+ <nodata v-if="list.length==0"></nodata>
 </view>
 </template>
 
 <script>
+	import nodata from '../../components/nodata/nodata.vue'
 	export default {
 		components: {
-			
+			nodata
 		},
 		
 		data() {
 			return {
-				
+				list:'',
 				themeColor:'',
 				userInfo:'',
+				page:1,
+				limit:20,
 			}
 		},
 		onLoad(opt) {
 			this.themeColor = uni.getStorageSync("themeColor");
 			this.userInfo = uni.getStorageSync("userInfo");
-			
+			this.getList()
 		},
 		onShow() {
 			
 		},
 		methods: {
+			getList(){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('opencarInfoOwner/listBonusPage', {
+				    page:this.page,limit:this.limit,
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					var data=res.data.Items;
+					this.list=this.list.concat(data);
+					//this.list = res.data.Items
+					//console.log('list+=', this.queryShopList);
+				
+				})
+			}
 			
-			
+		},
+		onReachBottom(){
+			this.page++;
+			this.getList()
+			//console.log("shanglas")
+		},
+		onPullDownRefresh(){
+		    this.page=1;
+			this.list=[];
+			this.getList();
+			setTimeout(() => {
+					uni.stopPullDownRefresh(); // 关闭下拉刷新 
+			}, 2000);
 		}
 	}
 </script>

+ 48 - 73
pages/referral/extract.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="box">
 		<view class="tixiancs">
-			<view class="tixiancsLeft">本月已提现2次</view>
+			<view class="tixiancsLeft">本月已提现{{detail.count}}次</view>
 			<view class="tixiancsRight" @click="goRouter('extractList')">提现明细</view>
 		</view>
 		<view class="header">
@@ -12,7 +12,7 @@
 					placeholder="请输入提现金额" v-model="money" @input="inputValue" />
 				<view class="allBtn" @click="allBtn">全部提现</view>
 			</view>
-			<view class="zongMoney">可提现金额: <span style="color: #FF0000;">¥666</span>  (冻结金额:20.00) </view>
+			<view class="zongMoney">可提现金额: <span style="color: #FF0000;">¥{{detail.canMoney}}</span>  (冻结金额:{{detail.freezeMoney}}) </view>
 
 			
 		</view>
@@ -20,15 +20,15 @@
 		<view class="tishi" style="padding: 20rpx 44rpx;">
 			<view class="tishiLine">
 				<view class="tishiY"></view>
-				<view class="tishiTxt">提现冻结天数:7天</view>
+				<view class="tishiTxt">提现冻结天数:{{detail.explain&&detail.explain.freezeDay}}天</view>
 			</view>
 			<view class="tishiLine">
 				<view class="tishiY"></view>
-				<view class="tishiTxt">最小提现金额:2元</view>
+				<view class="tishiTxt">最小提现金额:{{detail.explain&&detail.explain.singleLow}}元</view>
 			</view>
 			<view class="tishiLine">
 				<view class="tishiY"></view>
-				<view class="tishiTxt">每月可提现次数:7次</view>
+				<view class="tishiTxt">每月可提现次数:{{detail.explain&&detail.explain.monthlyMost}}次</view>
 			</view>
 		</view>
 
@@ -47,7 +47,7 @@
 				money: '',
 				name: '',
 				account: '',
-				detailData: {},
+				detail: {},
 				couContent: '', //提现规则
 			}
 		},
@@ -64,29 +64,11 @@
 				uni.showLoading({
 					title: '加载中'
 				})
-				let url = 'worldKeepCar/worldDistribution/queryDistributionIndexDetail',
-					params = {
-
-					}
-				this.$http(url, params, 'GET').then(res => {
+				
+				this.$http('openMCustomer/getWithdrawalInfo', {}, 'GET').then(res => {
 					uni.hideLoading();
-					var data = res.data
-
-
-					// 处理 undefined和null转为空白字符串
-
-					for (const key in data) {
-						data[key] = this.$praseStrEmpty(data[key])
-					}
-
-					this.detailData = data
-					this.okMoney = this.detailData.cantidatMoney
-					if (this.detailData.tSSetting.withdrawalRules) {
-						this.couContent = this.detailData.tSSetting.withdrawalRules.replace(/\<p/gi,
-							'<p style="display: inline-block"');
-					}
-
-
+					this.detail = res.data;
+					this.okMoney=this.detail.canMoney
 
 				})
 			},
@@ -110,38 +92,23 @@
 				console.log('money,allmoney', this.money, this.okMoney);
 			},
 			sure() {
-				if (this.money > this.okMoney) {
-					uni.showToast({
-						title: '提现金额不能大于可提现金额',
-						icon: 'none',
-						duration: 3000,
-					});
-					return;
-				}
-				if (this.money <= 0) {
-					uni.showToast({
-						title: '提现金额不能为空',
-						icon: 'none',
-						duration: 3000,
-					});
-					return;
-				}
-				if (!this.name) {
-					uni.showToast({
-						title: '姓名不能为空',
-						icon: 'none',
+				 if (this.money > this.okMoney) {
+				 	uni.showToast({
+				 		title: '提现金额不能大于可提现金额',
+				 		icon: 'none',
 						duration: 3000,
-					});
-					return;
-				}
-				if (!this.account) {
-					uni.showToast({
-						title: '支付宝账户不能为空',
-						icon: 'none',
+				 	});
+				 	return;
+				 }
+				 if (this.money <= 0) {
+				 	uni.showToast({
+				 		title: '提现金额不能为空',
+				 		icon: 'none',
 						duration: 3000,
-					});
-					return;
-				}
+				 	});
+				 	return;
+				 }
+				
 
 				this.postData();
 			},
@@ -149,26 +116,34 @@
 				uni.showLoading({
 					title: '提现中'
 				})
-				let url = 'worldKeepCar/worldDistribution/applyWithdrawal',
+				let url = 'openMCustomer/applyWithdrawal',
 					params = {
 						money: this.money,
-						aliName: this.name,
-						aliPhone: this.account,
+						
 					}
 				this.$http(url, params, 'POST').then(res => {
 					uni.hideLoading();
-					uni.showModal({
-						title: '提交成功',
-						content: '请耐心等待平台审核',
-						showCancel:false,
-						confirmText:'知道了',
-						success: function(res) {
-
-							uni.navigateBack({
-
-							})
-						}
-					});
+					if(res.code==0){
+						uni.showModal({
+							title: '提交成功',
+							content: '请耐心等待平台审核',
+							showCancel:false,
+							confirmText:'知道了',
+							success: function(res) {
+						
+								uni.navigateBack({
+						
+								})
+							}
+						});
+					}else{
+						// uni.showToast({
+						//  		title: '提现金额不能为空',
+						//  		icon: 'none',
+						//  		duration: 3000,
+						//  	});
+					}
+					
 
 
 

+ 38 - 8
pages/referral/extractList.vue

@@ -1,50 +1,80 @@
 <template>
 <view class="box">
 	<view style="height: 20rpx;"></view>
- <view class="line" v-for="(item,index) in 3">
+ <view class="line" v-for="(item,index) in list">
 	 <view class="linetop">
 		 <view class="name">提现</view>
 		 <view class="nickNameBox">
-			 <view class="amount">¥999</view>
+			 <view class="amount">¥{{item.money}}</view>
 		 </view>
 	 </view>
 	 <view class="lineCOnt">
 		 <view class="lineline">
 		 	<view class="lineContLeft">
-				 <view class="lineContLeftMs">申请时间:2020-06-20 09:3</view>
+				 <view class="lineContLeftMs">申请时间:{{item.applyTime}}</view>
 		 	</view>
-			<view class="lineTIme">审核拒绝</view>
+			<view class="lineTIme">{{stateMap[~~item.auditState]}}</view>
 		 </view>
 		
 	 </view>
  </view>
+ <nodata v-if="list.length==0"></nodata>
 </view>
 </template>
 
 <script>
+	import nodata from '../../components/nodata/nodata.vue'
 	export default {
 		components: {
-			
+			nodata
 		},
 		
 		data() {
 			return {
-				
+				list:'',
 				themeColor:'',
 				userInfo:'',
+				stateMap: ['待审核', '审核通过', '审核拒绝'],
 			}
 		},
 		onLoad(opt) {
 			this.themeColor = uni.getStorageSync("themeColor");
 			this.userInfo = uni.getStorageSync("userInfo");
-			
+			this.getList()
 		},
 		onShow() {
 			
 		},
 		methods: {
+			getList(){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('opencarInfoOwner/getWithdrawalDetail', {
+				    
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					this.list = res.data;
+					//var data=res.data.Items;
+					//this.list=this.list.concat(data);
+					//console.log('list+=', this.queryShopList);
+				
+				})
+			}
 			
-			
+		},
+		onReachBottom(){
+			//this.page++;
+			this.getList()
+			//console.log("shanglas")
+		},
+		onPullDownRefresh(){
+		    //this.page=1;
+			//this.list=[];
+			this.getList();
+			setTimeout(() => {
+					uni.stopPullDownRefresh(); // 关闭下拉刷新 
+			}, 2000);
 		}
 	}
 </script>

+ 35 - 7
pages/referral/myConnections.vue

@@ -14,31 +14,35 @@
 
 
  <view style="height: 100rpx;"></view>
- <view class="line" v-for="(item,index) in 3">
+ <view class="line" v-for="(item,index) in list">
 	 <view class="linetop">
-		 <view class="name">李瑞</view>
+		 <view class="name">{{item.wxNickName}}</view>
 		 <view class="nickNameBox">
-			 <view class="nickName">E三级人脉</view>
+			 <view class="nickName" v-if="tabindex==1">一级人脉</view>
+			 <view class="nickName" v-if="tabindex==2">二级人脉</view>
+			 <view class="nickName" v-if="tabindex==3">三级人脉</view>
 		 </view>
 	 </view>
 	 <view class="lineCOnt">
 		 <view class="lineline">
 		 	<view class="lineContLeft">
 				 <image src="../../static/timg/icon_dianhua.png" mode="" class="lineContLeftImg"></image>
-				 <view class="lineContLeftMs">17891011123</view>
+				 <view class="lineContLeftMs">{{item.mobilePhone}}</view>
 		 	</view>
-			<view class="lineTIme">2020-09-20 12:13:23</view>
+			<view class="lineTIme">{{item.createTime}}</view>
 		 </view>
 		
 	 </view>
  </view>
+ <nodata v-if="list.length==0"></nodata>
 </view>
 </template>
 
 <script>
+	import nodata from '../../components/nodata/nodata.vue'
 	export default {
 		components: {
-			
+			nodata
 		},
 		
 		data() {
@@ -46,12 +50,13 @@
 				tabindex:1,
 				themeColor:'',
 				userInfo:'',
+				list:'',
 			}
 		},
 		onLoad(opt) {
 			this.themeColor = uni.getStorageSync("themeColor");
 			this.userInfo = uni.getStorageSync("userInfo");
-			
+			this.getList()
 		},
 		onShow() {
 			
@@ -59,8 +64,31 @@
 		methods: {
 			tabcl(num){
 				this.tabindex=num;
+				this.getList()
+			},
+			getList(){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('opencarInfoOwner/listBonusPage', {
+				   type:this.tabindex
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					this.list = res.data.Items
+					//var data=res.data.Items;
+					//this.list=this.list.concat(data);
+					//console.log('list+=', this.queryShopList);
+				
+				})
 			}
 			
+		},
+		onPullDownRefresh(){
+		  
+			this.getList();
+			setTimeout(() => {
+					uni.stopPullDownRefresh(); // 关闭下拉刷新 
+			}, 2000);
 		}
 	}
 </script>

+ 31 - 9
pages/referral/rebateList.vue

@@ -14,35 +14,40 @@
 	
 	
 	<view style="height: 100rpx;"></view>
- <view class="line" v-for="(item,index) in 3">
+ <view class="line" v-for="(item,index) in list">
 	 <view class="linetop">
-		 <view class="name">李瑞</view>
-		 <view class="amount">¥999</view>
+		 <view class="name">{{item.WxNickName}}</view>
+		 <view class="amount">¥{{item.money}}</view>
 	 </view>
 	 <view class="lineCOnt">
 		 <view class="lineline">
 		 	<view class="lineContLeft">
 				 <image src="../../static/timg/icon_dianhua.png" mode="" class="lineContLeftImg"></image>
-				 <view class="lineContLeftMs">17891011123</view>
+				 <view class="lineContLeftMs">{{item.MobilePhone}}</view>
 		 	</view>
-			<view class="lineTIme">一级人脉</view>
+			
+			<view class="lineTIme" v-if="tabindex==1">一级人脉</view>
+			<view class="lineTIme" v-if="tabindex==2">二级人脉</view>
+			<view class="lineTIme" v-if="tabindex==3">三级人脉</view>
 		 </view>
 		<view class="lineline">
 			<view class="lineContLeft">
 				 <image src="../../static/timg/icon_danhao.png" mode="" class="lineContLeftImg"></image>
-				 <view class="lineContLeftMs">XS202009200001</view>
+				 <view class="lineContLeftMs">{{item.BizCode}}</view>
 			</view>
-			<view class="lineTIme">2020-09-20 12:13:23</view>
+			<view class="lineTIme">{{item.BizPayTime}}</view>
 		</view>
 	 </view>
  </view>
+ <nodata v-if="list.length==0"></nodata>
 </view>
 </template>
 
 <script>
+	import nodata from '../../components/nodata/nodata.vue'
 	export default {
 		components: {
-			
+			nodata
 		},
 		
 		data() {
@@ -50,12 +55,13 @@
 				tabindex:1,
 				themeColor:'',
 				userInfo:'',
+				list:''
 			}
 		},
 		onLoad(opt) {
 			this.themeColor = uni.getStorageSync("themeColor");
 			this.userInfo = uni.getStorageSync("userInfo");
-			
+			this.getList()
 		},
 		onShow() {
 			
@@ -63,6 +69,22 @@
 		methods: {
 			tabcl(num){
 				this.tabindex=num;
+				this.getList()
+			},
+			getList(){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('openMCustomer/getRebateList', {
+				   type:this.tabindex
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					this.list = res.data.Items
+					//var data=res.data.Items;
+					//this.list=this.list.concat(data);
+					//console.log('list+=', this.queryShopList);
+				
+				})
 			}
 			
 		}

+ 40 - 16
pages/referral/referral.vue

@@ -4,7 +4,7 @@
   	<view class="top">
 		<view class="topLeft">
 			<view class="topLeftTitle">未提现返利</view>
-			<view class="topLeftNum">839204.00</view>
+			<view class="topLeftNum">{{detail.noMoney}}</view>
 		</view>
 		<view class="topRight" @click="goRouter('extract')">提现</view>
 	</view>
@@ -15,33 +15,33 @@
 				<view class="xfflyq"></view>
 				<view class="xfflLineLeftTxt">一级人脉/返利</view>
 			</view>
-			<view class="xfflLineM">1242 人</view>
-			<view class="xfflLineR">¥ 2932.00</view>
+			<view class="xfflLineM">{{detail.oneNum}} 人</view>
+			<view class="xfflLineR">¥ {{detail.oneMoney}}</view>
 		</view>
 		<view class="xfflLine">
 			<view class="xfflLineLeft">
 				<view class="xfflyq2"></view>
 				<view class="xfflLineLeftTxt">二级人脉/返利</view>
 			</view>
-			<view class="xfflLineM">1242 人</view>
-			<view class="xfflLineR">¥ 2932.00</view>
+			<view class="xfflLineM">{{detail.twoNum}} 人</view>
+			<view class="xfflLineR">¥ {{detail.twoMoney}}</view>
 		</view>
 		<view class="xfflLine">
 			<view class="xfflLineLeft">
 				<view class="xfflyq3"></view>
 				<view class="xfflLineLeftTxt">三级人脉/返利</view>
 			</view>
-			<view class="xfflLineM">1242 人</view>
-			<view class="xfflLineR">¥ 2932.00</view>
+			<view class="xfflLineM">{{detail.threeNum}} 人</view>
+			<view class="xfflLineR">¥ {{detail.threeMoney}}</view>
 		</view>
-		<view class="xfflLine">
+		<!-- <view class="xfflLine">
 			<view class="xfflLineLeft">
 				<view class="xfflyq4"></view>
 				<view class="xfflLineLeftTxt">四级人脉/返利</view>
 			</view>
-			<view class="xfflLineM">1242 人</view>
-			<view class="xfflLineR">¥ 2932.00</view>
-		</view>
+			<view class="xfflLineM">{{detail.oneNum}}人</view>
+			<view class="xfflLineR">¥ {{detail.oneNum}}</view>
+		</view> -->
 	</view>
 	
 	<view class="xffl" @click="goRouter('rebateList')">
@@ -51,8 +51,8 @@
 				<view class="xfflyq"></view>
 				<view class="xfflLineLeftTxt">人数/返利</view>
 			</view>
-			<view class="xfflLineM">1242 人</view>
-			<view class="xfflLineR">¥ 2932.00</view>
+			<view class="xfflLineM">{{detail.scanNum}}人</view>
+			<view class="xfflLineR">¥{{detail.scanMoney}}</view>
 		</view>
 		
 	</view>
@@ -69,7 +69,7 @@
 		  
 	</view>
 	
-	<view class="smBox">
+	<view class="smBox" @click="goRouter('referralExplain')">
 		<image src="../../static/timg/icon_shuom.png" mode="" class="smImg"></image>
 		<view class="smTxt">说明</view>
 	</view>
@@ -86,7 +86,7 @@
 		
 		data() {
 			return {
-				
+				detail:'',
 				themeColor:'',
 				userInfo:'',
 			}
@@ -94,12 +94,36 @@
 		onLoad(opt) {
 			this.themeColor = uni.getStorageSync("themeColor");
 			this.userInfo = uni.getStorageSync("userInfo");
-			
+			this.getData();
+			//this.getExplain();
 		},
 		onShow() {
 			
 		},
 		methods: {
+			getData(){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('openMCustomer/getIndexData', {
+				    
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					this.detail = res.data
+					//console.log('list+=', this.queryShopList);
+				
+				})
+			},
+			getExplain(){
+				this.$http('openMCustomer/getExplain', {
+				    
+				}, 'GET').then(res => {
+					//uni.hideLoading();
+					//this.detail = res.data
+					//console.log('list+=', this.queryShopList);
+				
+				})
+			},
 			goRouter(url){
 				uni.navigateTo({
 					url:url

+ 198 - 0
pages/referral/referralExplain.vue

@@ -0,0 +1,198 @@
+<template>
+<view class="box">
+  <view class="contBox" v-html="detail">
+  	
+  </view>
+</view>
+</template>
+
+<script>
+	export default {
+		components: {
+			
+		},
+		
+		data() {
+			return {
+				detail:'',
+			
+			}
+		},
+		onLoad(opt) {
+			
+			this.getExplain();
+		},
+		onShow() {
+			
+		},
+		methods: {
+			
+			getExplain(){
+				uni.showLoading({
+					title: '加载中'
+				})
+				this.$http('openMCustomer/getExplain', {
+				    
+				}, 'GET').then(res => {
+					uni.hideLoading();
+					this.detail = res.data.RebateExplain
+					//console.log('list+=', this.queryShopList);
+				
+				})
+			},
+			
+			
+		}
+	}
+</script>
+
+<style scoped lang="less">
+.box {
+	width: 100vw;
+	min-height: 100vh;
+	background: #F4F5F7;
+}
+.contBox{
+	padding: 20rpx 24rpx;
+}
+.top{
+	background: #FFFFFF;
+	border-radius: 10rpx;
+	padding: 24rpx 20rpx;
+	display: flex;
+	justify-content: space-between;
+}
+.topLeftTitle{
+	font-size: 30rpx;
+	font-family: PingFangSC-Medium, PingFang SC;
+	font-weight: 500;
+	color: #333333;
+}
+.topLeftNum{
+	font-size: 40rpx;
+	font-family: PingFangSC-Semibold, PingFang SC;
+	font-weight: 600;
+	color: #FF0000;
+	padding-top: 24rpx;
+}
+.topRight{
+	width: 138rpx;
+	height: 64rpx;
+	background: #FF0000;
+	border-radius: 10rpx;
+	line-height: 64rpx;
+	text-align: center;
+	color: #FFFFFF;
+	font-size: 28rpx;
+	margin-top: 34rpx;
+}
+.xffl{
+	background: #FFFFFF;
+	margin-top: 20rpx;
+	padding: 20rpx;
+}
+.xfflTitle{
+	font-size: 30rpx;
+	font-family: PingFangSC-Medium, PingFang SC;
+	font-weight: 500;
+	color: #333333;
+}
+.xfflLine{
+	display: flex;
+	justify-content: space-between;
+	font-size: 24rpx;
+	font-family: PingFangSC-Regular, PingFang SC;
+	font-weight: 400;
+	color: #333333;
+	line-height: 33rpx;
+	padding: 15rpx 0;
+}
+.xfflyq{
+	width: 10rpx;
+	height: 10rpx;
+	background: #D53533;
+	border-radius: 50%;
+	margin-top: 12rpx;
+	margin-right: 14rpx;
+}
+.xfflyq2{
+	width: 10rpx;
+	height: 10rpx;
+	background: #3F90F7;
+	border-radius: 50%;
+	margin-top: 12rpx;
+	margin-right: 14rpx;
+}
+.xfflyq3{
+	width: 10rpx;
+	height: 10rpx;
+	background: #FF4F00;
+	border-radius: 50%;
+	margin-top: 12rpx;
+	margin-right: 14rpx;
+}
+.xfflyq4{
+	width: 10rpx;
+	height: 10rpx;
+	background: #6F2BE8;
+	border-radius: 50%;
+	margin-top: 12rpx;
+	margin-right: 14rpx;
+}
+.xfflLineLeft{
+	display: flex;
+}
+.xfflLineM{
+	width: 200rpx;
+	text-align: center;
+}
+.xfflLineR{
+	width: 200rpx;
+	text-align: right;
+}
+.lineLeftImg{
+	width: 34rpx;
+	height: 34rpx;
+}
+.lineLeftTxt{
+	color: #333333;font-size: 28rpx;line-height: 34rpx;padding-left: 24rpx;
+}
+.lineRIghtNUm{
+	color: #666666;font-size: 28rpx;line-height: 34rpx;padding-right: 16rpx;
+}
+.lineRightImg{
+	width: 12rpx;
+	height: 20rpx;
+	margin-top: 7rpx;
+}
+.lineBox{
+	background: #FFFFFF;width: 702rpx;margin-top: 20rpx;
+}
+.line{
+	display: flex;
+	justify-content: space-between;
+	padding: 38rpx 32rpx;
+}
+.lineLeft{
+		display: flex;
+}
+.lineRight{
+	display: flex;
+}
+.smImg{
+	width: 30rpx;height: 30rpx;
+}
+.smTxt{
+	font-size: 28rpx;
+	font-family: PingFangSC-Regular, PingFang SC;
+	font-weight: 400;
+	color: #999999;
+	line-height: 30rpx;
+	padding-left: 5rpx;
+}
+.smBox{
+	display: flex;
+	justify-content: center;
+	padding-top: 30rpx;
+}
+</style>

+ 4 - 4
pages/user/user.vue

@@ -167,20 +167,20 @@
 				</view>
 				<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
 			</view>
-			 <!-- <view class="rowBox" @click="gonavigateTo('../partner/partner')">
+			<view class="rowBox" @click="gonavigateTo('../partner/partner')">
 				<view class="leftView">
-					<image src="../../static/img/icon_me7.png" mode="" class="liftIcon"></image>
+					<image src="../../static/img/icon_hehuoren.png" mode="" class="liftIcon"></image>
 					<view class="rowTitle">车主合伙人</view>
 				</view>
 				<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
 			</view>
 			<view class="rowBox" @click="gonavigateTo('../referral/referral')">
 				<view class="leftView">
-					<image src="../../static/img/icon_me7.png" mode="" class="liftIcon"></image>
+					<image src="../../static/img/icon_kehuzhuanjieshao.png" mode="" class="liftIcon"></image>
 					<view class="rowTitle">客户转介绍</view>
 				</view>
 				<image src="../../static/img/big_rightArrow.png" mode="" class="big_rightArrow"></image>
-			</view> -->
+			</view> 
 
 			<!-- 先隐藏 -->
 			<!-- <view class="rowBox" @click="gonavigateTo('')">

BIN=BIN
static/img/icon_hehuoren.png


BIN=BIN
static/img/icon_kehuzhuanjieshao.png