Quellcode durchsuchen

修改为点击合伙人跳转相对等级页面

lihongxiao vor 6 Monaten
Ursprung
Commit
bea6908068

+ 2 - 2
config/baseUrl.js

@@ -5,8 +5,8 @@ if (process.env.NODE_ENV === 'development') {
 	// 开发环境
 	// baseUrl = "http://192.168.0.106:8080"; //屈晨
 	// baseUrl = "http://192.168.0.55:8080"; //蔡雅茹
-	baseUrl = "http://192.168.0.52:8080"; //贺礼霄
-	// baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试
+	// baseUrl = "http://192.168.0.52:8080"; //贺礼霄
+	baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试
 	h5BaseUrl = "https://test.baoxianzhanggui.com/copartnerH5";
 	// baseUrl = "https://pre.baoxianzhanggui.com/web-api"; //预生产
 	// h5BaseUrl = "https://pre.baoxianzhanggui.com/h5";

+ 13 - 1
pages.json

@@ -122,7 +122,19 @@
 		    	}
 		    }
 		},
-		
+		{
+		    "path" : "pages/institutional/fakePartner",
+		    "style": {
+		    	"navigationBarTextStyle": "white",
+		    	"backgroundColor": "#0052FF",
+		    	"navigationBarBackgroundColor": "#0052FF",
+		    	"app-plus": {
+		    		"titleNView": false,
+		    		"scrollIndicator": "none",
+		    		"bounce": "none"
+		    	}
+		    }
+		},
 		{
 		    "path" : "pages/my/commission",
 		    "style": {

+ 7 - 7
pages/components/card.vue

@@ -6,12 +6,12 @@
 		<view class="dis j-s card-title">
 			<view>
 				<text style="font-size: 16px;">{{item.userName}}</text>
-				<image v-if="item.level==1 " style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie1.png" mode=""></image>
-				<image v-if="item.level==2 "  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie.png" mode=""></image>
-				<image v-if="item.level==3 "  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie3.png" mode=""></image>
-				<image v-if="item.level==4"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie4.png" mode=""></image>
-				<image v-if="item.level==5"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie5.png" mode=""></image>
-				<image v-if="item.level==6"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie6.png" mode=""></image>
+				<image v-if="item.partnerType==1 " style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie1.png" mode=""></image>
+				<image v-if="item.partnerType==2 "  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie.png" mode=""></image>
+				<image v-if="item.partnerType==3 "  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie3.png" mode=""></image>
+				<image v-if="item.partnerType==4"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie4.png" mode=""></image>
+				<image v-if="item.partnerType==5"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie5.png" mode=""></image>
+				<image v-if="item.partnerType==6"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie6.png" mode=""></image>
 			</view>
 			<text v-if="isStudio" @click="detail(item)">详情
 			<image style="display: inline-block; width: 9px;height:9px;vertical-align: -1px;" src="/static/icon/right.png" mode=""></image></text>
@@ -77,7 +77,7 @@
 			partnerDetail(item){
 				if(item.partnerIds.length>0){
 					uni.navigateTo({
-						url: "/pages/institutional/partnerDetail?key="+encodeURIComponent(JSON.stringify(item))
+						url: "/pages/institutional/fakePartner?key="+encodeURIComponent(JSON.stringify(item))
 					})
 				}
 			},

+ 872 - 0
pages/institutional/fakePartner.vue

@@ -0,0 +1,872 @@
+<template>
+	<view class="">
+		<public-module></public-module>
+		<view class="headers " :style="headerStyle">
+			<view class="dis a-c j-start " style="padding: 0 15px;">
+				<!-- <u-icon name="arrow-left" size="40" @tap="back"></u-icon> -->
+				<text  @tap="back">返回</text>
+				<text style="margin: auto;">我的合伙人</text>
+				<text  @tap="backHome">首页</text>
+
+			</view>
+		</view>
+
+		<view class="body" style="background: #F8FAFE;margin-top: 85px;">
+			<view class="partner-head">
+				<seach @queryData="queryData" :partnerHierarchy="true" />
+			</view>
+			<!-- <card :cardData='directLsit'></card> -->
+			<block>
+				<!-- 一级合伙人 -->
+				<view v-if="userLevel == 1">
+					<view class="card">
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>一级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie1.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(2,1)">
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
+										src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitOne.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitOne.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitOne.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitOne,1)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitOne.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitOne,1)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitOne.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+					<view class="card" >
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>二级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(3,2)">
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
+										src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitTwo.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitTwo.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitTwo.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitTwo,2)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitTwo.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitTwo,2)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitTwo.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+					<!-- 三级 -->
+					<view class="card" >
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>三级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie3.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(4,3)">
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
+										src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitThree.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitThree.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitThree.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitThree,3)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitThree.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitThree,3)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitThree.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+					<view class="card" v-if="userLevel == 1">
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>四级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie4.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(5,4)">
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
+										src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+								<!-- <view @click="ShowModalCodeworkFun()" >
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view> -->
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitFour.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitFour.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitFour.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour,4)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitFour.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitFour,4)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitFour.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+				</view>
+				<!-- 二级合伙人 -->
+				<view v-if="userLevel == 2">
+					<view class="card" >
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>一级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie1.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(3,1)">
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
+										src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitTwo.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitTwo.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitTwo.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitTwo,1)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitTwo.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitTwo,1)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitTwo.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+					<view class="card" >
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>二级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(4,2)">
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
+										src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitThree.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitThree.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitThree.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitThree,2)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitThree.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitThree,2)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitThree.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+					<view class="card" >
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>三级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie3.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(5,3)" >
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitFour.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitFour.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitFour.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour,3)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitFour.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitFour,3)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitFour.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+				</view>
+				<!-- 三级合伙人 -->
+				<view v-if="userLevel == 3">
+					<view class="card" >
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>一级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie1.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(4,1)">
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
+										src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitThree.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitThree.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitThree.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitThree,1)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitThree.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitThree,1)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitThree.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+					<view class="card" >
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>二级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(5,2)" >
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitFour.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitFour.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitFour.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour,2)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitFour.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitFour,2)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitFour.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+				</view>
+				<!-- 四级合伙人 -->
+				<view v-if="userLevel == 4">
+					<view class="card" >
+						<view style="padding: 10px 15px 0 10px">
+							<view class="dis j-s card-title">
+								<view>
+									<text>一级合伙人</text>
+									<image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
+										src="/static/icon/jibie1.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(5,1)" >
+									<image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
+									<text>招募码</text>
+								</view>
+							</view>
+							<view class="card-con dis j-c a-c">
+								<view>
+									<text>{{ directLsitFour.teamManNum || 0 }}</text>
+									<text>会员总人数</text>
+								</view>
+								<view>
+									<text>{{ directLsitFour.sumPremium || 0 }}</text>
+									<text>总保费</text>
+								</view>
+								<view style="border-right:none">
+									<text>{{ directLsitFour.extractFee || 0 }}</text>
+									<text>我的佣金</text>
+								</view>
+							</view>
+						</view>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour,1)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitFour.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitFour,1)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitFour.workNumber || 0 }})
+							</text>
+						</view>
+					</view>
+				</view>
+			</block>
+
+		</view>
+		<u-popup v-model="ShowModal" mode="bottom" border-radius="15">
+			<view class="popup-code">
+				<text @click="ShowModalCodeFun(level)">合伙人</text>
+				<text @click="ShowModalCodeworkFun">工作室</text>
+			</view>
+		</u-popup>
+		<u-popup v-model="ShowModalCode" mode="bottom" border-radius="15">
+			<view class="ShowModalCode-style ">
+				<text>{{chineseNumbers[relativeLeavl]}}级合伙人招募码</text>
+				<view class=" ShowModalCode-con">
+					<view>扫码加入</view>
+					<image :src="partnerImg" mode="widthFix" lazy-load style="width: 150px;"></image>
+				</view>
+			</view>
+		</u-popup>
+
+		<u-popup v-model="ShowModalCodebusiness" mode="bottom" border-radius="15">
+			<view>
+				<text class=" ShowModalCode-business">工作室业务</text>
+				<view>
+					<radio-group class="uni-list" @change="styleChange">
+						<view v-for="(item, index) in styles" :key="index" class="uni-list-item">
+							<view class="uni-list-item__container">
+								<view class="uni-list-item__content">
+									<text class="uni-list-item__content-title">{{ item.text }}</text>
+								</view>
+								<view class="uni-list-item__extra">
+									<radio :value="item.value" :checked="item.checked" />
+								</view>
+							</view>
+							<view class="uni-list-item__notestext">{{ item.notestext }}</view>
+						</view>
+					</radio-group>
+				</view>
+				<view class="ShowModalCode-sumbit" @click="ShowModalCodeSumbit()">确定</view>
+			</view>
+		</u-popup>
+		<u-popup v-model="ShowModalCode1" mode="bottom" border-radius="15">
+			<view class="ShowModalCode-style ">
+				<text>工作室招募码</text>
+				<view class=" ShowModalCode-con">
+					<view>扫码加入</view>
+					<image :src="workImg" mode="widthFix" lazy-load style="width: 150px;"></image>
+				</view>
+			</view>
+		</u-popup>
+		<u-popup  mode="center" ref="alertDialog" type="dialog">
+				<uni-popup-dialog type="warn" cancelText="取消" confirmText="确定" title=" " :content="dialogContent" @confirm="dialogConfirm"
+					@close="dialogClose"></uni-popup-dialog>
+			</u-popup>
+	</view>
+</template>
+<script>
+import myDatePicker from '../components/date-picker.vue';
+import seach from '../components/seach.vue';
+import QR from "@/common/wxqrcode.js"
+
+import {
+	mapState,
+	mapMutations
+} from "vuex"
+// import uniPopup from 'x../../../components/';
+
+// import card from '../components/card.vue'
+export default {
+	components: { myDatePicker, seach },
+	computed: {
+		...mapState(['userInfo', "userCheckInfo",]),
+	},
+	data() {
+		return {
+			dialogContent:'',
+			ShowalertDialog:false,
+			relativeLeavl:null,
+			ShowModal: false,
+			ShowModalCode: false,
+			ShowModalCode1: false,
+			ShowModalCodebusiness: false,
+			chineseNumbers:[ '零', '一', '二', '三', '四', '五', '六', '七', '八', '九'],
+			headerStyle: {
+				backgroundColor: 'transparent',
+				backgroundImage: 'url("/static/beijing (2).png")',
+				backgroundSize: 'cover',
+				backgroundPosition: '',
+				boxShadow: ''
+				// 其他样式属性...
+			},
+			teamTabIndex: 0,
+			directLsit: [
+				{
+					partnerNumber: 1
+				},
+				{
+					partnerNumber: 2
+				}
+			],
+			source: 0,
+			totalPages: 0,
+			totalSize: 0,
+			status: 'loadmore',
+			pageRequest: { //查询的默认条件
+				pageNum: 1,
+				pageSize: 20,
+				userName: ''
+			},
+			partnerImg: '',
+			workImg: '',
+			directLsitOne: {},
+			directLsitTwo: {},
+			directLsitThree: {},
+			directLsitFour: {},
+			userLevel: "",
+			styles: [{
+				value: '1',
+				text: '渠道',
+				notestext: '团队长加出单员模式,无分销模式,结费都在团队长处。',
+				checked: true
+			},
+			{
+				value: '2',
+				notestext: '团队长加代理人模式,三级分销模式,结费方式为个人,有佣金。',
+				text: '个代'
+			}
+			],
+			deptSource: 1,
+			parentData:{}
+		}
+	},
+	async onLoad(e) {
+		this.parentData = JSON.parse(decodeURIComponent(e.key));
+		this.userLevel = this.parentData.level
+
+		this.queryData()
+	},
+	methods: {
+		dialogClose(){
+			this.$refs.alertDialog.close()
+		},
+		styleChange(e) {
+			this.deptSource = e.detail.value
+		},
+		dialogConfirm (){
+			this.ShowModalCode = true
+			this.$refs.alertDialog.close()
+			this.partnerImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applypartner?level=" + this.level + '&userId=' + this.userInfo.sysUser.userId, {
+				size: parseInt(200) //二维码大小  
+			})
+		},
+		ShowModalCodeFun(level,relativeLeavl) {
+			// 绝对等级:level  相对等级:relativeLeavl
+			this.level=level 
+			this.relativeLeavl=relativeLeavl
+			// this.ShowalertDialog=true
+			this.dialogContent=`是否招募${this.chineseNumbers[relativeLeavl]}级合伙人?`
+			this.$refs.alertDialog.open()
+		},
+		ShowModalCodeSumbit(){
+			this. ShowModalCode1 = true
+			this.workImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applystudio?deptSource=" + this.deptSource + '&userId=' + this.userInfo.sysUser.userId, {
+				size: parseInt(200) //二维码大小  
+			})
+		},
+		ShowModalCodeworkFun() {
+			this.ShowModalCodebusiness = true
+			this.deptSource = 1
+		},
+		// partnersAndStudios(level){
+		// 	this.level=level
+		// 	this.ShowModal = true
+		// },
+		// recruitment(level) {
+		// 	this.level = level
+		// 	this.ShowModalCodeFun(level)
+		// },
+		back() {
+			uni.navigateBack({
+				delta: 1, // 返回的页面数,如果是1表示返回上一页
+				success: function () { }
+			});
+		},
+		backHome() {
+			uni.switchTab({
+					url: "/pages/index/index"
+				})
+			},
+		partnerDetail(item,level) {
+			if (item.partnerNumber) {
+				item.partnerType=level
+				uni.navigateTo({
+					url: "/pages/institutional/partnerDetail?key=" + encodeURIComponent(JSON.stringify(item))
+				})
+			}
+		},
+		closeInstitution(item,level) {
+			if (item.leaderIds.length > 0) {
+				item.level=level
+				uni.navigateTo({
+					url: "/pages/institutional/institutionalTeam?key=" + encodeURIComponent(JSON.stringify(item))
+				})
+			}
+		},
+		// onReachBottom() {
+		// 	if (this.pageRequest.pageNum >= this.totalPages) return;
+		// 	this.status = 'loading';
+		// 	this.pageRequest.pageNum = ++this.pageRequest.pageNum;
+		// 	setTimeout(async () => {
+		// 		let res = await this.$http.post('/sysPartner/querySysPartnerAPPPage', {
+		// 			...this.pageRequest,
+		//                      source:this.source
+		// 	});
+		// 		if (res.code == '200') {
+		// 		this.totalSize = res.data.totalSize;
+		// 			this.directLsit = [...this.directLsit, ...res.data.content];
+		// 		}
+		// 		if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
+		// 		else this.status = 'loading';
+		// 	}, 1000)
+		// },
+
+		async queryData(data) {
+			let params = {
+				beginTime: data && data.beginTime || '',
+				endTime: data && data.endTime || '',
+				partnerType: data && data.partnerType || '',
+				industrySector: data && data.industrySector || '',
+				userId:this.parentData.userId
+				// ...this.pageRequest
+			}
+			let res = await this.$http.post('/APPPartner/info', params);
+			if (res.code == '200') {
+
+				res.data.forEach(e => {
+					switch (e.partnerType) {
+						case 2:
+							this.directLsitOne = e
+							break;
+						case 3:
+							this.directLsitTwo = e
+							break;
+						case 4:
+							this.directLsitThree = e
+							break;
+						case 5:
+							this.directLsitFour = e
+							break;
+						default:
+							break;
+					}
+				})
+				// this.directLsit=res.data
+				// this.totalPages = res.data.totalPages;
+				// this.totalSize = res.data.totalSize;
+				// if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
+				// else this.status = 'loadmore';
+			}
+		},
+
+	}
+
+}
+</script>
+
+<style lang="scss" scoped>
+.headers {
+	position: fixed;
+	top: 0;
+	left: 0;
+	width: 100%;
+	z-index: 999999;
+	padding-top: 40px;
+	height: 85px;
+
+	text:nth-child(2){
+		font-size: 18px;
+		font-weight: bold;
+	}
+}
+
+.partner-head {
+	background: #FFFFFF;
+	color: #333333;
+	font-size: 14px;
+
+	i {
+		margin-left: 2px;
+		display: inline-block;
+		width: 0;
+		height: 0;
+		border: 4px solid;
+		border-color: #666666;
+		border-bottom: 4px solid transparent;
+		border-right: 4px solid transparent;
+		border-left: 4px solid transparent;
+	}
+}
+
+.sum-insurance {
+	padding: 10px 0;
+
+	view {
+		text-align: center;
+		width: 33.33%;
+		border-right: 1px solid #EEEEEE;
+
+		text {
+			display: block;
+		}
+
+		text:first-child {
+			font-weight: 600;
+			font-size: 18px;
+			color: #333333;
+		}
+
+		text:last-child {
+			font-size: 10px;
+			color: #999999;
+		}
+	}
+}
+
+.card {
+	background: #FFFFFF;
+	border-radius: 5px 5px 5px 5px;
+	margin: 10px;
+	background-image: url("/static/card.png");
+	background-size: 100% 100%;
+	border-top: 1px solid;
+	border-image: linear-gradient(270deg, rgba(45, 217, 255, 0), rgba(45, 217, 255, 1), rgba(45, 217, 255, 0)) 1 1;
+
+	.card-title {
+		text:first-child {
+			font-weight: 600;
+			font-size: 16px;
+			color: #333333;
+		}
+
+		text:last-child {
+			font-size: 14px;
+			color: #666666;
+			margin-left: 3px;
+		}
+	}
+
+	.card-con {
+		padding: 10px 0;
+
+		view {
+			text-align: center;
+			width: 33.33%;
+			border-right: 1px solid #EEEEEE;
+
+			text {
+				display: block;
+			}
+
+			text:first-child {
+				font-weight: 600;
+				font-size: 16px;
+				color: #333333;
+				line-height: 18px;
+			}
+
+			text:last-child {
+				font-size: 10px;
+				color: #999999;
+			}
+		}
+	}
+
+	.card-footer {
+		border-top: 1px solid #EEEEEE;
+		line-height: 42px;
+
+		image {
+			display: inline-block;
+			width: 17px;
+			height: 17px;
+			vertical-align: middle;
+			margin-right: 8px;
+		}
+
+		text {
+			width: 49%;
+			text-align: center;
+			line-height: 40px;
+			font-size: 16px;
+			color: #333333;
+		}
+	}
+}
+
+.popup-code {
+	text {
+		display: block;
+		border-bottom: 1px solid #EEEEEE;
+		height: 50px;
+		line-height: 50px;
+		text-align: center;
+		font-size: 16px;
+		color: #666666;
+	}
+}
+
+.ShowModalCode-style {
+	text:first-of-type {
+		display: block;
+		font-weight: 600;
+		font-size: 16px;
+		color: #333333;
+		border: 1px solid #EEEEEE;
+		padding: 15px;
+		text-align: center;
+	}
+}
+.popup-code {
+	text {
+		display: block;
+		border-bottom: 1px solid #EEEEEE;
+		height: 50px;
+		line-height: 50px;
+		text-align: center;
+		font-size: 16px;
+		color: #666666;
+	}
+}
+.ShowModalCode-con {
+	padding: 30px;
+	text-align: center;
+
+	image {
+		margin: 0 auto;
+		margin-top: 15px;
+	}
+}
+</style>

+ 10 - 2
pages/institutional/institutional.vue

@@ -3,8 +3,11 @@
 		<public-module></public-module>
 		 <view class="headers " :style="headerStyle">
 			<view class="dis a-c j-start " style="padding: 0 15px;">
-				<u-icon name="arrow-left"  size="40" @tap="back"></u-icon>
+				<!-- <u-icon name="arrow-left"  size="40" @tap="back"></u-icon> -->
+				<text  @tap="back">返回</text>
 				<text style="margin: auto;">{{parentData.deptName || '我的工作室'}}</text>
+				<text  @tap="backHome">首页</text>
+
 			</view>
 		</view>
 		
@@ -65,6 +68,11 @@
 				});
 				
 			},
+			backHome() {
+			uni.switchTab({
+					url: "/pages/index/index"
+				})
+			},
 			onReachBottom() {
 				if (this.pageRequest.pageNum >= this.totalPages) return;
 				this.status = 'loading';
@@ -124,7 +132,7 @@
 		z-index: 999999;
 		padding-top: 40px;
 		    height: 85px;
-		text {
+		text:nth-child(2){
 			font-size: 18px;
 			font-weight: bold;
 		}

+ 9 - 3
pages/institutional/institutionalDetail.vue

@@ -3,8 +3,10 @@
 		<public-module></public-module>
 		 <view class="headers " :style="headerStyle">
 			<view class="dis a-c j-start " style="padding: 0 15px;">
-				<u-icon name="arrow-left"  size="40" @tap="back"></u-icon>
+				<!-- <u-icon name="arrow-left"  size="40" @tap="back"></u-icon> -->
+				<text  @tap="back">返回</text>
 				<text style="margin: auto;">{{parentData.deptName}}</text>
+				<text  @tap="backHome">首页</text>
 			</view>
 		</view>
 		
@@ -104,7 +106,11 @@
 					success: function() {}
 				});
 			},
-			
+			backHome() {
+			uni.switchTab({
+					url: "/pages/index/index"
+				})
+			},
 			onReachBottom() {
 				if (this.pageRequest.pageNum >= this.totalPages) return;
 				this.status = 'loading';
@@ -160,7 +166,7 @@
 		z-index: 999999;
 		padding-top: 40px;
 		    height: 85px;
-		text {
+			text:nth-child(2){
 			font-size: 18px;
 			font-weight: bold;
 		}

+ 9 - 2
pages/institutional/institutionalTeam.vue

@@ -3,9 +3,11 @@
 		<public-module></public-module>
 		<view class="headers " :style="headerStyle">
 			<view class="dis a-c j-start " style="padding: 0 15px;">
-				<u-icon name="arrow-left" size="40" @tap="back"></u-icon>
+				<!-- <u-icon name="arrow-left" size="40" @tap="back"></u-icon> -->
+				<text  @tap="back">返回</text>
 				<text
 					style="margin: auto;">{{ parentData.level ? `工作室(${chineseNumbers[parentData.level - 1]}级合伙人)` : '我的工作室' }}</text>
+					<text  @tap="backHome">首页</text>
 			</view>
 		</view>
 
@@ -231,6 +233,11 @@ export default {
 		}, 200);
 	},
 	methods: {
+		backHome() {
+			uni.switchTab({
+					url: "/pages/index/index"
+				})
+			},
 		styleChange(e) {
 			this.deptSource = e.detail.value
 		},
@@ -356,7 +363,7 @@ export default {
 	padding-top: 40px;
 	height: 85px;
 
-	text {
+	text:nth-child(2){	
 		font-size: 18px;
 		font-weight: bold;
 	}

+ 10 - 3
pages/institutional/partner.vue

@@ -3,8 +3,11 @@
 		<public-module></public-module>
 		<view class="headers " :style="headerStyle">
 			<view class="dis a-c j-start " style="padding: 0 15px;">
-				<u-icon name="arrow-left" size="40" @tap="back"></u-icon>
+				<!-- <u-icon name="arrow-left" size="40" @tap="back"></u-icon> -->
+				<text  @tap="back">返回</text>
 				<text style="margin: auto;">我的合伙人</text>
+				<text  @tap="backHome">首页</text>
+
 			</view>
 		</view>
 
@@ -611,6 +614,11 @@ export default {
 			});
 
 		},
+		backHome() {
+			uni.switchTab({
+					url: "/pages/index/index"
+				})
+			},
 		partnerDetail(item,level) {
 			if (item.partnerNumber) {
 				item.partnerType=level
@@ -695,8 +703,7 @@ export default {
 	z-index: 999999;
 	padding-top: 40px;
 	height: 85px;
-
-	text {
+	text:nth-child(2){
 		font-size: 18px;
 		font-weight: bold;
 	}

+ 16 - 12
pages/institutional/partnerDetail.vue

@@ -3,8 +3,10 @@
 		<public-module></public-module>
 		 <view class="headers " :style="headerStyle">
 			<view class="dis a-c j-start " style="padding: 0 15px;">
-				<u-icon name="arrow-left"  size="40" @tap="back"></u-icon>
-				<text style="margin: auto;">{{chineseNumbers[parentData.level-1]}}级合伙人</text>
+				<!-- <u-icon name="arrow-left"  size="40" @tap="back"></u-icon> -->
+				<text  @tap="back">返回</text>
+				<text style="margin: auto;">{{chineseNumbers[parentData.partnerType]}}级合伙人</text>
+				<text  @tap="backHome">首页</text>
 			</view>
 		</view>
 		
@@ -65,7 +67,7 @@
 		components:{card,seach},
 		data(){
 			return{
-				chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
+				chineseNumbers:[ '零','一', '二', '三', '四', '五', '六', '七', '八', '九'],
 				headerStyle: {
 					backgroundColor: 'transparent',
 					backgroundImage: 'url("/static/beijing (2).png")',
@@ -94,13 +96,16 @@
 			this.queryData()
 		},
 		methods:{
-			
 			back() {
 				uni.navigateBack({
 					delta: 1, // 返回的页面数,如果是1表示返回上一页
 					success: function() {}
 				});
-				
+			},
+			backHome() {
+			uni.switchTab({
+					url: "/pages/index/index"
+				})
 			},
 			onReachBottom() {
 				if (this.pageRequest.pageNum >= this.totalPages) return;
@@ -133,13 +138,12 @@
 						industrySector:data&& data.industrySector  ||'',
 						type:1,
 						partnerIds:this.parentData.partnerIds,
-						level: this.parentData.partnerType ||this.parentData.level+1 ,
-						// ...this.pageRequest
+						// level: this.parentData.partnerType ||this.parentData.level+1 ,
 					}
 				let res = await this.$http.post('/APPPartner/queryPartnerInfo', params);
 				if (res.code == '200' && res.data) {
 					this.directLsit=res.data.partnerInfoVoList
-					this.parentData.level=res.data.partnerInfoVoList[0].level
+					// this.parentData.level=res.data.partnerInfoVoList[0].level
 					this.parentData= {...this.parentData,...res.data}
 					this.totalPages = res.data.totalPages;
 					this.totalSize = res.data.totalSize;
@@ -166,10 +170,10 @@
 		z-index: 999999;
 		padding-top: 40px;
 		    height: 85px;
-		text {
-			font-size: 18px;
-			font-weight: bold;
-		}
+			text:nth-child(2){
+		font-size: 18px;
+		font-weight: bold;
+	}
 	}
 	.partner-head{
 		background: #FFFFFF;