| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 | 
							- <template>
 
- 	<view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
 
- 		<cus-header title='发布问卷' :showback="false"></cus-header>
 
- 		<image :style="{'top':mt+'px'}" :src="imgBase+'publish_bg.png'" mode="widthFix"></image>
 
- 		<div class="list">
 
- 			<div class="list-item adfacjb" v-for="(item,index) in list" :key="index" @click="handleTurnPage(item)">
 
- 				<div class="list-item-left">
 
- 					<div class="list-item-left-title">{{item.title}}</div>
 
- 					<div class="list-item-left-type">{{typeDict[item.type]||'默认版'}}</div>
 
- 				</div>
 
- 				<image class="list-item-right" :src="imgBase+'publish_arrow_right.png'" v-if="item.type<3"></image>
 
- 			</div>
 
- 		</div>
 
- 		<div class="dialog adffcacjc" v-if="buyShow">
 
- 			<div class="dialog-box adffcac" :class="{'zyb':type==2}">
 
- 				<image :src="imgBase+'new_free_close.png'" @click="buyShow=false"></image>
 
- 				<div class="dialog-box-list adf">
 
- 					<div class="dialog-box-list-item adffcac" v-for="(item,index) in buyImgList" :key="index">
 
- 						<image :src="item.img"></image>
 
- 						<text>{{item.text}}</text>
 
- 					</div>
 
- 				</div>
 
- 				<div class="dialog-box-btn" @click="handleBuy">立即购买</div>
 
- 			</div>
 
- 		</div>
 
- 		<Notice :show="noticeShow" @close="noticeShow=false" @handleKnow="handleKnow"></Notice>
 
- 		<Tabbar :tabbarIndex="1"></Tabbar>
 
- 	</view>
 
- </template>
 
- <script>
 
- 	import Tabbar from '@/components/CusTabbar/index.vue'
 
- 	import Notice from '@/components/CusNotice/index.vue'
 
- 	export default {
 
- 		components:{ Tabbar, Notice },
 
- 		data(){
 
- 			return {
 
- 				questionnaireId:'',
 
- 				list:[],
 
- 				type:1,
 
- 				typeDict:{
 
- 					1:'基础版',
 
- 					2:'专业版',
 
- 					3:'专家版,敬请期待'
 
- 				},
 
- 				buyShow:false,
 
- 				buyImgList:[
 
- 					{img:this.$imgBase+'buy_img1.png',text:'全球200+客户'},
 
- 					{img:this.$imgBase+'buy_img2.png',text:'企业正念'},
 
- 					{img:this.$imgBase+'buy_img3.png',text:'国际教练专业认证'},
 
- 					{img:this.$imgBase+'buy_img4.png',text:'4A领导力'}
 
- 				],
 
- 				noticeShow:false,
 
- 			}
 
- 		},
 
- 		onLoad(options) {
 
- 			this.getList()
 
- 		},
 
- 		methods:{
 
- 			getList(){
 
- 				this.$api.get('/core/questionnaire/list').then(({data:res})=>{
 
- 					if(res.code!==0) return this.$showToast(res.msg)
 
- 					this.list = res.data
 
- 				})
 
- 			},
 
- 			handleTurnPage(item){
 
- 				if(item.type==3) return this.$showToast('敬请期待专家版~')
 
- 				this.questionnaireId = item.id;
 
- 				this.type = item.type;
 
- 				// this.buyShow = true;
 
- 				this.noticeShow = true;
 
- 			},
 
- 			handleBuy(){
 
- 				uni.navigateTo({
 
- 					url:'/pagesPublish/rechargeCenter'
 
- 				})
 
- 			},
 
- 			handleKnow(){
 
- 				this.noticeShow = false;
 
- 				uni.navigateTo({
 
- 					url:'/pagesPublish/fillTeamInfo?questionnaireId='+this.questionnaireId
 
- 				})
 
- 			}
 
- 		}
 
- 	}
 
- </script>
 
- <style scoped lang="scss">
 
- 	.tabPage{
 
- 		padding: 0;
 
- 		
 
- 		&>image{
 
- 			width: 100%;
 
- 			position: absolute;
 
- 			left: 0;
 
- 			right: 0;
 
- 		}
 
- 		
 
- 		.list{
 
- 			margin-top: 369rpx;
 
- 			position: relative;
 
- 			padding: 0 24rpx;
 
- 			&-item{
 
- 				margin-top: 20rpx;
 
- 				background: #FFFFFF;
 
- 				border-radius: 24rpx;
 
- 				padding: 40rpx 30rpx;
 
- 				&:first-child{
 
- 					margin-top: 0;
 
- 				}
 
- 				&-left{
 
- 					width: calc(100% - 50rpx);
 
- 					padding-right: 30rpx;
 
- 					box-sizing: border-box;
 
- 					&-title{
 
- 						font-family: PingFang-SC, PingFang-SC;
 
- 						font-weight: bold;
 
- 						font-size: 30rpx;
 
- 						color: #002846;
 
- 						line-height: 42rpx;
 
- 						text-overflow: ellipsis;
 
- 						overflow: hidden;
 
- 						white-space: nowrap;
 
- 					}
 
- 					&-type{
 
- 						background: #FFF7DC;
 
- 						border-radius: 8rpx;
 
- 						margin-top: 20rpx;
 
- 						padding: 2rpx 13rpx;
 
- 						font-family: PingFangSC, PingFang SC;
 
- 						font-weight: 400;
 
- 						font-size: 24rpx;
 
- 						color: #BA9B31;
 
- 						line-height: 33rpx;
 
- 						letter-spacing: 2rpx;
 
- 						display: inline-block;
 
- 					}
 
- 				}
 
- 				&-right{
 
- 					width: 50rpx;
 
- 					height: 50rpx;
 
- 				}
 
- 			}
 
- 		}
 
- 	
 
- 		.dialog{
 
- 			position: fixed;
 
- 			left: 0;
 
- 			right: 0;
 
- 			top: 0;
 
- 			bottom: 0;
 
- 			z-index: 1000;
 
- 			background: rgba(0, 0, 0, .6);
 
- 			
 
- 			&-box{
 
- 				width: calc(100% - 48rpx);
 
- 				background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/buy_bg.png') no-repeat;
 
- 				background-size: 100% 100%;
 
- 				padding: 308rpx 30rpx 40rpx;
 
- 				box-sizing: border-box;
 
- 				position: relative;
 
- 				&.zyb{
 
- 					background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/buy_bg_zyb.png') no-repeat;
 
- 					background-size: 100% 100%;
 
- 				}
 
- 				&>image{
 
- 					width: 48rpx;
 
- 					height: 48rpx;
 
- 					position: absolute;
 
- 					top: 0;
 
- 					right: 30rpx;
 
- 				}
 
- 				&-list{
 
- 					width: 100%;
 
- 					justify-content: space-between;
 
- 					&-item{
 
- 						width: calc(25% - 16rpx);
 
- 						image{
 
- 							width: 80rpx;
 
- 							height: 80rpx;
 
- 						}
 
- 						text{
 
- 							font-family: PingFangSC, PingFang SC;
 
- 							font-weight: 400;
 
- 							font-size: 22rpx;
 
- 							color: #6F4611;
 
- 							line-height: 30rpx;
 
- 							text-align: center;
 
- 							margin-top: 24rpx;
 
- 						}
 
- 					}
 
- 				}
 
- 				&-btn{
 
- 					width: calc(100% - 70rpx);
 
- 					height: 88rpx;
 
- 					background: linear-gradient( 90deg, #EBB56C 0%, #FCEAD0 100%);
 
- 					border-radius: 44rpx;
 
- 					margin-top: 27rpx;
 
- 					font-family: PingFang-SC, PingFang-SC;
 
- 					font-weight: bold;
 
- 					font-size: 32rpx;
 
- 					color: #6F4611;
 
- 					line-height: 88rpx;
 
- 					text-align: center;
 
- 					letter-spacing: 2rpx;
 
- 				}
 
- 			}
 
- 		}
 
- 	}
 
- </style>
 
 
  |