xuhaolan %!s(int64=3) %!d(string=hai) anos
pai
achega
be58bfe587
Modificáronse 3 ficheiros con 438 adicións e 367 borrados
  1. 78 5
      components/top/top.vue
  2. 0 62
      pages/index/index.vue
  3. 360 300
      pages/index/share.vue

+ 78 - 5
components/top/top.vue

@@ -2,7 +2,7 @@
 	<view class="center">
 		<view class="box-top">
 			<view class="bg3" @click="test()"><image src="../../static/index/img14.png" mode=""></image></view>
-			<view class="bg3 two"><image src="../../static/index/img08.png" mode=""></image></view>
+			<view class="bg3 two" @click="foxlogin"><image src="../../static/index/img08.png" mode=""></image></view>
 		</view>
 		<u-popup v-model="show" mode="left"	width="565rpx" border-radius="14">
 			<view class="popup">
@@ -26,7 +26,13 @@
 
 <script>
 import uniPopup from '@/components/uni-popup/uni-popup.vue';
+import MetaMaskOnboarding from '@metamask/onboarding';
+import { mapState, mapMutations } from 'vuex';
+import { logins, userinfo, logout } from '@/api/login.js';
 export default {
+	computed: {
+		...mapState('user', ['address', 'hasLogin', 'userInfo'])
+	},
 	data() {
 		return {
 			show: false,
@@ -95,9 +101,7 @@ export default {
 		};
 	},
 	methods: {
-		addShow() {
-			this.$refs.popup.open();
-		},
+		...mapMutations('user', ['setAddress', 'setUserInfo', 'login']),
 		navTo(url) {
 			uni.navigateTo({
 				url
@@ -106,7 +110,76 @@ export default {
 		test() {
 			this.show = true;
 			console.log(this.show);
-		}
+		},
+		foxlogin() {
+			const isMetaMaskInstalled = this.isMetaMaskInstalled();
+			if (!isMetaMaskInstalled) {
+				const forwarderOrigin = 'http://flow.frp.liuniu946.com/index/#/';
+				const onboarding = new MetaMaskOnboarding({ forwarderOrigin });
+				onboarding.startOnboarding();
+			} else {
+				try {
+					ethereum.request({ method: 'eth_requestAccounts' });
+					this.getaccount();
+				} catch (error) {
+					console.log(error, '1234556');
+				}
+			}
+		},
+		async getaccount() {
+			const obj = this;
+			const accounts = await ethereum.request({ method: 'eth_accounts' });
+			if (accounts[0] == undefined) {
+				this.foxlogin();
+			} else {
+				console.log(accounts[0]);
+				this.setAddress(accounts[0]);
+				this.changeAddress();
+				logins({ address: obj.address }).then(({ data }) => {
+					obj.login();
+					uni.setStorageSync('token', data.userinfo.token);
+					userinfo().then(({ data }) => {
+						console.log(data);
+						obj.setUserInfo(data.data);
+					});
+				});
+			}
+		},
+		async changeAddress() {
+			try {
+				await ethereum.request({
+					method: 'wallet_switchEthereumChain',
+					params: [{ chainId: '0x38' }]
+				});
+			} catch (switchError) {
+				console.log(switchError, 'erro');
+				// This error code indicates that the chain has not been added to MetaMask.
+				if (switchError.code === 4902) {
+					try {
+						await ethereum.request({
+							method: 'wallet_addEthereumChain',
+							params: [
+								{
+									chainId: '0x38',
+									chainName: 'BSC主网络',
+									rpcUrls: ['https://bsc-dataseed1.binance.org/'] /* ... */,
+									blockExplorerUrls: ['https://bscscan.com/'],
+									nativeCurrency: {
+										name: 'BNB',
+										symbol: 'BNB',
+										decimals: 18
+									}
+								}
+							]
+						});
+					} catch (addError) {}
+				}
+			}
+		},
+		isMetaMaskInstalled() {
+			const { ethereum } = window;
+			return Boolean(ethereum && ethereum.isMetaMask);
+		},
 	}
 };
 </script>

+ 0 - 62
pages/index/index.vue

@@ -33,71 +33,9 @@ export default {
 	},
 	data() {
 		return {
-			cdList: [
-				{
-					image: '../../static/img/cd1.png',
-					title: '首页    ',
-					right: '../../static/img/right.png',
-					url: './Expect'
-				},
-				{
-					image: '../../static/img/cd2.png',
-					title: '恒星私募',
-					right: '../../static/img/right.png',
-					url: './Expect'
-				},
-				{
-					image: '../../static/img/cd5.png',
-					title: 'DIFI挖矿',
-					right: '../../static/img/right.png'
-				},
-				{
-					image: '../../static/img/cd4.png',
-					title: '我的推荐',
-					right: '../../static/img/right.png'
-				},
-				{
-					image: '../../static/img/cd3.png',
-					title: '超级节点',
-					right: '../../static/img/right.png'
-				},
-				{
-					image: '../../static/img/cd6.png',
-					title: '游戏版块',
-					right: '../../static/img/right.png'
-				},
-				{
-					image: '../../static/img/cd7.png',
-					title: '好友加速明细',
-					right: '../../static/img/right.png'
-				},
-				{
-					image: '../../static/img/cd8.png',
-					title: '算力奖励明细',
-					right: '../../static/img/right.png'
-				},
-				{
-					image: '../../static/img/cd9.png',
-					title: '社群奖励明细',
-					right: '../../static/img/right.png'
-				},
-				{
-					image: '../../static/img/cd10.png',
-					title: '公会奖励明细',
-					right: '../../static/img/right.png'
-				}
-			]
 		};
 	},
 	methods: {
-		addShow() {
-			this.$refs.popup.open();
-		},
-		navTo(url) {
-			uni.navigateTo({
-				url
-			});
-		}
 	}
 };
 </script>

+ 360 - 300
pages/index/share.vue

@@ -2,87 +2,63 @@
 <template>
 	<view class="content">
 		<top></top>
-		<view class="top-tit">
-			邀请好友
-			变成壕友
-		</view>
+		<view class="top-tit">邀请好友 变成壕友</view>
 		<view class="center-wrap">
 			<image src="../../static/img/tj-bg.png" mode="" class="tj-bg"></image>
-			<view class="center-tit">
-				邀请地址
-			</view>
+			<view class="center-tit">邀请地址</view>
 			<view class="tj-jl flex" @click="opneYj">
 				<text>业</text>
 				<text>绩</text>
 			</view>
-			<view class="tj-lj-tit">
-				【链接地址】
-			</view>
+			<view class="tj-lj-tit">【链接地址】</view>
 			<view class="tj-lj flex">
-				<view class="lj-tit">
-					邀请链接:
-				</view>
-				<view class="lj-info clamp">
-					山上有座庙,庙里有个老和尚和小和尚
-				</view>
-				<view class="lj-copy">
-					复制链接
-				</view>
+				<view class="lj-tit">邀请链接:</view>
+				<view class="lj-info clamp">{{ address | addFile }}</view>
+				<view class="lj-copy" @click="copy(address)">复制链接</view>
+			</view>
+			<view class="tj-lj1 flex">
+				<view class="lj-tit">绑定关系:</view>
+				<view class="lj-info clamp" v-if="!userInfo.spread"><input type="text" v-model="recommend" value="" /></view>
+				<view class="lj-info clamp" v-if="userInfo.spread">{{ userInfo.spread.address | addFile }}</view>
+				<view class="lj-copy" v-if="!userInfo.spread" @click="spare()">绑定推荐关系</view>
 			</view>
 		</view>
+<<<<<<< HEAD
 		<view class="tj-look" @click="getReferrer()">
 			查看推荐
 		</view>
+=======
+		<view class="tj-look" @click="button()">查看推荐</view>
+>>>>>>> 5fe50ff5c260e745ba7833a119b93bf915605eb5
 		<uni-popup ref="yeji" type="center">
 			<view class="yj-wrap">
-				<view class="yj-tit">
-					收益明细
-				</view>
+				<view class="yj-tit">收益明细</view>
 				<image src="../../static/img/yj-bg.png" mode="" class="yj-logo"></image>
 				<view class="yj-hj flex">
 					<view class="yj-hj-item">
-						<view class="hj-item-val">
-							0
-						</view>
-						<view class="hj-item-name">
-							KGC总业绩
-						</view>
+						<view class="hj-item-val">0</view>
+						<view class="hj-item-name">KGC总业绩</view>
 					</view>
 					<view class="yj-hj-item">
-						<view class="hj-item-val">
-							0
-						</view>
-						<view class="hj-item-name">
-							FL总业绩
-						</view>
+						<view class="hj-item-val">0</view>
+						<view class="hj-item-name">FL总业绩</view>
 					</view>
 				</view>
 				<view class="yj-nav flex">
-					<view class="nav-item" v-for="(navitem,index) in navList" :class="{'active': index == tabIndex}"
-						@click="navClick(index)">
-						{{navitem.name}}
-					</view>
+					<view class="nav-item" v-for="(navitem, index) in navList" :class="{ active: index == tabIndex }" @click="navClick(index)">{{ navitem.name }}</view>
 				</view>
 				<view class="yj-info-wrap">
 					<view class="yj-info-tit flex">
-						<view class="">
-							时间
-						</view>
-						<view class="">
-							金额(KGC)
-						</view>
+						<view class="">时间</view>
+						<view class="">金额(KGC)</view>
 					</view>
 					<swiper class="yj-info-scroll" :current="tabIndex" duration="300">
 						<swiper-item v-for="item in navList">
 							<scroll-view scroll-y="true" class="yj-info-scroll" @scrolltolower="loadMore">
 								<view v-for="itemt in item.list" class="">
 									<view class="flex yj-info">
-										<view class="">
-											{{itemt.time}}
-										</view>
-										<view class="">
-											{{itemt.val}}
-										</view>
+										<view class="">{{ itemt.time }}</view>
+										<view class="">{{ itemt.val }}</view>
 									</view>
 								</view>
 								<uni-load-more :status="item.loadingType"></uni-load-more>
@@ -91,34 +67,23 @@
 					</swiper>
 				</view>
 			</view>
-
 		</uni-popup>
 		<uni-popup ref="yeji1" type="center">
 			<view class="yj-wrap">
-				<view class="yj-tit">
-					我的推荐
-				</view>
+				<view class="yj-tit">我的推荐</view>
 				<image src="../../static/img/yj-bg.png" mode="" class="yj-logo"></image>
 				<view class="yj-info-wrap">
 					<view class="yj-info-tit flex">
-						<view class="">
-							钱包地址
-						</view>
-						<view class="">
-							时间
-						</view>
+						<view class="">钱包地址</view>
+						<view class="">时间</view>
 					</view>
 					<swiper class="yj-info-scroll" :current="tabIndex" duration="300">
 						<swiper-item v-for="item in navList">
 							<scroll-view scroll-y="true" class="yj-info-scroll" @scrolltolower="loadMore">
 								<view v-for="itemt in item.list" class="">
 									<view class="flex yj-info">
-										<view class="">
-											{{itemt.time}}
-										</view>
-										<view class="">
-											{{itemt.val}}
-										</view>
+										<view class="">{{ itemt.time }}</view>
+										<view class="">{{ itemt.val }}</view>
 									</view>
 								</view>
 								<uni-load-more :status="item.loadingType"></uni-load-more>
@@ -132,6 +97,7 @@
 </template>
 
 <script>
+<<<<<<< HEAD
 	import top from '@/components/top/top.vue';
 	import {
 		spreadList
@@ -194,287 +160,381 @@
 				let navItem = obj.navList[index]
 				if (navItem.loadingType == 'noMore' || navItem.loadingType == 'loading') {
 					return
+=======
+import top from '@/components/top/top.vue';
+import { mapState, mapMutations } from 'vuex';
+import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
+export default {
+	comments: {
+		top
+	},
+	computed: {
+		...mapState('user', ['address', 'hasLogin', 'userInfo'])
+	},
+	filters: {
+		addFile(provider) {
+			if (provider.length >= 19) {
+				var subStr1 = provider.substr(0, 14);
+				var subStr2 = provider.substr(provider.length - 6, 6);
+				var subStr = subStr1 + '...' + subStr2;
+				provider = subStr;
+			}
+			return provider;
+		}
+	},
+	data() {
+		return {
+			navList: [
+				{
+					name: '直推业绩',
+					page: 1,
+					limit: 8,
+					list: [],
+					loaded: false,
+					loadingType: 'more'
+				},
+				{
+					name: '间推业绩',
+					page: 1,
+					limit: 8,
+					list: [],
+					loaded: false,
+					loadingType: 'more'
+>>>>>>> 5fe50ff5c260e745ba7833a119b93bf915605eb5
 				}
-				navItem.loadingType = 'loading'
-				console.log('jiaz')
+			],
+			tabIndex: 0
+		};
+	},
+	methods: {
+		copy(value) {
+			let obj = this;
+			let content = value; //需要复制的内容
+			console.log('复制的内容:', content);
+			// content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
+			const result = uniCopy(content);
+			if (result === false) {
+				uni.showToast({
+					title: '不支持'
+				});
+			} else {
+				uni.showToast({
+					title: '复制成功',
+					icon: 'none'
+				});
 			}
+		},
+		qrR() {},
+		opneYj() {
+			this.$refs.yeji.open();
+		},
+		button() {
+			this.$refs.yeji1.open();
+		},
+		// 点击切换
+		navClick(index) {
+			this.tabIndex = index;
+		},
+		// 下滑到底加载更多
+		loadMore() {
+			let obj = this;
+			let index = obj.tabIndex;
+			let navItem = obj.navList[index];
+			if (navItem.loadingType == 'noMore' || navItem.loadingType == 'loading') {
+				return;
+			}
+			navItem.loadingType = 'loading';
+			console.log('jiaz');
 		}
 	}
+};
 </script>
 
 <style lang="scss" scoped>
-	page {
-		background-color: #00050f;
+page {
+	background-color: #00050f;
+}
+
+.top-tit {
+	text-align: center;
+	font-size: 160rpx;
+	font-family: zihun164hao-fangyuehei;
+	font-weight: 400;
+	font-style: italic;
+	color: #08ede7;
+	line-height: 168rpx;
+	margin-bottom: 62rpx;
+}
+
+.box-top {
+	display: flex;
+	padding: 36rpx 41rpx 72rpx 41rpx;
+
+	.bg3 {
+		width: 56rpx;
+		height: 62rpx;
+
+		image {
+			width: 100%;
+			height: 100%;
+		}
 	}
 
-	.top-tit {
-		text-align: center;
-		font-size: 160rpx;
-		font-family: zihun164hao-fangyuehei;
-		font-weight: 400;
-		font-style: italic;
-		color: #08EDE7;
-		line-height: 168rpx;
-		margin-bottom: 62rpx;
+	.two {
+		margin-left: 36rpx;
+
+		image {
+			width: 100%;
+			height: 100%;
+		}
 	}
+}
 
-	.box-top {
-		display: flex;
-		padding: 36rpx 41rpx 72rpx 41rpx;
+.center-wrap {
+	width: 680rpx;
+	height: 891rpx;
+	margin: auto;
+	position: relative;
 
-		.bg3 {
-			width: 56rpx;
-			height: 62rpx;
+	.tj-bg {
+		position: absolute;
+		width: 680rpx;
+		height: 891rpx;
+	}
 
-			image {
-				width: 100%;
-				height: 100%;
-			}
-		}
+	.center-tit {
+		width: 680rpx;
+		height: 102rpx;
+		line-height: 102rpx;
+		text-align: center;
+		font-size: 44rpx;
+		font-family: zihun100hao-fangfangxianfengti;
+		font-weight: 900;
+		color: #08ede7;
+		position: absolute;
+		top: 0;
+	}
 
-		.two {
-			margin-left: 36rpx;
+	.tj-jl {
+		text-align: center;
+		width: 61rpx;
+		height: 110rpx;
+		background: #08ede7;
+		border-radius: 10rpx 0px 0px 10rpx;
+		position: absolute;
+		right: 0;
+		top: 170rpx;
+		font-size: 32rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #001337;
+		// line-height: 40rpx;
+		flex-direction: column;
+		justify-content: center;
+	}
 
-			image {
-				width: 100%;
-				height: 100%;
-			}
-		}
+	.tj-qr {
+		width: 383rpx;
+		height: 383rpx;
+		background: #ffffff;
+		border: 5rpx solid #08ede7;
+		position: absolute;
+		right: 0;
+		left: 0;
+		top: 204rpx;
+		margin: auto;
 	}
 
-	.center-wrap {
+	.tj-lj-tit {
 		width: 680rpx;
-		height: 891rpx;
+		text-align: center;
+		font-size: 31rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+		line-height: 103px;
+		position: absolute;
+		top: 560rpx;
+	}
+	
+	.tj-lj1 {
+		width: 636rpx;
+		height: 67rpx;
+		background: #233b75;
+		border: 2rpx solid #08ede7;
+		border-radius: 10rpx;
+		position: absolute;
+		bottom: 30rpx;
+		right: 0;
+		left: 0;
 		margin: auto;
-		position: relative;
-
-		.tj-bg {
-			position: absolute;
-			width: 680rpx;
-			height: 891rpx;
-		}
-
-		.center-tit {
-			width: 680rpx;
-			height: 102rpx;
-			line-height: 102rpx;
-			text-align: center;
-			font-size: 44rpx;
-			font-family: zihun100hao-fangfangxianfengti;
-			font-weight: 900;
-			color: #08EDE7;
-			position: absolute;
-			top: 0;
-		}
+	}
+	
+	.tj-lj {
+		width: 636rpx;
+		height: 67rpx;
+		background: #233b75;
+		border: 2rpx solid #08ede7;
+		border-radius: 10rpx;
+		position: absolute;
+		bottom: 124rpx;
+		right: 0;
+		left: 0;
+		margin: auto;
+	}
+	.lj-tit {
+		width: 148rpx;
+		flex-shrink: 0;
+		text-align: right;
+		font-size: 28rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+		line-height: 67rpx;
+	}
+	
+	.lj-info {
+		width: 148rpx;
+		flex-grow: 1;
+		text-align: left;
+		font-size: 28rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+		line-height: 67rpx;
+	}
+	
+	.lj-copy {
+		flex-shrink: 0;
+		width: 148rpx;
+		font-size: 28rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #08ede7;
+		line-height: 67rpx;
+		// opacity: 0.75;
+	}
+}
+
+.tj-look {
+	width: 450rpx;
+	height: 75rpx;
+	background: linear-gradient(0deg, #ff7206, #ffdd7e);
+	box-shadow: 0px 2rpx 8rpx 0px rgba(207, 126, 57, 0.7);
+	border-radius: 38rpx;
+	margin: 55rpx auto 0;
+	font-size: 36rpx;
+	font-family: zihun164hao-fangyuehei;
+	font-weight: bold;
+	color: #ffffff;
+	line-height: 75rpx;
+	text-align: center;
+}
+
+.yj-wrap {
+	width: 680rpx;
+	height: 854rpx;
+	background: linear-gradient(180deg, #254fab 0%, #230a8e 100%);
+	border-radius: 20rpx;
+
+	.yj-logo {
+		display: block;
+		width: 326rpx;
+		height: 16rpx;
+		margin: auto;
+		border-radius: 20px;
+	}
 
-		.tj-jl {
-			text-align: center;
-			width: 61rpx;
-			height: 110rpx;
-			background: #08EDE7;
-			border-radius: 10rpx 0px 0px 10rpx;
-			position: absolute;
-			right: 0;
-			top: 170rpx;
-			font-size: 32rpx;
-			font-family: PingFang SC;
-			font-weight: bold;
-			color: #001337;
-			// line-height: 40rpx;
-			flex-direction: column;
-			justify-content: center;
-		}
+	.yj-tit {
+		width: 100%;
+		padding-top: 60rpx;
+		padding-bottom: 15rpx;
+		text-align: center;
+		font-size: 46rpx;
+		font-family: zihun100hao-fangfangxianfengti;
+		font-weight: bold;
+		color: #ffffff;
+		// line-height: 38px;
+	}
 
-		.tj-qr {
-			width: 383rpx;
-			height: 383rpx;
-			background: #FFFFFF;
-			border: 5rpx solid #08EDE7;
-			position: absolute;
-			right: 0;
-			left: 0;
-			top: 204rpx;
-			margin: auto;
-		}
+	.yj-hj {
+		width: 653rpx;
+		height: 147rpx;
+		background: #233b75;
+		border: 2rpx solid #08ede7;
+		border-radius: 10rpx;
+		margin: 40rpx auto;
 
-		.tj-lj-tit {
-			width: 680rpx;
+		.yj-hj-item {
+			width: 50%;
 			text-align: center;
-			font-size: 31rpx;
+			font-size: 28rpx;
 			font-family: PingFang SC;
 			font-weight: bold;
-			color: #FFFFFF;
-			line-height: 103px;
-			position: absolute;
-			top: 560rpx;
-		}
-
-		.tj-lj {
-			width: 636rpx;
-			height: 67rpx;
-			background: #233B75;
-			border: 2rpx solid #08EDE7;
-			border-radius: 10rpx;
-			position: absolute;
-			bottom: 124rpx;
-			right: 0;
-			left: 0;
-			margin: auto;
-
-			.lj-tit {
-				width: 148rpx;
-				flex-shrink: 0;
-				text-align: right;
-				font-size: 28rpx;
-				font-family: PingFang SC;
-				font-weight: bold;
-				color: #FFFFFF;
-				line-height: 67rpx;
-			}
-
-			.lj-info {
-				width: 148rpx;
-				flex-grow: 1;
-				text-align: right;
-				font-size: 28rpx;
-				font-family: PingFang SC;
-				font-weight: bold;
-				color: #FFFFFF;
-				line-height: 67rpx;
-			}
+			color: #ffffff;
+			line-height: 38rpx;
 
-			.lj-copy {
-				flex-shrink: 0;
-				width: 148rpx;
-				font-size: 28rpx;
+			// opacity: 0.7;
+			.hj-item-val {
+				font-size: 41rpx;
+				padding-bottom: 10rpx;
 				font-family: PingFang SC;
 				font-weight: bold;
-				color: #08EDE7;
-				line-height: 67rpx;
-				// opacity: 0.75;
+				color: #08ede7;
+				line-height: 38rpx;
 			}
 		}
 	}
 
-	.tj-look {
-		width: 450rpx;
-		height: 75rpx;
-		background: linear-gradient(0deg, #FF7206, #FFDD7E);
-		box-shadow: 0px 2rpx 8rpx 0px rgba(207, 126, 57, 0.7);
-		border-radius: 38rpx;
-		margin: 55rpx auto 0;
-		font-size: 36rpx;
-		font-family: zihun164hao-fangyuehei;
+	.yj-nav {
+		width: 582rpx;
+		border-bottom: 2rpx solid #fff;
+		margin: auto;
+		font-size: 28rpx;
+		font-family: PingFang SC;
 		font-weight: bold;
-		color: #FFFFFF;
-		line-height: 75rpx;
-		text-align: center;
-	}
+		color: #97a1d2;
+		line-height: 38rpx;
 
-	.yj-wrap {
-		width: 680rpx;
-		height: 854rpx;
-		background: linear-gradient(180deg, #254FAB 0%, #230A8E 100%);
-		border-radius: 20rpx;
-
-		.yj-logo {
-			display: block;
-			width: 326rpx;
-			height: 16rpx;
-			margin: auto;
-			border-radius: 20px;
+		.nav-item {
+			padding: 20rpx 40rpx;
 		}
 
-		.yj-tit {
-			width: 100%;
-			padding-top: 60rpx;
-			padding-bottom: 15rpx;
-			text-align: center;
-			font-size: 46rpx;
-			font-family: zihun100hao-fangfangxianfengti;
-			font-weight: bold;
-			color: #FFFFFF;
-			// line-height: 38px;
-		}
-
-		.yj-hj {
-			width: 653rpx;
-			height: 147rpx;
-			background: #233B75;
-			border: 2rpx solid #08EDE7;
-			border-radius: 10rpx;
-			margin: 40rpx auto;
-
-			.yj-hj-item {
-				width: 50%;
-				text-align: center;
-				font-size: 28rpx;
-				font-family: PingFang SC;
-				font-weight: bold;
-				color: #FFFFFF;
-				line-height: 38rpx;
-
-				// opacity: 0.7;
-				.hj-item-val {
-					font-size: 41rpx;
-					padding-bottom: 10rpx;
-					font-family: PingFang SC;
-					font-weight: bold;
-					color: #08EDE7;
-					line-height: 38rpx;
-				}
-			}
+		.active {
+			color: #fff;
 		}
+	}
+}
 
-		.yj-nav {
-			width: 582rpx;
-			border-bottom: 2rpx solid #fff;
-			margin: auto;
-			font-size: 28rpx;
-			font-family: PingFang SC;
-			font-weight: bold;
-			color: #97a1d2;
-			line-height: 38rpx;
-
-			.nav-item {
-				padding: 20rpx 40rpx;
-			}
+.yj-info-wrap {
+	height: 362rpx;
+	width: 582rpx;
+	margin: auto;
 
-			.active {
-				color: #fff;
-			}
-		}
+	// background-color: #fff;
+	.yj-info-tit {
+		font-size: 28rpx;
+		font-family: PingFang SC;
+		font-weight: bold;
+		color: #ffffff;
+		line-height: 38rpx;
+		justify-content: space-between;
+		padding: 10rpx 0;
 	}
 
-	.yj-info-wrap {
-		height: 362rpx;
+	.yj-info-scroll {
+		// touch-action: none;
 		width: 582rpx;
-		margin: auto;
+		height: 320rpx;
 
-		// background-color: #fff;
-		.yj-info-tit {
+		// background-color: red;
+		.yj-info {
 			font-size: 28rpx;
 			font-family: PingFang SC;
 			font-weight: bold;
-			color: #FFFFFF;
+			color: #ffffff;
 			line-height: 38rpx;
-			justify-content: space-between;
-			padding: 10rpx 0;
-		}
-
-		.yj-info-scroll {
-			// touch-action: none;
-			width: 582rpx;
-			height: 320rpx;
-
-			// background-color: red;
-			.yj-info {
-				font-size: 28rpx;
-				font-family: PingFang SC;
-				font-weight: bold;
-				color: #FFFFFF;
-				line-height: 38rpx;
-			}
 		}
 	}
+}
 </style>