<template>
	<div id="index" class="indexClass" :style="mainStyle" prizeName="prizeName" v-lz-scroll>
		<div class="compontDiv">
			<component
				ref="dataRef"
				v-for="(value, key, index) in componentsData"
				:key="index"
				:is="value.config.name"
				:isTemplate="isTemplate"
				:styleData="value.config.styleData"
				:datas="value.config.defaultDatas"
				:keyData="value.config.keyData"
				@questionEmitBack="questionEmitBack"
			></component>
		</div>

		<!-- <div class="bottomDivAll" v-if="isShowBottomDiv"> -->
			<!-- <div>
        <img
          src="//img10.360buyimg.com/imgzone/jfs/t1/194391/37/24804/4894/628c738eEa1cb17bd/e87be1c62a6036c2.png"
        />
      </div> -->
			<!-- <div class="bottomPromptDiv">我也是有底线的哦~</div>
		</div> -->
	</div>
</template>

<script>
import Vue from 'vue';
import dataJson from '../../src/data.json';

import activity1Json from '../json/activity1Version2.json';
import activity1_2Json from '../json/activity1Version3.json'; //YSL累计签到抽奖

import activity2Json from '../json/activity2.json';
import activity3_1Json from '../json/activity3-1.json';
import activity3_2Json from '../json/activity3-2.json';
import activity2_2Json from '../json/activity2-2.json';
import activity4Json from '../json/activity4.json';
import activity5Json from '../json/activity5.json';
import activity6_1Json from '../json/activity6-1.json';
import activity6_2Json from '../json/activity6-2.json';
import activity6_3Json from '../json/activity6-3.json'; //YSL邀请入会有礼
import activity6_4Json from '../json/activity6-4.json'; //YSL邀请入会有礼
import activity7Json from '../json/activity7.json';
import activity7_1Json from '../json/activity7-1.json';
import activity8Json from '../json/activity8.json';
import activity9Json from '../json/activity9.json';
import activity10Json from '../json/activity10.json';
import activity15Json from '../json/activity15.json';
import activity14Json from '../json/activity14.json';
import activity20Json from '../json/activity20.json';
import activity21Json from '../json/activity21.json';
import activity21_1Json from '../json/activity21-1.json';
import activity21_3Json from '../json/activity21-3.json'; //YSL大转盘抽奖
import activity21_2Json from '../json/activity21-2.json';
import activity22Json from '../json/activity22.json';
import activity23Json from '../json/activity23.json';
import activity23_1Json from '../json/activity23-1.json';
import activity24Json from '../json/activity24.json';
import activity25Json from '../json/activity25.json';
import activity26Json from '../json/activity26.json';
import activity26_1Json from '../json/activity26-1.json';
import activity27Json from '../json/activity27.json';
import activity28Json from '../json/activity28.json';
import activityqaJson from '../json/qa.json';
import activityQuestionnaireJson from '../json/questionnaire.json';
import sharePictureVideoJson from '../json/sharePictureVideo.json';
import activity30Json from '../json/activity30.json';
import activity31Json from '../json/activity31.json';
import activity32Json from '../json/activity32.json';
import activity32_1Json from '../json/activity32-1.json';
import activity32_2Json from '../json/activity32-2.json';
import activity33Json from '../json/activity33.json';
import activity34Json from '../json/activity34.json';
import activity35Json from '../json/activity35.json';
import activity39Json from '../json/activity39.json'; //知识达人
import activity41Json from '../json/activity41.json'; //骰子
import activity42Json from '../json/activity42.json'; //刮刮乐
import activity43Json from '../json/activity43.json'; //分享有礼
import activity47Json from '../json/activity47.json'; //盖楼有礼

import activity38Json from '../json/activity38.json';
import activity40Json from '../json/activity40.json';
import activity45Json from '../json/activity45.json';
import activity45_1Json from '../json/activity45-1.json'; //YSL买家秀
import activity46Json from '../json/activity46.json';
import activity59Json from '../json/activity59.json'; //合成大赢家
import activity44Json from '../json/activity44.json'; //投票有礼
import activity48Json from '../json/activity48.json'; //限时抢券

import activity51Json from '../json/activity51.json';
import activity52Json from '../json/activity52.json'; //助力抢红包
import activity55Json from '../json/activity55.json'; //N元试用

import activity37Json from '../json/activity37.json';
import activity36Json from '../json/activity36.json';
import activity36_1Json from '../json/activity36-1.json'; //ysl购物车锦鲤
import activity36_2Json from '../json/activity36-2.json'; //ysl购物车锦鲤
import activity49Json from '../json/activity49.json'; //完善信息
import activity50Json from '../json/activity50.json'; //会员试用
import activity54Json from '../json/activity54.json'; //上上签

import activity57Json from '../json/activity57.json'; //让福袋飞
import activity60Json from '../json/activity60.json'; //优惠券营销

import activity53Json from '../json/activity53.json'; //关注商品有礼
import activity62Json from '../json/activity62.json'; //砸金蛋
import activity63Json from '../json/activity63.json'; //翻牌抽大奖
import activity64Json from '../json/activity64.json'; //前N名优惠
import activity65Json from '../json/activity65.json'; //专享价营销

import activity58Json from '../json/activity58.json'; //店铺礼包
import activity66Json from '../json/activity66.json'; //排行榜
import activity68Json from '../json/activity68.json'; //排行榜
import activity69Json from '../json/activity69.json'; //新的关注店铺有礼
import activity70Json from '../json/activity70.json'; //邀请入会有礼排行榜
import activity71Json from '../json/activity71.json';
import activity70_2Json from '../json/activity70-2.json';
import activity73Json from '../json/activity73.json';
import activity74Json from '../json/activity74.json';
import activity74_1Json from '../json/activity74-1.json';

import activity69_2Json from '../json/activity69-2.json'; //新的关注店铺有礼
import activity69_3Json from '../json/activity69-3.json'; //新的关注店铺有礼

import activity15_2Json from '../json/activity15-2.json';
import activityDz90322101401 from '../json/dz90322101401.json'; //【科颜氏】接物游戏研发
import activityKysDzJson from '../json/kysDz/christmasCard01.json'; //科颜氏圣诞贺卡定制
import activityLkDzJson from '../json/lkDz/gameMachine.json'; // 兰蔻老虎机定制
import activityYxDzJson from '../json/yxDz/blindbox.json'; //羽西抽盲盒
import activityysldrawDzJson from '../json/yslDz/draw.json';// ysl情人节抽奖
import { getQueryObject } from '../util/tools';
import { callShare4MiniProgram } from '../util/share';
// import a from '../components/logicalComponent/basicCom/basicMain.vue'
import 'vant/lib/index.css';
import store from '../store/store';
import { acReminder } from '../util/tools.js';
import apis1 from '../util/apis1.js';
let { getTemplate } = apis1;

export default {
	name: 'Index',
	data() {
		return {
			isShowBottomDiv: false, //是否显示底部标志
			isTemplate: false, //是否是B端的模板浏览
			mainStyle: {
				'padding-bottom': '40px',
				'min-height': '100vh',
				width: '100%'
			}, //整个背景样式
			componentsData: {}
		};
	},

	// 父beforeCreated ->父created ->父beforeMounted ->子beforeCreated ->子created ->子beforeMounted ->子mounted -> 父mounted

	created() {
		this.$forceUpdate();
		getTemplate(data => {
			// console.log("data11111111", JSON.parse(data.basicJson));

			this.activityType = sessionStorage.getItem('activityType');
			console.log('data11111111', this.activityType);
			this.templateId = sessionStorage.getItem('templateId');
			sessionStorage.setItem('customizedStatus', data.data.customizedStatus);
			sessionStorage.setItem('basicJson', data.data.basicJson);
			this.activityId = sessionStorage.getItem('activityId');
			
			if (this.activityType == 1 || this.activityType == 10001) {
				
				if (this.templateId == '202204181603ljqdysl002') {
				  var comAllData = activity1_2Json;
				} else {
				  var comAllData = '';
				  if (data.data.basicJson && data.data.basicJson!='{}') {
				    comAllData = JSON.parse(data.data.basicJson);
				  } else {
				    comAllData = activity1Json;
				  }
				}
			} else if (this.activityType == 2 || this.activityType == 10002) {
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
				  comAllData = JSON.parse(data.data.basicJson);
				} else {
				  comAllData = activity2Json;
				}
				if (this.templateId == '2020122808330ljqdsl02') {
				  var comAllData = activity2_2Json;
				}
			} else if (this.activityType == 3 || this.activityType == 10003) {
				if (this.templateId == '20201228083300ljqdsl011') {
					
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity3_1Json;
					}
				} else if (this.templateId == '20201228083300ljqdsl02') {
					var comAllData = activity3_2Json;
				} else {
					var comAllData = JSON.parse(data.data.basicJson);
				}
			} else if (this.activityType == 4 || this.activityType == 10004) {
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity4Json;
				}
			} else if (this.activityType == 5 || this.activityType == 10005) {
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity5Json;
				}
			} else if (this.activityType == 6 || this.activityType == 10006) {
				if (this.templateId == '20201228083300yqrhyl02') {
					var comAllData = activity6_2Json;
				} else if (this.templateId == '202204181615yqrhylysl01') {
					var comAllData = activity6_3Json;
				} else if (this.templateId == '20201228083300yqrhyl0111') {
					var comAllData = activity6_4Json;
				} else {
					
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity6_1Json;
					}
				}
			} else if (this.activityType == 7 || this.activityType == 10007) {
				if (this.templateId == '20201228083300yqrhkj02') {
					var comAllData = activity7_1Json;
				} else {
					
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity7Json;
					}
				}
			} else if (this.activityType == 10008) {
				// var comAllData = activity8Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity8Json;
				}
			} else if (this.activityType == 10009) {
				// var comAllData = activity9Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity9Json;
				}
			} else if (this.activityType == 10010) {
				// var comAllData = activity10Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity10Json;
				}
			} else if (this.activityType == 10011) {
				// 答题有礼
				// var comAllData = activityqaJson;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activityqaJson;
				}
			} else if (this.activityType == 10012) {
				// 问卷有礼
				// var comAllData = activityQuestionnaireJson;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activityQuestionnaireJson;
				}
			} else if (this.activityType == 10013) {
				// 分享图片视频有礼
				// var comAllData = sharePictureVideoJson;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = sharePictureVideoJson;
				}
			} else if (this.activityType == 10015) {
				// 评价有礼
				if (this.templateId == '202518190900ldati11') {
					var comAllData = activity15_2Json;
				} else {
					
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity15Json;
					}
				}
			} else if (this.activityType == 10014) {
				// 上传图片点赞
				// var comAllData = activity14Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity14Json;
				}
			} else if (this.activityType == 10020) {
				// 九宫格抽奖
				
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity20Json;
				}
			} else if (this.activityType == 10021) {
				// 大转盘抽奖
				if (this.templateId == '20220321151200dzpcj02') {
					//阿玛尼定制模板
					var comAllData = activity21_1Json;
				} else if (this.templateId == '20220418140200dzpysl03') {
					var comAllData = activity21_3Json;
				} else if (this.templateId == '20220418140400dzpcj04') {
					//阿玛尼定制模板
					var comAllData = activity21_2Json;
				} else {
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity21Json;
					}
					
				}
			} else if (this.activityType == 10022) {
				// 每日抢好礼
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity22Json;
				}
			} else if (this.activityType == 10023) {
				if (this.templateId == '2020122808330rlqd01') {
					//定制模板
					var comAllData = activity23_1Json;
				} else {
					// 日历签到
				
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity23Json;
					}
				}
			} else if (this.activityType == 10024) {
				// 加购有礼
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity24Json;
				}
			} else if (this.activityType == 10025) {
				// 关注店铺有礼
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity25Json;
				}
			} else if (this.activityType == 10030) {
				// 下单有礼
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity30Json;
				}
			} else if (this.activityType == 10031) {
				//扭蛋机抽奖
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity31Json;
				}
			} else if (this.activityType == 10026) {
				// 积分抽奖
				if (this.templateId == '20220422152500jfcj02') {
					//阿玛尼定制模板
					var comAllData = activity26_1Json;
				} else {
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity26Json;
					}
				}
			} else if (this.activityType == 10027) {
				// 积分猜PK
		
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity27Json;
				}
			} else if (this.activityType == 10028) {
				// 积分猜大小
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity28Json;
				}
			} else if (this.activityType == 10032) {
				if (this.templateId == '20220425142200jkyl01') {
					var comAllData = activity32_1Json;
				} else if (this.templateId == '20210621190900jkyl0291') {
					var comAllData = activity32_2Json;
				} else {
					console.log('1212121212',data.data.basicJson)
					// 集卡有礼
					
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity32Json;
					}
				}
				} else if (this.activityType == 10033) {
				// 组队瓜分奖品
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity33Json;
				}
			} else if (this.activityType == 10034) {
				// 裂变神券
			
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity34Json;
				}
			} else if (this.activityType == 10035) {
				// 读秒拼手速
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity35Json;
				}
			} else if (this.activityType == 10038) {
				// 拉人砍价
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity38Json;
				}
			} else if (this.activityType == 10055) {
				// N元试用
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity55Json;
				}
			} else if (this.activityType == 10039) {
				// 知识超人
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity39Json;
				}
			} else if (this.activityType == 10041) {
				// 骰子
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity41Json;
				}
			} else if (this.activityType == 10037) {
				// 粉丝互动
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity37Json;
				}
			} else if (this.activityType == 10036) {
				// 粉丝互动
				if (this.templateId == '202204181609gwcjlysl01') {
					var comAllData = activity36_1Json;
				} else if (this.templateId == '2021070590900gwcjl0891') {
					var comAllData = activity36_2Json;
				} else {
					
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity36Json;
					}
				}
			} else if (this.activityType == 10042) {
				// 刮刮乐
			
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity42Json;
				}
				 if(this.templateId == 'dz903235512'){
                 var comAllData = activityLkDzJson;
			}
			} else if (this.activityType == 10040) {
				// 7日签到
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity40Json;
				}
			} else if (this.activityType == 10047) {
				// 盖楼有礼
			
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity47Json;
				}
			} else if (this.activityType == 10045) {
				if (this.templateId == '202204181613mjxysl01') {
					var comAllData = activity45_1Json;
				} else {
					// 买家秀
					
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity45Json;
					}
				}
			} else if (this.activityType == 10046) {
				// 老虎机抽奖
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity46Json;
				}
			} else if (this.activityType == 10070) {
				// 合成大赢家
				if(this.templateId == '9440237d-5260-4010-974a-01b118809876'){
					var comAllData = data.data.customizedStatus == 2 ? JSON.parse(data.data.basicJson) : activity70_2Json;
				}else{
					var comAllData = data.data.customizedStatus == 2 ? JSON.parse(data.data.basicJson) : activity70Json;
				}
				
			} else if (this.activityType == 10044) {
				// 投票有礼
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity44Json;
				}
			} else if (this.activityType == 10043) {
				// 分享有礼
			
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity43Json;
				}
			} else if (this.activityType == 10048) {
				// 限时抢券
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity48Json;
				}
			} else if (this.activityType == 10051) {
				// 0元砍
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity51Json;
				}
			} else if (this.activityType == 10049) {
				// 完善信息有礼
				// var comAllData = activity49Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity49Json;
				}
			} else if (this.activityType == 10050) {
				// 会员试用
				// var comAllData = activity50Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity50Json;
				}
			} else if (this.activityType == 10052) {
				// 助力抢红包
			
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity52Json;
				}
			} else if (this.activityType == 10054) {
				// 上上签
		
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity54Json;
				}
			} else if (this.activityType == 10053) {
				// 关注商品有礼
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity53Json;
				}
			} else if (this.activityType == 10057) {
				// 让福袋飞
			
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity57Json;
				}
			} else if (this.activityType == 10060) {
				// 优惠券营销
				// var comAllData = activity60Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity60Json;
				}
			} else if (this.activityType == 10062) {
				// 砸金蛋
				// var comAllData = activity62Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity62Json;
				}
			} else if (this.activityType == 10063) {
				// 翻牌抽大奖
				// var comAllData = activity63Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity63Json;
				}
			} else if (this.activityType == 10064) {
				// 前N名优惠
				// var comAllData = activity64Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity64Json;
				}
			} else if (this.activityType == 10065) {
				// 专享价营销
				// var comAllData = activity65Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity65Json;
				}
			} else if (this.activityType == 10058) {
				// 优惠券营销
				// var comAllData = activity58Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity58Json;
				}
			} else if (this.activityType == 10066) {
				// 优惠券营销
				// var comAllData = activity66Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity66Json;
				}
			} else if (this.activityType == 10068) {
				// 邀请关注店铺有礼
				// var comAllData = activity68Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity68Json;
				}
			} else if (this.activityType == 10069) {
				// 新的关注店铺有礼
				if (this.templateId == 'ac8b6564-aa35-4ba5-aa62-55b0ce61b5d1') {
					var comAllData = activity69_2Json;
				} else if (this.templateId == '059c0910-b0cb-48a7-bc9d-4490c466933c') {
					var comAllData = activity69_3Json;
				} else {
					// var comAllData = activity69Json;
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity69Json;
					}
				}
			} else if (this.activityType == 10070) {
				// 邀请入会有礼排行榜
				if (this.templateId == '9440237d-5260-4010-974a-01b118809876') {
					var comAllData = activity70_2Json;
				} else {
					var comAllData = activity70Json;
				}
			} else if (this.activityType == 10071) {
				// 评价有礼
				
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity71Json;
				}
			} else if (this.activityType == 10073) {
				// var comAllData = activity73Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity73Json;
				}
			}else if (this.activityType == 10074) {
				// var comAllData = activity73Json;
				if (this.templateId == '202204181613mjxysl013') {
					var comAllData = activity74_1Json;
				}else{
					var comAllData = '';
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity74Json;
					}
				}
				
			} else if (this.activityType == 10059) {
				// var comAllData = activity59Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity59Json;
				}
			} else if (this.activityType == 10075) {
				// var comAllData = activity75Json;
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity75Json;
				}
			} else if (this.activityType == 10076) {
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity76Json;
				}
			} else if (this.activityType == 10077) {
				var comAllData = '';
				if (this.templateId == '20210824190900zxjyx0111222') {
					//定制模板
					var comAllData = activity77_1Json;
				} else {
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity77Json;
					}
				}
			} else if (this.activityType == 10078) {
				var comAllData = '';
				var actType = JSON.parse(data.data.taskJson);

				if (actType.needTaskList[0] == '103') {
					if (this.templateId == '20220902xfylmd0101') {
						var comAllData = activity78_3_3Json;
					} else {
						var comAllData = activity78_3Json;
					}
				} else if (actType.needTaskList[0] == '101') {
					if (this.templateId == '20210824190900zxjyx011127801') {
						var comAllData = activity78_1_1Json;
					} else {
						var comAllData = activity78_1Json;
					}
				} else if (actType.needTaskList[0] == '102') {
					if (this.templateId == '20220902xfylmj0101') {
						var comAllData = activity78_2_2Json;
					} else {
						var comAllData = activity78_2Json;
					}
				}
			} else if (this.activityType == 10079) {
				var comAllData = '';
				if (this.templateId == '202209051007jfdh1') {
					//双十一模版
					var comAllData = activity79_1Json;
				} else {
					if (data.data.basicJson && data.data.basicJson!='{}') {
						comAllData = JSON.parse(data.data.basicJson);
					} else {
						comAllData = activity79Json;
					}
				}
			} else if (this.activityType == 10080) {
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity80Json;
				}
			} else if (this.activityType == 10081) {
				var comAllData = '';
				if (data.data.basicJson && data.data.basicJson!='{}') {
					comAllData = JSON.parse(data.data.basicJson);
				} else {
					comAllData = activity81Json;
				}
			} else if (this.templateId == 'dingzhimuban') {
				//【科颜氏】接物游戏研发
				// activityDz90322101401
				var comAllData = activityDz90322101401;
			}else if(this.templateId == 'dingzhimubankys2022112401'){
				var comAllData = activityKysDzJson;
			} else if(this.templateId == 'dz903235512'){
                 var comAllData = activityLkDzJson;
			} else if(this.templateId == 'dingzhimubanyx2022120901'){
				var comAllData = activityYxDzJson;
			} else if(this.templateId == 'ysldz2022122701'){
				var comAllData = activityysldrawDzJson;
			}
			//动态注册组件
			comAllData.comMessage.forEach(app => {
				Vue.component(app.config.name, res => require([`@/${app.config.path}`], res).default);
			});
			this.mainStyle = comAllData.activityMessage.mainStyle;
			this.componentsData = comAllData.comMessage;

			if (this.activityType == 10014 || this.activityType == 10013 || this.activityType == 10058) {
				this.isShowBottomDiv = false;
			} else {
				var a = setTimeout(() => {
					this.isShowBottomDiv = true;
					if (this.templateId == 'dingzhimubankys2022112401') {
						this.isShowBottomDiv = false;
					}
					clearTimeout(a);
				}, 1000);
			}
		});
	},

	methods: {
		questionEmitBack() {
			console.log('zxczxczxcxc');
		},

		jdReminder() {
			let params = {
				acRemindTime: new Date().getTime()
			};

			acReminder(params, callBackData => {
				console.log(callBackData, '提醒回调');
			});
		}
	}
};
</script>

<style lang="scss" scoped="scoped">
.indexClass {
	.compontDiv {
		position: relative;
	}
	.bottomDivAll {
		// position: absolute;
		// bottom: 0;
		margin-top: 0.2rem;
		padding-bottom: 1rem;
		img {
			width: 1.5rem;
			height: 0.9rem;
		}
		.bottomPromptDiv {
			font-size: 0.24rem;
			font-family: PingFang SC;
			font-weight: 500;
			color: #000;
			line-height: 0.2rem;
		}
	}
}
</style>
