| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | <template> | 
					
						
							|  |  |  | 	<view class="main"> | 
					
						
							|  |  |  | 		<scroll-view class="left_scrol_style" scroll-x="false" scroll-y="true"> | 
					
						
							| 
									
										
										
										
											2025-04-10 09:51:18 +08:00
										 |  |  | 			<view class="top-lists" v-if="navList.length > 0"> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 				<view v-for="(item, index) in navList" v-show="item.menuKey!=''" :key="index" | 
					
						
							|  |  |  | 					:class="navIndex == item.path ? 'styles' : ''" class="nav-view" @click="clickHref(item.path)"> | 
					
						
							|  |  |  | 					{{ item.name }} | 
					
						
							|  |  |  | 				</view> | 
					
						
							|  |  |  | 			</view> | 
					
						
							|  |  |  | 		</scroll-view> | 
					
						
							|  |  |  | 		<view class="sum-val"> | 
					
						
							| 
									
										
										
										
											2025-05-20 15:13:51 +08:00
										 |  |  | 			<view v-if="monthIncomeTotal" >本月合计: <span>{{monthIncomeTotal | toThousandthAndKeepDecimal}}</span></view> | 
					
						
							|  |  |  | 			<view>昨日合计: <span>{{toSum | toThousandthAndKeepDecimal}}</span></view> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 		</view> | 
					
						
							|  |  |  | 		<template> | 
					
						
							|  |  |  | 			<sgsy v-if="navIndex==0" ref="sgsyData" :checkRule="marketList[0].isShow" :num="page.pageNum" /> | 
					
						
							|  |  |  | 			<fgsy v-if="navIndex==1" ref="sgsyData" :checkRule="marketList[0].isShow" /> | 
					
						
							|  |  |  | 			<hignfsy v-if="navIndex==2" ref="sgsyData" :checkRule="marketList[0].isShow" /> | 
					
						
							|  |  |  | 			<hfsy v-if="navIndex==3" ref="sgsyData" :checkRule="marketList[0].isShow" /> | 
					
						
							|  |  |  | 			<sbydsy v-if="navIndex==4" ref="sgsyData" :checkRule="marketList[0].isShow" /> | 
					
						
							|  |  |  | 			<fgqsy v-if="navIndex==5" ref="sgsyData" :checkRule="marketList[0].isShow" /> | 
					
						
							|  |  |  | 			<ckkj v-if="navIndex==6" ref="sgsyData" :checkRule="marketList[0].isShow" /> | 
					
						
							|  |  |  | 		</template> | 
					
						
							|  |  |  | 	</view> | 
					
						
							|  |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | 	import * as api from '@/config/login.js' | 
					
						
							|  |  |  | 	import * as apis from '@/config/market.js' | 
					
						
							|  |  |  | 	import * as api1 from '@/config/bonus.js' | 
					
						
							|  |  |  | 	import { | 
					
						
							|  |  |  | 		setToken | 
					
						
							|  |  |  | 	} from '@/config/auth.js' | 
					
						
							|  |  |  | 	import store from '@/store' | 
					
						
							|  |  |  | 	import sgsy from '@/components/bonus/sgsy.vue' | 
					
						
							|  |  |  | 	import fgsy from '@/components/bonus/fgsy.vue' | 
					
						
							|  |  |  | 	import hignfsy from '@/components/bonus/hignfsy.vue' | 
					
						
							|  |  |  | 	import hfsy from '@/components/bonus/hfsy.vue' | 
					
						
							|  |  |  | 	import sbydsy from '@/components/bonus/sbydsy.vue' | 
					
						
							|  |  |  | 	import fgqsy from '@/components/bonus/fgqsy.vue' | 
					
						
							|  |  |  | 	import ckkj from '@/components/bonus/ckkj.vue' | 
					
						
							|  |  |  | 	export default { | 
					
						
							|  |  |  | 		data() { | 
					
						
							|  |  |  | 			return { | 
					
						
							|  |  |  | 				toSum: 0, | 
					
						
							|  |  |  | 				index: null, | 
					
						
							|  |  |  | 				userInfo: [], | 
					
						
							|  |  |  | 				marketList: [{ | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  | 					text: '奖金来源', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 					id: 3, | 
					
						
							|  |  |  | 					path: "/marketDynamics", | 
					
						
							|  |  |  | 					name: 'bonusSource', | 
					
						
							|  |  |  | 					isShow: false, | 
					
						
							|  |  |  | 				}, ], | 
					
						
							|  |  |  | 				navList: [{ | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  | 						name: '首购收益', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 						path: 0, | 
					
						
							|  |  |  | 						value: "firstPurchase", | 
					
						
							|  |  |  | 						menuKey: '' | 
					
						
							|  |  |  | 					}, | 
					
						
							| 
									
										
										
										
											2025-04-11 16:46:01 +08:00
										 |  |  | 					{ | 
					
						
							|  |  |  | 						name: '复购收益', | 
					
						
							|  |  |  | 						path: 1, | 
					
						
							|  |  |  | 						value: "repurchaseEarnings", | 
					
						
							|  |  |  | 						menuKey: '' | 
					
						
							|  |  |  | 					}, | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 					{ | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  | 						name: '海粉收益', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 						path: 2, | 
					
						
							|  |  |  | 						value: "hignFans", | 
					
						
							|  |  |  | 						menuKey: '' | 
					
						
							|  |  |  | 					}, | 
					
						
							|  |  |  | 					{ | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  | 						name: '海粉收益', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 						path: 3, | 
					
						
							|  |  |  | 						value: "seaFans", | 
					
						
							|  |  |  | 						menuKey: '' | 
					
						
							|  |  |  | 					}, | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  | 					// { name: '圣宝云代收益',path:4,value:"sbyd",menuKey:''},
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 					{ | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  | 						name: '复购券收益', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 						path: 5, | 
					
						
							|  |  |  | 						value: "repurchaseTicket", | 
					
						
							|  |  |  | 						menuKey: '' | 
					
						
							|  |  |  | 					}, | 
					
						
							| 
									
										
										
										
											2025-04-10 09:51:18 +08:00
										 |  |  | 					// {
 | 
					
						
							|  |  |  | 					// 	name: '创客空间收益',
 | 
					
						
							|  |  |  | 					// 	path: 6,
 | 
					
						
							|  |  |  | 					// 	value: "markerSpaceEarnings",
 | 
					
						
							|  |  |  | 					// 	menuKey: ''
 | 
					
						
							|  |  |  | 					// },
 | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 				], | 
					
						
							|  |  |  | 				navIndex: 0, | 
					
						
							|  |  |  | 				page: { | 
					
						
							|  |  |  | 					pageSize: 50, | 
					
						
							|  |  |  | 					pageNum: 1, | 
					
						
							| 
									
										
										
										
											2025-05-20 10:27:43 +08:00
										 |  |  | 				}, | 
					
						
							|  |  |  | 				monthIncomeTotal: 0, | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 			} | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		components: { | 
					
						
							|  |  |  | 			sgsy, | 
					
						
							|  |  |  | 			fgsy, | 
					
						
							|  |  |  | 			hignfsy, | 
					
						
							|  |  |  | 			hfsy, | 
					
						
							|  |  |  | 			sbydsy, | 
					
						
							|  |  |  | 			fgqsy, | 
					
						
							|  |  |  | 			ckkj | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		onLoad() { | 
					
						
							|  |  |  | 			this.getMenuLists() | 
					
						
							|  |  |  | 			this.getSum() | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		methods: { | 
					
						
							|  |  |  | 			getSum() { | 
					
						
							|  |  |  | 				api1.queryBonusTotal({}).then((res) => { | 
					
						
							| 
									
										
										
										
											2025-05-20 10:27:43 +08:00
										 |  |  | 					console.log(res, '....res====aa') | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 					this.toSum = res.rows[0].realIncomeTotal | 
					
						
							| 
									
										
										
										
											2025-05-20 10:27:43 +08:00
										 |  |  | 					this.monthIncomeTotal = res.rows[0].monthIncomeTotal | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 				}) | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			bindPickerChange(e) { | 
					
						
							|  |  |  | 				this.index = e.detail.value | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			clickHref(index) { | 
					
						
							|  |  |  | 				let that = this; | 
					
						
							|  |  |  | 				this.navIndex = index | 
					
						
							|  |  |  | 				this.page.pageNum = 1 | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			getMenuLists() { | 
					
						
							|  |  |  | 				api.menuList().then((res) => { | 
					
						
							| 
									
										
										
										
											2025-04-10 09:51:18 +08:00
										 |  |  | 					console.log(res, '....resmenu') | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 					res.data.forEach((item) => { | 
					
						
							|  |  |  | 						this.navList.forEach((items) => { | 
					
						
							|  |  |  | 							if (item.menuKey == items.value) { | 
					
						
							|  |  |  | 								items.menuKey = item.menuKey | 
					
						
							|  |  |  | 							} | 
					
						
							|  |  |  | 						}) | 
					
						
							|  |  |  | 						if (this.marketList[0].name == item.menuKey) { | 
					
						
							|  |  |  | 							this.marketList[0].isShow = true | 
					
						
							|  |  |  | 						} | 
					
						
							|  |  |  | 					}) | 
					
						
							|  |  |  | 				}) | 
					
						
							|  |  |  | 			}, | 
					
						
							|  |  |  | 			// async onReachBottom() {
 | 
					
						
							|  |  |  | 			// 	this.page.pageNum+1
 | 
					
						
							|  |  |  | 			// 	this.$refs.sgsyData.getDataList(this.page.pageNum+=1);
 | 
					
						
							|  |  |  | 			// },
 | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | <style lang="scss"> | 
					
						
							|  |  |  | 	.sum-val { | 
					
						
							|  |  |  | 		background-color: #fff; | 
					
						
							| 
									
										
										
										
											2025-05-20 15:13:51 +08:00
										 |  |  | 		// height: 100rpx;
 | 
					
						
							|  |  |  | 		line-height: 60rpx; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 		text-align: right; | 
					
						
							|  |  |  | 		margin-top: 10rpx; | 
					
						
							|  |  |  | 		padding-right: 20rpx; | 
					
						
							| 
									
										
										
										
											2025-05-20 10:27:43 +08:00
										 |  |  | 		display: flex; | 
					
						
							| 
									
										
										
										
											2025-05-20 15:13:51 +08:00
										 |  |  | 		flex-direction: column; | 
					
						
							|  |  |  | 		align-items: flex-end; | 
					
						
							| 
									
										
										
										
											2025-05-20 10:27:43 +08:00
										 |  |  | 		justify-content: flex-end; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 		span { | 
					
						
							|  |  |  | 			font-size: 34rpx; | 
					
						
							|  |  |  | 			font-weight: bold; | 
					
						
							|  |  |  | 			margin-left: 10rpx; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/*左侧分类视图*/ | 
					
						
							|  |  |  | 	.left_scrol_style { | 
					
						
							|  |  |  | 		white-space: nowrap; | 
					
						
							|  |  |  | 		width: 100%; | 
					
						
							|  |  |  | 		background: #fff; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.texts { | 
					
						
							|  |  |  | 		color: #333; | 
					
						
							|  |  |  | 		font-size: 26rpx; | 
					
						
							|  |  |  | 		overflow: hidden; | 
					
						
							|  |  |  | 		white-space: nowrap; | 
					
						
							|  |  |  | 		text-overflow: ellipsis; | 
					
						
							|  |  |  | 		/* width:200rpx; */ | 
					
						
							|  |  |  | 		text-align: right; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.select-text { | 
					
						
							|  |  |  | 		display: flex; | 
					
						
							|  |  |  | 		margin-right: 20rpx; | 
					
						
							|  |  |  | 		font-size: 26rpx; | 
					
						
							|  |  |  | 		color: #333; | 
					
						
							|  |  |  | 		position: relative; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.selIcon { | 
					
						
							|  |  |  | 		width: 30rpx; | 
					
						
							|  |  |  | 		height: 30rpx; | 
					
						
							|  |  |  | 		margin: 5rpx 0 0 20rpx; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	page { | 
					
						
							|  |  |  | 		background-color: #f2f2f2; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.styles { | 
					
						
							|  |  |  | 		border: none !important; | 
					
						
							|  |  |  | 		color: #fff !important; | 
					
						
							| 
									
										
										
										
											2025-04-23 11:51:12 +08:00
										 |  |  | 		background: #005BAC; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.top-lists { | 
					
						
							|  |  |  | 		width: fit-content; | 
					
						
							|  |  |  | 		display: flex; | 
					
						
							|  |  |  | 		padding: 30rpx 30rpx 0 0; | 
					
						
							|  |  |  | 		background-color: #fff; | 
					
						
							|  |  |  | 		height: 80rpx; | 
					
						
							|  |  |  | 		line-height: 80rpx; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		.nav-view { | 
					
						
							|  |  |  | 			width: 200rpx; | 
					
						
							|  |  |  | 			cursor: pointer; | 
					
						
							|  |  |  | 			padding: 0 26rpx; | 
					
						
							|  |  |  | 			height: 44rpx; | 
					
						
							|  |  |  | 			border-radius: 10rpx; | 
					
						
							|  |  |  | 			border: 1rpx solid #999999; | 
					
						
							|  |  |  | 			font-size: 14rpx; | 
					
						
							|  |  |  | 			text-align: center; | 
					
						
							|  |  |  | 			line-height: 44rpx; | 
					
						
							|  |  |  | 			margin-left: 20rpx; | 
					
						
							|  |  |  | 			color: #999; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | </style> |