lihongxiao 7 ay önce
ebeveyn
işleme
13b4ab3ee9
66 değiştirilmiş dosya ile 3067 ekleme ve 3456 silme
  1. 7 7
      config/baseUrl.js
  2. 2 3
      manifest.json
  3. 61 10
      pages.json
  4. 7 7
      pages/components/card.vue
  5. 0 1
      pages/components/date-picker.vue
  6. 9 8
      pages/components/seach.vue
  7. 351 0
      pages/index/applypartner.vue
  8. 430 0
      pages/index/applystudio.vue
  9. 363 0
      pages/index/applyteam.vue
  10. 0 819
      pages/index/index - 副本.vue
  11. 198 57
      pages/index/index.vue
  12. 118 0
      pages/index/result.vue
  13. 0 346
      pages/institutional/institutional - 副本.vue
  14. 1 1
      pages/institutional/institutional.vue
  15. 1 1
      pages/institutional/institutionalDetail.vue
  16. 7 7
      pages/institutional/institutionalTeam.vue
  17. 0 210
      pages/institutional/partner - 副本.vue
  18. 835 256
      pages/institutional/partner.vue
  19. 6 6
      pages/institutional/partnerDetail.vue
  20. 1 1
      pages/my/commission.vue
  21. 1 1
      pages/my/commissionDetail.vue
  22. 0 808
      pages/my/my - 副本.vue
  23. 579 325
      pages/my/my.vue
  24. 1 1
      pages/my/withdrawalDetail.vue
  25. 87 0
      pages/statistics/statistics.vue
  26. 1 1
      pages/tools/team/team.vue
  27. 0 579
      pages/wallet/bankCard - 副本.vue
  28. 1 1
      pages/wallet/billInfo.vue
  29. 0 0
      static/beijing (2).png
  30. 0 0
      static/hehuor.png
  31. BIN
      static/icon/code.png
  32. BIN
      static/icon/code2.png
  33. 0 0
      static/icon/dianhua.png
  34. 0 0
      static/icon/jibie.png
  35. 0 0
      static/icon/jibie1.png
  36. 0 0
      static/icon/jibie3.png
  37. 0 0
      static/icon/jibie4.png
  38. 0 0
      static/icon/jibie5.png
  39. 0 0
      static/icon/jibie6.png
  40. 0 0
      static/icon/nan.png
  41. 0 0
      static/icon/nv.png
  42. 0 0
      static/icon/right.png
  43. 0 0
      static/icon/tab/home1.png
  44. 0 0
      static/icon/tab/home2.png
  45. 0 0
      static/icon/tab/my1.png
  46. 0 0
      static/icon/tab/my2.png
  47. BIN
      static/icon/tab/tongji1.png
  48. BIN
      static/icon/tab/tongji2.png
  49. 0 0
      static/icon/weixin.png
  50. BIN
      static/icon/搜索.png
  51. BIN
      static/image/my/baocun.png
  52. 0 0
      static/image/my/beijing.png
  53. BIN
      static/image/my/fenxiang.png
  54. BIN
      static/image/my/kefu.png
  55. 0 0
      static/image/my/nan.png
  56. 0 0
      static/image/my/nv.png
  57. BIN
      static/image/my/shenfenzz.png
  58. BIN
      static/image/my/shenqing.png
  59. BIN
      static/image/my/shenzf.png
  60. BIN
      static/image/my/tichu.png
  61. BIN
      static/image/my/weixin.png
  62. 0 0
      static/image/my/wuxingb.png
  63. BIN
      static/image/my/yinhangka.png
  64. BIN
      static/shenqing.png
  65. 0 0
      static/work.png
  66. BIN
      static/zhaomum.png

+ 7 - 7
config/baseUrl.js

@@ -5,22 +5,22 @@ 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"; //测试
-	// h5BaseUrl = "https://test.baoxianzhanggui.com/h5";
+	// 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";
 	// baseUrl = "https://sxzgkj.baoxianzhanggui.com/web-api"; //生产
-	h5BaseUrl = "https://sxzgkj.baoxianzhanggui.com/h5";
+	// h5BaseUrl = "http://192.168.0.52:8080/copartnerH5";
 	socketUrl = "";
 } else if (process.env.NODE_ENV === 'production') {
 	// 生产环境
 	// baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试
-	// h5BaseUrl = "https://test.baoxianzhanggui.com/h5";
+	// h5BaseUrl = "https://test.baoxianzhanggui.com/copartnerH5";
 	// baseUrl = "https://pre.baoxianzhanggui.com/web-api"; //预生产
-	// h5BaseUrl = "https://pre.baoxianzhanggui.com/h5";
+	// h5BaseUrl = "https://pre.baoxian8zhanggui.com/copartnerH5";
 	baseUrl = "https://sxzgkj.baoxianzhanggui.com/web-api"; //生产
-	h5BaseUrl = "https://sxzgkj.baoxianzhanggui.com/h5";
+	h5BaseUrl = "https://sxzgkj.baoxianzhanggui.com/copartnerH5";
 	socketUrl = "";
 }
 const courtConfig = {

+ 2 - 3
manifest.json

@@ -9,8 +9,8 @@
             "src" : "图片路径"
         }
     ],
-    "versionName" : "1.0.0",
-    "versionCode" : 100,
+    "versionName" : "1.0.2",
+    "versionCode" : 102,
     "app-plus" : {
         "error" : {
             "url" : "hybrid/html/error.html"
@@ -29,7 +29,6 @@
         },
         "modules" : {
             "Messaging" : {},
-            "Camera" : {},
             "OAuth" : {},
             "Share" : {},
             "SQLite" : {}

+ 61 - 10
pages.json

@@ -183,6 +183,46 @@
 			// 	}
 			// }
 		},
+		{
+			"path": "pages/index/result", 
+			"style": {
+				"navigationBarTitleText": "申请结果",
+				"app-plus": {
+					"bounce": "none", //关闭反弹效果
+					"scrollIndicator": "none" //隐藏滚动条
+				}
+			}
+		},
+		{
+			"path": "pages/index/applypartner", 
+			"style": {
+				"navigationBarTitleText": "申请成为合伙人",
+				"app-plus": {
+					"bounce": "none", //关闭反弹效果
+					"scrollIndicator": "none" //隐藏滚动条
+				}
+			}
+		},
+		{
+			"path": "pages/index/applystudio", 
+			"style": {
+				"navigationBarTitleText": "申请工作室",
+				"app-plus": {
+					"bounce": "none", //关闭反弹效果
+					"scrollIndicator": "none" //隐藏滚动条
+				}
+			}
+		},
+		{
+			"path": "pages/index/applyteam", 
+			"style": {
+				"navigationBarTitleText": "申请团队",
+				"app-plus": {
+					"bounce": "none", //关闭反弹效果
+					"scrollIndicator": "none" //隐藏滚动条
+				}
+			}
+		},
 		{
 			"path": "pages/login/minis", //隐私协议
 			"style": {
@@ -274,6 +314,17 @@
 				}
 			}
 		},
+		{
+			"path": "pages/statistics/statistics",
+			"style": {
+				"navigationBarTextStyle": "white",
+				"enablePullDownRefresh": false, //开启下拉刷新
+				"navigationStyle": "custom",
+				"app-plus": {
+					"titleNView": false
+				}
+			}
+		},
 		{
 			"path": "pages/my/my",
 			"style": {
@@ -1008,20 +1059,20 @@
 		"backgroundColor": "#ffffff",
 		"list": [{
 				"pagePath": "pages/index/index",
-				"iconPath": "static/icon/tab/首页2.png",
-				"selectedIconPath": "static/icon/tab/首页1.png",
+				"iconPath": "static/icon/tab/home2.png",
+				"selectedIconPath": "static/icon/tab/home1.png",
 				"text": "首页"
 			},
-			// {
-			// 	"pagePath": "pages/orders/orders",
-			// 	"iconPath": "static/icon/tab/icon_xiaoxi.png",
-			// 	"selectedIconPath": "static/icon/tab/icon_xiaoxi_c.png",
-			// 	"text": "订单"
-			// },
+			{
+				"pagePath": "pages/statistics/statistics",
+				"iconPath": "static/icon/tab/tongji2.png",
+				"selectedIconPath": "static/icon/tab/tongji1.png",
+				"text": "统计"
+			},
 			{
 				"pagePath": "pages/my/my",
-				"iconPath": "static/icon/tab/我的2.png",
-				"selectedIconPath": "static/icon/tab/我的1.png",
+				"iconPath": "static/icon/tab/my2.png",
+				"selectedIconPath": "static/icon/tab/my1.png",
 				"text": "我的"
 			}
 		]

+ 7 - 7
pages/components/card.vue

@@ -6,15 +6,15 @@
 		<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/级别 (5).png" mode=""></image>
-				<image v-if="item.level==2 "  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别.png" mode=""></image>
-				<image v-if="item.level==3 "  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (1).png" mode=""></image>
-				<image v-if="item.level==4"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (2).png" mode=""></image>
-				<image v-if="item.level==5"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (3).png" mode=""></image>
-				<image v-if="item.level==6"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (4).png" mode=""></image>
+				<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>
 			</view>
 			<text v-if="isStudio" @click="detail(item)">详情
-			<image style="display: inline-block; width: 9px;height:9px;vertical-align: -1px;" src="/static/icon/向右.png" mode=""></image></text>
+			<image style="display: inline-block; width: 9px;height:9px;vertical-align: -1px;" src="/static/icon/right.png" mode=""></image></text>
 		</view>
 		<view class="card-con dis j-c a-c">
 			<view >

+ 0 - 1
pages/components/date-picker.vue

@@ -199,7 +199,6 @@
   	color: #333333;
   	padding:10px;
   	margin-bottom: 10px;
-  	border-bottom: 1px solid #EEEEEE;
   	position: relative;
   	text-align: center;
   	text:first-child {

+ 9 - 8
pages/components/seach.vue

@@ -1,15 +1,15 @@
 <template>
 	<view class="partner-head">
-		<view class=" dis j-s" style="border: 1px solid #EEEEEE;padding: 10px;">
+		<view class=" dis j-s" style="border: 1px solid #EEEEEE;padding: 10px;color: #666666;">
 			<view class="dis ">
 			<text style="margin-right: 10px;" @click="industryShow = true">{{industryData}}<i></i></text>
 			<u-select mode="single-column" :list="industryoptions" v-model="industryShow"
 				label-name="lable" value-name="value"
 				@confirm="industryopConfirm($event)"></u-select>
-			<text v-if="partnerHierarchy" @click="cimodelclassShow = true">{{cimodelclassData}}<i></i></text>
+			<!-- <text v-if="partnerHierarchy" @click="cimodelclassShow = true">{{cimodelclassData}}<i></i></text>
 			<u-select mode="single-column" :list="vehicleTypeoptions" v-model="cimodelclassShow"
 				label-name="lable" value-name="value"
-				@confirm="dictionaryConfirm($event)"></u-select>
+				@confirm="dictionaryConfirm($event)"></u-select> -->
 				</view>
 			<view class="search-data" >
 				<text v-for="(val,index) in year" :key="index" :class="val.startShow? 'active' :''" @click="onSeachYear(index)">{{val.lable}}</text>
@@ -238,16 +238,17 @@ import myDatePicker from './date-picker.vue';
 		}
 		.search-data{
 			color: #666666;
+			border: 1px solid #EEEEEE;
 			.active{
 				color: #FFFFFF;
 				background: linear-gradient( 132deg, #2DD9FF 0%, #2D6DFF 100%);
 			}
 			text{
-				// width: 25px;
-				// height: 25px;
-				// text-align: center;
-				padding: 5px 8px;
-				border: 1px solid #EEEEEE;
+				padding: 5px 6px;
+				border-left: 1px solid #EEEEEE;
+			}
+			text:first-child{
+				border-left: none
 			}
 		}
 	}

+ 351 - 0
pages/index/applypartner.vue

@@ -0,0 +1,351 @@
+<template>
+	<view>
+		<public-module></public-module>
+		
+		<view class="box"  :style="{background:`url(${indexBackgroundImage})`,backgroundSize: 'contain',backgroundRepeat: 'no-repeat'}">
+		<view class="box-con">
+			<uni-forms ref="personData"  :rules="rules" :value="personData"  label-width="100" validate-trigger="bind"
+					 err-show-type="toast">
+				<uni-forms-item label="姓名" required name="name">
+					<input class="uni-input-input textColor" placeholder="输入姓名" v-model="personData.name"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="手机号" required   name="mobile">
+					<input class="uni-input-input textColor" maxlength="11"  placeholder="输入手机号" v-model="personData.mobile"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="证件号" required  name="identity">
+					<input class="uni-input-input textColor" placeholder="输入证件号" v-model="personData.identity"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="密码" required  name="password">
+					<input class="uni-input-input textColor" placeholder="输入密码" v-model="personData.password"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="地址" required  name="address">
+					<input class="uni-input-input textColor" placeholder="输入地址" v-model="personData.address"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+			</uni-forms>
+		</view>
+		</view>
+		<!-- <view class="box-con" style="margin-top:10px">
+			<uni-forms :rules="carRules" :value="personData" ref="personData" validate-trigger="bind"
+				 err-show-type="toast" label-width="100">
+				<uni-forms-item label="开户行">
+					<input class="uni-input-input textColor" placeholder="输入开户行" v-model="personData.bankName"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="开户账号">
+					<input class="uni-input-input textColor" placeholder="输入开户账号" v-model="personData.accountno"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<view >
+					<view>银行卡照片</view>
+					<view class="dis j-c" >
+						<image style="height: 95px;width: 150px;padding: 10px 0;" :src=" userfrontImg?userfrontImg:'/static/image/my/yinhangka.png'" mode=""
+							@click="userfrontChange"></image>
+					</view>
+				</view>
+			</uni-forms>
+		</view> -->
+		<view class="userBox" style="margin-top:10px">
+			<text>身份证件照</text>
+			<view class="dis j-s" style="margin: 10px 0;">
+				<view class="imgOcr-border">
+					<image :src=" userfrontImg?userfrontImg:'/static/image/my/shenfenzz.png'" mode=""
+						@click="userfrontChange"></image>
+					<view>人像面</view>
+				</view>
+				<view class="imgOcr-border">
+					<image :src="userbackImg?userbackImg:'/static/image/my/shenzf.png'" mode=""
+						@click="userbackChange"></image>
+						<view>国徽面</view>
+				</view>
+			</view>
+		</view>
+		<!-- <view class="userBox">
+			<u-checkbox v-model="checked"></u-checkbox>
+			<text>同时创建我的团队</text>
+		</view> -->
+		<view class="submit" @click="submit()">
+			提交
+		</view>
+	</view>
+</template>
+
+<script>
+	// import {
+	// 	mapState,
+	// 	mapMutations
+	// } from "vuex"
+	// import store from '@/store';
+	 import indexBackgroundImage from "@/static/shenqing.png"
+	export default {
+		// computed: {
+		// 	...mapState(['userInfo', "userCheckInfo", ]),
+		// },
+		data(){
+			return {
+				indexBackgroundImage:indexBackgroundImage,
+				checked:false,
+				userfrontImg: "",
+				userbackImg: "",
+				personData:{
+					name:'',
+					mobile:'',
+					identity:'',
+					password:'',
+					address:'',
+					esmUserImageVo:[]
+				},
+				rules:{
+					name:{
+						rules: [{
+							required: true,
+							errorMessage: '姓名不能为空'
+						}]
+					},
+					mobile:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入手机号',
+						},
+						{
+							pattern: /^1[3-9]\d{9}$/,
+							errorMessage: '请输入正确的手机号',
+						}]
+					},
+					identity:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入身份证号',
+						},
+						{
+							pattern: /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,
+							errorMessage: '请输入正确的身份证号',
+						}]
+					},
+					password:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入密码'
+						}]
+					},
+					address:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入地址',
+						}]
+					},
+				},
+				level:'',
+				id:'',
+				userId:''
+			}
+	},
+	
+	async onLoad(e) {
+		this.level=e.level?e.level:''
+		this.userId=e.userId?e.userId:''
+		if(e.id){
+			this.id=e.id
+			this.$http.get('/user/' +e.id).then(res=>{
+				if(res.code==200){
+					this.personData={...res.data.sysUser,esmUserImageVo:[]}
+				}
+				else{
+					uni.showModal({
+						showCancel: false,
+						title: res.msg
+					})
+				}
+			})
+		}
+	},
+	methods:{
+		 submit(){
+			this.$refs.personData.submit().then(res => {
+				if(this.id){
+					this.$http.post('/user/updateUserInfo1/' +this.id, {
+						 esmUserImageVo: this.personData.esmUserImageVo,
+						 sysUser: this.personData,
+						 sysUserInfo:this.personData,
+					}).then(res=>{
+						if(res.code==200){
+							uni.redirectTo({
+								url: "/pages/index/result"
+							})
+						}
+						else{
+							uni.showModal({
+								showCancel: false,
+								title: res.msg
+							})
+						}
+					})
+				}else{
+					this.$http.post('/user/saveUserInfoByPartner', {
+						isPartner:"1",
+						sysUser:{...this.personData,roleId:"22",referrerId:this.userId,level:this.level,type:1},
+						esmUserImageVo:this.personData.esmUserImageVo
+					}).then(res=>{
+						if(res.code==200){
+							uni.redirectTo({
+								url: "/pages/index/result"
+							})
+						}
+						else{
+							uni.showModal({
+								showCancel: false,
+								title: res.msg
+							})
+						}
+					})
+				}
+			}).catch(err => {
+				console.log('err', err);
+			})
+		},
+		async userfrontChange() {
+			let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
+				count: 1,
+				sizeType: ['compressed']
+			});
+		
+			let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+			if (!size) {
+				this.$refs.uToast.show({
+					title: '上传图片大小不能超过 5MB!',
+					type: 'error',
+				})
+				return false
+			}
+			if (chooseImageRes) {
+				this.userfrontImg = chooseImageRes.tempFilePaths[0];
+				uni.uploadFile({
+					url: this.$base.baseUrl + '/ins/taskImage/uploadFileByPartner',
+					filePath: chooseImageRes.tempFilePaths[0],
+					name: "multipartFile",
+					formData: {
+						'type': 'image',
+					},
+					// header: {
+					// 	Authorization: store.state.token,
+					// },
+					success: (imgRes) => {
+						let data = JSON.parse(imgRes.data);
+						if (data.code == '200') {
+							// this.personData.esmUserImageVo[0]=data.data
+							this.personData.esmUserImageVo.push(
+								{
+								imageId: data.data.id,
+            					type: "SFZ_01",
+							}
+							)
+						}
+		
+					}
+				});
+			} 
+		},
+		async userbackChange() {
+			let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
+				count: 1,
+				sizeType: ['compressed']
+			});
+			let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+			if (!size) {
+				this.$refs.uToast.show({
+					title: '上传图片大小不能超过 5MB!',
+					type: 'error',
+				})
+				return false
+			}
+			if (chooseImageRes) {
+				this.userbackImg = chooseImageRes.tempFilePaths[0];
+				uni.uploadFile({
+					url: this.$base.baseUrl + '/ins/taskImage/uploadFileByPartner',
+					filePath: chooseImageRes.tempFilePaths[0],
+					name: "multipartFile",
+					formData: {
+						'type': 'image',
+					},
+					// header: {
+					// 	Authorization: store.state.token,
+					// },
+					success: (imgRes) => {
+						let data = JSON.parse(imgRes.data);
+						if (data.code == '200') {
+							this.personData.esmUserImageVo.push(
+								{
+								imageId: data.data.id,
+            					type: "SFZ_02",
+							}
+							)
+							// this.personData.esmUserImageVo[1]=data.data
+						}
+		
+					}
+				});
+			} 
+		},
+	},
+	}
+</script>
+
+<style lang="scss" scoped>
+	.box {
+		height: 330px;
+		width: 100%;
+		background: #F9F9F9;
+		background: url(/static/image/my/shenqing.png) no-repeat;
+		background-size: contain;
+		padding: 130px 15px 0 15px;
+		// padding: 200px 16px 15px 16px;
+	}
+	.box-con{
+		background: #FFFFFF;
+		padding: 10px 15px;
+		border-radius: 5px 5px 5px 5px;
+	}
+	.userBox{
+		border-radius: 5px 5px 5px 5px;
+		margin:10px 15px;
+		padding: 10px 15px;
+		background: #fff;
+		font-size: 15px;
+		color: #666666;
+		.imgOcr-border {
+			// position: relative;
+			width: 48%;
+			text-align: center;
+			image {
+				display: inline-block;
+				height: 95px;
+				width: 100%;
+			}
+			
+			// .del_btn {
+			// 	position: absolute;
+			// 	cursor: pointer;
+			// 	position: absolute;
+			// 	top: 5rpx;
+			// 	right: 0;
+			// 	width: 50rpx;
+			// 	height: 50rpx;
+			// 	border-radius: 50%;
+			// 	z-index: 20;
+			// }
+		}
+	}
+	.submit{
+		margin: 15px;
+		text-align: center;
+		color: #fff;
+		height: 46px;
+		line-height: 46px;
+		background: linear-gradient( 133deg, #2DD9FF 0%, #2D6DFF 100%);
+		border-radius: 31px 31px 31px 31px;
+	}
+</style>

+ 430 - 0
pages/index/applystudio.vue

@@ -0,0 +1,430 @@
+<template>
+	<view>
+		<public-module></public-module>
+		
+		<view class="box"  :style="{background:`url(${indexBackgroundImage})`,backgroundSize: 'contain',backgroundRepeat: 'no-repeat'}">
+		<view class="box-con">
+			<uni-forms  :value="personData" ref="personData" validate-trigger="bind"
+				 err-show-type="toast" label-width="100" :rules="rules" >
+				<uni-forms-item label="姓名" name="name" required >
+					<input class="uni-input-input textColor" placeholder="输入姓名" v-model="personData.name"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="手机号" required  name="mobile">
+					<input class="uni-input-input textColor"  maxlength="11"  placeholder="输入手机号" v-model="personData.mobile"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="证件号" required  name="identity">
+					<input class="uni-input-input textColor" placeholder="输入证件号" v-model="personData.identity"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="密码" required  name="password">
+					<input class="uni-input-input textColor" placeholder="输入密码" v-model="personData.password"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="地址" required  name="address">
+					<input class="uni-input-input textColor" placeholder="输入地址" v-model="personData.address"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+			</uni-forms>
+		</view>
+		</view>
+		<!-- <view class="box-con" style="margin-top:10px">
+			<uni-forms :rules="carRules" :value="personData" ref="personData" validate-trigger="bind"
+				 err-show-type="toast" label-width="100">
+				<uni-forms-item label="开户行">
+					<input class="uni-input-input textColor" placeholder="输入开户行" v-model="personData.bankName"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="开户账号">
+					<input class="uni-input-input textColor" placeholder="输入开户账号" v-model="personData.accountno"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<view >
+					<view>银行卡照片</view>
+					<view class="dis j-c" >
+						<image style="height: 95px;width: 150px;padding: 10px 0;" :src=" userfrontImg?userfrontImg:'/static/image/my/yinhangka.png'" mode=""
+							@click="userfrontChange"></image>
+					</view>
+				</view>
+			</uni-forms>
+		</view> -->
+		<view class="userBox" style="margin-top:10px">
+			<text>身份证件照</text>
+			<view class="dis j-s" style="margin: 10px 0;">
+				<view class="imgOcr-border">
+					<image :src=" userfrontImg?userfrontImg:'/static/image/my/shenfenzz.png'" mode=""
+						@click="userfrontChange"></image>
+					<view>人像面</view>
+				</view>
+				<view class="imgOcr-border">
+					<image :src="userbackImg?userbackImg:'/static/image/my/shenzf.png'" mode=""
+						@click="userbackChange"></image>
+						<view>国徽面</view>
+				</view>
+			</view>
+		</view>
+		<!-- <view class="userBox">
+			<uni-forms :rules="carRules" :value="personData" ref="personData" validate-trigger="bind"
+				 err-show-type="toast" label-width="100">
+				<uni-forms-item label="选择来源" required  name="deptSourceName">
+					<u-input v-model="personData.deptSourceName" type="select" :select-open="energyTypeShow"
+						@click="energyTypeShow = true" :custom-style="{textAlign:'right'}"
+						placeholder-style="color:#808080" placeholder="请选择来源" />
+					<u-select mode="single-column" :list="energyTypeoptions" v-model="energyTypeShow"
+						label-name="lable" value-name="value"
+						@confirm="dictionaryConfirm($event)"></u-select>
+				</uni-forms-item>
+				<uni-forms-item label="机构类型" required  name="deptName">
+					<u-input v-model="personData.deptName" type="select" :select-open="deptShow"
+						@click="deptShow = true" :custom-style="{textAlign:'right'}"
+						placeholder-style="color:#808080" placeholder="请选择机构类型" />
+					<u-select mode="single-column" :list="deptoptions" v-model="deptShow"
+						label-name="lable" value-name="value"
+						@confirm="deptConfirm($event)"></u-select>
+				</uni-forms-item>
+			</uni-forms>
+		</view> -->
+		<!-- <view class="userBox">
+			<u-checkbox v-model="checked"></u-checkbox>
+			<text>同时创建我的团队</text>
+		</view> -->
+		<view class="submit" @click="submit('personData')">
+			提交
+		</view>
+	</view>
+</template>
+
+<script>
+	// import {
+	// 	mapState,
+	// 	mapMutations
+	// } from "vuex"
+	// import store from '@/store';
+	import indexBackgroundImage from "@/static/shenqing.png"
+	export default {
+		// computed: {
+		// 	...mapState(['userInfo' ]),
+		// },
+		data(){
+			return {
+				indexBackgroundImage:indexBackgroundImage,
+				rules: {
+					name:{
+						rules: [{
+							required: true,
+							errorMessage: '姓名不能为空'
+						}]
+					},
+					mobile:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入手机号',
+						},
+						{
+							pattern: /^1[3-9]\d{9}$/,
+							errorMessage: '请输入正确的手机号',
+						}]
+					},
+					identity:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入身份证号',
+						},
+						{
+							pattern: /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,
+							errorMessage: '请输入正确的身份证号',
+						}]
+					},
+					password:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入密码'
+						}]
+					},
+					address:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入地址',
+						}]
+					},
+				},
+				energyTypeShow:false,
+				deptShow:false,
+				deptoptions:[
+					{
+						lable:'股份',
+						value:'gufen'
+					},{
+						lable:'直营',
+						value:'dir'
+					},{
+						lable:'加盟',
+						value:'jiameng'
+					}],
+				energyTypeoptions:[
+					{
+						lable:'渠道',
+						value:'1'
+					},{
+						lable:'个代',
+						value:'2'
+					}],
+				checked:false,
+				userfrontImg: "",
+				userbackImg: "",
+				personData:{
+					name:'',
+					mobile:'',
+					identity:'',
+					password:'',
+					address:'',
+					esmUserImageVo:[]
+				},
+				
+				deptSource:'',
+				userId:''
+			}
+	},
+	async onLoad(e) {
+		this.deptSource=e.deptSource?e.deptSource:''
+		this.userId=e.userId?e.userId:''
+		if(e.id){
+			this.id=e.id
+			this.$http.get('/user/' +e.id).then(res=>{
+				if(res.code==200){
+					this.personData={...res.data.sysUser,esmUserImageVo:[]}
+				}
+				else{
+					uni.showModal({
+						showCancel: false,
+						title: res.msg
+					})
+				}
+			})
+		}
+	},
+
+	methods:{
+		submit(){
+			this.$refs.personData.validate().then(res => {
+				if(this.id){
+					this.$http.post('/user/updateUserInfo1/' +this.id, {
+						 esmUserImageVo: this.personData.esmUserImageVo,
+						 sysUser: this.personData,
+						 sysUserInfo:this.personData,
+					}).then(res=>{
+						if(res.code==200){
+							uni.redirectTo({
+								url: "/pages/index/result"
+							})
+						}
+						else{
+							uni.showModal({
+								showCancel: false,
+								title: res.msg
+							})
+						}
+					})
+				}else{
+					this.$http.post('/user/saveUserInfoByPartner', {
+						isPartner:"1",
+						sysUser:{...this.personData,roleId:"22",referrerId:this.userId,type:2,deptSource:this.deptSource},
+						esmUserImageVo:this.personData.esmUserImageVo
+					}).then(res=>{
+						if(res.code==200){
+							uni.redirectTo({
+								url: "/pages/index/result"
+							})
+						}
+						else{
+							uni.showModal({
+								showCancel: false,
+								title: res.msg
+							})
+						}
+					})
+				}
+				
+			}).catch(err => {
+				console.log('err', err);
+			})
+		},
+		//  submit(){
+		// 	 uni.redirectTo({
+		// 	 	url: "/pages/index/result?key="+encodeURIComponent(JSON.stringify({status:2}))
+		// 	 	// url: "/pages/index/result?status=1&remark=111"
+		// 	 })
+		// 	// this.$refs.personData.validate().then(res => {
+		// 		this.$refs.baseForm.submit().then(res => {
+		// 			this.$http.post('/user/saveUserInfo', {
+		// 				isPartner:"1",
+		// 				sysUser:{...this.personData,roleId:"22",referrerId:this.userInfo.sysUser.userId,type:2,deptSource:this.deptSource},
+		// 				esmUserImageVo:this.personData.esmUserImageVo
+		// 			}).then(res=>{
+		// 				if(res.code==200){
+		// 					uni.redirectTo({
+		// 						url: "/pages/index/result?key="+encodeURIComponent(JSON.stringify({status:1}))
+		// 					})
+		// 				}
+		// 				else{
+		// 					uni.showModal({
+		// 						showCancel: false,
+		// 						title: res.msg
+		// 					})
+		// 					// uni.showToast({
+		// 					// 	title: res.msg
+		// 					// })
+		// 				}
+		// 			})
+				
+		// 		// if (data.code == '200') {
+		// 		// }
+		// 	}).catch(err => {
+		// 		console.log('err', err);
+		// 	})
+		// },
+		dictionaryConfirm(val){
+			this.personData.deptSourceName=val[0].label
+			this.personData.deptSource=val[0].value
+		},
+		deptConfirm(val){
+			this.personData.deptName=val[0].label
+			this.personData.deptType=val[0].value
+		},
+		async userfrontChange() {
+			// this.personData.esmUserImageVo[0]={}
+			let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
+				count: 1,
+				sizeType: ['compressed']
+			});
+		
+			let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+			if (!size) {
+				this.$refs.uToast.show({
+					title: '上传图片大小不能超过 5MB!',
+					type: 'error',
+				})
+				return false
+			}
+			if (chooseImageRes) {
+				this.userfrontImg = chooseImageRes.tempFilePaths[0];
+				uni.uploadFile({
+					url: this.$base.baseUrl + '/ins/taskImage/uploadFileByPartner',
+					filePath: chooseImageRes.tempFilePaths[0],
+					name: "multipartFile",
+					formData: {
+						'type': 'image',
+					},
+					// header: {
+					// 	Authorization: store.state.token,
+					// },
+					success: (imgRes) => {
+						let data = JSON.parse(imgRes.data);
+						if (data.code == '200') {
+							this.personData.esmUserImageVo.push(
+								{
+								imageId: data.data.id,
+            					type: "SFZ_01",
+							}
+							)
+							// this.personData.esmUserImageVo[0]={
+							// 	imageId: data.data.id,
+            				// 	type: "SFZ_01",
+							// }
+						}
+		
+					}
+				});
+			} 
+		},
+		async userbackChange() {
+			// this.personData.esmUserImageVo[1]={}
+			let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
+				count: 1,
+				sizeType: ['compressed']
+			});
+			let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+			if (!size) {
+				this.$refs.uToast.show({
+					title: '上传图片大小不能超过 5MB!',
+					type: 'error',
+				})
+				return false
+			}
+			if (chooseImageRes) {
+				this.userbackImg = chooseImageRes.tempFilePaths[0];
+				uni.uploadFile({
+					url: this.$base.baseUrl + '/ins/taskImage/uploadFileByPartner',
+					filePath: chooseImageRes.tempFilePaths[0],
+					name: "multipartFile",
+					formData: {
+						'type': 'image',
+					},
+					// header: {
+					// 	Authorization: store.state.token,
+					// },
+					success: (imgRes) => {
+						let data = JSON.parse(imgRes.data);
+						if (data.code == '200') {
+							// this.personData.esmUserImageVo[1]=data.data
+							this.personData.esmUserImageVo.push(
+								{
+								imageId: data.data.id,
+            					type: "SFZ_02",
+							}
+							)
+						}
+		
+					}
+				});
+			} 
+		},
+	},
+	}
+</script>
+
+<style lang="scss" scoped>
+	.box {
+		height: 330px;
+		width: 100%;
+		// background-repeat: no-repeat;
+		// background: #F9F9F9;
+		// background: url(/static/shenqing.png) no-repeat;
+		// background-size: contain;
+		padding: 130px 15px 0 15px;
+		// padding: 200px 16px 15px 16px;
+	}
+	.box-con{
+		background: #FFFFFF;
+		padding: 10px 15px;
+		border-radius: 5px 5px 5px 5px;
+	}
+	.userBox{
+		border-radius: 5px 5px 5px 5px;
+		margin:10px 15px;
+		padding: 10px 15px;
+		background: #fff;
+		font-size: 15px;
+		color: #666666;
+		.imgOcr-border {
+			// position: relative;
+			width: 48%;
+			text-align: center;
+			image {
+				display: inline-block;
+				height: 95px;
+				width: 100%;
+			}
+		}
+	}
+	.submit{
+		margin: 15px;
+		text-align: center;
+		color: #fff;
+		height: 46px;
+		line-height: 46px;
+		background: linear-gradient( 133deg, #2DD9FF 0%, #2D6DFF 100%);
+		border-radius: 31px 31px 31px 31px;
+	}
+</style>

+ 363 - 0
pages/index/applyteam.vue

@@ -0,0 +1,363 @@
+<template>
+	<view>
+		<public-module></public-module>
+		
+			<view class="box"  :style="{background:`url(${indexBackgroundImage})`,backgroundSize: 'contain',backgroundRepeat: 'no-repeat'}">
+		<view class="box-con">
+			<uni-forms :rules="carRules" :value="personData" ref="personData" validate-trigger="bind"
+				 err-show-type="toast" label-width="100">
+				<uni-forms-item label="姓名" required  name="name">
+					<input class="uni-input-input textColor" placeholder="输入姓名" v-model="personData.name"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="手机号" required  name="mobile">
+					<input class="uni-input-input textColor" maxlength="11"  placeholder="输入手机号" v-model="personData.mobile"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="证件号" required  name="identity">
+					<input class="uni-input-input textColor" placeholder="输入证件号" v-model="personData.identity"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="密码" required  name="password">
+					<input class="uni-input-input textColor" placeholder="输入密码" v-model="personData.password"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="地址" required  name="address">
+					<input class="uni-input-input textColor" placeholder="输入地址" v-model="personData.address"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+			</uni-forms>
+		</view>
+		</view>
+		<!-- <view class="box-con" style="margin-top:10px">
+			<uni-forms :rules="carRules" :value="personData" ref="personData" validate-trigger="bind"
+				 err-show-type="toast" label-width="100">
+				<uni-forms-item label="开户行">
+					<input class="uni-input-input textColor" placeholder="输入开户行" v-model="personData.bankName"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<uni-forms-item label="开户账号">
+					<input class="uni-input-input textColor" placeholder="输入开户账号" v-model="personData.accountno"
+						placeholder-style="font-size:28upx"  />
+				</uni-forms-item>
+				<view >
+					<view>银行卡照片</view>
+					<view class="dis j-c" >
+						<image style="height: 95px;width: 150px;padding: 10px 0;" :src=" userfrontImg?userfrontImg:'/static/image/my/yinhangka.png'" mode=""
+							@click="userfrontChange"></image>
+					</view>
+				</view>
+			</uni-forms>
+		</view> -->
+		<view class="userBox" style="margin-top:10px">
+			<text>身份证件照</text>
+			<view class="dis j-s" style="margin: 10px 0;">
+				<view class="imgOcr-border">
+					<image :src=" userfrontImg?userfrontImg:'/static/image/my/shenfenzz.png'" mode=""
+						@click="userfrontChange"></image>
+					<view>人像面</view>
+				</view>
+				<view class="imgOcr-border">
+					<image :src="userbackImg?userbackImg:'/static/image/my/shenzf.png'" mode=""
+						@click="userbackChange"></image>
+						<view>国徽面</view>
+				</view>
+			</view>
+		</view>
+		<!-- <view class="userBox">
+			<u-checkbox v-model="checked"></u-checkbox>
+			<text>同时创建我的团队</text>
+		</view> -->
+		<view class="submit" @click="submit()">
+			提交
+		</view>
+	</view>
+</template>
+
+<script>
+	// import {
+	// 	mapState,
+	// 	mapMutations
+	// } from "vuex"
+	// import store from '@/store';
+	import indexBackgroundImage from "@/static/shenqing.png"
+	export default {
+		// computed: {
+		// 	...mapState(['userInfo', "userCheckInfo", ]),
+		// },
+		data(){
+			return {
+				indexBackgroundImage:indexBackgroundImage,
+				checked:false,
+				userfrontImg: "",
+				userbackImg: "",
+				personData:{
+					name:'',
+					mobile:'',
+					identity:'',
+					password:'',
+					address:'',
+					esmUserImageVo:[]
+				},
+				carRules: {
+					name:{
+						rules: [{
+							required: true,
+							errorMessage: '姓名不能为空'
+						}]
+					},
+					mobile:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入手机号',
+						},
+						{
+							pattern: /^1[3-9]\d{9}$/,
+							errorMessage: '请输入正确的手机号',
+						}]
+					},
+					identity:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入身份证号',
+						},
+						{
+							pattern: /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,
+							errorMessage: '请输入正确的身份证号',
+						}]
+					},
+					password:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入密码'
+						}]
+					},
+					address:{
+						rules: [{
+							required: true,
+							errorMessage: '请输入地址',
+						}]
+					},
+				},
+				userId:''
+			}
+	},
+	
+	async onLoad(e) {
+		this.userId=e.userId?e.userId:''
+		if(e.id){
+			this.id=e.id
+			this.$http.get('/user/' +e.id).then(res=>{
+				if(res.code==200){
+					this.personData={...res.data.sysUser,esmUserImageVo:[]}
+				}
+				else{
+					uni.showModal({
+						showCancel: false,
+						title: res.msg
+					})
+				}
+			})
+		}
+	},
+	methods:{
+		submit(){
+			this.$refs.personData.validate().then(res => {
+				if(this.id){
+					this.$http.post('/user/updateUserInfo1/' +this.id, {
+						 esmUserImageVo: this.personData.esmUserImageVo,
+						 sysUser: this.personData,
+						 sysUserInfo:this.personData,
+					}).then(res=>{
+						if(res.code==200){
+							uni.redirectTo({
+								url: "/pages/index/result"
+							})
+						}
+						else{
+							uni.showModal({
+								showCancel: false,
+								title: res.msg
+							})
+						}
+					})
+				}else{
+					this.$http.post('/user/saveTeamLeader', {
+						sysUser:{...this.personData,roleId:"21",referrerId:this.userId},
+						esmUserImageVo:this.personData.esmUserImageVo
+					}).then(res=>{
+						if(res.code==200){
+							uni.redirectTo({
+								url: "/pages/index/result"
+							})
+						}
+						else{
+							uni.showModal({
+								showCancel: false,
+								title: res.msg
+							})
+						}
+					})
+				}
+			}).catch(err => {
+				console.log('err', err);
+			})
+		},
+		//  submit(ref){
+		// 	this.$refs[ref].validate().then(res => {
+		// 		if(res){
+		// 			this.$http.post('/user/saveTeamLeader', {
+		// 				sysUser:{...this.personData,roleId:"21",referrerId:this.userInfo.sysUser.userId},
+		// 				esmUserImageVo:this.personData.esmUserImageVo
+		// 			}).then(res=>{
+						
+		// 			})
+		// 		}
+				
+		// 		// if (data.code == '200') {
+		// 		// }
+		// 	}).catch(err => {
+		// 		console.log('err', err);
+		// 	})
+		// },
+		async userfrontChange() {
+			let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
+				count: 1,
+				sizeType: ['compressed']
+			});
+		
+			let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+			if (!size) {
+				this.$refs.uToast.show({
+					title: '上传图片大小不能超过 5MB!',
+					type: 'error',
+				})
+				return false
+			}
+			if (chooseImageRes) {
+				this.userfrontImg = chooseImageRes.tempFilePaths[0];
+				uni.uploadFile({
+					url: this.$base.baseUrl + '/ins/taskImage/uploadFileByPartner',
+					filePath: chooseImageRes.tempFilePaths[0],
+					name: "multipartFile",
+					formData: {
+						'type': 'image',
+					},
+					// header: {
+					// 	Authorization: store.state.token,
+					// },
+					success: (imgRes) => {
+						let data = JSON.parse(imgRes.data);
+						if (data.code == '200') {
+							this.personData.esmUserImageVo.push(
+								{
+								imageId: data.data.id,
+            					type: "SFZ_01",
+							}
+							)
+						}
+		
+					}
+				});
+			} 
+		},
+		async userbackChange() {
+			let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
+				count: 1,
+				sizeType: ['compressed']
+			});
+			let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
+			if (!size) {
+				this.$refs.uToast.show({
+					title: '上传图片大小不能超过 5MB!',
+					type: 'error',
+				})
+				return false
+			}
+			if (chooseImageRes) {
+				this.userbackImg = chooseImageRes.tempFilePaths[0];
+				uni.uploadFile({
+					url: this.$base.baseUrl + '/ins/taskImage/uploadFileByPartner',
+					filePath: chooseImageRes.tempFilePaths[0],
+					name: "multipartFile",
+					formData: {
+						'type': 'image',
+					},
+					// header: {
+					// 	Authorization: store.state.token,
+					// },
+					success: (imgRes) => {
+						let data = JSON.parse(imgRes.data);
+						if (data.code == '200') {
+							this.personData.esmUserImageVo.push(
+								{
+								imageId: data.data.id,
+            					type: "SFZ_02",
+							}
+							)
+							// this.personData.esmUserImageVo[1]=data.data
+						}
+		
+					}
+				});
+			} 
+		},
+	},
+	}
+</script>
+
+<style lang="scss" scoped>
+	.box {
+		height: 330px;
+		width: 100%;
+		background: #F9F9F9;
+		background: url(/static/shenqing.png) no-repeat;
+		background-size: contain;
+		padding: 130px 15px 0 15px;
+		// padding: 200px 16px 15px 16px;
+	}
+	.box-con{
+		background: #FFFFFF;
+		padding: 10px 15px;
+		border-radius: 5px 5px 5px 5px;
+	}
+	.userBox{
+		border-radius: 5px 5px 5px 5px;
+		margin:10px 15px;
+		padding: 10px 15px;
+		background: #fff;
+		font-size: 15px;
+		color: #666666;
+		.imgOcr-border {
+			// position: relative;
+			width: 48%;
+			text-align: center;
+			image {
+				display: inline-block;
+				height: 95px;
+				width: 100%;
+			}
+			
+			// .del_btn {
+			// 	position: absolute;
+			// 	cursor: pointer;
+			// 	position: absolute;
+			// 	top: 5rpx;
+			// 	right: 0;
+			// 	width: 50rpx;
+			// 	height: 50rpx;
+			// 	border-radius: 50%;
+			// 	z-index: 20;
+			// }
+		}
+	}
+	.submit{
+		margin: 15px;
+		text-align: center;
+		color: #fff;
+		height: 46px;
+		line-height: 46px;
+		background: linear-gradient( 133deg, #2DD9FF 0%, #2D6DFF 100%);
+		border-radius: 31px 31px 31px 31px;
+	}
+</style>

+ 0 - 819
pages/index/index - 副本.vue

@@ -1,819 +0,0 @@
-<template>
-	<view>
-		<!-- <u-notice-bar :autoplay="autoplay" :playState="playState" :speed="speed" :mode="mode" @click="click"
-			:show="show" :type="type" :list="list" :moreIcon="moreIcon" :volumeIcon="volumeIcon" :duration="duration"
-			bgColor="" padding="8rpx 24rpx" :isCircular="isCircular"
-			style="position: absolute;top: 12%;z-index: 9;width: 100%;"></u-notice-bar> -->
-
-		<!-- 状态栏 -->
-		<view class="status" :style="{position:headerPosition,backgroundColor:bgColor}"></view>
-		<!-- 漂浮头部 -->
-		<view class="header dis a-c j-s" :style="{position:headerPosition,backgroundColor:bgColor}">
-			<view class="city dis a-c ">
-				<text>{{city}}</text>
-				<view class="icon iconfont icon-sanjiao_fill-"></view>
-			</view>
-
-			<view class="input dis a-c">
-				<view class="icon iconfont icon-saoyisao" @tap="scan"></view>
-				<input disabled placeholder="车险" @tap="toSearch()" />
-			</view>
-			<view class="menu">
-				<image mode="aspectFill" :src="avatar"
-					@click='isShow?navigate({url:"/pages/realname/realname"}," ",true):""'></image>
-			</view>
-		</view>
-		<!-- 公共组件-每个页面必须引入 -->
-		<public-module></public-module>
-
-		<!-- 占位 -->
-		<view class="place" :style="{backgroundColor:'#fff'}"></view>
-		<!-- 实名认证提示 -->
-		<view class="" @click='navigate({url:"/pages/realname/realname"},"navigateTo",true)' v-show="isShow">
-			<u-notice-bar :list="list" type="error" padding="8rpx 24rpx"></u-notice-bar>
-		</view>
-
-		<!-- 轮播图 -->
-		<swiper-image :resdata="swiperList" @changeEvent="swiperChange"></swiper-image>
-		<!-- <view class="" @click="arr">
-			321321
-		</view> -->
-		<!-- 分类轮播 -->
-		<index-nav :resdata="categoryList" :row="2"></index-nav>
-		<!-- 推荐商品 -->
-		<view class="pick" :style="{'background':'#fff'}">
-			<view class="box">
-				<view class="title">
-					<view class="big">推荐商品</view>
-					<view class="small">好货推荐 低价精选</view>
-				</view>
-				<view class="product-list">
-					<view v-for="product in pickList" :key="product.goods_id" @tap="toPick(product)">
-						<image mode="widthFix" :src="product.img"></image>
-						<view class="price">{{product.price}}起</view>
-						<view class="slogan">{{product.slogan}}</view>
-					</view>
-				</view>
-			</view>
-		</view>
-		<!-- 广告横幅 -->
-		<view class="banner">
-			<image mode="widthFix" src="/static/image/index/ad-img/ad.jpg"></image>
-		</view>
-		<!-- 商品列表 -->
-		<view class="goods-list">
-			<view class="title">— 猜你喜欢 —</view>
-			<view class="product-list">
-				<view class="product" v-for="product in productList" :key="product.goods_id" @tap="toGoods(product)">
-					<image mode="widthFix" :src="product.img"></image>
-					<view class="name">{{product.name}}</view>
-					<view class="info">
-						<view class="price">¥{{product.price}} 起</view>
-						<view class="slogan">{{product.slogan}}</view>
-					</view>
-				</view>
-			</view>
-			<view class="loading-text">{{loadingText}}</view>
-		</view>
-	</view>
-</template>
-<script>
-	import swiperImage from "@/components/modules/index/swiper-image.vue"
-	import indexNav from "@/components/modules/index/index-nav.vue"
-	import bankBin from "@/common/bankcardinfo.js"
-	import store from '@/store';
-	import {
-		pathToBase64,
-		base64ToPath
-	} from '@/common/image-tools-base64.js';
-	import {
-		mapState
-	} from "vuex"
-	export default {
-		components: {
-			swiperImage,
-			indexNav,
-		},
-		data() {
-			return {
-				city: "",
-				avatar: "",
-				xuelishow: false,
-				border: false,
-				form: {
-					name: "", //姓名
-					identity: "", //身份证号
-					birthday: "", //出生日期
-					addressnow: "", //居住地址
-					education: "", //学历
-					bankname: "", //开户行
-					accountno: "", //银行卡号
-				},
-				labelPosition: 'left',
-				errorType: ['message'],
-				rules: {
-					name: [{
-						required: true,
-						message: '请输入姓名',
-						trigger: 'blur',
-					}, ]
-				},
-				contentSlot: true,
-				showTitle: false,
-				asyncClose: false,
-				isShow: false,
-				autoplay: true,
-				type: 'warning',
-				list: ['欢迎登录晋掌柜,请点击此处文字进行实名验证,方可使用所有功能。'],
-				mode: 'horizontal',
-				playState: 'play',
-				speed: 160,
-				duration: 1000,
-				moreIcon: true,
-				volumeIcon: true,
-				isCircular: true,
-				current: 0,
-				banben: {},
-				bgColor: "#4B75EB",
-				//轮播
-				swiperList: [],
-				//分类
-				categoryList: [{
-						cat_id: 0,
-						img: '/static/image/index/category-img/0.png',
-						title: '车险',
-						src: '/pages/carInsure/entry'
-					},
-					{
-						cat_id: 1,
-						img: '/static/image/index/category-img/1.png',
-						title: '车损测算',
-						// src: '/pages/carInsure2/entry'
-					},
-					{
-						cat_id: 2,
-						img: '/static/image/index/category-img/2.png',
-						title: '道路救援',
-						src: '/pages/roadRescue/index'
-					},
-					{
-						cat_id: 3,
-						img: '/static/image/index/category-img/3.png',
-						title: '司法鉴定',
-						src: ''
-					},
-					{
-						cat_id: 4,
-						img: '/static/image/index/category-img/4.png',
-						title: '掌柜商城',
-						src: ''
-					},
-					{
-						cat_id: 5,
-						img: '/static/image/index/category-img/5.png',
-						title: '洗车',
-						src: ''
-					},
-					{
-						cat_id: 6,
-						img: '/static/image/index/category-img/6.png',
-						title: '审车',
-						src: ''
-					},
-					{
-						cat_id: 7,
-						img: '/static/image/index/category-img/7.png',
-						title: '代驾',
-						src: ''
-					},
-					{
-						cat_id: 8,
-						img: '/static/image/index/category-img/8.png',
-						title: '车检代办',
-						src: '/pages/caragent/index'
-					},
-					{
-						cat_id: 9,
-						img: '/static/image/index/category-img/9.png',
-						title: '一键挪车',
-						src: '/pages/ticket/ticket'
-					}
-				],
-
-				//推荐商品 3个
-				pickList: [{
-						goods_id: 0,
-						img: '/static/image/index/pick-img/p1.jpg',
-						price: '¥5.85',
-						slogan: '限时抢购'
-					},
-					{
-						goods_id: 1,
-						img: '/static/image/index/pick-img/p2.jpg',
-						price: '¥270',
-						slogan: '精选商品'
-					},
-					{
-						goods_id: 2,
-						img: '/static/image/index/pick-img/p3.jpg',
-						price: '¥281',
-						slogan: '今日疯抢'
-					}
-				],
-				//猜你喜欢列表
-				productList: [{
-						goods_id: 0,
-						img: '/static/image/index/img/p1.jpg',
-						name: '平安个人意外伤害险',
-						price: '25.8',
-						slogan: '1235人购买'
-					},
-					{
-						goods_id: 1,
-						img: '/static/image/index/img/p2.jpg',
-						name: '一年期意外险',
-						price: '1.2',
-						slogan: '1235人购买'
-					},
-					{
-						goods_id: 2,
-						img: '/static/image/index/img/p3.jpg',
-						name: '平安行·国内自助游保险',
-						price: '88',
-						slogan: '1235人购买'
-					},
-					{
-						goods_id: 3,
-						img: '/static/image/index/img/p4.jpg',
-						name: '企业团体综合意外险',
-						price: '1.9',
-						slogan: '1235人购买'
-					},
-					{
-						goods_id: 4,
-						img: '/static/image/index/img/p5.jpg',
-						name: '平安行·境内自驾旅游保险',
-						price: '442',
-						slogan: '1235人购买'
-					},
-					{
-						goods_id: 5,
-						img: '/static/image/index/img/p6.jpg',
-						name: '平安行·境内节假日旅游保险',
-						price: '257',
-						slogan: '1235人购买'
-					},
-					{
-						goods_id: 6,
-						img: '/static/image/index/img/p7.jpg',
-						name: '平安行·境内高原旅游保险',
-						price: '0.2',
-						slogan: '1235人购买'
-					},
-					{
-						goods_id: 7,
-						img: '/static/image/index/img/p8.jpg',
-						name: '儿童综合医疗保险',
-						price: '1400',
-						slogan: '1235人购买'
-					},
-					{
-						goods_id: 8,
-						img: '/static/image/index/img/p9.jpg',
-						name: '女性关爱保险',
-						price: '70',
-						slogan: '1235人付款'
-					},
-					{
-						goods_id: 9,
-						img: '/static/image/index/img/p10.jpg',
-						name: '全球交通意外保险',
-						price: '74.5',
-						slogan: '1235人购买'
-					}
-				],
-				headerPosition: "fixed",
-				loadingText: "正在加载...",
-				getApplicationStatus: "",
-
-			};
-		},
-
-
-		computed: {
-			...mapState(['userInfo'])
-		},
-
-
-		onPageScroll(e) {
-			//兼容iOS端下拉时顶部漂移
-			if (e.scrollTop >= 0) {
-				this.headerPosition = "fixed";
-			} else {
-				this.headerPosition = "absolute";
-			}
-		},
-		onShow() {
-			if (this.userInfo.sysUser.headSculpture) {
-				this.avatar = this.$base.baseUrl + this.userInfo.sysUser.headSculpture;
-			} else {
-				this.avatar = "/static/image/my/avatar1.png"
-			}
-			const arr = uni.getStorageSync('historyInfo');
-			if (arr) {
-				uni.removeStorageSync('historyInfo');
-			}
-		},
-		async onLoad() {
-			// uni.startPullDownRefresh(); 
-			this.isShow = this.userInfo.sysUser.status == '2' ? true : false
-			let res = await this.$http.get('/apps/getApplicationStatus?jobNumber=' + this.userInfo.sysUser.id);
-			if (res.code == 200) {
-				if (res.data == '0') {
-					this.getApplicationStatus = res.data;
-				}
-			} else {
-
-			}
-			let banner = await this.$http.get('/apps/getCarousel');
-			this.swiperList = banner.data;
-			this.bgColor = this.swiperList[0].color;
-			// #ifdef APP-PLUS
-			// this.getCurrentLocation();
-			// #endif
-		},
-		async onPullDownRefresh() {
-			let userInfoRes = await this.$http.get('/APPPartner/getUserInfo')
-			// let userInfoRes = await this.$http.get('/esmUserInternal/findById?id=' + this.userInfo.sysUser.id, {}, {});
-			uni.stopPullDownRefresh();
-			store.commit('setUserModules', {
-				title: 'userInfo',
-				data: {
-					sysUser: {
-						...userInfoRes.data
-					}
-				}
-			})
-			if (userInfoRes.data.status == 2) {
-				this.isShow = true;
-			} else {
-				this.isShow = false;
-			}
-
-		},
-		//上拉加载,需要自己在page.json文件中配置"onReachBottomDistance"
-		onReachBottom() {
-			uni.showLoading({
-				mask: true,
-				title: "Loading..."
-			})
-			let len = this.productList.length;
-			if (len >= 40) {
-				uni.hideLoading()
-				this.loadingText = "到底了";
-				return false;
-			}
-			let end_goods_id = this.productList[len - 1].goods_id;
-			for (let i = 1; i <= 10; i++) {
-				let goods_id = end_goods_id + i;
-				let goods_name = this.productList[i - 1].name;
-				let goods_price = this.productList[i - 1].price;
-				let p = {
-					goods_id: goods_id,
-					img: '/static/image/index/img/p' + (goods_id % 10 == 0 ? 10 : goods_id % 10) + '.jpg',
-					name: goods_name,
-					price: goods_price,
-					slogan: '1235人购买'
-				};
-				this.productList.push(p);
-			}
-			setTimeout(() => {
-				uni.hideLoading()
-			}, 1000)
-		},
-
-		//  async onShow() {
-		// 	if (this.userInfo.sysUser.status == '2') {
-		// 		this.show = true;
-		// 	} else {
-		// 		this.show = false;
-		// 	}
-		// },
-		methods: {
-			getCurrentLocation() {
-				//获取当前的地理位置
-				let vthis = this;
-				uni.getLocation({
-					type: 'gcj02',
-					geocode: true,
-					success: function(res) {
-						vthis.city = res.address.city;
-						// let address = res.address.province + res.address.city + res.address.district + res
-						// 	.address.street + res.address.poiName;
-					},
-					fail: function(err) {
-						console.log(err);
-
-					}
-				});
-			},
-			citySelection() {
-				uni.navigateTo({
-					url: '/pages/index/cityIndex'
-				})
-			},
-			arr() {
-				uni.navigateTo({
-					url: '/pages/ad/ad?userId=' + this.userInfo.sysUser.id,
-				})
-			},
-			nameClick() {
-				this.navigate({
-					url: "/pages/realname/realname"
-				}, "navigateTo", true)
-			},
-			async chooseImage() {
-				var _this = this;
-				uni.chooseImage({
-					count: 1,
-					sizeType: "compressed",
-					success(res) {
-						pathToBase64(res.tempFilePaths[0])
-							.then(async base64 => {
-								var paramImg = {
-									"image": base64, //图片base64
-									"imgType": "1" //1身份证 2行驶证
-								}
-								let res2 = await _this.$http.post('/api/huanong/imgAI', paramImg);
-								var data = res2.data.customerInfo;
-								data.identifyValidDate = data.identifyValidDate.substr(0, 4) + '-' +
-									data.identifyValidDate.substr(4, 2) + "-" + data.identifyValidDate
-									.substr(6, 2)
-								_this.form.name = data.name;
-								_this.form.identifyNumber = data.identifyNumber;
-								_this.form.identifyValidDate = data.identifyValidDate;
-							})
-
-					}
-				});
-			},
-			// 验证银行卡
-			async validateBankCard() {
-				var that = this;
-				that.bankname = "";
-				await bankBin.getBankBin(this.form.name4)
-					.then((data) => {
-						that.form.name5 = data.bankName;
-						return true;
-					})
-					.catch((err) => {
-						return uni.showToast({
-							title: err.split(":")[1],
-							icon: "none"
-						});
-					})
-			},
-
-			//点击通知
-			async click(index) {
-				let res1 = await this.$http.get('/apps/getApplicationStatus?jobNumber=' + this.userInfo.sysUser.id);
-				if (res1.code == 200) {
-					this.getApplicationStatus = res1.data;
-					if (this.getApplicationStatus == '0') {
-						uni.showToast({
-							icon: "none",
-							title: '实名认证等待审核中',
-							duration: 1500
-						})
-					} else if (this.getApplicationStatus == '3') {
-						uni.showToast({
-							icon: "none",
-							title: '实名认证不通过,请修改后提交',
-							duration: 1500
-						})
-						setTimeout(() => {
-							uni.navigateTo({
-								url: '/pages/user/certification'
-							})
-						}, 1000)
-					}
-				} else if (res1.code != '200') {
-					setTimeout(() => {
-						uni.navigateTo({
-							url: '/pages/user/infoInput'
-						})
-					}, 1000)
-				}
-				if (res1.code == 200) {
-					this.getApplicationStatus = res1.data;
-				}
-
-			},
-			// 改变头部颜色
-			swiperChange(event) {
-				this.bgColor = this.swiperList[event.detail.current].color;
-			},
-			//扫一扫
-			scan() {
-				uni.scanCode({
-					success: async (res) => {
-						let uuid = this.getParameterByName("uuid", res.result)
-						let resCode = await this.$http.get('/scanQrCode?uuid=' + uuid);
-					}
-				});
-			},
-			//搜索跳转
-			toSearch() {
-				// uni.showToast({title: "建议跳转到新页面做搜索功能"});
-			},
-			//推荐商品跳转
-			toPick(e) {
-				// uni.showToast({title: '推荐商品'+e.goods_id});
-			},
-			//商品跳转
-			toGoods(e) {
-				// uni.showToast({title: '商品'+e.goods_id});
-			},
-			getParameterByName(name, url) {
-				if (!url) url = window.location.href;
-				name = name.replace(/[\[\]]/g, '\\$&');
-				var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
-					results = regex.exec(url);
-				if (!results) return null;
-				if (!results[2]) return '';
-				return decodeURIComponent(results[2].replace(/\+/g, ' '));
-			}
-
-		}
-	};
-</script>
-<style lang="scss" scoped>
-	.status {
-		width: 100%;
-		height: 0;
-		/*  #ifdef  APP-PLUS  */
-		height: var(--status-bar-height);
-		/*  #endif  */
-		position: fixed;
-		top: 0;
-		z-index: 999;
-	}
-
-	.header {
-		width: 100%;
-		height: 100upx;
-		display: flex;
-		position: fixed;
-		top: 0;
-		/* #ifdef  APP-PLUS */
-		top: var(--status-bar-height);
-		/*  #endif  */
-		z-index: 996;
-		padding: 0 10px;
-	}
-
-	.header .city {
-		color: #fff;
-		font-size: 15px;
-
-		.icon {
-			font-size: 10px;
-			margin-left: 5px;
-		}
-	}
-
-	.header .input {
-		width: 70%;
-		background-color: #fff;
-		border-radius: 30px;
-		height: 30px;
-		padding: 10px;
-		box-sizing: border-box;
-	}
-
-	.header .input input {
-		// width: calc(100% - 150px);
-		// height: 60upx;
-		// background-color: #ffffff;
-		// border-radius: 60upx;
-		// padding-left: 60upx;
-		// font-size: 30upx;
-	}
-
-	.header .input .icon {
-		color: #a18090;
-		font-size: 18px;
-		margin-right: 10px;
-	}
-
-	.header .menu {
-		background-color: #FFFFFF;
-		border-radius: 50%;
-		box-sizing: border-box;
-		width: 30px;
-		height: 30px;
-		padding: 3px;
-		box-sizing: border-box;
-	}
-
-	.header .menu image {
-		width: 100%;
-		height: 100%;
-		border-radius: 50%;
-	}
-
-	/* 占位 */
-	.place {
-		/*  #ifdef  APP-PLUS  */
-		margin-top: var(--status-bar-height);
-		/*  #endif  */
-		height: 100upx;
-	}
-
-	.pick {
-		padding: 0 2.5vw 2.5vw 2.5vw;
-	}
-
-	.pick .box {
-		width: 100%;
-		border-radius: 20upx;
-		background-color: #ffffff;
-	}
-
-	.pick .box .title {
-		display: flex;
-		justify-content: flex-start;
-		align-items: flex-end;
-		height: 60upx;
-		border-bottom: solid 1upx #eee;
-		padding-bottom: 10upx;
-	}
-
-	.pick .box .title .big {
-		font-size: 34upx;
-		padding-left: 20upx;
-		color: #46434f;
-	}
-
-	.pick .box .title .small {
-		font-size: 24upx;
-		padding-left: 20upx;
-		color: #827f8b;
-	}
-
-	.pick .box .product-list {
-		padding-top: 15upx;
-		box-sizing: border-box;
-		overflow: hidden;
-	}
-
-	.pick .box .product-list>view {
-		background-color: #f8f8f8;
-		display: inline-block;
-		width: calc(50% - 10upx);
-		position: relative;
-		box-sizing: border-box;
-		margin: 5upx;
-		float: left;
-	}
-
-	.pick .box .product-list>view:nth-child(1) {
-		height: 390upx;
-	}
-
-	.pick .box .product-list>view:nth-child(2),
-	.pick .box .product-list>view:nth-child(3) {
-		height: 190upx;
-	}
-
-	.pick .box .product-list>view:nth-child(1) .price {
-		color: #e65339;
-		font-size: 26upx;
-		position: absolute;
-		bottom: 6upx;
-		left: 8upx;
-	}
-
-	.pick .box .product-list>view:nth-child(1) .slogan {
-		color: #807c87;
-		font-size: 26upx;
-		position: absolute;
-		bottom: 6upx;
-		right: 15upx;
-	}
-
-	.pick .box .product-list>view:nth-child(1) image {
-		width: 100%;
-		height: 350upx !important;
-		padding: 15upx;
-		box-sizing: border-box;
-		margin-bottom: 40upx;
-	}
-
-	.pick .box .product-list>view:nth-child(2),
-	.pick .box .product-list>view:nth-child(3) {
-		padding: 10upx;
-		box-sizing: border-box;
-	}
-
-	.pick .box .product-list>view:nth-child(2) image,
-	.pick .box .product-list>view:nth-child(3) image {
-		width: calc(50% - 5upx);
-		height: 170upx !important;
-	}
-
-	.pick .box .product-list>view:nth-child(2) .price,
-	.pick .box .product-list>view:nth-child(3) .price {
-		position: absolute;
-		top: 25%;
-		left: 55%;
-		color: #e65339;
-		font-size: 30upx;
-	}
-
-	.pick .box .product-list>view:nth-child(2) .slogan,
-	.pick .box .product-list>view:nth-child(3) .slogan {
-		position: absolute;
-		top: 60%;
-		left: 55%;
-		color: #807c87;
-		font-size: 26upx;
-	}
-
-	.banner image {
-		width: 100%;
-	}
-
-	.goods-list {
-		background-color: #f4f4f4;
-	}
-
-	.goods-list .title {
-		width: 100%;
-		display: flex;
-		justify-content: center;
-		align-items: center;
-		height: 60upx;
-		color: #979797;
-		font-size: 24upx;
-	}
-
-	.goods-list .loading-text {
-		width: 100%;
-		display: flex;
-		justify-content: center;
-		align-items: center;
-		height: 60upx;
-		color: #979797;
-		font-size: 24upx;
-	}
-
-	.goods-list .product-list {
-		padding: 0 2.5% 2.5vw 2.5%;
-		display: flex;
-		justify-content: space-between;
-		flex-wrap: wrap;
-	}
-
-	.goods-list .product-list .product {
-		width: 48.75%;
-		border-radius: 20upx;
-		background-color: #fff;
-		margin: 0 0 15upx 0;
-	}
-
-	.goods-list .product-list .product image {
-		width: 100%;
-		border-radius: 20upx 20upx 0 0;
-	}
-
-	.goods-list .product-list .product .name {
-		width: 92%;
-		padding: 10upx 4%;
-		display: -webkit-box;
-		-webkit-box-orient: vertical;
-		-webkit-line-clamp: 1;
-		text-align: justify;
-		overflow: hidden;
-		font-size: 30upx;
-	}
-
-	.goods-list .product-list .product .info {
-		display: flex;
-		justify-content: space-between;
-		align-items: flex-end;
-		width: 92%;
-		padding: 10upx 4% 10upx 4%;
-	}
-
-	.goods-list .product-list .product .info .price {
-		color: #e65339;
-		font-size: 30upx;
-		font-weight: 600;
-	}
-
-	.goods-list .product-list .product .info .slogan {
-		color: #807c87;
-		font-size: 24upx;
-	}
-</style>

+ 198 - 57
pages/index/index.vue

@@ -14,68 +14,35 @@
 				<text>团队新人员加入信息/新出单信息</text>
 			</view>
 			<uni-notice-bar show-icon scrollable text="uni-app 版正式发布,开发一次,同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。" />
-		<!-- <view class="homepage" style="position: absolute;padding: 0px 20px;    top: 170px;">
-			<view class="wallet" @click="bankwallet()">
-				<view>钱包</view>
-				<view>查看金额与记录</view>
-			</view>
-			<view class="wallet" @click="detail()">
-				<view>绑定银行卡</view>
-				<view>提现请先绑定</view>
-			</view>
-		</view> -->
 		</view>
 		<view class="insurance dis j-s" >
 			<view style="text-align: center;">
-				<view class="insurance-cash" >{{totalList.sumPremium}}</view>
+				<view class="insurance-cash" >{{totalList.sumPremium || 0}}</view>
 				<text class="insurance-text">总保费	</text>
 			</view>
 			<view style="text-align: center;">
-				<view class="insurance-cash">{{totalList.teamManNum }}</view>
+				<view class="insurance-cash">{{totalList.teamManNum || 0}}</view>
 				<text class="insurance-text">总人数	</text>
 			</view>
 			<view style="text-align: center;">
-				<view class="insurance-cash">{{totalList.extractFee}}</view>
+				<view class="insurance-cash">{{totalList.extractFee || 0}}</view>
 				<text class="insurance-text">总佣金</text>
 			</view>
 		</view>
 		<view >
-			<view class="institutional-data" v-if="type == 2">
-			<view class="inst-con" @click="closeStudion()">
-				<view>工作室</view>
-				<text >{{totalList.workroomTeamNum}}</text>
-			</view>
-				<!-- <view class="institutional-title homepage">
-					<text>团队贡献数据</text>
-					<text   @click="viewTeam()" class="view-now" style="font-size: 11px;" >查看更多</text>
+			<view class="institutional-data  dis j-s" v-if="type == 2 ||userInfo.sysUser.level==5">
+				<view class="inst-con" @click="userInfo.sysUser.level==5 ?closeInstitution():closeStudion()">
+					<view>工作室</view>
+					<text >{{userInfo.sysUser.level==5 ?totalList.workroomNum :totalList.workroomTeamNum}}</text>
+				</view>
+				<view class="inst-con"  @click="userInfo.sysUser.level==5 ?recruitmentWorkCode() :recruitmentCode()">
+					<view>招募码</view>
+					<text >扫码加入</text>
 				</view>
-				<o-empty   height="15vh" v-if="totalList1.length==0" />
-				<view class="institutional-list" v-if="totalList1.length > 0">
-					<view style="padding: 10px 0;">
-						<view class="homepage" style="font-size: 13px;font-weight: 500;">
-							<text>{{ totalList1[0].deptName }}</text>
-						</view>
-						<view class="dis j-s">
-							<view type="primary" size="mini">负责人:{{ totalList1[0].userName }}</view>
-							<text @click="closeDetailPro(totalList1[0])" class="view-now1"
-								>查看详情</text>
-						</view>
-					</view>
-					<view style="padding: 10px 0;border-top: 1px solid #ccc" v-if="totalList1.length > 1">
-						<view class="homepage" style="font-size: 13px;font-weight: 500;">
-							<text>{{ totalList1[1].deptName }}</text>
-						</view>
-						<view class="dis j-s">
-							<view type="primary" size="mini">负责人:{{ totalList1[1].userName }}</view>
-							<text class="view-now1" @click="closeDetailPro(totalList1[1])"
-								>查看详情</text>
-						</view>
-					</view>
-				</view> -->
 			</view>
-			<view class="inst-data dis j-s" v-if="type == 1">
+			<view class="inst-data dis j-s" v-if="type == 1 && userInfo.sysUser.level!==5" >
 				<view class="inst-con" @click="closePartner()">
-					<view>合伙人</view>
+					<view >合伙人</view>
 					<text >{{totalList.partnerNum}}</text>
 				</view>
 				<view class="inst-con" @click="closeInstitution()">
@@ -84,12 +51,65 @@
 				</view>
 			</view>
 		</view>
+		<u-popup v-model="ShowModalCode" mode="bottom"  border-radius="15" >
+				<view class="ShowModalCode-style ">
+					<text>团队招募码</text>
+					<view class=" ShowModalCode-con">
+						<view>扫码加入</view>
+						<image :src="teamImg" 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>
 	</view>
 </template>
 <script>
+	import QR from "@/common/wxqrcode.js"
+	import {
+		mapState,
+		mapMutations
+	} from "vuex"
+import { vShow } from "vue"
 export default {
+	computed: {
+		...mapState(['userInfo', "userCheckInfo", ]),
+	},
 	data() {
 		return {
+			ShowModalCode:false,
+			ShowModalCode1:false,
+			ShowModalCodebusiness:false,
+			teamImg:'',
+			workImg:'',
 			totalList:{},
 			type: uni.getStorageSync('type'),
 			headerStyle: {
@@ -100,10 +120,23 @@ export default {
 				boxShadow: ''
 				// 其他样式属性...
 			},
+			styles: [{
+				value: '1',
+				text: '渠道',
+				notestext: '团队长加出单员模式,无分销模式,结费都在团队长处。',
+				checked: true
+			},
+			{
+				value: '2',
+				notestext: '团队长加代理人模式,三级分销模式,结费方式为个人,有佣金。',
+				text: '个代'
+			}
+			],
+			deptSource:1
 			// type:JSON.parse(localStorage.getItem('type')).data
 		}
 	},
-	async onLoad(e) {
+	async onShow(e) {
 		this.type = uni.getStorageSync('type')
 		let res = await this.$http.get('/APPPartner/getHomePage', {
 			type: uni.getStorageSync('type'),
@@ -114,6 +147,27 @@ export default {
 	
 	},
 	methods: {
+		styleChange(e) {
+			this.deptSource = e.detail.value
+		},
+		recruitmentCode(){
+			this.ShowModalCode=true
+			this.teamImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applyteam?userId="+this.userInfo.sysUser.userId, {
+				size: parseInt(200) //二维码大小  
+			})
+		},
+		ShowModalCodeSumbit(){
+			console.log(this.deptSource,44444444);
+			this.ShowModalCode1=true
+			this.workImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applystudio?deptSource=" + this.deptSource + '&userId=' + this.userInfo.sysUser.userId, {
+				size: parseInt(200) //二维码大小  
+			})
+		},
+		recruitmentWorkCode(){
+			this.ShowModalCodebusiness=true
+			this.deptSource = 1
+
+		},
 		detail(id){
 			uni.navigateTo({
 				url: "/pages/institutional/walletDetail?id="+id
@@ -126,6 +180,9 @@ export default {
 			},
 		
 		closeInstitution() {
+			// if(this.totalList.workroomNum>0){
+				
+			// }
 			this.totalList.type=1
 			uni.navigateTo({
 				url: "/pages/institutional/institutionalTeam?key="+encodeURIComponent(JSON.stringify(this.totalList))
@@ -153,7 +210,7 @@ export default {
 		},
 		bankwallet() {
 			uni.navigateTo({
-				url: "/pages/institutional/wallet"
+				url: "/pages/index/applystudio"
 			})
 		},
 	}
@@ -204,15 +261,18 @@ export default {
 
 .institutional-data {
 	margin: 16px;
-	.inst-con {
-		padding: 13px 18px;
-		width: 100%;
-		background: url(../../static/工作室.png) no-repeat;
-		background-size: 100% 100%;
-		color: #009B9F;
-	}
+}
+.institutional-data>view:nth-child(1) {
+	background: url(../../static/work.png) no-repeat;
+	background-size: 100% 100%;
+	color: #009B9F;
 }
 
+.institutional-data>view:nth-child(2) {
+	background: url(../../static/zhaomum.png) no-repeat;
+	background-size: 100% 100%;
+	color: #3168DA;
+}
 // .institutional-title {
 // 	padding: 10upx 10upx 20upx 10upx;
 // 	font-weight: bold;
@@ -293,13 +353,13 @@ export default {
 }
 
 .inst-data>view:nth-child(1) {
-	background: url(../../static/合伙人.png) no-repeat;
+	background: url(../../static/hehuor.png) no-repeat;
 	background-size: 100% 100%;
 	color: #3168DA;
 }
 
 .inst-data>view:nth-child(2) {
-	background: url(../../static/工作室.png) no-repeat;
+	background: url(../../static/work.png) no-repeat;
 	background-size: 100% 100%;
 	color: #009B9F;
 }
@@ -373,4 +433,85 @@ export default {
 	.studio{
 		margin:16px;
 	}
+	.ShowModalCode-style{
+		text:first-child{
+			display: block;
+			font-weight: 600;
+			font-size: 16px;
+			color: #333333;
+			border: 1px solid #EEEEEE;
+			padding: 15px;
+			text-align: center;
+		}
+	}
+	.ShowModalCode-con{
+		padding: 30px;
+		text-align: center;
+		image{
+			margin: 0 auto;
+			margin-top: 15px;
+		}
+	}
+	.ShowModalCode-business {
+	display: block;
+	font-weight: 600;
+	font-size: 16px;
+	color: #333333;
+	// border: 1px solid #EEEEEE;
+	padding: 15px;
+	text-align: center;
+}
+.ShowModalCode-sumbit {
+	background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
+	border-radius: 5px 5px 5px 5px;
+	height: 40px;
+	line-height: 40px;
+	font-size: 16px;
+	color: #FFFFFF;
+	margin: 15px;
+	text-align: center;
+}
+.uni-list {
+	flex: 1;
+}
+
+.uni-list-item:first-child {
+	/* #ifndef APP-NVUE */
+	// display: flex;
+	/* #endif */
+	flex: 1;
+	flex-direction: row;
+	background-color: #FFFFFF;
+	border-bottom-style: solid;
+	border-bottom-width: 1px;
+	border-bottom-color: #eee;
+}
+
+
+.uni-list-item__container {
+	padding: 12px 15px;
+	width: 100%;
+	flex: 1;
+
+	position: relative;
+	/* #ifndef APP-NVUE */
+	display: flex;
+	box-sizing: border-box;
+	/* #endif */
+	flex-direction: row;
+	justify-content: space-between;
+	align-items: center;
+
+}
+
+.uni-list-item__notestext {
+	padding: 0 15px 15px 15px;
+	font-size: 15px;
+	color: #666666;
+}
+
+.uni-list-item__content-title {
+	font-size: 17px;
+	color: #333333;
+}
 </style>

+ 118 - 0
pages/index/result.vue

@@ -0,0 +1,118 @@
+<template>
+	<view style="height: 100%;background: #fff;">
+		<!-- 公共组件-每个页面必须引入 -->
+		<public-module></public-module>
+		<view style="padding:95px 25px;">
+			<view class="assets" >
+				<image v-if="!id"  src="/static/icon/Vector.png" mode=""></image>
+				<image v-if="id"  src="/static/icon/Vector (1).png" mode=""></image>
+				<view  style="font-size: 16px;">{{!id?'申请成功':'审核驳回'}}</view>
+				<!-- <view style="font-size: 31px;font-weight: bold;margin-top:5px">{{MoneyData.cashFee}}</view> -->
+				<text v-if="!id" style="font-size: 15px;">已提交合伙人/工作室/团队注册申请,请等待耐心等待系统审核</text>
+				<text v-if="id"  style="font-size: 15px;">请核对并修改以下信息后,再重新提交。</text>
+				<view v-if="remark" style="padding: 15px;background: #F9F9F9;font-size: 15px;text-align: left;
+color: #666666;border-radius: 3px 3px 3px 3px;margin-top: 15px;">
+					{{remark}}
+				</view>
+				<view class="bottom-button dis j-s" v-if="id" >
+					<text>取消</text>
+					<text @click="resubmit">重新提交</text>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+
+	export default {
+		data() {
+			return {
+				MoneyData: {},
+				id:'',
+				remark:'',
+				type:'',
+				level:'',
+				deptSource:'',
+			}
+		},
+		
+		onShow() {
+
+		},
+	async onLoad(e) {
+		// 工号/合伙人还是工作室/驳回内容/审核状态/等级/机构来源
+		if(e){
+			this.id=e.id
+			this.remark=e.remark //驳回内容
+			this.type=e.type //合伙人1 工作室2 团队3
+			// this.level=e.level?e.level:'' //type为1,传合伙人等级
+			// this.deptSource=e.deptSource?e.deptSource:'' //type为2,传机构来源
+		}
+	},
+		onShow() {},
+		methods: {
+			async resubmit(){
+				if(this.type==1){
+					uni.redirectTo({
+						url: "/pages/index/applypartner?id="+this.id
+					})
+				}
+				if(this.type==2){
+					uni.redirectTo({
+						url: "/pages/index/applystudio?id="+this.id
+					})
+				}
+				if(this.type==3){
+					uni.redirectTo({
+						url: "/pages/index/applyteam?id="+this.id
+					})
+				}
+			}
+
+
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	page{
+		background: #fff;
+	}
+
+	.assets {
+		color: #333333;
+		text-align: center;
+		font-size: 16px;
+		text{
+			font-size: 13px;
+			color: #666666;
+		}
+		image{
+			display: inline-block;
+			width:52px;
+			height:52px
+		}
+	}
+.bottom-button{
+	margin-top: 40px;
+	text{
+		display: inline-block;
+		border-radius: 31px 31px 31px 31px;
+		width: 40%;
+		font-size: 16px;
+		height: 40px;
+		line-height:40px;
+		text-align: center;
+	}
+	text:first-child{
+		border: 1px solid #2D6DFF;
+		color: #2D6DFF;
+	}
+	text:last-child{
+		color: #FFFFFF;
+		background: linear-gradient( 133deg, #2DD9FF 0%, #2D6DFF 100%);
+	}
+}
+
+</style>

+ 0 - 346
pages/institutional/institutional - 副本.vue

@@ -1,346 +0,0 @@
-<template>
-	<view >
-		<public-module></public-module>
-		<view class=" flexd " style="z-index: 99;">
-			<view class="search dis a-c j-s">
-				<u-search v-model="pageRequest.deptName" @custom="custom" @search="search" :shape="shape"
-					:height='68' bg-color="#fff"  
-					:input-style="{background:'transparent'}" placeholder-color="#ccc" :clearabled="clearabled"
-					:show-action="showAction" :input-align="inputAlign" @clear="clear"
-					:action-style="{background:'#fff'}" placeholder="请输入机构关键词"></u-search>
-				<image src="/static/shaixuan.png" mode="" @click="searchPopup"></image>
-			</view>
-		</view>
-		<o-empty v-if="pageResult.length==0" />
-		<view  style="padding-top:120upx"  >
-			<view class="institutional-list" v-for="item in pageResult" @click="closeDetail(item)">
-				<view class="homepage" style="font-size: 13px;font-weight: 500;">
-					<text>团队名称:{{item.deptName}}</text>
-					<text>¥{{item.sumpremium}}</text>
-				</view>
-				<view class="dis j-s">
-					<view class="homepage-title">
-						<text class="button1">出单{{item.orderManNum}}人</text>
-						<text class="button2">总人数{{item.deptManNum}}人</text>
-					</view>
-					<view>
-					<u-button   size="mini" type="primary"  class="view-now" @click="closeDetail(item)">查看详情</u-button>
-				</view>
-				<!-- 	<text>团队人数:{{item.deptManNum}}</text>
-					<text>出单人力:{{item.orderManNum}}</text> -->
-				</view>
-				
-				<!-- <u-button class="view-now"  >立即查看</u-button> -->
-			</view>
-		</view>
-		<u-loadmore v-if="pageResult.length!=0" :status="status" />
-		<!-- 普通弹窗 -->
-		<u-popup ref="popup"  :mask="true" mode="bottom">
-			<view  >
-				<view class="tabs">
-					 <u-tabs style="justify-content: flex-start;"  :show-bar="false"
-						active-color="#232832" :is-scroll="false" :current="0"  :list="tabslist" 
-						bar-width="60"></u-tabs> 
-				</view>
-				<view class="dis  a-c f-wrap j-s" style="margin: 10px;">
-					<view class="status-data" :class="item.value==timespecifications? 'active':''"
-						v-for="(item,index) in dateList" @tap="dateclick(index)" :key="index">
-						{{item.label}}
-					</view>
-					<view class="dis a-c">
-						<view class="status-data" :class="startShow? 'active' :''"
-							@tap="startShowmethod()">
-							<text v-if="pageRequest.beginTime!=''">{{pageRequest.beginTime}}</text>
-							<text v-else>{{transformTime()}}</text>
-						</view>
-						<text style="margin: 0 8px;font-size: 12px;">至</text>
-						<view class="status-data" :class="endShow? 'active' :''" @tap="endShowmethod()">
-							<text v-if="pageRequest.endTime!=''">{{pageRequest.endTime}}</text>
-							<text v-else>{{transformTime()}}</text>
-						</view>
-					</view>
-				</view>
-				<view class="dis  a-c f-wrap j-s trading-foot">
-					<text @click="$refs.popup.close()">取消</text>
-					<text @click="confirm">确认</text>
-				</view>
-			</view>
-		</u-popup>
-	</view>
-</template>
-
-<script>
-import { log } from 'util';
-	export default {
-		name: 'name', //插件名称
-		data() {
-			return {
-				//日期筛选list
-				dateList: [{
-						label: '全部',
-						value: 0,
-					},
-					{
-						label: '一周内',
-						value: 1,
-					},
-					{
-						label: '一个月内',
-						value: 2,
-					},
-					{
-						label: '三个月内',
-						value: 3,
-					},
-					{
-						label: '六个月内',
-						value: 4,
-					},
-				
-				],
-				rangeData:'',
-				 btnGetCode: {
-				          borderRadius: '7px',//驼峰命名注意----这里如果不规范,会整体失效,px,rpx作为单位都可以,一定要有引号
-				          height: '34px', 
-				    },
-				isLoading:false,
-				clearabled: true,
-				inputAlign: 'left',
-				showAction: false,
-				shape: 'square',
-				pageRequest: { //查询的默认条件
-					deptName: "",
-					beginTime:'',
-					endTime:'',
-					pageNum: 1,
-					pageSize: 20,
-				},
-				pageResult:[],
-				tabslist: [{
-					name: '时间筛选'
-				}, ],
-				timespecifications: null,
-				startShow: false,
-				endShow:false,
-				totalPages: 0, //订单总页数
-				status: 'loadmore',
-			}
-		},
-		async onLoad(e) {
-			// if(e.userId){
-			// 	this.pageRequest.userId=e.userId
-			// }
-			this.getOrdersList(1, 20)
-		},
-		methods: {
-			closeDetail(val){
-				uni.navigateTo({
-					url: `/pages/institutional/detail?deptId=${val.deptId}&deptName=${val.deptName}&startTime=${val.startTime}`
-				})
-			},
-			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('/agency/queryTeamInfoPage', this.pageRequest);
-					if (res.code == '200') {
-						this.pageResult = [...this.pageResult, ...res.data.content];
-					}
-					if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
-					else this.status = 'loading';
-				}, 1000)
-			},
-			//当前时间
-			transformTime(day) {
-				var date = new Date();
-				date.setFullYear(date.getFullYear());
-				date.setTime(date.getTime());
-				var strYear = date.getFullYear();
-				var strDay = day ? date.getDate() - day : date.getDate();
-				var strMonth = date.getMonth() + 1;
-				if (strMonth < 10) {
-					strMonth = "0" + strMonth;
-				}
-				if (strDay < 10) {
-					strDay = "0" + strDay;
-				}
-				var datastr = strYear + "-" + strMonth + "-" + strDay;
-				return datastr;
-			},
-			transformTime1(month) {
-				var date = new Date();
-				date.setFullYear(date.getFullYear());
-				date.setTime(date.getTime());
-				var strYear = date.getFullYear();
-				var strDay = date.getDate();
-				var strMonth = month ? (date.getMonth() + 1) - month : date.getMonth() + 1;
-				if (strMonth < 10) {
-					strMonth = "0" + strMonth;
-				}
-				if (strDay < 10) {
-					strDay = "0" + strDay;
-				}
-				var datastr = strYear + "-" + strMonth + "-" + strDay;
-				return datastr;
-			},
-			startShowmethod() {
-				this.startShow = true;
-				this.timespecifications = null;
-			},
-			endShowmethod() {
-				this.endShow = true;
-				this.timespecifications = null;
-			},
-			//日期筛选
-			dateclick(e) {
-				/* 0:全部  1:一周内 2:一个月内 3:三个月内  4:六个月内*/
-				switch (e) {
-					case 0:
-						this.pageRequest.beginTime = "";
-						this.pageRequest.endTime = "";
-						break;
-					case 1:
-						this.pageRequest.beginTime = this.transformTime(7);
-						this.pageRequest.endTime = this.transformTime();
-						break;
-					case 2:
-						this.pageRequest.beginTime = this.transformTime1(1);
-						this.pageRequest.endTime = this.transformTime();
-						break;
-					case 3:
-						this.pageRequest.beginTime = this.transformTime1(3);
-						this.pageRequest.endTime = this.transformTime();
-						break;
-					case 4:
-						this.pageRequest.beginTime = this.transformTime1(6);
-						this.pageRequest.endTime = this.transformTime();
-						break;
-					default:
-				}
-				this.timespecifications = e;
-			},
-			searchPopup() {
-				this.$refs.popup.open()
-			},
-			search(e) {
-				this.pageRequest.deptName=e
-				this.getOrdersList(1, 20);
-			},
-			confirm() {
-				this.getOrdersList(1, 20);
-				this.$refs.popup.close()
-			},
-			async getOrdersList(page, size) {
-				this.isLoading=true
-				this.pageRequest.pageNum = page;
-				this.pageRequest.pageSize = size;
-				let res = await this.$http.post('/agency/queryTeamInfoPage', this.pageRequest);
-				if (res.code == '200') {
-					this.isLoading=false
-					this.pageResult = res.data.content;
-					this.totalPages = res.data.totalPages;
-				}
-			},
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.flexd {
-		position: fixed;
-		left: 0;
-		right: 0;
-		background: linear-gradient( 180deg, #DAE0EE 0%, #E9ECF4 100%);
-	}
-	.homepage{
-		display: flex;
-		width: 100%;
-		 justify-content: space-between;
-	}
-.search {
-		padding: 13px 16px;
-		image {
-			width: 22px;
-			height: 22px;
-			margin-left: 20px;
-		}
-	}
-	.institutional-list{
-		background: #FFFFFF;
-		padding: 20upx;
-		font-size: 38upx;
-		border-bottom: 1px solid #ccc;
-	}
-	.tabs {
-		padding: 0 15px;
-		border: 1px solid #f2f2f2;
-	}
-	
-	.status-data {
-		padding: 4px 10px;
-		box-sizing: border-box;
-		margin: 0 4px 4px 0;
-		font-size: 12px;
-		border: 1px solid #eee;
-		cursor: pointer;
-	}
-	.active {
-		position: relative;
-		background: rgba(0, 82, 255, 0.1);
-		color: #0052FF;
-		border: 1px solid #0052FF;
-		font-weight: 700;
-	}
-	
-	.active::before {
-		content: "";
-		position: absolute;
-		top: 0;
-		left: 0;
-		width: 10px;
-		height: 10px;
-		background-image: url("/static/image/car-insure/before.png");
-		background-size: cover;
-	}
-	.trading-foot>text{
-		width: 50%;
-		text-align: center;
-		background: #EAEAEA;
-		color: #0052FF;
-		line-height: 80upx;
-	}
-	.trading-foot>text:last-child{
-		background: #343EEF;
-		color: #FFFFFF;
-	}
-	.homepage-title{
-		margin-top: 5px;
-		button{
-			background-color: #FEF0E1 ;
-			color: #FE8F1C ;
-		}
-	}
-	.homepage-title>button:last-child{
-		background: #E6FAE3;
-		color: #3AC716;
-			margin-left: 10px;
-	}
-	.view-now{
-		background: linear-gradient( 90deg, #7E99D1 0%, #4F78B1 100%);
-		border-radius: 20px 20px 20px 20px;
-	}
-	.button1{
-		background-color: #FEF0E1 ;
-		color: #FE8F1C ;
-		font-size: 11px;
-		padding:5px 10px
-	}
-	.button2{
-		background: #E6FAE3;
-		color: #3AC716;
-		margin-left: 10px;
-		font-size: 11px;
-		padding:5px 10px
-	}
-</style>

+ 1 - 1
pages/institutional/institutional.vue

@@ -31,7 +31,7 @@
 			return{
 				headerStyle: {
 					backgroundColor: 'transparent',
-					backgroundImage: 'url("/static/背景 (1).png")',
+					backgroundImage: 'url("/static/beijing (2).png")',
 					backgroundSize: 'cover',
 					backgroundPosition: '',
 					boxShadow: ''

+ 1 - 1
pages/institutional/institutionalDetail.vue

@@ -72,7 +72,7 @@
 				chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
 				headerStyle: {
 					backgroundColor: 'transparent',
-					backgroundImage: 'url("/static/背景 (1).png")',
+					backgroundImage: 'url("/static/beijing (2).png")',
 					backgroundSize: 'cover',
 					backgroundPosition: '',
 					boxShadow: ''

+ 7 - 7
pages/institutional/institutionalTeam.vue

@@ -19,13 +19,13 @@
 					<view class="dis j-s card-title">
 						<view>
 							<text style="font-size: 16px;">{{item.userName}}</text>
-							<image v-if="parentData.partnerType==1 " style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (5).png" mode=""></image>
-							<image v-if="parentData.partnerType==2 "  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别.png" mode=""></image>
-							<image v-if="parentData.partnerType==3"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (1).png" mode=""></image>
-							<image v-if="parentData.partnerType==4"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (2).png" mode=""></image>
+							<image v-if="parentData.partnerType==1 " style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie1.png" mode=""></image>
+							<image v-if="parentData.partnerType==2 "  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie.png" mode=""></image>
+							<image v-if="parentData.partnerType==3"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie3.png" mode=""></image>
+							<image v-if="parentData.partnerType==4"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie4.png" mode=""></image>
 						</view>
-						<text  @click="detail(item)">详情
-						<image style="display: inline-block; width: 9px;height:9px;vertical-align: -1px;" src="/static/icon/向右.png" mode=""></image></text>
+						<text v-if="item.teamManNum>0"  @click="detail(item)">详情
+						<image style="display: inline-block; width: 9px;height:9px;vertical-align: -1px;" src="/static/icon/right.png" mode=""></image></text>
 					</view>
 					<view style="padding:0 15px;font-size: 10px;
 					color: #666666;font-weight: 600;">下级团队共计
@@ -88,7 +88,7 @@
 				chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
 				headerStyle: {
 					backgroundColor: 'transparent',
-					backgroundImage: 'url("/static/背景 (1).png")',
+					backgroundImage: 'url("/static/beijing (2).png")',
 					backgroundSize: 'cover',
 					backgroundPosition: '',
 					boxShadow: ''

+ 0 - 210
pages/institutional/partner - 副本.vue

@@ -1,210 +0,0 @@
-<template>
-	<view class="" >
-		<public-module></public-module>
-		<u-tabs :list="list" :is-scroll="false" :current="source" @change="change"></u-tabs>
-        <view class="body"   style="background: #F8FAFE;padding:12px">
-
-			<view class=" dis a-c j-s">
-                    <u-search v-model="pageRequest.userName"  style ='borderRadius: 0px 0px 0px 0px"' @search="search" 
-                        :height='68' bg-color="#fff"   :show-action="false" 
-                        :input-style="{background:'transparent'}" placeholder-color="#ccc" 
-                        :input-align="inputAlign"
-                        :action-style="{background:'#fff'}" placeholder="请输入合伙人姓名"></u-search>
-                    <text style="margin-left:55px" class="button1">共 {{totalSize}}个</text> 
-            </view>
-			<view class="teamStatistics "  >
-				<view class="statisticsTitle">
-					<view >机构名称</view>
-					<view >合伙人姓名</view>
-					<view >贡献金额</view>
-				</view>
-				<block v-for="(item,index) in directLsit" :key="index">
-					<view class="" style="padding: 0 10px;">
-						<view class="statisticsContent " :class="index==teamTabIndex?'active':''">
-							<view >{{item.deptName}}</view>
-							<view >{{item.userName}}</view>
-							<view >{{item.sumpremium}} </view>
-						</view>
-					</view>
-	
-				</block>
-				<u-loadmore style="margin-top: 5px;" v-if="directLsit.length!=0" :status="status" />
-				<o-empty v-if="directLsit.length==0" />
-			
-		</view>
-    </view>
-
-		
-	</view>
-</template>
-
-<script>
-	export default{
-		data(){
-			return{
-				teamTabIndex: 0,
-				directLsit: [],
-                source:0,
-				totalPages:0,
-                totalSize:0,
-				status: 'loadmore',
-				pageRequest: { //查询的默认条件
-					pageNum: 1,
-					pageSize: 20,
-                    userName:''
-				},
-				inputAlign: 'left',
-                list: [{
-					name: '直接合伙人'
-				}, {
-					name: '间接合伙人'
-				}],
-			}
-		},
-		async onLoad(params) {
-			this.queryData()
-
-		},
-		methods:{
-			search(e) {
-				this.pageRequest.userName=e
-				this.queryData()
-			},
-            change(index) {
-                this.pageRequest.userName=''
-				this.source = index;
-				this.pageRequest.pageNum = 1;
-          		this.pageRequest.pageSize = 20;
-			    this.queryData()
-			},
-			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)
-			},
-			onSelected(e) { //选择
-				this.showDatePicker = false;
-				if (e) {
-					this.dateRange = e.value;
-					this.queryData();
-				}
-			},
-			async queryData() {
-				let params = {
-                    source:this.source,
-					...this.pageRequest
-				}
-				let res = await this.$http.post('/sysPartner/querySysPartnerAPPPage', params);
-				if (res.code == '200') {
-					
-					this.directLsit=res.data.content
-					this.totalPages = res.data.totalPages;
-					this.totalSize = res.data.totalSize;
-					if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
-					else this.status = 'loadmore';
-                    
-				}
-			},
-			onShowDatePicker() { //显示
-				this.showDatePicker = true;
-			},
-		}
-		
-	}
-</script>
-
-<style lang="scss" scoped>
-	.teamStatistics {
-		width: 100%;
-		height: auto;
-		background: #FFFFFF;
-		box-shadow: 0px 4px 10px 0px #DAE3F4;
-		border-radius: 6px;
-	}
-	.body .teamStatistics .statisticsTitle {
-		height: 70upx;
-		margin-top: 10px;
-		box-sizing: border-box;
-		line-height: 70upx;
-		font-size: 24rpx;
-		border-radius: 6px 6px 0 0;
-		color: #232832;
-	}
-	
-	.body .teamStatistics .statisticsContent {
-		box-sizing: border-box;
-		height: 70upx;
-        text-align: center;
-		line-height: 70upx;
-		font-size: 26rpx;
-		color: #232832;
-        view{
-            text-align: center;
-		line-height: 70upx;
-        }
-	}
-	
-	.body .teamStatistics .statisticsTitle,
-	.body .teamStatistics .statisticsContent {
-		display: flex;
-		flex-wrap: nowrap;
-		justify-content: space-between;
-	}
-	
-	.body .teamStatistics .statisticsTitle>view,
-	.body .teamStatistics .statisticsContent>view {
-        width: 33.33%;
-		text-align: center;
-		font-size: 12px;
-	}
-	.statisticsDate {
-		color: rgba(51,51,51,0.8);
-		height: 34px;
-		border-radius: 6px;
-	}
-	.teamStatistics .statisticsTitle {
-		height: 70upx;
-		margin-top: 10px;
-		box-sizing: border-box;
-		line-height: 70upx;
-		font-size: 24rpx;
-		background: linear-gradient( 180deg, #DAE0EE 0%, #E9ECF4 100%);
-		border-radius: 6px 6px 0 0;
-		color: #232832;
-        view{
-            text-align: center;
-            line-height: 35px;
-        }
-        view:nth-child(1){
-            background: #EBEFF8 ;
-            line-height: 35px;
-        }
-        view:nth-child(2){
-            background: #FEF0E1  ;
-            color: #EF871C;
-        }
-        view:nth-child(3){
-            background: #E6FAE3;
-            color: #3AC716;
-        }
-	}
-	
-    .button1{
-        background: #EEF0FD;
-            color: #3640F0;
-		font-size: 11px;
-		padding:5px 10px
-	}
-</style>

+ 835 - 256
pages/institutional/partner.vue

@@ -1,316 +1,895 @@
 <template>
-	<view class="" >
+	<view class="">
 		<public-module></public-module>
-		 <view class="headers " :style="headerStyle">
+		<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 style="margin: auto;">合伙人</text>
 			</view>
 		</view>
-		
-        <view class="body"   style="background: #F8FAFE;margin-top: 85px;">
+
+		<view class="body" style="background: #F8FAFE;margin-top: 85px;">
 			<view class="partner-head">
-				<seach  @queryData="queryData" :partnerHierarchy="true" />
-				<!-- <view class=" dis j-s" style="border: 1px solid #EEEEEE;padding: 10px;">
-					<text>行业分类<i></i></text>
-					<text>合伙人层级<i></i></text>
-					<view class="search-data" >
-						<text v-for="(val,index) in year" :key="index" :class="val.startShow? 'active' :''" @click="onSeachYear(index)">{{val.lable}}</text>
+				<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="partnersAndStudios(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>{{ 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)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitOne.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitOne)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitOne.workNumber || 0 }})
+							</text>
+						</view>
 					</view>
-				</view> -->
-				<!-- <view class="sum-insurance dis j-c a-c">
-					<view >
-						<text>{{directLsit[Object.keys(directLsit)[0]].sumPremium}}</text>
-						<text>总保费</text>
+					<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="recruitment(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>{{ 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)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitTwo.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitTwo)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitTwo.workNumber || 0 }})
+							</text>
+						</view>
 					</view>
-					<view>
-						<text>{{directLsit[Object.keys(directLsit)[0]].teamManNum}}</text>
-						<text>成员总人数</text>
+					<!-- 三级 -->
+					<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="recruitment(4)">
+									<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)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitThree.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitThree)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitThree.workNumber || 0 }})
+							</text>
+						</view>
 					</view>
-					<view style="border-right:none">
-						<text>{{directLsit[Object.keys(directLsit)[0]].extractFee}}</text>
-						<text>总佣金</text>
+					<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)">
+									<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)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitFour.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitFour)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitFour.workNumber || 0 }})
+							</text>
+						</view>
 					</view>
-				</view> -->
-			</view>
-			<!-- <card :cardData='directLsit'></card> -->
-			<block v-for="(item,index) in directLsit" :key="index">
-				<view class="card" >
-					<view style="padding: 10px 15px 0 10px">
-					<view class="dis j-s card-title">
-						<view>
-							<text>{{chineseNumbers[item.partnerType-1]}}级合伙人</text>
-							<image v-if="item.partnerType==1"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (5).png" mode=""></image>
-							<image v-if="item.partnerType==2"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别.png" mode=""></image>
-							<image v-if="item.partnerType==3"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (1).png" mode=""></image>
-							<image v-if="item.partnerType==4"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (2).png" mode=""></image>
+				</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/jibie.png" mode=""></image>
+								</view>
+								<view @click="partnersAndStudios(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>{{ 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)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitTwo.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitTwo)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitTwo.workNumber || 0 }})
+							</text>
 						</view>
-						<!-- <text>详情 
-						<image style="display: inline-block; width: 9px;height:9px;vertical-align: -1px;" src="/static/icon/向右.png" mode=""></image></text> -->
 					</view>
-					<view class="card-con dis j-c a-c">
-						<view >
-							<text>{{item.teamManNum}}</text>
-							<text>总人数</text>
+					<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="recruitment(4)">
+									<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>
-							<text>{{item.sumPremium}}</text>
-							<text>总保费</text>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitThree)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitThree.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitThree)">
+								<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/jibie4.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(5)" >
+									<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 style="border-right:none">
-							<text>{{item.extractFee}}</text>
-							<text>总佣金</text>
+						<view class="card-footer dis">
+							<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitFour.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitFour)">
+								<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/jibie3.png" mode=""></image>
+								</view>
+								<view @click="partnersAndStudios(4)">
+									<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)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitThree.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitThree)">
+								<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/jibie4.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(5)" >
+									<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)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitFour.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitFour)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitFour.workNumber || 0 }})
+							</text>
+						</view>
 					</view>
-					<view class="card-footer dis">
-						<text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(item)">
-							<image  src="/static/icon/hehuoren.png" mode=""></image>
-							合伙人({{item.partnerNumber}})
-						</text>
-						<text @click="closeInstitution(item)">
-							<image  src="/static/icon/gongzuoshi.png" mode="" ></image>
-							工作室({{item.workNumber}})
-						</text>
+				</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/jibie4.png" mode=""></image>
+								</view>
+								<view @click="ShowModalCodeFun(5)" >
+									<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)">
+								<image src="/static/icon/hehuoren.png" mode=""></image>
+								合伙人({{ directLsitFour.partnerNumber || 0 }})
+							</text>
+							<text @click="closeInstitution(directLsitFour)">
+								<image src="/static/icon/gongzuoshi.png" mode=""></image>
+								工作室({{ directLsitFour.workNumber || 0 }})
+							</text>
+						</view>
 					</view>
 				</view>
-				
 			</block>
 			<!-- <u-loadmore style="margin-top: 5px;" v-if="directLsit.length!=0" :status="status" />
 			<o-empty v-if="directLsit.length==0" /> -->
-		
-    </view>
-		
+
+		</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>合伙人招募码</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>
 	</view>
 </template>
 <script>
-	import myDatePicker from '../components/date-picker.vue';
-	import seach from '../components/seach.vue';
-	// import card from '../components/card.vue'
-	export default{
-		components:{myDatePicker,seach},
-		data(){
-			return{
-				chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
-				headerStyle: {
-					backgroundColor: 'transparent',
-					backgroundImage: 'url("/static/背景 (1).png")',
-					backgroundSize: 'cover',
-					backgroundPosition: '',
-					boxShadow: ''
-					// 其他样式属性...
-				},
-				teamTabIndex: 0,
-				directLsit: [],
-                source:0,
-				totalPages:0,
-                totalSize:0,
-				status: 'loadmore',
-				pageRequest: { //查询的默认条件
-					pageNum: 1,
-					pageSize: 20,
-                    userName:''
+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 card from '../components/card.vue'
+export default {
+	components: { myDatePicker, seach },
+	computed: {
+		...mapState(['userInfo', "userCheckInfo",]),
+	},
+	data() {
+		return {
+			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
+		}
+	},
+	async onLoad(params) {
+		this.queryData()
+		this.userLevel = this.userInfo.sysUser.level
+	},
+	methods: {
+		styleChange(e) {
+			this.deptSource = e.detail.value
+		},
+		ShowModalCodeFun(level) {
+			this.level=level 
+			console.log(this.level,222222);
+			this.ShowModalCode = true
+			this.partnerImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applypartner?level=" + this.level + '&userId=' + this.userInfo.sysUser.userId, {
+				size: parseInt(200) //二维码大小  
+			})
+		},
+		ShowModalCodeSumbit(){
+			console.log(this.deptSource,9999222222);
+			this. ShowModalCode1 = true
+			this.workImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applystudio?deptSource=" + this.deptSource + '&userId=' + this.userInfo.sysUser.userId, {
+				size: parseInt(200) //二维码大小  
+			})
 		},
-		async onLoad(params) {
-			this.queryData()
+		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 () { }
+			});
 
 		},
-		methods:{
-			back() {
-				uni.navigateBack({
-					delta: 1, // 返回的页面数,如果是1表示返回上一页
-					success: function() {}
-				});
-				
-			},
-			partnerDetail(item){
+		partnerDetail(item) {
+			if (item.partnerNumber) {
 				uni.navigateTo({
-					url: "/pages/institutional/partnerDetail?key="+encodeURIComponent(JSON.stringify(item))
+					url: "/pages/institutional/partnerDetail?key=" + encodeURIComponent(JSON.stringify(item))
 				})
-			},
-			closeInstitution(item){
-				if(item.leaderIds.length>0){
-					item.type=1
-					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];
+			}
+		},
+		closeInstitution(item) {
+			if (item.leaderIds.length > 0) {
+				item.type = 1
+				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 || '',
+				// ...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;
 					}
-					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  ||'',
-					// ...this.pageRequest
-				}
-				let res = await this.$http.post('/APPPartner/info', params);
-				if (res.code == '200') {
-					res.data.forEach(e=>{
-						if(e.partnerType){
-							e.level=e.partnerType-1
-						}
-					})
-					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';
-                    
-				}
-			},
-			onShowDatePicker() { //显示
-				this.showDatePicker = true;
-			},
-		}
-		
+				})
+				// 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;
+.headers {
+	position: fixed;
+	top: 0;
+	left: 0;
+	width: 100%;
+	z-index: 999999;
+	padding-top: 40px;
+	height: 85px;
+
+	text {
+		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;
-			font-weight: bold;
+			color: #333333;
+		}
+
+		text:last-child {
+			font-size: 10px;
+			color: #999999;
 		}
 	}
-	.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;
+}
+
+.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;
 		}
-		.search-data{
+
+		text:last-child {
+			font-size: 14px;
 			color: #666666;
-			.active{
-				color: #FFFFFF;
-				background: linear-gradient( 132deg, #2DD9FF 0%, #2D6DFF 100%);
-			}
-			text{
-				// width: 25px;
-				// height: 25px;
-				// text-align: center;
-				padding: 5px 8px;
-				border: 1px solid #EEEEEE;
-			}
+			margin-left: 3px;
 		}
 	}
-	.sum-insurance{
+
+	.card-con {
 		padding: 10px 0;
-		view{
+
+		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;
-				}
+
+			text {
+				display: block;
 			}
-	}
-	.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{
-			padding:10px 15px;
-			text:first-child{
+
+			text:first-child {
 				font-weight: 600;
 				font-size: 16px;
 				color: #333333;
+				line-height: 18px;
 			}
-			text:last-child{
-				font-size: 12px;
-				color: #666666;
+
+			text:last-child {
+				font-size: 10px;
+				color: #999999;
 			}
 		}
-		.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;
 		}
-		.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;
-			}
+
+		text {
+			width: 49%;
+			text-align: center;
+			line-height: 40px;
+			font-size: 16px;
+			color: #333333;
 		}
 	}
-</style>
+}
+
+.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;
+	}
+}
+
+.ShowModalCode-business {
+	display: block;
+	font-weight: 600;
+	font-size: 16px;
+	color: #333333;
+	// border: 1px solid #EEEEEE;
+	padding: 15px;
+	text-align: center;
+}
+
+.ShowModalCode-con {
+	padding: 30px;
+	text-align: center;
+
+	image {
+		margin: 0 auto;
+		margin-top: 15px;
+	}
+}
+
+.uni-list {
+	flex: 1;
+}
+
+.uni-list-item:first-child {
+	/* #ifndef APP-NVUE */
+	// display: flex;
+	/* #endif */
+	flex: 1;
+	flex-direction: row;
+	background-color: #FFFFFF;
+	border-bottom-style: solid;
+	border-bottom-width: 1px;
+	border-bottom-color: #eee;
+}
+
+
+.uni-list-item__container {
+	padding: 12px 15px;
+	width: 100%;
+	flex: 1;
+
+	position: relative;
+	/* #ifndef APP-NVUE */
+	display: flex;
+	box-sizing: border-box;
+	/* #endif */
+	flex-direction: row;
+	justify-content: space-between;
+	align-items: center;
+
+}
+
+.uni-list-item__notestext {
+	padding: 0 15px 15px 15px;
+	font-size: 15px;
+	color: #666666;
+}
+
+.uni-list-item__content-title {
+	font-size: 17px;
+	color: #333333;
+}
+
+.ShowModalCode-sumbit {
+	background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
+	border-radius: 5px 5px 5px 5px;
+	height: 40px;
+	line-height: 40px;
+	font-size: 16px;
+	color: #FFFFFF;
+	margin: 15px;
+	text-align: center;
+}</style>

+ 6 - 6
pages/institutional/partnerDetail.vue

@@ -19,10 +19,10 @@
 					<view class="dis j-s card-title">
 						<view>
 							<text>{{chineseNumbers[index-1]}}级合伙人</text>
-							<image v-if="index==1" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (5).png" mode=""></image></text>
-							<image v-if="index==2"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别.png" mode=""></image></text>
-							<image v-if="index==3"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (1).png" mode=""></image></text>
-							<image v-if="index==4"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (2).png" mode=""></image></text>
+							<image v-if="index==1" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie1.png" mode=""></image></text>
+							<image v-if="index==2"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie.png" mode=""></image></text>
+							<image v-if="index==3"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie3.png" mode=""></image></text>
+							<image v-if="index==4"  style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/jibie4.png" mode=""></image></text>
 						</view>
 					</view>
 					<view class="card-con dis j-c a-c">
@@ -68,7 +68,7 @@
 				chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
 				headerStyle: {
 					backgroundColor: 'transparent',
-					backgroundImage: 'url("/static/背景 (1).png")',
+					backgroundImage: 'url("/static/beijing (2).png")',
 					backgroundSize: 'cover',
 					backgroundPosition: '',
 					boxShadow: ''
@@ -133,7 +133,7 @@
 						industrySector:data&& data.industrySector  ||'',
 						type:1,
 						partnerIds:this.parentData.partnerIds,
-						level: this.parentData.partnerType ||this.parentData.level+1 ,
+						level: this.parentData.partnerType-1 ||this.parentData.level ,
 						// ...this.pageRequest
 					}
 				let res = await this.$http.post('/APPPartner/queryPartnerInfo', params);

+ 1 - 1
pages/my/commission.vue

@@ -46,7 +46,7 @@
 			return{
 				headerStyle: {
 					backgroundColor: 'transparent',
-					backgroundImage: 'url("/static/背景 (1).png")',
+					backgroundImage: 'url("/static/beijing (2).png")',
 					backgroundSize: 'cover',
 					backgroundPosition: '',
 					boxShadow: ''

+ 1 - 1
pages/my/commissionDetail.vue

@@ -58,7 +58,7 @@
 				trajectoryLength: 0,
 				headerStyle: {
 					backgroundColor: 'transparent',
-					backgroundImage: 'url("/static/背景 (1).png")',
+					backgroundImage: 'url("/static/beijing (2).png")',
 					backgroundSize: 'cover',
 					backgroundPosition: '',
 					boxShadow: ''

+ 0 - 808
pages/my/my - 副本.vue

@@ -1,808 +0,0 @@
-<template>
-	<view>
-		<!-- 公共组件-每个页面必须引入 -->
-		<public-module></public-module>
-		<!-- 头部信息Start -->
-		<view class="headers " :style="headerStyle">
-			<view class="dis a-c j-c">
-				<text>我的</text>
-				<image @tap="tool" src="/static/image/my/Frame.png" mode=""></image>
-			</view>
-		</view>
-		<view class="Personnel">
-			<view class="dis a-c" @tap="openDetail">
-				<image :src="avatar" class="avatar" mode=""></image>
-				<view class="info">
-					<view class="dis a-c">
-						<text>{{userInfo.sysUser.name}}</text>
-						<u-tag :text="userInfo.sysUser.status=='1'?'已认证':'未认证'" mode="dark"
-							style="background: linear-gradient( 268deg, #FF8B2F 0%, #FF5A00 100%);" />
-					</view>
-					<text>你身边最贴心,最权威的保险咨询专家。</text>
-				</view>
-			</view>
-			<view class="my-wallet">
-				<view class="wallet-body dis f-c">
-					<view class="dis a-c j-s route">
-						<view class="flex-1 dis f-c a-c" @tap="accountTool('/pages/wallet/wallet')">
-							<image src="/static/image/my/qianbao.png" mode=""></image>
-							<text>钱包</text>
-						</view>
-						<view class="flex-1 dis f-c a-c" @tap="accountTool('/pages/wallet/bankCard')">
-							<image src="/static/image/my/ka.png" mode=""></image>
-							<text>银行卡</text>
-						</view>
-						<view class="flex-1 dis f-c a-c" @tap="accountTool()">
-							<image src="/static/image/my/chongzhi.png" mode="">
-							</image>
-							<text>充值</text>
-						</view>
-					</view>
-
-
-				</view>
-			</view>
-		</view>
-		<view class="my-tools">
-			<view class="header ">
-				<text>我的工具</text>
-			</view>
-			<view class="order-body d-flex a-center">
-				<!-- 因为swiper特性的关系,请指定swiper的高度 ,swiper的高度并不会被内容撑开-->
-				<uni-swiper-dot :info="info" :current="current" field="content" :mode="mode" :dots-styles="dotsStyles">
-					<swiper style="height:calc(324upx)" class="swiper" @change="change">
-						<swiper-item class="swiper" v-for="(count,cindex) of  toolsListLength" :key="count">
-							<uni-grid :column="4" :show-border="false" :square="false" :highlight="false"
-								@change="toTools($event,'toolsList')">
-								<uni-grid-item class="" v-show="(index>=(cindex)*8) && (index<(cindex+1)*8)"
-									v-for="(item ,index) in toolsList" :index="index" :key="item.text">
-									<view class="grid-item-box dis a-c j-c f-c">
-										<view class="icon iconfont" :class="item.icon">
-										</view>
-										<text class="text">{{item.text}}</text>
-										<u-badge v-if="item.text=='客户管理'" size="mini" type="error" :count="InsureCount"
-											:offset="[10, 10]"></u-badge>
-									</view>
-								</uni-grid-item>
-							</uni-grid>
-						</swiper-item>
-					</swiper>
-				</uni-swiper-dot>
-
-			</view>
-		</view>
-		<!-- 我的工具End -->
-
-		<!-- 售后管理Start -->
-		<view class="my-tools">
-			<view class="header d-flex a-center j-sb">
-				<view>售后管理</view>
-			</view>
-			<view class="order-body d-flex a-center">
-				<!-- 因为swiper特性的关系,请指定swiper的高度 ,swiper的高度并不会被内容撑开-->
-				<swiper style="height:calc(162upx)" class="swiper" :indicator-dots="(serviceListLength!=1)?true:false">
-					<swiper-item class="swiper dis a-c" v-for="(count,cindex) of  serviceListLength" :key="count">
-						<uni-grid :column="4" :show-border="false" :square="false" :highlight="false"
-							@change="toTools($event,'serviceList')">
-							<uni-grid-item v-show="(index>=(cindex)*8) && (index<(cindex+1)*8)"
-								v-for="(item ,index) in serviceList" :index="index" :key="item.text">
-								<view class="grid-item-box dis a-c  f-c">
-									<image :src="item.image" mode=""></image>
-									<text class="text">{{item.text}}</text>
-								</view>
-							</uni-grid-item>
-						</uni-grid>
-					</swiper-item>
-				</swiper>
-			</view>
-		</view>
-		<!-- 售后管理End -->
-
-		<!-- 我的关于Start -->
-		<view class="my-tools">
-			<view class="header d-flex a-center j-sb">
-				<view>关于掌柜</view>
-			</view>
-			<view class="order-body d-flex a-center">
-				<!-- 因为swiper特性的关系,请指定swiper的高度 ,swiper的高度并不会被内容撑开-->
-				<swiper style="height:calc(162upx)" class="swiper" :indicator-dots="(aboutListLength!=1)?true:false">
-					<swiper-item class="swiper dis a-c" v-for="(count,cindex) of  aboutListLength" :key="count">
-						<uni-grid :column="4" :show-border="false" :square="false" :highlight="false"
-							@change="toTools($event,'aboutList')">
-							<uni-grid-item class="d-flex a-center j-center"
-								v-show="(index>=(cindex)*8) && (index<(cindex+1)*8)" v-for="(item ,index) in aboutList"
-								:index="index" :key="item.text">
-								<view class="grid-item-box d-flex a-center j-center flex-column">
-									<image :src="item.image" mode=""></image>
-									<text class="text">{{item.text}}</text>
-								</view>
-							</uni-grid-item>
-						</uni-grid>
-					</swiper-item>
-				</swiper>
-			</view>
-		</view>
-
-		<!-- 我的关于End -->
-
-		<!-- 菜单Start -->
-		<!-- <block v-for="(item,index) in menusList" :key="index">
-			<my-list-item :item="item" :index="index"></my-list-item>
-		</block> -->
-		<!-- 菜单End -->
-		<u-modal v-model="modalshow" :show-title="false">
-			<view class="slot-content dis a-c j-c" style="padding: 20px;">
-				<img :src="promoImage" alt="" style="width: 150px;height: 150px;" />
-			</view>
-		</u-modal>
-	</view>
-</template>
-
-<script>
-	import store from '@/store';
-	import {
-		mapState,
-		mapMutations
-	} from "vuex"
-	import zPopup from '@/components/common/z-popup.vue'
-	import {
-		pathToBase64,
-		base64ToPath
-	} from '@/common/image-tools-base64.js';
-	import myListItem from "@/components/modules/my/my-list-item.vue";
-	import QR from "@/common/wxqrcode.js"
-	export default {
-		components: {
-			zPopup,
-			myListItem
-		},
-
-		data() {
-			return {
-				promoImage: "",
-				modalshow: false,
-				info: ["", ""],
-				dotsStyles: {
-					backgroundColor: '#E5E5E5',
-					selectedBackgroundColor: '#0052FF',
-				},
-				current: 0,
-				mode: 'default',
-				headerStyle: {
-					backgroundColor: '',
-					backgroundImage: '',
-					backgroundSize: '',
-					backgroundPosition: '',
-					boxShadow: ''
-					// 其他样式属性...
-				},
-				showBackground: false,
-				prevScrollTop: 0,
-				popupShow: false, //头像是否展示
-				mystatusText: "已认证",
-				prodetIntroShow: true, //显示滚动公告
-				avatar: "",
-				orderTypeList: [{
-						icon: 'icon-jixurenwu',
-						orderstatus: 0,
-						text: '报价中',
-						badge: '0',
-						type: "primary",
-						orderStage: 0,
-						iconColor: '#0696FF'
-					},
-					{
-						icon: 'icon-hebaozhong',
-						orderstatus: 1,
-						text: '待核保',
-						badge: '0',
-						type: "success",
-						orderStage: 1,
-						iconColor: '#FFA22A'
-					},
-					{
-						icon: 'icon-querenzhifu',
-						orderstatus: 2,
-						text: '待缴费',
-						badge: '0',
-						type: "error",
-						orderStage: 2,
-					},
-					{
-						icon: 'icon-peisong',
-						orderstatus: 3,
-						text: '已承保',
-						badge: '0',
-						type: "error",
-						orderStage: 3,
-					},
-				],
-				toolsList: [{
-						icon: 'icon-Frame-1',
-						text: '会员分享',
-						url: '/pages/tools/addStaff/addStaff',
-					},
-					{
-						icon: 'icon-Frame',
-						text: '会员管理',
-						url: '/pages/tools/team/team',
-					},
-					{
-						icon: 'icon-Frame-2',
-						text: '客户管理',
-						url: '/pages/tools/customer/customer',
-					},
-					{
-						icon: 'icon-Frame-3',
-						text: '业绩管理',
-						url: '/pages/tools/achievement/achievement',
-					},
-					{
-						icon: 'icon-Frame-5',
-						text: '报案服务',
-						url: '/pages/tools/insuranceClaims/insuranceClaims',
-					},
-					{
-						icon: 'icon-Frame-4',
-						text: '掌柜秘书',
-						url: '/pages/tools/messageReminder/messageReminder',
-					},
-					{
-						icon: 'icon-Frame-6',
-						text: '保单',
-						url: '/pages/tools/policy/policy',
-					},
-					{
-						icon: 'icon-Frame-7',
-						text: '计算器',
-						url: '/pages/tools/calculator/calculator',
-					},
-					{
-						icon: 'icon-a-02',
-						text: '海报管理',
-						url: '/pages/tools/poster/poster',
-					},
-					{
-						icon: 'icon-a-01',
-						text: '优惠劵',
-						url: '/pages/tools/coupon/coupon',
-					},
-					{
-						icon: 'icon-a-03',
-						text: '掌柜商城',
-					},
-					{
-						icon: 'icon-a-04',
-						text: '车险之家',
-						url: "/pages/carInsure/entry",
-					}
-				],
-				aboutList: [{
-						image: '/static/image/my/Frame5.png',
-						text: '常见问题',
-						url: '/pages/set/question',
-					},
-					// { icon: 'icon-baodan',text: '意见反馈',url:'/pages/set/suggest',iconColor:'#DD525E'},
-					{
-						image: '/static/image/my/Frame6.png',
-						text: '意见反馈',
-						url: '',
-					},
-					{
-						image: '/static/image/my/Frame7.png',
-						text: '联系客服',
-						tel: '4006333016',
-					},
-					{
-						image: '/static/image/my/Frame8.png',
-						text: '关于我们',
-						url: '/pages/set/about',
-					}
-				],
-				serviceList: [{
-						image: '/static/image/my/Frame1.png',
-						text: '发票申请',
-						popup: '此功能还未开放,有需要请联系客服',
-					},
-					{
-						image: '/static/image/my/Frame2.png',
-						text: '保单批改',
-						popup: '此功能还未开放,有需要请联系客服',
-					},
-					{
-						image: '/static/image/my/Frame3.png',
-						text: '申请退保',
-						popup: '此功能还未开放,有需要请联系客服',
-					},
-					{
-						image: '/static/image/my/Frame4.png',
-						text: '自助理赔',
-						popup: '此功能还未开放,有需要请联系客服',
-					}
-				],
-				menusList: [{
-						icon: "shangcheng",
-						name: "掌柜商场",
-						clicktype: "nothing",
-						url: "",
-						auth: true
-					},
-					{
-						icon: "chexiandingdan",
-						name: "车险之家",
-						clicktype: "navigateTo",
-						url: "/pages/carInsure/entry",
-						auth: true
-					}
-				],
-				InsureCount: 0,
-			}
-		},
-
-		computed: {
-			...mapState(['userInfo', "userCheckInfo", ]),
-			toolsListLength() {
-				// let length = Math.ceil(this.toolsList.length / 8);
-				let list = ["1", "2"]
-				return list;
-			},
-			aboutListLength() {
-				return Math.ceil(this.aboutList.length / 4);
-			},
-			serviceListLength() {
-				return Math.ceil(this.serviceList.length / 4);
-			}
-		},
-		async onShow() {
-			await this.getInsureCount();
-			if (this.userInfo.sysUser.headSculpture) {
-				this.avatar = this.$base.baseUrl + this.userInfo.sysUser.headSculpture;
-			} else {
-				this.avatar = "/static/image/my/avatar1.png"
-
-			}
-			if (this.userInfo.sysUser.status == '1') {
-				this.mystatusText = "已认证";
-			} else if (this.userStatus == '2') {
-				this.mystatusText = "未认证";
-			}
-		},
-		async onload() {
-			await this.getInsureCount();
-		},
-		onPageScroll(e) {
-			this.handleScroll(e);
-		},
-		mounted() {
-			uni.pageScrollTo({
-				scrollTop: 0,
-				duration: 0
-			});
-			uni.$on('scroll', this.handleScroll);
-		},
-		destroyed() {
-			uni.$off('scroll', this.handleScroll);
-		},
-		methods: {
-			...mapMutations(['setUserModules', 'setOrderType', 'setOrderStage']),
-			//头部颜色变化js
-			change(e) {
-				this.current = e.detail.current;
-			},
-
-			async getInsureCount() {
-				let res = await this.$http.post('/insurance/order/getExpirationInsureCount');
-				if (res.code == '200') {
-					this.InsureCount = res.data;
-				}
-			},
-			handleScroll(e) {
-				const scrollTop = e.scrollTop;
-				if (scrollTop > this.prevScrollTop) {
-					// 向下滚动
-					this.showBackground = true; // 显示背景图
-				} else if (scrollTop < 50) {
-					// 在顶部附近,隐藏背景图
-					this.showBackground = false;
-				} else {
-					// 向上滚动
-					this.showBackground = true; // 显示背景图
-				}
-				this.headerStyle.backgroundColor = this.showBackground ? '#fff' : 'transparent';
-				this.headerStyle.backgroundImage = this.showBackground ? 'url("/static/image/my/banner.png")' : '';
-				this.headerStyle.backgroundSize = this.showBackground ? 'cover' : '';
-				this.headerStyle.backgroundPosition = this.showBackground ? 'center' : '';
-				this.prevScrollTop = scrollTop;
-			},
-			tool() {
-				uni.navigateTo({
-					url: "/pages/set/set"
-				})
-			},
-			//去工具页面
-			async toTools(e, listName) {
-				if (this.userInfo.sysUser.status == '2') {
-					return uni.showToast({
-						icon: "none",
-						title: '请先通过实名认证',
-						duration: 1500
-					})
-				}
-				if (!!this[listName][e.detail.index].url && (this[listName][e.detail.index].url ==
-						'/pages/wallet/wallet')) {
-					if ((!!this.userInfo.esmUserInternal) && (!!this.userInfo.esmUserInternal.accountno)) {
-						this.navigate({
-							url: this[listName][e.detail.index].url
-						}, "navigateTo", true)
-					} else {
-						this.navigate({
-							url: '/pages/wallet/bindBank',
-							complete: () => {
-								setTimeout(() => {
-									uni.showToast({
-										title: '请先绑定银行卡',
-										duration: 3000,
-										icon: "none"
-									});
-								}, 500);
-
-							}
-						}, "navigateTo", true)
-					}
-				} else if (this[listName][e.detail.index].url) {
-					this.navigate({
-						url: this[listName][e.detail.index].url
-					}, "navigateTo", true)
-				} else if (this[listName][e.detail.index].tel) {
-					uni.makePhoneCall({
-						phoneNumber: this[listName][e.detail.index].tel,
-					})
-				} else if (this[listName][e.detail.index].popup) {
-					let res = await this.$http.get('/sys/qy/wechat/find/picture');
-					if (res.code == '200') {
-						this.promoImage = QR.createQrCodeImg(res.data.wechatPictureUrl, {
-							size: parseInt(200) //二维码大小  
-						})
-						this.modalshow = true;
-					} else {
-						uni.showModal({
-							showCancel: false,
-							content: this[listName][e.detail.index].popup,
-						});
-					}
-
-				} else {
-					uni.showToast({
-						title: this[listName][e.detail.index].text + '更新中...',
-						icon: 'none'
-					})
-				}
-
-			},
-			async accountTool(path) {
-
-				if (path) {
-					if (path == '/pages/wallet/bankCard') {
-						let res = await this.$http.post('/userBank/getUserBankList', {
-							auditStatus: '',
-						});
-						if (!res.data.length) {
-							this.navigate({
-								url: '/pages/wallet/bindBank',
-								complete: () => {
-									setTimeout(() => {
-										uni.showToast({
-											title: '请先绑定银行卡',
-											duration: 3000,
-											icon: "none"
-										});
-									}, 500);
-
-								}
-							}, "navigateTo", true)
-						} else {
-							this.navigate({
-								url: path,
-							}, "navigateTo", true)
-						}
-					} else {
-						this.navigate({
-							url: path,
-						}, "navigateTo", true)
-					}
-				} else {
-					uni.showToast({
-						title: '功能待开发...',
-						icon: "none"
-					});
-				}
-			},
-			// 去账单明细
-			toBillDetails(type) {
-				this.navigate({
-					url: `/pages/wallet/billDetails${type}`,
-				}, "navigateTo", true)
-			},
-			// 去账单明细
-			toWallet(type) {
-				this.navigate({
-					url: "/pages/wallet/wallet"
-				}, "navigateTo", true)
-			},
-			//跳转个人信息页面
-			openDetail() {
-				this.navigate({
-					url: "/pages/user/userInfo"
-				}, "navigateTo", false)
-			},
-			//跳转订单页面
-			openOrder(e) {
-
-				this.setOrderStage(this.orderTypeList[e].orderStage);
-				this.navigate({
-					url: "/pages/orders/orders"
-				}, "switchTab", true)
-			}
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	@import '@/style/mixin.scss';
-
-	page {
-		background-color: #F8FAFE;
-	}
-
-	.headers {
-		position: fixed;
-		top: 0;
-		left: 0;
-		height: auto;
-		width: 100%;
-		z-index: 999999;
-		padding: 16px;
-		padding-top: 50px;
-
-		>view {
-			width: 100%;
-			height: 100%;
-			position: relative;
-		}
-
-		image {
-			position: absolute;
-			right: 0;
-			width: 20px;
-			height: 20px;
-		}
-
-		text {
-			font-size: 18px;
-			font-weight: bold;
-			color: #000;
-		}
-	}
-
-	.Personnel {
-		height: auto;
-		width: 100%;
-		background: #fff;
-		background-image: url("/static/image/my/banner.png");
-		background-size: 100% 100%;
-		padding: 110px 16px 10px 16px;
-
-		.avatar {
-			width: 60px;
-			height: 60px;
-			border-radius: 50%;
-		}
-
-		.info {
-			margin-left: 10px;
-
-			text {
-				margin-right: 10px;
-				color: #333333;
-				font-size: 13px;
-			}
-
-			text:last-child {
-				color: rgba(51, 51, 51, 0.8);
-				font-size: 12px;
-			}
-
-		}
-	}
-
-	.my-tools {
-		padding: 0 16px;
-
-		.header {
-			padding: 10px 0;
-			font-size: 14px;
-			color: #232832;
-			font-weight: bold;
-		}
-
-		.order-body {
-			background: #fff;
-			box-shadow: 0px 4px 10px 0px #DAE3F4;
-			border-radius: 6px;
-		}
-	}
-
-	/* 产品介绍Start */
-	.prodet-intro {
-		width: 100%;
-		height: 70upx;
-		background-color: #333;
-		color: #3ae;
-		white-space: nowrap;
-		border-top: 1upx solid #666;
-		border-bottom: 1upx solid #666;
-		box-sizing: border-box;
-	}
-
-	.prodet-intro>view:nth-of-type(1) {
-		width: 60upx;
-		height: 100%;
-		flex-shrink: 1;
-		padding-left: 20upx;
-		font-size: 36upx;
-	}
-
-	.prodet-intro>view:nth-of-type(2) {
-		overflow: hidden;
-		line-height: 70upx;
-		font-size: 24upx;
-	}
-
-	.prodet-intro>view:nth-of-type(3) {
-		width: 60upx;
-		padding-right: 20upx;
-		flex-shrink: 1;
-		height: 100%;
-		font-size: 36upx;
-	}
-
-	.animate {
-		padding-left: 40rpx;
-		display: inline-block;
-		white-space: nowrap;
-		animation: 20s wordsLoop linear infinite normal;
-	}
-
-	@keyframes wordsLoop {
-		0% {
-			transform: translateX(750rpx);
-			-webkit-transform: translateX(750rpx);
-		}
-
-		100% {
-			transform: translateX(-100%);
-			-webkit-transform: translateX(-100%);
-		}
-	}
-
-	/* 产品介绍End */
-
-
-
-	/* 个人信息Start */
-
-	/* 个人信息End */
-
-	/* 我的订单Start */
-	.my-orders {
-		display: flex;
-		justify-content: center;
-		align-items: center;
-	}
-
-	.my-orders,
-	.wallet-body {
-		position: relative;
-		width: 95%;
-		height: 180upx;
-		background: #FFFFFF;
-		border-radius: 20upx;
-		box-shadow: 0upx 0upx 10upx #efeff4;
-		overflow: hidden;
-	}
-
-
-
-	/* 我的订单End */
-
-	/* 我的钱包Start */
-	.my-wallet {
-		.wallet-body {
-			width: 100%;
-			height: auto;
-			padding: 8px 16px;
-			background: #FFFFFF;
-			box-shadow: 0px 4px 10px 0px #DAE3F4;
-			border-radius: 6px;
-			margin-top: 10px;
-
-			.route {
-				text {
-					font-size: 12px;
-					color: #333;
-					font-weight: 400;
-				}
-
-				image {
-					width: 45px;
-					height: 40px;
-				}
-			}
-
-			.money {
-				padding: 8px 0;
-				background-color: #F9F8FD;
-				border-radius: 4px;
-				margin-top: 8px;
-
-				text {
-					font-size: 12px;
-					color: #333;
-					font-weight: 400;
-				}
-
-			}
-		}
-	}
-
-	/* 我的钱包End */
-
-	/* 小的分项标题Start */
-
-
-
-	/* 小的分项标题End */
-
-
-
-	.grid-item-box {
-
-		.icon {
-			font-size: 26px;
-		}
-
-		.text {
-			font-size: 12px;
-		}
-
-		image {
-			width: 32px;
-			height: 32px;
-		}
-	}
-
-	.swiper {
-		width: 100%;
-	}
-
-	.swiper-view .keep-out {
-		width: 100%;
-		height: 30upx;
-		border-radius: 100% 100% 0 0;
-		margin-top: -15upx;
-		position: absolute;
-	}
-
-	.swiper-view .swiper {
-		overflow: hidden;
-		padding: 30upx 20upx 0;
-		box-sizing: border-box;
-		width: 100%;
-		height: 200upx;
-	}
-
-	.swiper-view .swiper image {
-		width: 100%;
-		height: 200upx;
-	}
-</style>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 579 - 325
pages/my/my.vue


+ 1 - 1
pages/my/withdrawalDetail.vue

@@ -65,7 +65,7 @@ color: #666666;border-radius: 3px 3px 3px 3px;margin-top: 15px;">
 				trajectoryLength: 0,
 				headerStyle: {
 					backgroundColor: 'transparent',
-					backgroundImage: 'url("/static/背景 (1).png")',
+					backgroundImage: 'url("/static/beijing (2).png")',
 					backgroundSize: 'cover',
 					backgroundPosition: '',
 					boxShadow: ''

+ 87 - 0
pages/statistics/statistics.vue

@@ -0,0 +1,87 @@
+<template>
+    <view>
+        <!-- 公共组件-每个页面必须引入 -->
+		<public-module></public-module>
+        <!-- 头部信息Start -->
+		<view class="headers " :style="headerStyle">
+			<view class="dis a-c j-c">
+				<text>统计</text>
+				<view class="headers-right">
+                    <image  @click="weChatService" src="/static/image/my/kefu.png" mode="">
+                    </image>
+                    <text>客服</text>
+				</view>
+				
+			</view>
+		</view>
+    </view>
+</template>
+<script>
+export default {
+    data() {
+		return {
+            supportStaffUrl:'',
+            headerStyle: {
+				backgroundColor: 'transparent',
+				backgroundImage: 'url("/static/beijing (2).png")',
+				backgroundSize: 'cover',
+				backgroundPosition: '',
+				boxShadow: ''
+				// 其他样式属性...
+			},
+        }
+    },
+    mounted() {
+		this.$http.get('/sys/qy/wechat/find/picture').then(res => {
+			this.supportStaffUrl = res.data.supportStaffUrl
+		})
+	},
+	methods: {
+        //点击跳转企业微信客服
+	weChatService() {
+		uni.share({
+			provider: "weixin",
+			openCustomerServiceChat: true,
+			customerUrl: this.supportStaffUrl, //企业微信地址
+			corpid: 'wwfe67d19509d43ec5', //企业id
+			success: (res) => {},
+			fail: (err) => {}
+		});
+	},
+    }
+}
+</script>
+<style lang="scss" scoped>
+.headers {
+	position: fixed;
+	top: 0;
+	left: 0;
+	height: auto;
+	width: 100%;
+	z-index: 999999;
+	padding: 16px;
+	padding-top: 40px;
+		text {
+			font-size: 18px;
+			font-weight: 700;
+			color: #333333;
+		}
+}
+.headers-right{
+        position: absolute;
+        right: 15px;
+        display: flex;
+        align-items: center;
+        
+        text {
+            font-size: 13px;
+            color: #666666;
+        }
+        image {
+            // right: 0;
+            width: 15px;
+            height: 15px;
+            margin-right: 5px;
+        }
+    }
+</style>

+ 1 - 1
pages/tools/team/team.vue

@@ -28,7 +28,7 @@
 				</view>
 				<view class="teamStatistics">
 					<view class="statisticsTitle">
-						<view class="d-flex a-center j-start">会员级别</view>
+						<view class="d-flex a-center j-start">会员jibie</view>
 						<view class="d-flex a-center j-center">会员人数</view>
 						<view class="d-flex a-center j-center">签单保费(元)</view>
 						<view class="d-flex a-center j-end">出单人力</view>

+ 0 - 579
pages/wallet/bankCard - 副本.vue

@@ -1,579 +0,0 @@
-<template>
-	<view class="">
-		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
-		<view class="page" v-if="cardPackList1.length>0 || cardPackList2.length>0 || cardPackList3.length>0">
-			<view v-if="current==0" class="bankClass dis a-start f-c j-s" v-for="(item,index) in cardPackList1"
-				:key="index" :style="{background:item.stylelist.background}">
-				<image class="Backgroundimage" src="/static/image/bindBank/img1.png" mode="" style=""></image>
-				<view class="dis j-s">
-					<view class="dis">
-						<view class="logo">
-							<image :src="item.stylelist.logo" mode=""></image>
-						</view>
-						<view class="banktitle dis f-c j-s">
-							<text>{{item.bankAccount}}</text>
-							<text>储蓄卡</text>
-						</view>
-					</view>
-				</view>
-				<view class="bank dis j-s a-c">
-					<view v-for="(item,index) in item.bankArray" :key="index">{{item}}</view>
-				</view>
-			</view>
-			<view v-if="current==1 && item.delFlag==0" class="bankClass dis a-start f-c j-s"
-				v-for="(item,index) in cardPackList2" :key="index" :style="{background:item.stylelist.background}">
-				<image class="Backgroundimage" src="/static/image/bindBank/img1.png" mode="" style=""></image>
-				<view class="dis j-s">
-					<view class="dis">
-						<view class="logo">
-							<image :src="item.stylelist.logo" mode=""></image>
-						</view>
-						<view class="banktitle dis f-c j-s">
-							<text>{{item.bankAccount}}</text>
-							<text>储蓄卡</text>
-						</view>
-					</view>
-					<view class="dis ">
-
-						<image class="tool" src="/static/image/bindBank/del.png" mode="" @click="del(item.id)">
-						</image>
-					</view>
-				</view>
-				<view class="bank dis j-s a-c">
-					<view v-for="(item,index) in item.bankArray" :key="index">{{item}}</view>
-				</view>
-			</view>
-			<view class="" v-if="current==2" v-for="(item,index) in cardPackList3" :key="index">
-				<view class="rejectionReason dis a-start j-start">
-					<view style="width: 5%;margin-top: 2px;">
-						<image src="/static/image/bindBank/bohui.png" mode="" style="width: 14px;height: 14px;">
-						</image>
-					</view>
-					<view style="width: 95%;">
-						驳回原因:{{item.remark?item.remark:'无'}}</view>
-				</view>
-				<view class="bankClass dis a-start f-c j-s" :style="{background:item.stylelist.background}">
-					<image class="Backgroundimage" src="/static/image/bindBank/img1.png" mode="" style=""></image>
-					<view class="dis j-s">
-						<view class="dis">
-							<view class="logo">
-								<image :src="item.stylelist.logo" mode=""></image>
-							</view>
-							<view class="banktitle dis f-c j-s">
-								<text>{{item.bankAccount}}</text>
-								<text>储蓄卡</text>
-							</view>
-						</view>
-					</view>
-					<view class="bank dis j-s a-c">
-						<view v-for="(item,index) in item.bankArray" :key="index">{{item}}</view>
-					</view>
-				</view>
-			</view>
-		</view>
-		<u-empty text="暂无数据" mode="order" class="flexd" v-else></u-empty>
-		<view class="fixed">
-			<u-button type="primary" style="background-color:#0052FF ;font-weight: bold;" @tap="getbankCard">+
-				添加银行卡</u-button>
-		</view>
-		<u-modal v-model="deleteshow" :show-cancel-button='true' @confirm="delbankCard">
-			<view class="slot-content dis a-c j-c" style="padding: 10px;">
-				<span style="font-weight: bold;">点击确定解绑银行卡</span>
-			</view>
-		</u-modal>
-		<u-popup mode="bottom" v-model="promptShow" width="100%" height="50%" border-radius="14" :closeable="true">
-			<view style="padding: 16px;">
-				<view class="binding dis f-c a-c ">
-					<view class="title dis f-c a-c ">
-						<text>修改银行卡信息</text>
-						<text>请填写本人的银行卡信息</text>
-					</view>
-					<view class="formInfo">
-						<u-field v-model="form.realUserName" :field-style="{textAlign:'right'}" label="本人姓名"
-							placeholder="输入真实姓名">
-						</u-field>
-						<u-field v-model="form.bankNumber" @blur="validateBankCard" :field-style="{textAlign:'right'}"
-							label="银行卡号" placeholder="请输入银行卡卡号">
-						</u-field>
-						<u-field @click="showAction" v-model="form.bankAccount" :field-style="{textAlign:'right'}"
-							label="选择银行" placeholder="点击选择银行">
-						</u-field>
-						<u-field v-model="form.bankAddress" :field-style="{textAlign:'right'}" label="开户行"
-							placeholder="输入开户行">
-						</u-field>
-					</view>
-					<u-button class="mt-5" type="primary"
-						style="background-color:#0052FF ;font-weight: bold;width: 100%;" @tap="updateSubmit">
-						点击修改</u-button>
-				</view>
-			</view>
-		</u-popup>
-		<u-select v-model="show" :list="bnklist" @confirm="confirm"></u-select>
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {
-				show: false,
-				bnklist: [{
-						value: '1',
-						label: '中国工商银行'
-					},
-					{
-						value: '2',
-						label: '中国农业银行'
-					},
-					{
-						value: '3',
-						label: '中国银行'
-					},
-					{
-						value: '4',
-						label: '中国建设银行'
-					},
-					{
-						value: '5',
-						label: '交通银行'
-					},
-					{
-						value: '6',
-						label: '中国邮政储蓄银行'
-					},
-					{
-						value: '7',
-						label: '招商银行'
-					},
-					{
-						value: '8',
-						label: '中信银行'
-					},
-					{
-						value: '9',
-						label: '中国光大银行'
-					},
-					{
-						value: '10',
-						label: '华夏银行'
-					},
-					{
-						value: '11',
-						label: '中国民生银行'
-					},
-					{
-						value: '12',
-						label: '广发银行'
-					},
-					{
-						value: '13',
-						label: '平安银行'
-					},
-					{
-						value: '14',
-						label: '上海浦东发展银行'
-					},
-					{
-						value: '15',
-						label: '兴业银行'
-					},
-					{
-						value: '16',
-						label: '浙商银行'
-					},
-					{
-						value: '17',
-						label: '渤海银行'
-					},
-					{
-						value: '18',
-						label: '恒丰银行'
-					},
-					{
-						value: '19',
-						label: '北京银行'
-					},
-					{
-						value: '20',
-						label: '上海银行'
-					},
-					{
-						value: '21',
-						label: '晋商银行'
-					},
-					{
-						value: '22',
-						label: '山西银行'
-					},
-					{
-						value: '23',
-						label: '农村商业银行'
-					},
-				],
-				form: {
-					bankNumber: "",
-					realUserName: "",
-					bankAccount: "",
-					bankAddress: "",
-				},
-				promptShow: false,
-				id: "",
-				deleteshow: false,
-				list: [{
-					name: '未审核'
-				}, {
-					name: '已审核'
-				}, {
-					name: '驳回',
-				}],
-				current: 1,
-				validateBankCardStatus: false, //银行卡验证状态
-				bankNumber: "",
-				cardPackList1: [],
-				cardPackList2: [],
-				cardPackList3: [],
-				bankList: [{
-						bankName: "中国邮政储蓄银行",
-						logo: "/static/image/bankLogo/youzheng.png",
-						background: "linear-gradient(90deg, rgba(79, 136, 69, 0.7) 0%, #4f8845 100%)"
-					},
-					{
-						bankName: "中国工商银行",
-						logo: "/static/image/bankLogo/gongshang.png",
-						background: "linear-gradient(90deg, rgba(177, 0, 13, 0.7) 0%, #b1000d 100%)"
-					},
-					{
-						bankName: "中国农业银行",
-						logo: "/static/image/bankLogo/nongye.png",
-						background: "linear-gradient(90deg, rgba(86,152, 130, 0.7) 0%, #569882 100%)"
-					},
-					{
-						bankName: "中国银行",
-						logo: "/static/image/bankLogo/zhongguo.png",
-						background: "linear-gradient(90deg, rgba(157, 32, 40, 0.7) 0%, #9d2028 100%)"
-					},
-					{
-						bankName: "中国建设银行",
-						logo: "/static/image/bankLogo/jianshe.png",
-						background: "linear-gradient(90deg, rgba(6, 89, 159, 0.7) 0%, #06569F 100%)"
-					},
-					{
-						bankName: "招商银行",
-						logo: "/static/image/bankLogo/zhaoshang.png",
-						background: "linear-gradient(90deg, rgba(197, 0, 25, 0.7) 0%, #c50019 100%)"
-					},
-					{
-						bankName: "中国民生银行",
-						logo: "/static/image/bankLogo/minsheng.png",
-						background: "linear-gradient(90deg, rgba(84,149, 92, 0.7) 0%, #54955c 100%)"
-					},
-					{
-						bankName: "中国光大银行",
-						logo: "/static/image/bankLogo/guangda.png",
-						background: "linear-gradient(90deg, rgba(93, 30, 131, 0.7) 0%, #5d1e83 100%)"
-					},
-					{
-						bankName: "中信银行",
-						logo: "/static/image/bankLogo/zhongxin.png",
-						background: "linear-gradient(90deg, rgba(184, 0,22, 0.7) 0%, #b80016 100%)"
-					},
-					{
-						bankName: "华夏银行",
-						logo: "/static/image/bankLogo/huaxia.png",
-						background: "linear-gradient(90deg, rgba(216, 12, 24, 0.7) 0%, #d80c18 100%)"
-					},
-					{
-						bankName: "中国交通银行",
-						logo: "/static/image/bankLogo/jiaotong.png",
-						background: "linear-gradient(90deg, rgba(33, 58, 120, 0.7) 0%, #213a78 100%)"
-					},
-					{
-						bankName: "晋商银行",
-						logo: "/static/image/bankLogo/jinshang.png",
-						background: "linear-gradient(90deg, rgba(224, 150, 165, 0.7) 0%, #e096a5 100%)"
-					},
-					{
-						bankName: "山西银行",
-						logo: "/static/image/bankLogo/shanxi.png",
-						background: "linear-gradient(90deg, rgba(192, 19, 73, 0.7) 0%, #c01349 100%)"
-					},
-					{
-						bankName: "农村商业银行",
-						logo: "/static/image/bankLogo/nongcun.png",
-						background: "linear-gradient(90deg, rgba(0, 155, 77, 0.7) 0%, #009b4d 100%)"
-					},
-				],
-			}
-		},
-		onShow() {
-			this.getcardPack(); //获取卡包
-		},
-		watch: {
-			"form.bankNumber": {
-				handler(val) {
-					if (val) {
-						this.form.bankNumber = val.replace(/\s/g, "");
-					}
-				},
-			},
-		},
-		onLoad() {},
-		methods: {
-			async updateSubmit() {
-				if (!this.form.bankNumber || !this.form.realUserName || !this.form.bankAccount || !this.form
-					.bankAddress) {
-					return uni.showToast({
-						title: '信息不完整',
-						duration: 2000,
-						icon: "none"
-					});
-				}
-				let res = await this.$http.put('/userBank/update', this.form);
-				if (res.code == '200') {
-					uni.showToast({
-						title: res.msg,
-						icon: "none"
-					});
-					this.promptShow = false;
-					this.getcardPack();
-				} else {
-					uni.showToast({
-						title: res.msg,
-						icon: "none"
-					});
-				}
-			},
-			confirm(e) {
-				this.form.bankAccount = e[0].label;
-			},
-			showAction() {
-				this.show = true;
-			},
-			// 验证银行卡
-			async validateBankCard() {
-				var that = this;
-				that.form.bankAccount = "";
-				await bankBin.getBankBin(this.accountno)
-					.then((data) => {
-						that.form.bankAccount = data.bankName;
-						that.validateBankCardStatus = true;
-						return true;
-					})
-					.catch((err) => {
-						that.validateBankCardStatus = false;
-						return uni.showToast({
-							title: err.split(":")[1],
-							icon: "none"
-						});
-					})
-			},
-			change(index) {
-				this.current = index;
-			},
-			async getcardPack() {
-				let res = await this.$http.post('/userBank/getUserBankList', {
-					auditStatus: "",
-				});
-				let list1 = [];
-				let list2 = [];
-				let list3 = [];
-				if (res.code == '200' && res.data) {
-					res.data.map(val => {
-						let name = this.bankList.find(ele => ele.bankName === val.bankAccount)
-						if (name) {
-							val.stylelist = {
-								...name
-							};
-						} else {
-							val.stylelist = {
-								logo: "/static/image/bindBank/img1.png",
-								background: 'linear-gradient(90deg, rgba(229, 166,0,0.7) 0%, #e5a600 100%)',
-							}
-						}
-						const resultArray = [];
-						for (let i = 0; i < val.bankNumber.length; i += 4) {
-							resultArray.push(val.bankNumber.substring(i, i + 4));
-						}
-						val.bankArray = resultArray;
-						switch (val.auditStatus) {
-							case "0":
-								list1.push(val);
-								break;
-							case "1":
-								list2.push(val);
-								break;
-							case "2":
-								list3.push(val);
-								break;
-						}
-					})
-					this.cardPackList1 = list1;
-					this.cardPackList2 = list2;
-					this.cardPackList3 = list3;
-				}
-			},
-			getbankCard() {
-				this.navigate({
-					url: '/pages/wallet/bindBank',
-				}, "navigateTo", true)
-			},
-			del(id) {
-				this.id = id;
-				this.deleteshow = true;
-			},
-
-			async delbankCard() {
-				let res = await this.$http.post('/userBank/unbind', {
-					id: this.id,
-					delFlag: '1',
-				});
-				if (res.code == '200') {
-					this.getcardPack();
-					uni.showToast({
-						title: res.msg,
-						duration: 2000,
-						icon: "success"
-					});
-				}
-			}
-		},
-	}
-</script>
-
-<style lang="scss" scoped>
-	.binding {
-		padding: 16px;
-
-		.title {
-			font-size: 14px;
-			color: #333333;
-
-			text:first-child {
-				font-size: 20px;
-				font-weight: bold;
-			}
-		}
-
-		.formInfo {
-			margin-top: 18px;
-			width: 100%;
-			background: #FFFFFF;
-			box-shadow: 0px 4px 10px 0px #DAE3F4;
-			border-radius: 6px;
-
-
-		}
-
-
-	}
-
-	.rejectionReason {
-		width: 100%;
-		height: auto;
-		padding: 5px;
-		background: rgba(255, 15, 0, 0.1);
-		border-radius: 8px 8px 8px 8px;
-		margin-bottom: 5px;
-
-
-		>view {
-			color: #DC0D00;
-			font-size: 12px;
-		}
-	}
-
-	page {
-		background-color: #fff;
-	}
-
-	.page {
-		padding: 10px 16px;
-	}
-
-	.fixed {
-		position: fixed;
-		bottom: 0;
-		left: 0;
-		width: 100%;
-		height: 62px;
-		background: #FFFFFF;
-		box-shadow: 0px -4px 10px 0px rgba(0, 0, 0, 0.1);
-		padding: 12px 16px;
-	}
-
-	.bankClass {
-		width: 100%;
-		height: 110px;
-		border-radius: 6px;
-		padding: 14px;
-		position: relative;
-		margin-bottom: 15px;
-
-		.Backgroundimage {
-			width: 94px;
-			height: 86px;
-			position: absolute;
-			right: 0;
-			bottom: 0;
-		}
-
-		>view {
-			width: 100%;
-		}
-
-		.bank {
-			font-size: 18px;
-			color: #fff;
-			line-height: 1;
-
-			view {
-				font-size: 18px;
-				line-height: 1;
-			}
-		}
-
-		.logo {
-			width: 39px;
-			height: 39px;
-			background: #FFFFFF;
-			border-radius: 6px;
-
-			image {
-				width: 100%;
-				height: 100%;
-			}
-		}
-
-		.tool {
-			width: 20px;
-			height: 20px;
-		}
-
-		.banktitle {
-			margin-left: 12px;
-
-			text:first-child {
-				color: #fff;
-				font-weight: bold;
-				font-size: 16px;
-				line-height: 1;
-			}
-
-			text:last-child {
-				color: #fff;
-				font-size: 12px;
-				line-height: 1;
-			}
-		}
-
-	}
-
-	.flexd {
-		position: fixed;
-		top: 0;
-		bottom: 0;
-		left: 0;
-		right: 0;
-		z-index: -1;
-	}
-</style>

+ 1 - 1
pages/wallet/billInfo.vue

@@ -65,7 +65,7 @@
 						<text>{{promotionData.agentName}}</text>
 					</view>
 					<view class="dis j-s a-c" v-if="promotionData.agentLevel">
-						<text>代理人级别:</text>
+						<text>代理人jibie:</text>
 						<text>{{promotionData.agentLevel}}</text>
 					</view>
 				</template>

+ 0 - 0
static/背景 (1).png → static/beijing (2).png


+ 0 - 0
static/合伙人.png → static/hehuor.png


BIN
static/icon/code.png


BIN
static/icon/code2.png


+ 0 - 0
static/icon/电话.png → static/icon/dianhua.png


+ 0 - 0
static/icon/级别.png → static/icon/jibie.png


+ 0 - 0
static/icon/级别 (5).png → static/icon/jibie1.png


+ 0 - 0
static/icon/级别 (1).png → static/icon/jibie3.png


+ 0 - 0
static/icon/级别 (2).png → static/icon/jibie4.png


+ 0 - 0
static/icon/级别 (3).png → static/icon/jibie5.png


+ 0 - 0
static/icon/级别 (4).png → static/icon/jibie6.png


+ 0 - 0
static/icon/男.png → static/icon/nan.png


+ 0 - 0
static/icon/女.png → static/icon/nv.png


+ 0 - 0
static/icon/向右.png → static/icon/right.png


+ 0 - 0
static/icon/tab/首页1.png → static/icon/tab/home1.png


+ 0 - 0
static/icon/tab/首页2.png → static/icon/tab/home2.png


+ 0 - 0
static/icon/tab/我的1.png → static/icon/tab/my1.png


+ 0 - 0
static/icon/tab/我的2.png → static/icon/tab/my2.png


BIN
static/icon/tab/tongji1.png


BIN
static/icon/tab/tongji2.png


+ 0 - 0
static/icon/微信.png → static/icon/weixin.png


BIN
static/icon/搜索.png


BIN
static/image/my/baocun.png


+ 0 - 0
static/image/my/背景.png → static/image/my/beijing.png


BIN
static/image/my/fenxiang.png


BIN
static/image/my/kefu.png


+ 0 - 0
static/image/my/男.png → static/image/my/nan.png


+ 0 - 0
static/image/my/女.png → static/image/my/nv.png


BIN
static/image/my/shenfenzz.png


BIN
static/image/my/shenqing.png


BIN
static/image/my/shenzf.png


BIN
static/image/my/tichu.png


BIN
static/image/my/weixin.png


+ 0 - 0
static/image/my/无性别.png → static/image/my/wuxingb.png


BIN
static/image/my/yinhangka.png


BIN
static/shenqing.png


+ 0 - 0
static/工作室.png → static/work.png


BIN
static/zhaomum.png


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor