| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524 | 
							- <template>
 
- 	<view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 
- 		<u-navbar bgColor="transparent">
 
- 			<view class="u-nav-slot" slot="left" style="display: flex;background-color: transparent;">
 
- 				<image :src="imgBase+'home_logo.png'" style="width: 200rpx;height: 54rpx;margin-left: 12rpx;"></image>
 
- 			</view>
 
- 		</u-navbar>
 
- 		<image class="topbg" :src="imgBase+'home_top_bg.png'" mode="widthFix"></image>
 
- 		<view class="lunbo">
 
- 			<u-swiper
 
- 				:list="bannarList"
 
- 				@change="e => current = e.current"
 
- 				:autoplay="false"
 
- 				height="368rpx"
 
- 			>
 
- 				<template #indicator>
 
- 					<view class="indicator adf">
 
- 						<view class="indicator__dot" v-for="(item, index) in bannarList" :key="index"
 
- 							:class="[index === current && 'indicator__dot--active']">
 
- 						</view>
 
- 					</view>
 
- 				</template>
 
- 			</u-swiper>
 
- 		</view>
 
- 		<view class="preill adfacjb">
 
- 			<view class="preill-box">
 
- 				<view class="preill-box-title">我的PREILL评估:<span>{{3}}</span></view>
 
- 				<view class="preill-box-state adfacjb">
 
- 					<view class="preill-box-state-pre adfac grey">已完成:<span>{{2}}</span></view>
 
- 					<view class="preill-box-state-pre adfac yellow">待完成:<span>{{1}}</span></view>
 
- 				</view>
 
- 				<view class="preill-box-progress">
 
- 					<view class="preill-box-progress-current pbp-yellow" :style="{'width':(2/(2+1)*100)+'%'}"></view>
 
- 				</view>
 
- 			</view>
 
- 			<view class="preill-box">
 
- 				<view class="preill-box-title">我的PREILL报告:<span>{{3}}</span></view>
 
- 				<view class="preill-box-state adfacjb">
 
- 					<view class="preill-box-state-pre adfac green">我收到:<span>{{2}}</span></view>
 
- 					<view class="preill-box-state-pre adfac grey">我发送:<span>{{1}}</span></view>
 
- 				</view>
 
- 				<view class="preill-box-progress">
 
- 					<view class="preill-box-progress-current pbp-green" :style="{'width':(2/(2+1)*100)+'%'}"></view>
 
- 				</view>
 
- 			</view>
 
- 		</view>
 
- 		<view class="boxs adfacjb">
 
- 			<view class="boxs-pre bp1" @click="toTurn('/pages/dialog')">
 
- 				<view class="boxs-pre-title">AI督导对话</view>
 
- 				<view class="boxs-pre-tip">点击开始</view>
 
- 			</view>
 
- 			<view class="boxs-pre bp2">
 
- 				<view class="boxs-pre-title">人工报告解读</view>
 
- 				<view class="boxs-pre-tip">添加客服微信预约</view>
 
- 			</view>
 
- 		</view>
 
- 		<view class="common">
 
- 			<view class="common-title">常用功能</view>
 
- 			<view class="common-menu adf">
 
- 				<view class="common-menu-pre adffcac">
 
- 					<image :src="imgBase+'home_img_pinggu.png'"></image>
 
- 					<text>PREILL评估</text>
 
- 				</view>
 
- 				<view class="common-menu-pre adffcac">
 
- 					<image :src="imgBase+'home_img_baogao.png'"></image>
 
- 					<text>PREILL报告</text>
 
- 				</view>
 
- 				<view class="common-menu-pre adffcac" @click="toTurn('/pagesHome/questionnaire')">
 
- 					<image :src="imgBase+'home_img_guanli.png'"></image>
 
- 					<text>问卷管理</text>
 
- 				</view>
 
- 			</view>
 
- 		</view>
 
- 		<view class="new-user-free adffcacjc" v-if="newUserFreeShow">
 
- 			<view class="new-user-free-box1">
 
- 				<view class="new-user-free-box1-text">PERILL评估</view>
 
- 				<view class="new-user-free-box1-text" style="margin-top: 8rpx;">基础版免费体验1次</view>
 
- 			</view>
 
- 			<view class="new-user-free-box2 adffcac">
 
- 				<view class="new-user-free-box2-price adfacjb">
 
- 					<view class="new-user-free-box2-price-left adffc">
 
- 						<view class="new-user-free-box2-price-left-title">仅限个人创建使用</view>
 
- 						<view class="new-user-free-box2-price-left-tip">领取后1年有效</view>
 
- 					</view>
 
- 					<view class="new-user-free-box2-price-right adffcac">
 
- 						<view class="new-user-free-box2-price-right-top">1次</view>
 
- 						<view class="new-user-free-box2-price-right-bottom">原价99</view>
 
- 					</view>
 
- 				</view>
 
- 				<view class="new-user-free-box2-btn">免费体验</view>
 
- 			</view>
 
- 			<image class="new-user-free-close" :src="imgBase+'new_free_close.png'" @click="newUserFreeShow=false"></image>
 
- 		</view>
 
- 		<view class="kind-reminder adffcacjc" v-if="teamKindShow">
 
- 			<view class="kr-box adffcac">
 
- 				<image :src="imgBase+'remind_close.png'" @click="teamKindShow=false"></image>
 
- 				<view class="kr-title">温馨提示</view>
 
- 				<view class="kr-p" style="margin-top: 32rpx;">您尚未加入<span>(问卷ID:{{87999}})</span>的团队</view>
 
- 				<view class="kr-p">因此无法填写此问卷</view>
 
- 				<view class="kr-p">请联系问卷创建者<span>{{'刘怡然'}}</span>将您加入团队</view>
 
- 				<view class="kr-btn" @click="teamKindShow=false">我知道了</view>
 
- 			</view>
 
- 		</view>
 
- 		<view class="kind-reminder adffcacjc" v-if="questionnaireKindShow">
 
- 			<view class="kr-box adffcac">
 
- 				<image :src="imgBase+'remind_close.png'" @click="questionnaireKindShow=false"></image>
 
- 				<view class="kr-title">温馨提示</view>
 
- 				<view class="kr-p" style="margin-top: 32rpx;">您有一份<span>“PERILL团队评估初级”</span>问卷待完成,请及时填写,</view>
 
- 				<view class="kr-p">以便我们为您提供精准分析</view>
 
- 				<view class="kr-btn" @click="handleToFill">去填写</view>
 
- 			</view>
 
- 		</view>
 
- 		<Tabbar :tabbarIndex="0"></Tabbar>
 
- 	</view>
 
- </template>
 
- <script>
 
- 	import Tabbar from '@/components/CusTabbar/index.vue'
 
- 	export default {
 
- 		components:{ Tabbar },
 
- 		data(){
 
- 			return {
 
- 				current:0,
 
- 				bannarList:[
 
- 					this.$imgBase+'home_lb.png',
 
- 					this.$imgBase+'home_lb.png',
 
- 					this.$imgBase+'home_lb.png'
 
- 				],
 
- 				newUserFreeShow:false,
 
- 				teamKindShow:false,
 
- 				questionnaireKindShow:false,
 
- 			}
 
- 		},
 
- 		onLoad(options) {
 
- 			if(options.q){
 
- 				try{
 
- 					const decodedUrl = decodeURIComponent(options.q);
 
- 					const codeMatch = decodedUrl.match(/type=([^&]+)/);
 
- 					const stationCode = codeMatch ? codeMatch[1] : null;
 
- 					if(stationCode) uni.setStorageSync('channelType',stationCode)
 
- 				}catch(e){
 
- 					console.log(e,'e');
 
- 				}
 
- 			}
 
- 			
 
- 			if(uni.getStorageSync('token')){
 
- 				this.getWjList();
 
- 				this.getReportList();
 
- 			}
 
- 		},
 
- 		methods:{
 
- 			toTurn(url){
 
- 				if(!url) return 
 
- 				// if(url!=='/pages/dialog'&&!this.isLogin()) return
 
- 				uni.navigateTo({
 
- 					url
 
- 				})
 
- 			},
 
- 			getWjList(){
 
- 				this.$api.get('/core/teammember/que/listByUser').then(res=>{
 
- 					if(res.data.code!==0) return
 
- 					this.wjDwc = res.data.data.filter(d=>d.status===0).length;
 
- 					this.wjYwc = res.data.data.filter(d=>d.status===1).length;
 
- 				})
 
- 			},
 
- 			getReportList(){
 
- 				this.$api.get('/core/report/member/personalReportList').then(res=>{
 
- 					if(res.data.code!==0) return
 
- 					this.reportCount = res.data.data.length;
 
- 				})
 
- 			},
 
- 			handleToFill(){
 
- 				this.questionnaireKindShow = false;
 
- 			}
 
- 		}
 
- 	}
 
- </script>
 
- <style scoped lang="scss">
 
- 	::v-deep .indicator__dot{
 
- 		width: 12rpx;
 
- 		height: 12rpx;
 
- 		background: transparent;
 
- 		border: 2rpx solid #FFFFFF;
 
- 		border-radius: 6rpx;
 
- 		margin: 0 8rpx;
 
- 	}
 
- 	::v-deep .indicator__dot--active{
 
- 		width: 12rpx;
 
- 		height: 12rpx;
 
- 		background: #FFFFFF;
 
- 	}
 
- 	
 
- 	.tabPage{
 
- 		background: #F7F7F7;
 
- 		.topbg{
 
- 			width: 100%;
 
- 			height: 720rpx;
 
- 			position: fixed;
 
- 			top: 0;
 
- 			left: 0;
 
- 			right: 0;
 
- 		}
 
- 	
 
- 		.lunbo{
 
- 			width: 100%;
 
- 			height: 368rpx;
 
- 			margin-top: 30rpx;
 
- 			position: relative;
 
- 		}
 
- 	
 
- 		.preill{
 
- 			margin-top: 30rpx;
 
- 			position: relative;
 
- 			&-box{
 
- 				width: calc(50% - 11rpx);
 
- 				background: #FFFFFF;
 
- 				border-radius: 24rpx;
 
- 				padding: 36rpx 24rpx 26rpx;
 
- 				box-sizing: border-box;
 
- 				&-title{
 
- 					font-family: PingFang-SC, PingFang-SC;
 
- 					font-weight: bold;
 
- 					font-size: 28rpx;
 
- 					color: #002846;
 
- 					line-height: 28rpx;
 
- 					span{
 
- 						font-size: 36rpx;
 
- 					}
 
- 				}
 
- 				&-num{
 
- 					font-family: PingFang-SC, PingFang-SC;
 
- 					font-weight: 800;
 
- 					font-size: 40rpx;
 
- 					color: #002846;
 
- 					line-height: 40rpx;
 
- 					margin-top: 24rpx;
 
- 				}
 
- 				&-state{
 
- 					margin-top: 40rpx;
 
- 					&-pre{
 
- 						padding-left: 16rpx;
 
- 						position: relative;
 
- 						font-family: PingFangSC, PingFang SC;
 
- 						font-weight: 400;
 
- 						font-size: 24rpx;
 
- 						color: #657588;
 
- 						line-height: 20rpx;
 
- 						span{
 
- 							color: #1D2129;
 
- 						}
 
- 						&::before{
 
- 							content: '';
 
- 							width: 10rpx;
 
- 							height: 10rpx;
 
- 							border-radius: 5rpx;
 
- 							position: absolute;
 
- 							left: 0;
 
- 							top: 50%;
 
- 							margin-top: -5rpx;
 
- 						}
 
- 						&.grey{
 
- 							&::before{
 
- 								background: #DDE0E6;
 
- 							}
 
- 						}
 
- 						&.yellow{
 
- 							&::before{
 
- 								background: #FFD750;
 
- 							}
 
- 						}
 
- 						&.green{
 
- 							&::before{
 
- 								background: #31D1D6;
 
- 							}
 
- 						}
 
- 					}
 
- 				}
 
- 				&-progress{
 
- 					margin-top: 20rpx;
 
- 					width: 100%;
 
- 					height: 10rpx;
 
- 					background: #DFE5EE;
 
- 					border-radius: 5rpx;
 
- 					position: relative;
 
- 					&-current{
 
- 						height: 10rpx;
 
- 						border-radius: 4rpx;
 
- 						position: absolute;
 
- 						left: 0;
 
- 						top: 0;
 
- 					}
 
- 					.pbp-yellow{
 
- 						background: #FFD750;
 
- 					}
 
- 					.pbp-green{
 
- 						background: #31D1D6;
 
- 					}
 
- 				}
 
- 			}
 
- 		}
 
- 	
 
- 		.boxs{
 
- 			margin-top: 20rpx;
 
- 			position: relative;
 
- 			&-pre{
 
- 				width: calc(50% -11rpx);
 
- 				padding: 36rpx 124rpx 36rpx 24rpx;
 
- 				box-sizing: border-box;
 
- 				height: 184rpx;
 
- 				&-title{
 
- 					font-family: PingFang-SC, PingFang-SC;
 
- 					font-weight: bold;
 
- 					font-size: 32rpx;
 
- 					color: #002846;
 
- 					line-height: 45rpx;
 
- 				}
 
- 				&-tip{
 
- 					font-family: PingFangSC, PingFang SC;
 
- 					font-weight: 400;
 
- 					font-size: 24rpx;
 
- 					color: #657588;
 
- 					line-height: 33rpx;
 
- 					margin-top: 20rpx;
 
- 				}
 
- 				&.bp1{
 
- 					background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/home_box_bg1.png') no-repeat;
 
- 					background-size: 100% 100%;
 
- 				}
 
- 				&.bp2{
 
- 					background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/home_box_bg2.png') no-repeat;
 
- 					background-size: 100% 100%;
 
- 				}
 
- 			}
 
- 		}
 
- 	
 
- 		.common{
 
- 			margin-top: 20rpx;
 
- 			background: #FFFFFF;
 
- 			border-radius: 24rpx;
 
- 			padding: 40rpx 24rpx 48rpx;
 
- 			position: relative;
 
- 			&-title{
 
- 				font-family: PingFang-SC, PingFang-SC;
 
- 				font-weight: bold;
 
- 				font-size: 34rpx;
 
- 				color: #002846;
 
- 				line-height: 48rpx;
 
- 			}
 
- 			&-menu{
 
- 				margin-top: 45rpx;
 
- 				&-pre{
 
- 					width: calc(100% / 3);
 
- 					image{
 
- 						width: 62rpx;
 
- 						height: 62rpx;
 
- 					}
 
- 					text{
 
- 						font-family: PingFangSC, PingFang SC;
 
- 						font-weight: 400;
 
- 						font-size: 26rpx;
 
- 						color: #193D59;
 
- 						line-height: 26rpx;
 
- 						text-align: center;
 
- 						margin-top: 27rpx;
 
- 					}
 
- 				}
 
- 			}
 
- 		}
 
- 	
 
- 		.new-user-free{
 
- 			position: fixed;
 
- 			left: 0;
 
- 			right: 0;
 
- 			top: 0;
 
- 			bottom: 0;
 
- 			background: rgba(0, 0, 0, .6);
 
- 			z-index: 1000;
 
- 			&-box1{
 
- 				width: calc(100% - 180rpx);
 
- 				height: 280rpx;
 
- 				background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/new_free_title.png') no-repeat;
 
- 				background-size: 100% 100%;
 
- 				padding-left: 53rpx;
 
- 				&-text{
 
- 					font-family: SourceHanSansCN, SourceHanSansCN;
 
- 					font-weight: bold;
 
- 					font-size: 36rpx;
 
- 					color: #874016;
 
- 					line-height: 54rpx;
 
- 					margin-top: 140rpx;
 
- 				}
 
- 			}
 
- 			&-box2{
 
- 				width: calc(100% - 140rpx);
 
- 				background: #FFFFFF;
 
- 				border-radius: 24rpx;
 
- 				padding: 45rpx 25rpx 42rpx;
 
- 				box-sizing: border-box;
 
- 				&-price{
 
- 					width: 100%;
 
- 					height: 132rpx;
 
- 					background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/new_free_price.png') no-repeat;
 
- 					background-size: 100% 100%;
 
- 					padding: 27rpx 34rpx 27rpx 30rpx;
 
- 					box-sizing: border-box;
 
- 					&-left{
 
- 						&-title{
 
- 							font-family: PingFang-SC, PingFang-SC;
 
- 							font-weight: bold;
 
- 							font-size: 28rpx;
 
- 							color: #5E2E11;
 
- 							line-height: 36rpx;
 
- 						}
 
- 						&-tip{
 
- 							font-family: PingFangSC, PingFang SC;
 
- 							font-weight: 400;
 
- 							font-size: 24rpx;
 
- 							color: #808080;
 
- 							line-height: 32rpx;
 
- 							margin-top: 10rpx;
 
- 						}
 
- 					}
 
- 					&-right{
 
- 						&-top{
 
- 							font-family: PingFang-SC, PingFang-SC;
 
- 							font-weight: bold;
 
- 							font-size: 48rpx;
 
- 							color: #FF5A09;
 
- 							line-height: 67rpx;
 
- 						}
 
- 						&-bottom{
 
- 							font-family: PingFangSC, PingFang SC;
 
- 							font-weight: 400;
 
- 							font-size: 24rpx;
 
- 							color: #612D11;
 
- 							line-height: 33rpx;
 
- 							margin-top: 3rpx;
 
- 						}
 
- 					}
 
- 				}
 
- 				&-btn{
 
- 					width: calc(100% - 170rpx);
 
- 					height: 80rpx;
 
- 					border-radius: 40rpx;
 
- 					background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/new_free_btn.png') no-repeat;
 
- 					background-size: 100% 100%;
 
- 					font-family: PingFang-SC, PingFang-SC;
 
- 					font-weight: bold;
 
- 					font-size: 32rpx;
 
- 					color: #5E2E11;
 
- 					line-height: 80rpx;
 
- 					text-align: center;
 
- 					letter-spacing: 2rpx;
 
- 					margin-top: 38rpx;
 
- 				}
 
- 			}
 
- 			&-close{
 
- 				width: 64rpx;
 
- 				height: 64rpx;
 
- 				margin-top: 48rpx;
 
- 			}
 
- 		}
 
- 	
 
- 		.kind-reminder{
 
- 			position: fixed;
 
- 			left: 0;
 
- 			right: 0;
 
- 			top: 0;
 
- 			bottom: 0;
 
- 			z-index: 1000;
 
- 			background: rgba(0, 0, 0, .6);
 
- 			.kr-box{
 
- 				width: calc(100% - 100rpx);
 
- 				padding: 54rpx 60rpx 48rpx;
 
- 				box-sizing: border-box;
 
- 				background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/remind_bg.png') no-repeat;
 
- 				background-size: 100% 100%;
 
- 				position: relative;
 
- 				image{
 
- 					width: 48rpx;
 
- 					height: 48rpx;
 
- 					position: absolute;
 
- 					top: 40rpx;
 
- 					right: 30rpx;
 
- 				}
 
- 				.kr-title{
 
- 					font-family: PingFang-SC, PingFang-SC;
 
- 					font-weight: bold;
 
- 					font-size: 36rpx;
 
- 					color: #002846;
 
- 					line-height: 56rpx;
 
- 					text-align: center;
 
- 				}
 
- 				.kr-p{
 
- 					font-family: PingFangSC, PingFang SC;
 
- 					font-weight: 400;
 
- 					font-size: 30rpx;
 
- 					color: #002846;
 
- 					line-height: 48rpx;
 
- 					text-align: center;
 
- 					span{
 
- 						font-weight: bold;
 
- 						margin: 0 10rpx;
 
- 					}
 
- 				}
 
- 				.kr-btn{
 
- 					width: calc(100% - 80rpx);
 
- 					height: 88rpx;
 
- 					background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
 
- 					border-radius: 44rpx;
 
- 					font-family: PingFang-SC, PingFang-SC;
 
- 					font-weight: bold;
 
- 					font-size: 32rpx;
 
- 					color: #FFFFFF;
 
- 					line-height: 88rpx;
 
- 					text-align: center;
 
- 					letter-spacing: 2rpx;
 
- 					margin-top: 66rpx;
 
- 				}
 
- 			}
 
- 		}
 
- 	}
 
- </style>
 
 
  |