<template>
  <div>
    <!-- <div class="noticeBarOut" v-if="activityType == 10021 || 
          activityType == 10095 || activityType == 10094 ||
          activityType == 10093 || activityType == 10091 ||
          activityType == 10089 || activityType == 10086||
          activityType == 10084 || activityType == 10092 ||
          activityType == 10082 || activityType == 10059 ||
          activityType == 10020 || activityType == 10042 ||
          activityType == 10035 || activityType == 10046 ||
          activityType == 10031 || activityType == 10054 ||
          activityType == 10041 || activityType == 10062 ||
          activityType == 10063 || activityType == 10015 ||
          activityType == 10078 || activityType == 10030 ||
          activityType == 10077 || activityType == 10088 ||
          activityType == 10097 || activityType == 10106 ||
          activityType == 10098 || activityType == 10099 ||
          activityType == 10100 || activityType == 10098" >
      <van-notice-bar class="fd-top-tip" text="部分订单状态延迟，可在下单30分钟后重返活动查询"/>
      <div class="fd-top-tip">部分订单状态延迟，可在下单30分钟后重返活动查询</div>
      <div @click="goToOrderCheck()" class="checkBtns" v-if="activityType=='10015' || activityType=='10045'|| activityType=='10078'">订单校验</div>
    </div> -->
    <div class="noticeBarOutNew" v-if="activityType == 10021 ||
      activityType == 10095 || activityType == 10094 ||
      activityType == 10093 || activityType == 10091 ||
      activityType == 10089 || activityType == 10086 ||
      activityType == 10084 || activityType == 10092 ||
      activityType == 10082 || activityType == 10059 ||
      activityType == 10020 || activityType == 10042 ||
      activityType == 10035 || activityType == 10046 ||
      activityType == 10031 || activityType == 10054 ||
      activityType == 10041 || activityType == 10062 ||
      activityType == 10063 || activityType == 10015 ||
      activityType == 10078 || activityType == 10030 ||
      activityType == 10077 || activityType == 10088 ||
      activityType == 10097 || activityType == 10106 ||
      activityType == 10098 || activityType == 10099 ||
      activityType == 10100 || activityType == 10098">
      <div class="fd-top-tip">大促期间订单状态可能延迟～如未更新，请稍后返回活动查看~</div>
      <div @click="goToOrderCheck()" class="checkBtns"
        v-if="activityType == '10015' || activityType == '10045' || activityType == '10078'"></div>
    </div>
    <eggTwisterAnimation v-if="showEggTwisterAnimation" :isTemplate="isTemplate" />
    <img v-if="tigerGameScreenLaunch" style="width: 100vw; height: 100vh"
      src="http://bigitem.oss-cn-zhangjiakou.aliyuncs.com/bigitemfile/kaipingdonghua.gif" />
    <div id="index" class="indexClass" :class="{
      indexClass1: activityType == '10030',
      indexClass2: activityType == '10030' && activityId == '1737722120133578753',
    }" :style="mainStyle" prizeName="prizeName" v-lz-scroll v-show="!hiddenContent">
      <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" :style="bottomDivAllStyle">
        <!-- <div>
    <img
      src="//img10.360buyimg.com/imgzone/jfs/t1/194391/37/24804/4894/628c738eEa1cb17bd/e87be1c62a6036c2.png"
    />
  </div> -->
        <div class="bottomPromptDiv">我也是有底线的哦~</div>
      </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 activity1_3Json from "../json/activity1-3.json"; //YSL累计签到抽奖

import activity2Json from "../json/activity2.json";
import activity2_1Json from "../json/activity2-1.json";
import activity3_1Json from "../json/activity3-1.json";
import activity3_2Json from "../json/activity3-2.json";
import activity3_3Json from "../json/activity3-3.json";
import activity2_2Json from "../json/activity2-2.json";
import activity2_3Json from "../json/activity2-3.json";
import activity4Json from "../json/activity4.json";
import activity5Json from "../json/activity5.json";
import activity5_1Json from "../json/activity5-1.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 activity15_1Json from "../json/activity15-1.json";
import activity15_4Json from "../json/activity15-4.json";
import activity15_3Json from "../json/activity15-3.json";
import activity14Json from "../json/activity14.json";
import activity20Json from "../json/activity20.json";
import activity20_1Json from "../json/activity20-1.json"; //九宫格抽奖
import activity20_2Json from "../json/activity20-2.json";
import activity20_3Json from "../json/activity20-3.json";
import activity20_4Json from "../json/activity20-4.json";
import activity20_5Json from "../json/activity20-5.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 activity22_1Json from "../json/activity22-1.json";
import activity22_2Json from "../json/activity22-2.json";
import activity22_3Json from "../json/activity22-3.json";
import activity22_4Json from "../json/activity22-4.json";
import activity23Json from "../json/activity23.json";
import activity23_1Json from "../json/activity23-1.json";
import activity23_3Json from "../json/activity23-3.json";
import activity23_4Json from "../json/activity23-4.json";
import activity24Json from "../json/activity24.json";
import activity24_1Json from "../json/activity24-1.json";
import activity24_2Json from "../json/activity24-2.json";
import activity24_3Json from "../json/activity24-3.json";
import activity24_4Json from "../json/activity24-4.json";
import activity24_5Json from "../json/activity24-5.json";
import activity24_6Json from "../json/activity24-6.json";
import activity25Json from "../json/activity25.json";
import activity26Json from "../json/activity26.json";
import activity26_1Json from "../json/activity26-1.json";
import activity26_2Json from "../json/activity26-2.json";
import activity26_3Json from "../json/activity26-3.json";
import activity26_4Json from "../json/activity26-4.json";
import activity26_5Json from "../json/activity26-5.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 activity30_1Json from "../json/activity30-1.json";
import activity30_2Json from "../json/activity30-2.json";
import activity30_3Json from "../json/activity30-3.json";
import activity31Json from "../json/activity31.json";
import activity31_1Json from "../json/activity31-1.json";
import activity31_2Json from "../json/activity31-2.json";
import activity31_3Json from "../json/activity31-3.json";
import activity31_4Json from "../json/activity31-4.json";
import activity31_5Json from "../json/activity31-5.json";
import activity31_6Json from "../json/activity31-6.json";
import activity31_7Json from "../json/activity31-7.json";
import activity31_8Json from "../json/activity31-8.json";
import activity32Json from "../json/activity32.json"; //集卡有礼
import activity32_1Json from "../json/activity32-1.json";
import activity32_2Json from "../json/activity32-2.json";
import activity32_3Json from "../json/activity32-3.json";
import activity32_4Json from "../json/activity32-4.json";
import activity32_5Json from "../json/activity32-5.json";
import activity33Json from "../json/activity33.json";
import activity33_1Json from "../json/activity33-1.json"; //组队瓜分奖品
import activity33_2Json from "../json/activity33-2.json";
import activity33_3Json from "../json/activity33-3.json";
import activity33_4Json from "../json/activity33-4.json";
import activity33_5Json from "../json/activity33-5.json";
import activity34Json from "../json/activity34.json";
import activity35Json from "../json/activity35.json";
import activity35_1Json from "../json/activity35-1.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 activity43_2Json from "../json/activity43-2.json";
import activity47Json from "../json/activity47.json"; //盖楼有礼

import activity38Json from "../json/activity38.json";
import activity40Json from "../json/activity40.json"; //七日签到
import activity40_1Json from "../json/activity40-1.json";
import activity40_2Json from "../json/activity40-2.json";
import activity45Json from "../json/activity45.json";
import activity45_1Json from "../json/activity45-1.json"; //YSL买家秀
import activity45_2Json from "../json/activity45-2.json";
import activity46Json from "../json/activity46.json"; //老虎机
import activity46dx1Json from "../json/activity46-dx1.json";
import activity46_1Json from "../json/activity46-1.json";
import activity46_2Json from "../json/activity46-2.json";
import activity59Json from "../json/activity59.json"; //合成大赢家
import activity82Json from "../json/activity82.json"; //FlappyBird
import activity84Json from "../json/activity84.json"; //消消乐
import activity86Json from "../json/activity86.json"; //跳一跳
import activity89Json from "../json/activity89.json"; //2048
import activity91Json from "../json/activity91.json"; //物理弹球
import activity92Json from "../json/activity92.json"; //爆裂豆豆
import activity93Json from "../json/activity93.json"; //欢乐弹弹球
import activity94Json from "../json/activity94.json"; //幸运大灌篮
import activity95Json from "../json/activity95.json"; //城市跑酷

import activity44Json from "../json/activity44.json"; //投票有礼
import activity48Json from "../json/activity48.json"; //限时抢券
import activity48_1Json from "../json/activity48-1.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 activity36_3Json from "../json/activity36-3.json";
import activity36_5Json from "../json/activity36-5.json";
import activity36_6Json from "../json/activity36-6.json";
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 activity57_1Json from "../json/activity57-1.json"; //让福袋飞1212
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 activity70_1Json from "../json/activity70-1.json"; //邀请入会有礼排行榜
import activity70_3Json from "../json/activity70-3.json"; //邀请入会有礼排行榜
import activity70_4Json from "../json/activity70-4.json"; //邀请入会有礼排行榜
import activity70_5Json from "../json/activity70-5.json"; //邀请入会有礼排行榜
import activity70_6Json from "../json/activity70-6.json"; //邀请入会有礼排行榜
import activity71Json from "../json/activity71.json";
import activity70_2Json from "../json/activity70-2.json";
import activity73Json from "../json/activity73.json";
import activity75Json from "../json/activity75.json";
import activity75_1Json from "../json/activity75-1.json";
import activity75_2Json from "../json/activity75-2.json";
import activity76Json from "../json/activity76.json";
import activity77Json from "../json/activity77.json";
import activity77_1Json from "../json/activity77-1.json";
import activity77_2Json from "../json/activity77-2.json";
import activity77_3Json from "../json/activity77-3.json";
import activity77_4Json from "../json/activity77-4.json";
import activity77_5Json from "../json/activity77-5.json";
import activity78_1Json from "../json/activity78-1.json";
import activity78_2Json from "../json/activity78-2.json";
import activity78_3Json from "../json/activity78-3.json";
import activity78_4Json from "../json/activity78-4.json";
import activity78_5Json from "../json/activity78-5.json";
import activity78_6Json from "../json/activity78-6.json";
import activity78_1_1Json from "../json/activity78-1-1.json";
import activity78_2_2Json from "../json/activity78-2-2.json";
import activity78_3_3Json from "../json/activity78-3-3.json";
import activity78_1_1_1Json from "../json/activity78-1-1-1.json";
import activity78_2_2_2Json from "../json/activity78-2-2-2.json";
import activity78_3_3_3Json from "../json/activity78-3-3-3.json";
import activity79Json from "../json/activity79.json";
import activity79_1Json from "../json/activity79-1.json";
import activity79_2Json from "../json/activity79-2.json";
import activity79_3Json from "../json/activity79-3.json";
import activity80Json from "../json/activity80.json";
import activity81Json from "../json/activity81.json";
import activity81_1Json from "../json/activity81-1.json"; //资生堂定制
import activity69_2Json from "../json/activity69-2.json"; //新的关注店铺有礼
import activity69_3Json from "../json/activity69-3.json"; //新的关注店铺有礼
import activity83Json from "../json/activity83.json"; //新的裂变神券
import activity85Json from "../json/activity85.json"; //积分竞拍
import activity88Json from "../json/activity88.json"; //下单冲榜
import activity88_1Json from "../json/activity88-1.json"; //下单冲榜
import activity88_2Json from "../json/activity88-2.json"; //下单冲榜-七夕
import activity88_4Json from "../json/activity88-4.json"; //下单冲榜-七夕
import activity88_3Json from "../json/activity88-3.json"; //下单冲榜-七夕
import activity90Json from "../json/activity90.json"; //复购
// import activity96Json from "../json/activity96.json"; //下单阶梯有礼
import activity97Json from "../json/activity97.json"; //满额
import activity97_1Json from "../json/activity97-1.json"; //满额双11
import activity97_2Json from "../json/activity97-2.json"; //满额足球
import activity97_3Json from "../json/activity97-3.json"; //满额七夕
import activity97_4Json from "../json/activity97-4.json"; //满额七夕
import activity98Json from "../json/activity98.json"; //满次
import activity98_1Json from "../json/activity98-1.json"; //满次双11
import activity98_2Json from "../json/activity98-2.json"; //满次足球
import activity98_3Json from "../json/activity98-3.json"; //满次足球
import activity99Json from "../json/activity99.json"; //满件
import activity99_1Json from "../json/activity99-1.json"; //满件双11
import activity99_2Json from "../json/activity99-2.json"; //满件足球
import activity99_3Json from "../json/activity99-3.json"; //满件足球
import activity100Json from "../json/activity100.json"; //复购
import activity100_1Json from "../json/activity100-1.json"; //复购-七夕
import activity100_2Json from "../json/activity100-2.json"; //复购-双11
import activity15_2Json from "../json/activity15-2.json";
import activity30_4Json from "../json/activity30-4.json"; //下单有礼双11
import activity30_5Json from "../json/activity30-5.json"; //下单有礼双11
import activity30_6Json from "../json/activity30-6.json"; //下单有礼双11
import activity30_7Json from "../json/activity30-7.json"; //下单有礼双11
import activity30_8Json from "../json/activity30-8.json"; //下单有礼双11
import activity30_9Json from "../json/activity30-9.json"; //下单有礼双11
import activity30_10Json from "../json/activity30-10.json"; //下单有礼双11
import activity30_11Json from "../json/activity30-11.json"; //下单有礼双11
import activity30_12Json from "../json/activity30-12.json"; //下单有礼双11
import activity21_4Json from "../json/activity21-4.json"; //大转盘抽奖双11
import activity101Json from "../json/activity101.json"; //邀请好友享团购
import activity998Json from "../json/activity998.json"; //邀请好友享团购
import activity21_5Json from "../json/activity21-5.json"; //大转盘抽奖双12
import activity21_6Json from "../json/activity21-6.json"; //大转盘抽奖双12
import activity21_7Json from "../json/activity21-7.json"; //大转盘抽奖年货节1
import activity21_8Json from "../json/activity21-8.json"; //大转盘抽奖年货节2
import activity21_10Json from "../json/activity21-10.json"; //大转盘抽奖中秋
import activity21_11Json from "../json/activity21-11.json"; //大转盘抽奖情人节
import activity35_2Json from "../json/activity35-2.json"; //读秒拼手速黑金
import activity35_3Json from "../json/activity35-3.json"; //读秒拼手速粉红
import activity36_4Json from "../json/activity36-4.json"; //购物车锦鲤
import activity43_1Json from "../json/activity43-1.json"; //分享有礼
import activity43_3Json from "../json/activity43-3.json"; //分享有礼
import activity43_4Json from "../json/activity43-4.json"; //分享有礼
import activity43_5Json from "../json/activity43-5.json"; //分享有礼
import activity43_6Json from "../json/activity43-6.json"; //分享有礼
import activity21_12Json from "../json/activity21-12.json";
import activity21_13Json from "../json/activity21-13.json";
import activity21_14Json from "../json/activity21-14.json";
import activity20_6Json from "../json/activity20-6.json";
import activity20_7Json from "../json/activity20-7.json";
import activity20_8Json from "../json/activity20-8.json";
import activity23_5Json from "../json/activity23-5.json";
import activity23_6Json from "../json/activity23-6.json";
import activity15_5Json from "../json/activity15-5.json";
import activity15_6Json from "../json/activity15-6.json";
import activity15_7Json from "../json/activity15-7.json";
import activity15_8Json from "../json/activity15-8.json";
import activity69_4Json from "../json/activity69-4.json";
import activity69_5Json from "../json/activity69-5.json";
import activity69_6Json from "../json/activity69-6.json";
import activity21_15Json from "../json/activity21-15.json";
import activity21_16Json from "../json/activity21-16.json";
import activity21_17Json from "../json/activity21-17.json";
import activity21_18Json from "../json/activity21-18.json";
import activity21_19Json from "../json/activity21-19.json";
import activity21_20Json from "../json/activity21-20.json";
import activity21_21Json from "../json/activity21-21.json";
import activity21_22Json from "../json/activity21-22.json";
import activity21_23Json from "../json/activity21-23.json";
import activity21_24Json from "../json/activity21-24.json";
import activity21_25Json from "../json/activity21-25.json";
import activity103Json from "../json/activity103.json";
import activity104Json from "../json/activity104.json";
import activity106Json from "../json/activity106.json";
import activity107Json from "../json/activity107.json";
import activity107_1Json from "../json/activity107-1.json";
import activity108Json from "../json/activity108.json";

import { getQueryObject } from "../util/tools";
import { callShare4MiniProgram } from "../util/share";
import eggTwisterAnimation from "../components/logicalComponent/eggTwisterAnimation/eggTwisterAnimation.vue";
import "vant/lib/index.css";
import store from "../store/store";
import { acReminder } from "../util/tools.js";
import apis1 from "../util/apis1.js";
import { OrderCheckPopNewService } from "../util/hdzxtcomCreate.js";

let { getTemplate } = apis1;

export default {
  name: "Index",
  components: { eggTwisterAnimation },
  data() {
    return {
      activityType: 0,
      isShowBottomDiv: false, //是否显示底部标志
      isTemplate: false, //是否是B端的模板浏览
      bottomDivAllStyle: null,
      mainStyle: {
        "padding-bottom": "40px",
        "min-height": "100vh",
        width: "100%",
      }, //整个背景样式
      componentsData: {},
      showEggTwisterAnimation: false, //扭蛋机动画
      tigerGameScreenLaunch: false, //老虎机开屏动画
      hiddenContent: false, //扭蛋机动画播放时，先不加载内容
      activityId: "",
    };
  },
  // 父beforeCreated ->父created ->父beforeMounted ->子beforeCreated ->子created ->子beforeMounted ->子mounted -> 父mounted
  created() {
    this.$forceUpdate();
    getTemplate((data) => {
      // data.data.basicJson = ""
      // console.warn("data11111111", JSON.parse(data.data.basicJson));
      if (data.data.basicJson == '""') {
        data.data.basicJson = "";
      }
      this.activityType = sessionStorage.getItem("activityType");
      this.activityId = sessionStorage.getItem("activityId");
      console.log("data11111111", this.activityType);
      this.templateId = sessionStorage.getItem("templateId");
      sessionStorage.setItem("customizedStatus", data.data.customizedStatus);
      sessionStorage.setItem("basicJson", data.data.basicJson);
      sessionStorage.setItem("templatData1", JSON.stringify(data.data));
      if (this.activityType == 1 || this.activityType == 10001) {
        if (this.templateId == "202204181603ljqdysl002") {
          var comAllData = activity1_2Json;
        } else if (this.templateId == "20260316ljqdcj01") {
          var comAllData = activity1_3Json;
        } else {
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity1Json;
          }
        }
        // var comAllData = activity58Json
      } else if (this.activityType == 2 || this.activityType == 10002) {
        if (this.templateId == "2020122808330ljqdsl02") {
          var comAllData = activity2_2Json;
        } else if (this.templateId == "20201228083300lxqdsl02") {
          var comAllData = activity2_1Json;
        } else if (this.templateId == "10002250422lxqdyl01") {
          var comAllData = activity2_3Json;
        } else {
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity2Json;
          }
        }
      } else if (this.activityType == 3 || this.activityType == 10003) {
        if (this.templateId == "20201228083300ljqdsl011") {
          // var comAllData =
          //   data.data.customizedStatus == 2
          //     ? JSON.parse(data.data.basicJson)
          //     : activity3_1Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity3_1Json;
          }
        } else if (this.templateId == "20201228083300ljqdsl02") {
          var comAllData = activity3_2Json;
        } else if (this.templateId == "20260512083300ljqdsl011") {
          var comAllData = activity3_3Json;
        } else {
          // var comAllData = JSON.parse(data.data.basicJson);
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity3_1Json;
          }
        }
      } else if (this.activityType == 4 || this.activityType == 10004) {
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity4Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity4Json;
        }
      } else if (this.activityType == 5 || this.activityType == 10005) {
        if (this.templateId == "1000520250825yqrhcj01") {
          var comAllData = activity5_1Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            var comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            var comAllData = activity5Json;
          }
        }
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity5Json;
        // var comAllData = "";
      } 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 =
          //   data.data.customizedStatus == 2
          //     ? JSON.parse(data.data.basicJson)
          //     : activity6_1Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity6_1Json;
          }
        }
      } else if (this.activityType == 7 || this.activityType == 10007) {
        if (this.templateId == "20201228083300yqrhkj02") {
          var comAllData = activity7_1Json;
        } else {
          // var comAllData =
          //   data.data.customizedStatus == 2
          //     ? JSON.parse(data.data.basicJson)
          //     : activity7Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = sharePictureVideoJson;
        }
      } else if (this.activityType == 10015) {
        // 评价有礼
        if (this.templateId == "202518190900ldati11") {
          var comAllData = activity15_2Json;
        } else if (this.templateId == "7cf02b51-fe6f-4988-b35a-bd57108163ef") {
          var comAllData = activity15_1Json;
        } else if (this.templateId == "20ea03ff-ccbc-4428-9e78-d74064763e6e") {
          var comAllData = activity15_4Json;
        } else if (this.templateId == "78a52b5e-39a1-4f1a-8768-5b7f5954b44e") {
          var comAllData = activity15_3Json;
        } else if (this.templateId == "10015210314pjyl01") {
          var comAllData = activity15_5Json;
        } else if (this.templateId == "10015240606pjyl01") {
          var comAllData = activity15_6Json;
        } else if (this.templateId == "10015240618pjyl01") {
          var comAllData = activity15_7Json;
        } else if (this.templateId == "10015250422pjyl01") {
          var comAllData = activity15_8Json;
        } else {
          // var comAllData =
          //   data.data.customizedStatus == 2
          //     ? JSON.parse(data.data.basicJson)
          //     : activity15Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } 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);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity14Json;
        }
      } else if (this.activityType == 10020) {
        // 九宫格抽奖
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity20Json;
        // var comAllData = ''
        if (this.templateId == "eb3f3c92-399f-4d72-8cfa-6b9beee885f5") {
          //阿玛尼定制模板
          var comAllData = activity20_1Json;
        } else if (this.templateId == "2023120810020jggcj01") {
          var comAllData = activity20_2Json;
        } else if (this.templateId == "2023121110020jggcj01") {
          var comAllData = activity20_3Json;
        } else if (this.templateId == "2024010410020jggcj01") {
          var comAllData = activity20_4Json;
        } else if (this.templateId == "2024010910020jggcj01") {
          var comAllData = activity20_5Json;
        } else if (this.templateId == "1010020240305jggcj01") {
          var comAllData = activity20_6Json;
        } else if (this.templateId == "2024060610020jggcj01") {
          var comAllData = activity20_7Json;
        } else if (this.templateId == "2025091110020jggcj01") {
          var comAllData = activity20_8Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity20Json;
          }
        }
      } else if (this.activityType == 10021) {
        // 大转盘抽奖
        var comAllData = "";
        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 if (this.templateId == "33ed5a4c-5aae-4b99-8b92-85c1c2e5a784") {
          var comAllData = activity21_4Json;
        } else if (this.templateId == "2023111510021dzpcj01") {
          var comAllData = activity21_5Json;
        } else if (this.templateId == "2023112110021dzpcj01") {
          var comAllData = activity21_6Json;
        } else if (this.templateId == "2023120510021dzpcj01") {
          var comAllData = activity21_7Json;
        } else if (this.templateId == "2023120510021dzpcj02") {
          var comAllData = activity21_8Json;
        } else if (this.templateId == "2023120710021dzpcj01") {
          var comAllData = activity21_10Json;
        } else if (this.templateId == "2024010910021dzpcj01") {
          var comAllData = activity21_11Json;
        } else if (this.templateId == "1002240223dzpcj01") {
          var comAllData = activity21_12Json;
        } else if (this.templateId == "10021240305dzpcj01") {
          var comAllData = activity21_13Json;
        } else if (this.templateId == "10021240307dzpcj01") {
          var comAllData = activity21_14Json;
        } else if (this.templateId == "10021240320dzpcj01") {
          var comAllData = activity21_15Json;
        } else if (this.templateId == "10021240603dzpcj01") {
          var comAllData = activity21_16Json;
        } else if (this.templateId == "10021240605dzpcj01") {
          var comAllData = activity21_17Json;
        } else if (this.templateId == "10021240605dzpcj02") {
          var comAllData = activity21_18Json;
        } else if (this.templateId == "10021240619dzpcj01") {
          var comAllData = activity21_19Json;
        } else if (this.templateId == "10021240709dzpcj01") {
          var comAllData = activity21_20Json;
        } else if (this.templateId == "10021240924dzpcj01") {
          var comAllData = activity21_21Json;
        } else if (this.templateId == "33ed5a4c-5aae-4b99-8b92-85c1c2e5a785") {
          var comAllData = activity21_23Json;
        } else if (this.templateId == "10021250421zdpcj01") {
          var comAllData = activity21_24Json;
        } else if (this.templateId == "1002120251024dzpcj01") {
          var comAllData = activity21_25Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
            this.Cook.set("isBasicJson", true);
          } else {
            comAllData = activity21Json;
          }
        }
      } else if (this.activityType == 10022) {
        // 每日抢好礼
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity22Json;
        var comAllData = "";
        if (this.templateId == "20210518190900mrqhl01125") {
          comAllData = activity22_1Json;
        } else if (this.templateId == "2d2c54fa-fcc9-4d5f-87d7-47f9cb33454f") {
          comAllData = activity22_2Json;
        } else if (this.templateId == "1002224081401mrqhl") {
          comAllData = activity22_3Json;
        } else if (this.templateId == "1002224090301mrqhl") {
          comAllData = activity22_4Json;
        } else if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity22Json;
        }
      } else if (this.activityType == 10023) {
        if (this.templateId == "2020122808330rlqd01") {
          //定制模板
          var comAllData = activity23_1Json;
        } else if (this.templateId == "2023110801rlqd") {
          var comAllData = activity23_3Json;
        } else if (this.templateId == "2023110802rlqd") {
          var comAllData = activity23_4Json;
        } else if (this.templateId == "10023240311rlqd01") {
          var comAllData = activity23_5Json;
        } else if (this.templateId == "1002320250916rlqd01") {
          var comAllData = activity23_6Json;
        } else {
          // 日历签到
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            // comAllData = data.data.basicJson;
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity23Json;
          }
        }
      } else if (this.activityType == 10024) {
        // 加购有礼
        var comAllData = "";
        if (this.templateId == "c2af9114-85d5-4c31-ab61-201f370f0f2e") {
          comAllData = activity24_1Json;
        } else if (this.templateId == "100240709jgyl01") {
          comAllData = activity24_2Json;
        } else if (this.templateId == "202410024082601jgyl") {
          comAllData = activity24_3Json;
        } else if (this.templateId == "1002424090301jgyl") {
          comAllData = activity24_4Json;
        } else if (this.templateId == "1002420250916jgyl01") {
          comAllData = activity24_5Json;
        } else if (this.templateId == "1002420260506jgyl01") {
          comAllData = activity24_6Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            // comAllData = data.data.basicJson;
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity24Json;
          }
        }
      } else if (this.activityType == 10025) {
        // 关注店铺有礼
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity25Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity25Json;
        }
      } else if (this.activityType == 10030) {
        // 下单有礼
        var comAllData = "";
        if (this.templateId === "20210518190900lorder012") {
          comAllData = activity30_1Json;
        } else if (this.templateId === "8bc39312-025a-4c05-aaaaaaaaaaaa") {
          comAllData = activity30_2Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "d519c950-cae5-qixi-869b-3adfb2a2241e") {
          comAllData = activity30_3Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "9d5135cb-a5a0-42b5-a6ef-89b258742f0a") {
          comAllData = activity30_4Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "100302024082701xdyl") {
          comAllData = activity30_5Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "b1dc2400-e7f7-4ad3-8e2e-22f630fe416d") {
          comAllData = activity30_6Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "b1dc2400-e7f7-4ad3-8e2e-22f630fe416e") {
          comAllData = activity30_7Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "b1dc2400-e7f7-4ad3-8e2e-22f630fe416f") {
          comAllData = activity30_8Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "100302024082702xdyl") {
          comAllData = activity30_9Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "10030240617xdyl01") {
          comAllData = activity30_10Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "10030250422xdyl01") {
          comAllData = activity30_11Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else if (this.templateId === "10030251028xdyl01") {
          comAllData = activity30_12Json;
          sessionStorage.setItem("isBasicJson", 111);
        } else {
          if (data.data.basicJson && data.data.basicJson !== "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            // comAllData = data.data.basicJson;
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity30Json;
          }
        }
      } else if (this.activityType == 10031) {
        //扭蛋机抽奖
        var comAllData = "";
        if (this.templateId == "2023110601niudanji") {
          comAllData = activity31_1Json;
        } else if (this.templateId == "2023110602niudanji") {
          comAllData = activity31_2Json;
        } else if (this.templateId == "2023111701niudanji") {
          comAllData = activity31_3Json;
        } else if (this.templateId == "2023121301niudanji") {
          comAllData = activity31_4Json;
        } else if (this.templateId == "102024121801niudanji") {
          comAllData = activity31_5Json;
        } else if (this.templateId == "10031251028ndjcj01") {
          comAllData = activity31_6Json;
        } else if (this.templateId == "10031251030ndjcj01") {
          comAllData = activity31_7Json;
        } else if (this.templateId == "10031260424ndjcj01") {
          comAllData = activity31_8Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity31Json;
          }
        }
      } else if (this.activityType == 10026) {
        // 积分抽奖
        if (this.templateId == "20220422152500jfcj02") {
          //阿玛尼定制模板
          var comAllData = activity26_1Json;
        } else if (this.templateId == "20210518190900jfcj0112") {
          //618模板
          var comAllData = activity26_2Json;
        } else if (this.templateId == "1002620240924jfcj01") {
          //618模板
          var comAllData = activity26_3Json;
        } else if (this.templateId == "1002620241216jfcj01") {
          var comAllData = activity26_4Json;
        } else if (this.templateId == "1002620250825jfcj01") {
          var comAllData = activity26_5Json;
        } else {
          // var comAllData =
          //   data.data.customizedStatus == 2
          //     ? JSON.parse(data.data.basicJson)
          //     : activity26Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity26Json;
          }
        }
      } else if (this.activityType == 10027) {
        // 积分猜PK
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity27Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity27Json;
        }
      } else if (this.activityType == 10028) {
        // 积分猜大小
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity28Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } 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 if (this.templateId == "2023120610032JKYL01") {
          var comAllData = activity32_3Json;
        } else if (this.templateId == "100320710jkyl01") {
          var comAllData = activity32_4Json;
        } else if (this.templateId == "100320814jkyl01") {
          var comAllData = activity32_5Json;
        } else {
          // 集卡有礼
          // var comAllData =
          //   data.data.customizedStatus == 2
          //     ? JSON.parse(data.data.basicJson)
          //     : activity32Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity32Json;
          }
        }
        // const aa = () => import('../json/activity32.json')
        // console.log(aa,"jsonnnnnn")
        // var comAllData = data.data.customizedStatus == 2 ? JSON.parse(data.data.basicJson) : () => import('../json/activity32.json');
      } else if (this.activityType == 10033) {
        // 组队瓜分奖品
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity33Json;
        var comAllData = "";
        if (this.templateId == "10232311161003301zdgfjp") {
          comAllData = activity33_1Json;
        } else if (this.templateId == "10202401031003301zdgfjp") {
          comAllData = activity33_2Json;
        } else if (this.templateId == "10202401031003302zdgfjp") {
          comAllData = activity33_3Json;
        } else if (this.templateId == "10202401041003301zdgfjp") {
          comAllData = activity33_4Json;
        } else if (this.templateId == "10202401041003302zdgfjp") {
          comAllData = activity33_5Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity33Json;
          }
        }
      } else if (this.activityType == 10034) {
        // 裂变神券

        var comAllData = "";
        // comAllData = activity83Json;
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity34Json;
        }
      } else if (this.activityType == 10035) {
        // 读秒拼手速
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity35Json;
        var comAllData = "";
        if (this.templateId == "2023110801dmpss") {
          comAllData = activity35_1Json;
        } else if (this.templateId == "2023120701dmpss") {
          comAllData = activity35_2Json;
        } else if (this.templateId == "2023120702dmpss") {
          comAllData = activity35_3Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity35Json;
          }
        }
      } else if (this.activityType == 10038) {
        // 拉人砍价
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity38Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity38Json;
        }
      } else if (this.activityType == 10055) {
        // N元试用
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity55Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity55Json;
        }
      } else if (this.activityType == 10039) {
        // 知识超人
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity39Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity39Json;
        }
      } else if (this.activityType == 10041) {
        // 骰子
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity41Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity41Json;
        }
      } else if (this.activityType == 10037) {
        // 粉丝互动
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity37Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } 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 if (this.templateId == "20231113gwcjl01") {
          var comAllData = activity36_3Json;
        } else if (this.templateId == "2023121110036gwcjl01") {
          var comAllData = activity36_4Json;
        } else if (this.templateId == "2024010510036gwcjl01") {
          var comAllData = activity36_5Json;
        } else if (this.templateId == "102024092910036gwcjl01") {
          var comAllData = activity36_6Json;
        } else {
          // var comAllData =
          //   data.data.customizedStatus == 2
          //     ? JSON.parse(data.data.basicJson)
          //     : activity36Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity36Json;
          }
        }
      } else if (this.activityType == 10042) {
        // 刮刮乐
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity42Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity42Json;
        }
      } else if (this.activityType == 10040) {
        // 7日签到
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity40Json;
        var comAllData = "";
        if (this.templateId == "100402024010801qrqd01") {
          comAllData = activity40_1Json;
        } else if (this.templateId == "100402025071701") {
          comAllData = activity40_2Json;
        } else if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity40Json;
        }
      } else if (this.activityType == 10047) {
        // 盖楼有礼
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity47Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity47Json;
        }
      } else if (this.activityType == 10045) {
        if (this.templateId == "202204181613mjxysl01") {
          var comAllData = activity45_1Json;
        } else if (this.templateId == "20260512190900mjx011") {
          var comAllData = activity45_2Json;
        } else {
          // 买家秀
          // var comAllData =
          //   data.data.customizedStatus == 2
          //     ? JSON.parse(data.data.basicJson)
          //     : activity45Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity45Json;
          }
        }
      } else if (this.activityType == 10046) {
        // 老虎机抽奖
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity46Json;
        var comAllData = "";
        if (this.templateId == "2023122210046lhjcj01") {
          comAllData = activity46dx1Json;
        } else if (this.templateId == "20260316190900lhj01") {
          var comAllData = activity46_1Json;
        } else if (this.templateId == "20260427190900lhj01") {
          var comAllData = activity46_2Json;
        } else if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        }
        else {
          comAllData = activity46Json;
        }
      } else if (this.activityType == 10070) {
        // 邀请入会排行榜
        var comAllData = "";
        if (this.templateId == "20230217083300yqhyrh02") {
          comAllData = activity70_1Json;
        } else if (this.templateId == "7fab7995-298c-44a1-af5a-f79c520fa8eff1") {
          comAllData = activity70_3Json;
        } else if (this.templateId == "f32f0a03-9f59-45d2-8550-0bb1166162f3") {
          comAllData = activity70_4Json;
        } else if (this.templateId == "21416099-b235-4cb7-9286-cbe631f75728") {
          comAllData = activity70_5Json;
        } else if (this.templateId == "e99b8d9e-16a8-4a7c-9396-90d36a5b5e6c") {
          comAllData = activity70_6Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity70Json;
          }
        }
        // var comAllData = '';
        // if (data.data.basicJson && data.data.basicJson != '{}') {
        //   comAllData = JSON.parse(data.data.basicJson);
        // } else {
        //   comAllData = activity70Json;
        // }
        // var comAllData = data.data.customizedStatus == 2 ? JSON.parse(data.data.basicJson) : activity70Json;
        // var comAllData = ''
        // if (data.data.basicJson && data.data.basicJson != '{}') {
        //   comAllData = JSON.parse(data.data.basicJson)
        // } else {
        //   comAllData = activity70Json
        // }
      } else if (this.activityType == 10044) {
        // 投票有礼
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity44Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity44Json;
        }
      } else if (this.activityType == 10043) {
        // 分享有礼
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity43Json;
        var comAllData = "";
        if (this.templateId == "2023121110043fxyl01") {
          var comAllData = activity43_1Json;
        } else if (this.templateId == "2024010910043fxyl01") {
          var comAllData = activity43_2Json;
        } else if (this.templateId == "10202408281004301fxyl") {
          var comAllData = activity43_3Json;
        } else if (this.templateId == "10202409031004301fxyl") {
          var comAllData = activity43_4Json;
        } else if (this.templateId == "10202412171004301fxyl") {
          var comAllData = activity43_5Json;
        } else if (this.templateId == "202510043jdkjfxyldz01") {
          // var comAllData = activity43_6Json;
          comAllData = JSON.parse(data.data.basicJson);
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity43Json;
          }
        }
      } else if (this.activityType == 10048) {
        // 限时抢券
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity48Json;
        var comAllData = "";
        if (this.templateId == "20210714190900xsqq0112") {
          // 618
          comAllData = activity48_1Json;
        } else if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity48Json;
        }
      } else if (this.activityType == 10051) {
        // 0元砍
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity51Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity50Json;
        }
      } else if (this.activityType == 10052) {
        // 助力抢红包
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity52Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity52Json;
        }
      } else if (this.activityType == 10054) {
        // 上上签
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity54Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity54Json;
        }
      } else if (this.activityType == 10053) {
        // 关注商品有礼
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity53Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity53Json;
        }
      } else if (this.activityType == 10057) {
        // 让福袋飞
        // var comAllData =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity57Json;
        if (this.templateId == "2023112210057rfdf01") {
          var comAllData = activity57_1Json;
        } else {
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } 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 if (this.templateId == "100690240314gzdpyl") {
          var comAllData = activity69_4Json;
        } else if (this.templateId == "100690241126gzdpyl") {
          var comAllData = activity69_5Json;
        } else if (this.templateId == "100692025071701") {
          var comAllData = activity69_6Json;
        } else {
          // var comAllData = activity69Json;
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            // comAllData = data.data.basicJson;
            sessionStorage.setItem("isBasicJson", true);
          } 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 =
        //   data.data.customizedStatus == 2
        //     ? JSON.parse(data.data.basicJson)
        //     : activity71Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } 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);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity73Json;
        }
      } else if (this.activityType == 10059) {
        // var comAllData = activity59Json;
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity59Json;
        }
      } else if (this.activityType == 10082) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity82Json;
        }
      } else if (this.activityType == 10084) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity84Json;
        }
      } else if (this.activityType == 10086) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity86Json;
        }
      } else if (this.activityType == 10089) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity89Json;
        }
      } else if (this.activityType == 10091) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity91Json;
        }
      } else if (this.activityType == 10092) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity92Json;
        }
      } else if (this.activityType == 10093) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity93Json;
        }
      } else if (this.activityType == 10094) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity94Json;
        }
      } else if (this.activityType == 10095) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity95Json;
        }
      } else if (this.activityType == 10075) {
        if (this.templateId == "1007120251024zxjyx01") {
          var comAllData = activity75_1Json;
        } else if (this.templateId == "20210824190900zxjyx012") {
          var comAllData = activity75_2Json;
        } else {
          var comAllData = "";
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            // comAllData = data.data.basicJson;
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity75Json;
          }
        }
      } else if (this.activityType == 10076) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity76Json;
        }
      } else if (this.activityType == 10077) {
        var comAllData = "";
        if (this.templateId == "20210824190900zxjyx0111222") {
          //定制模板
          var comAllData = activity77_1Json;
        } else if (this.templateId == "20210824190900zxjyx011122") {
          var comAllData = activity77_2Json;
        } else if (this.templateId == "20210824190900zxjyx011123") {
          //618
          var comAllData = activity77_3Json;
        } else if (this.templateId == "20210824190900zxjyx0116931") {
          //七夕
          var comAllData = activity77_4Json;
        } else if (this.templateId == "100772024092401sgyl") {
          var comAllData = activity77_5Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity77Json;
          }
        }
      } else if (this.activityType == 10078) {
        var comAllData = "";
        var actType = JSON.parse(data.data.taskJson);

        if (
          actType.needTaskList[0] == "103" ||
          this.templateId == "20220902xfylmd01011"
        ) {
          if (this.templateId == "20220902xfylmd0101") {
            var comAllData = activity78_3_3Json;
          } else if (
            this.templateId == "20221125xfylmc" ||
            this.templateId == "20221125xfylmccrm"
          ) {
            var comAllData = activity78_6Json;
          } else if (this.templateId == "20220902xfylmcyl01011") {
            var comAllData = activity78_3_3_3Json;
          } else {
            var comAllData = activity78_3Json;
          }
        } else if (
          actType.needTaskList[0] == "101" ||
          this.templateId == "20210824190900zxjyx0111278011"
        ) {
          if (this.templateId == "20210824190900zxjyx011127801") {
            var comAllData = activity78_1_1Json;
          } else if (
            this.templateId == "2022112501xfylme" ||
            this.templateId == "2022112501xfylmecrm"
          ) {
            var comAllData = activity78_4Json;
          } else if (this.templateId == "20220902xfylmeyl01011") {
            var comAllData = activity78_1_1_1Json;
          } else {
            var comAllData = activity78_1Json;
          }
        } else if (actType.needTaskList[0] == "102") {
          if (
            this.templateId == "20220902xfylmj0101" ||
            this.templateId == "20220902xfylmj01011"
          ) {
            var comAllData = activity78_2_2Json;
          } else if (this.templateId == "20220902xfylmjyl01011") {
            var comAllData = activity78_2_2_2Json;
          } else if (
            this.templateId == "20221125xfylmj" ||
            this.templateId == "20221125xfylmjcrm"
          ) {
            var comAllData = activity78_5Json;
          } else {
            var comAllData = activity78_2Json;
          }
        }
      } else if (this.activityType == 10079) {
        var comAllData = "";
        if (this.templateId == "202209051007jfdh1") {
          //双十一模版
          var comAllData = activity79_1Json;
        } else if (this.templateId == "202209051007jfdh618") {
          //618模版
          var comAllData = activity79_2Json;
        } else if (this.templateId == "1007920250825jfdh01") {
          var comAllData = activity79_3Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity79Json;
          }
        }
      } else if (this.activityType == 10080) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity80Json;
        }
      } else if (this.activityType == 10081) {
        var comAllData = "";
        if (this.templateId == "aa680d37-47e2-48ce-af14-0670fd") {
          // 资生堂定制
          var comAllData = activity81_1Json;
        } else if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity81Json;
        }
      } else if (this.activityType == 10083) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity83Json;
        }
      } else if (this.activityType == 10085) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity85Json;
        }
      } else if (this.activityType == 10088) {
        var comAllData = "";
        if (this.templateId == "202108241235346011127812") {
          // 资生堂定制
          var comAllData = activity88_1Json;
        } else if (this.templateId == "ae6a7a01-62ea-62de-bd4a-7ba9401d93b5") {
          var comAllData = activity88_2Json;
        } else if (this.templateId == "20210824123534601112781") {
          comAllData = JSON.parse(data.data.basicJson)
          sessionStorage.setItem("isBasicJson", true);;
          // var comAllData = activity88_3Json;
        } else if (this.templateId == "2026031710088xdcb01") {
          var comAllData = activity88_4Json;
        } else if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity88Json;
        }
      } else if (this.activityType == 10090) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity90Json;
        }
      }
      // else if (this.activityType == 10096) {
      //   var comAllData = "";
      //   if (data.data.basicJson && data.data.basicJson != "{}") {
      //     comAllData = JSON.parse(data.data.basicJson);
      //     sessionStorage.setItem("isBasicJson", true);
      //   } else {
      //     comAllData = activity96Json;
      //   }
      // }
      else if (this.activityType == 10097) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          if (this.templateId == "2023041001xfylme") {
            comAllData = activity97_2Json;
          } else if (this.templateId == "20230410190900zxjyx011127801") {
            comAllData = activity97_1Json;
          } else if (this.templateId == "2023080101xfylme") {
            comAllData = activity97_3Json;
          } else if (this.templateId == "1009720250826meyl01") {
            comAllData = activity97_4Json;
          } else {
            comAllData = activity97Json;
          }
        }
      } else if (this.activityType == 10098) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          if (this.templateId == "20230410xfylmc") {
            comAllData = activity98_2Json;
          } else if (this.templateId == "20230410xfylmd0101") {
            comAllData = activity98_1Json;
          } else if (this.templateId == "10098200250826mcyl01") {
            comAllData = activity98_3Json;
          } else {
            comAllData = activity98Json;
          }
        }
      } else if (this.activityType == 10099) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          if (this.templateId == "20230410xfylmj") {
            comAllData = activity99_2Json;
          } else if (this.templateId == "20230410xfylmj0101") {
            comAllData = activity99_1Json;
          } else if (this.templateId == "1009920250826mjyl01") {
            comAllData = activity99_3Json;
          } else {
            comAllData = activity99Json;
          }
        }
      } else if (this.activityType == 10100) {
        var comAllData = "";
        if (this.templateId == "ef8a7b65-9a92-4e37-b164-01991dd6a932") {
          comAllData = activity100_1Json;
        } else if (this.templateId == "84ab96ef-3e23-484b-a8bc-741b120c7ffa") {
          comAllData = activity100_2Json;
        } else if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity100Json;
        }
      } else if (this.activityType == 10101) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity101Json;
        }
      } else if (this.activityType == 10103) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity103Json;
        }
      } else if (this.activityType == 10104) {
        var comAllData = "";
        comAllData = activity104Json;
        // if (data.data.basicJson && data.data.basicJson != "{}") {
        //   comAllData = JSON.parse(data.data.basicJson);
        //   sessionStorage.setItem("isBasicJson", true);
        // }else{
        //   comAllData = activity104Json;
        // }
      } else if (this.activityType == 10998) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity998Json;
        }
      } else if (this.activityType == 10106) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity106Json;
        }
      } else if (this.activityType == 10107) {
        var comAllData = "";
        if (this.templateId == "1010720260416dskj01") {
          var comAllData = activity107_1Json;
        } else {
          if (data.data.basicJson && data.data.basicJson != "{}") {
            comAllData = JSON.parse(data.data.basicJson);
            sessionStorage.setItem("isBasicJson", true);
          } else {
            comAllData = activity107Json;
          }
        }
      } else if (this.activityType == 10108) {
        var comAllData = "";
        if (data.data.basicJson && data.data.basicJson != "{}") {
          comAllData = JSON.parse(data.data.basicJson);
          sessionStorage.setItem("isBasicJson", true);
        } else {
          comAllData = activity108Json;
        }
      }

      //动态注册组件
      comAllData.comMessage.forEach((app) => {
        Vue.component(
          app.config.name,
          (res) => require([`@/${app.config.path}`], res).default
        );
      });
      this.mainStyle = comAllData.activityMessage.mainStyle;
      this.bottomDivAllStyle = comAllData.activityMessage.bottomDivAllStyle;
      this.componentsData = comAllData.comMessage;

      if (
        this.activityType == 10014 ||
        this.activityType == 10013 ||
        this.activityType == 10058 ||
        (this.activityType == 10021 &&
          this.templateId == "33ed5a4c-5aae-4b99-8b92-85c1c2e5a784") ||
        (this.activityType == 10015 &&
          this.templateId == "20ea03ff-ccbc-4428-9e78-d74064763e6e")
      ) {
        this.isShowBottomDiv = false;
      } else {
        var a = setTimeout(() => {
          this.isShowBottomDiv = true;
          clearTimeout(a);
        }, 1000);
      }
      //扭蛋机动画
      if (this.activityType == 10031 && this.templateId == "2023111701niudanji") {
        this.showEggTwisterAnimation = true;
        this.hiddenContent = true;
        setTimeout(() => {
          this.hiddenContent = false;
        }, 2000);
      }
      //年货节老虎机开屏动画
      if (this.activityType == 10046 && this.templateId == "2023122210046lhjcj01") {
        this.tigerGameScreenLaunch = true;
        this.hiddenContent = true;
        setTimeout(() => {
          this.hiddenContent = false;
        }, 3000);
        setTimeout(() => {
          this.tigerGameScreenLaunch = false;
        }, 3500);
      }
    });
  },

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

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

      acReminder(params, (callBackData) => {
        console.log(callBackData, "提醒回调");
      });
    },
    goToOrderCheck() {
      OrderCheckPopNewService.create(callBack => {
        OrderCheckPopNewService.close();
      });
    },
  },
};
</script>

<style lang="scss" scoped="scoped">
.indexClass {
  // height: 100%;

  .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;
    }
  }
}

.indexClass1 {
  min-height: 100vh !important;
}

.indexClass2 {
  background: #c73548 !important;
}

.noticeBarOut {
  width: 100%;
  height: .5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;

  .checkBtns {
    flex-shrink: 0;
    height: .5rem;
    line-height: .5rem;
    color: #3399ff;
    margin-left: .1rem;
    font-size: .28rem;
    text-decoration: underline;
  }

  .fd-top-tip {
    background: #000;
    color: red;
    padding-left: .1rem;
    height: 0.5rem;
    font-size: 0.26rem;
    flex-grow: 1;
    font-weight: bold;
    line-height: .5rem;
    text-align: left;
  }
}

.noticeBarOutNew {
  width: 100%;
  height: .5rem;
  display: flex;
  align-items: center;
  background-image: url(//img10.360buyimg.com/imgzone/jfs/t1/354816/30/2882/6240/6901b739F93e2cc7c/c104776c59486b1d.png);
  background-size: 100%;

  .fd-top-tip {
    color: red;
    padding-left: .5rem;
    height: 0.5rem;
    font-size: 0.2rem;
    flex-grow: 1;
    font-weight: bold;
    line-height: .5rem;
    text-align: left;
  }

  .checkBtns {
    height: .32rem;
    width: 1.03rem;
    background-image: url(//img10.360buyimg.com/imgzone/jfs/t1/339358/8/22916/6382/6901b916F746347aa/3c0078804c7e9f1a.png);
    background-size: 100%;
  }
}
</style>
