import Vue from "vue";

import signPromptCom from "../components/basisComponent/signPrompt/signPrompt.vue";
import signPromptCom1 from "../components/basisComponent/signPrompt/signPrompt1.vue";
import myPrizePopCom from "../components/basisComponent/popCom/myPrizePop.vue";
import acRulePopCom from "../components/basisComponent/popCom/rulePop.vue";
import shareFrinendPopCom from "../components/basisComponent/popCom/shareFriendPop.vue";
import shareFrinendPopCom10070 from "../components/basisComponent/popCom/shareFriendPop10070.vue";
import shareFollowShopPopCom from "../components/basisComponent/popCom/shareFollowShopPop.vue";
import addressPopCom from "../components/basisComponent/popCom/addressPop.vue";
import logisticsPopCom from "../components/basisComponent/popCom/logisticsPop.vue";
import prizeResultPopCom from "../components/basisComponent/drawPrizeResult/acquirething.vue";
import prizeResultRankPopCom from "../components/basisComponent/drawPrizeResult/acquirethingRank.vue";
import snapdragonPrizeResultPopCom from "../components/basisComponent/drawPrizeResult/acquirethingSnapdragon.vue";
import addBuyErrDialog from "../components/basisComponent/drawPrizeResult/addBuyErrDialog.vue";
import noPrizeResultPopCom from "../components/basisComponent/drawPrizeResult/thanksjion.vue";
import soonerOrLaterPopCom from "../components/basisComponent/drawPrizeResult/soonerOrLater.vue";
import noPrizeFinishedPopCom from "../components/basisComponent/drawPrizeResult/prizeFinished.vue";
import clickFollowShop from "../components/basisComponent/popCom/clickFollowShop.vue";
import joinMembershipPopCom from "../components/basisComponent/joinMemeber/join.vue";
import joinMemberPop1 from "../components/basisComponent/joinMemeber/joinMemberPage.vue";
import bargainMainPopCom from "../components/logicalComponent/bargainMain/bargainMain.vue";
import bargainMemberPopCom from "../components/basisComponent/joinMemeber/bargainmember.vue";
import toastPopCom from "../components/basisComponent/toast/toast.vue";
import joinVip from "../components/basisComponent/joinMemeber/joinVip.vue";
import orderGiftPopCom from "../components/basisComponent/popCom/orderGiftPop.vue";
import repeatOrderGiftPopCom from "../components/basisComponent/popCom/repeatOrderGiftPop.vue";
import repeatOrderGiftPopFailCom from "../components/basisComponent/popCom/repeatOrderGiftPopFail.vue";
import repeatOrderCheckPopCom from "../components/basisComponent/popCom/repeatOrderCheckPop.vue";
import couponTeamPopCom from "../components/basisComponent/popCom/couponTeamPop.vue";
import drawCardPopCom from "../components/basisComponent/popCom/drawCardPop.vue";
import drawCardPopCom1 from "../components/basisComponent/popCom/drawCardPop1.vue";
import bargainMemberPopCom1 from "../components/basisComponent/joinMemeber/bargainmember1.vue";
import joinVip1 from "../components/basisComponent/joinMemeber/joinVip1.vue";

import activityOver from "../components/logicalComponent/helpPopup/activityOver.vue";
import helpPopup from "../components/logicalComponent/helpPopup/helpPopup.vue";
import shoppingCartfriendPop from "../components/logicalComponent/shoppingCartfriendPop/shoppingCartfriendPop.vue";
import addSkuHelpFriend from "../components/logicalComponent/addSkuHelpFriendPopup/addSkuHelpFriend.vue";
import bigWinnerHelpFriend from "../components/logicalComponent/addSkuHelpFriendPopup/bigWinnerHelpFriend.vue";
import fansFollowShopPopCom from "../components/basisComponent/popCom/fansFollowShopPop.vue";
import addSkuPopCom from "../components/basisComponent/popCom/addSkuPop.vue";
import fansRulePopCom from "../components/basisComponent/popCom/fansRulePop.vue";
import fansActivityRemindPopCom from "../components/basisComponent/popCom/fansActivityRemindPop.vue";
import collectCouponsPopCom from "../components/basisComponent/popCom/collectCouponsPop.vue";
import hbFriendsHelpPopCom from "../components/basisComponent/popCom/hbFriendsHelpPop.vue";
import hbPrizePopCom from "../components/basisComponent/popCom/hbPrizePop.vue";
import orderGiftFollowShopPopCom from "../components/basisComponent/popCom/orderGiftFollowShopPop.vue";
import couponFollowShopPopCom from "../components/basisComponent/popCom/couponFollowShopPop.vue";
import orderCheckPopCom from "../components/basisComponent/popCom/orderCheckPop.vue";
import myOrderPrizePop from "../components/basisComponent/popCom/myOrderPrizePop.vue";
import orderSuccessPopCom from "../components/basisComponent/popCom/orderSuccessPop.vue";
import orderAddressPopCom from "../components/basisComponent/popCom/orderAddressPop.vue";
import fansNoPrizePopCom from "../components/basisComponent/popCom/fansNoPrizePop.vue";
import readSecondsSuccessPopCom from "../components/basisComponent/popCom/readSecondsSuccessPop.vue";

import winnerRecordCom from "../components/logicalComponent/winnersRecord/winnerRecordDialog.vue";
import swWishLamp from "../components/basisComponent/lightLamp/swWishLamp.vue";
import wishLamp from "../components/basisComponent/lightLamp/wishLamp.vue";
import winPrize from "../components/basisComponent/winPrizeDialog/winPrize.vue";
import notWinPrize from "../components/basisComponent/notWinPrizeDialog/notWinPrize.vue";
import virtualWinning from "../components/basisComponent/virtualWinning/virtualWinning.vue";
import wishRealWinners from "../components/basisComponent/wishRealWinners/wishRealWinners.vue";
import commodityListDialog from "../components/basisComponent/commodityListDialog/commodityListDialog.vue";
import levelDialog from "../components/basisComponent/commodityListDialog/levelDialog.vue";
import moreDialog from "../components/basisComponent/commodityListDialog/moreDialog.vue";
import failDialog from "../components/basisComponent/commodityListDialog/failDialog.vue";
import gradeDialog from "../components/basisComponent/commodityListDialog/gradeDialog.vue";
import prizeDialog from "../components/basisComponent/commodityListDialog/prizeDialog.vue";
import getPrizeDialog from "../components/basisComponent/commodityListDialog/getPrizeDialog.vue";
import addSkuDialog from "../components/basisComponent/popCom/addSkuDialog.vue";

import taskPopCom from "../components/basisComponent/button/dialogMore.vue";
import taskPopCom1 from "../components/basisComponent/button/dialogMore1.vue";
import taskPopComNew from "../components/basisComponent/button/dialogMoreNew.vue";
import sharePopCom from "../components/basisComponent/popCom/shareTask.vue";
import shopPopCom from "../components/basisComponent/popCom/shopPop.vue";
import shopPopComNew from "../components/basisComponent/popCom/shopPopNew.vue";
import followSkuPop from "../components/basisComponent/popCom/followSkuPop.vue";
import followSkuPopNew from "../components/basisComponent/popCom/followSkuPopNew.vue";
import followSkuPop1 from "../components/basisComponent/popCom/followSkuPop1.vue";
import luckDrawRecordPopCom from "../components/basisComponent/popCom/luckDrawRecordPop.vue";
import followShopFirstPop from "../components/basisComponent/popCom/followShopFirstPop.vue";
import followShopnotWinPrizePop from "../components/basisComponent/popCom/followShopPop.vue";
import qajoinPop from "../components/basisComponent/popCom/qajoinPop.vue";
import qasharePop from "../components/basisComponent/popCom/qasharePop.vue";
import eggPop from "../components/basisComponent/popCom/eggPop.vue";
import myApplyRecord from "../components/basisComponent/popCom/myApplyRecord.vue"; //申请记录
import buildingLoadingPop from "../components/basisComponent/popCom/buildingLoadingPop.vue";
import applyAddressPopCom from "../components/basisComponent/popCom/applyAddressPop.vue";
import reminderPopCom from "../components/basisComponent/popCom/reminderPopCom.vue";
import giftDetailsPopCom from "../components/basisComponent/popCom/giftPop.vue";
import buyUserSheetConstructor from "../components/basisComponent/popCom/buyUserPop.vue";
import buyshareConstructor from "../components/basisComponent/popCom/buySharePop.vue";
import voucherPop from "../components/basisComponent/popCom/voucherPop.vue"; //抢券关注店铺
import pingjiaPop from "../components/basisComponent/popCom/luckDrawPop.vue";
import pingjiaPopOrder from "../components/basisComponent/popCom/luckDrawPopOrder.vue";
import sureFollowShopPop from "../components/basisComponent/joinMemeber/followShop.vue";
import preferentialPop from "../components/basisComponent/popCom/preferentialPop.vue"; //前n名优惠
import npriceMcountPopCom from "../components/basisComponent/popCom/npriceMcountPop.vue";

const PingJiaPopComConstructor = Vue.extend(pingjiaPop);
const PingJiaPopComConstructorOrder = Vue.extend(pingjiaPopOrder);
const sureFollowShopPopComConstructor = Vue.extend(sureFollowShopPop);
const SharePopComConstructor = Vue.extend(sharePopCom);
const TaskPopComConstructor = Vue.extend(taskPopCom);
const TaskPopComConstructor1 = Vue.extend(taskPopCom1);
const TaskPopComConstructorNew = Vue.extend(taskPopComNew);
const FollowSkuPopComConstructor = Vue.extend(followSkuPop);
const followSkuPopNewComConstructor = Vue.extend(followSkuPopNew);
const FollowSkuPopComConstructor1 = Vue.extend(followSkuPop1);
const ShopPopComConstructor = Vue.extend(shopPopCom);
const ShopPopComNewConstructor = Vue.extend(shopPopComNew);
const LuckDrawRecordPopComConstructor = Vue.extend(luckDrawRecordPopCom);

const SignPromptComConstructor = Vue.extend(signPromptCom); //累计签到日历提示
const SignPromptComConstructor1 = Vue.extend(signPromptCom1); //连续签到日历提示

const MyPrizePopComConstructor = Vue.extend(myPrizePopCom);
const AcRulePopComConstructor = Vue.extend(acRulePopCom);
const ShareFriendPopComConstructor = Vue.extend(shareFrinendPopCom);
const ShareFriendPopComConstructor10070 = Vue.extend(shareFrinendPopCom10070);
const ShareFollowShopPopComConstructor = Vue.extend(shareFollowShopPopCom);
const GiftPopComConstructor = Vue.extend(giftDetailsPopCom);
const AddressPopComConstructor = Vue.extend(addressPopCom);
const LogisticsPopComConstructor = Vue.extend(logisticsPopCom);
const PrizeResultPopComConstructor = Vue.extend(prizeResultPopCom);
const PrizeResultRankPopComConstructor = Vue.extend(prizeResultRankPopCom);
const SnapdragonPrizeResultPopComConstructor = Vue.extend(
  snapdragonPrizeResultPopCom
);
const AddBuyErrDialog = Vue.extend(addBuyErrDialog);
const NoPrizeResultPopComConstructor = Vue.extend(noPrizeResultPopCom);
const soonerOrLaterPopComConstructor = Vue.extend(soonerOrLaterPopCom);
const NoPrizeFinishedPopComConstructor = Vue.extend(noPrizeFinishedPopCom);
const ClickFollowShopConstructor = Vue.extend(clickFollowShop);
const JoinMembershipConstructor = Vue.extend(joinMembershipPopCom);
const OrderGiftPopComConstructor = Vue.extend(orderGiftPopCom);
const RepeatOrderGiftPopComConstructor = Vue.extend(repeatOrderGiftPopCom);
const RepeatOrderGiftPopFailComConstructor = Vue.extend(
  repeatOrderGiftPopFailCom
);
const RepeatOrderCheckPopComConstructor = Vue.extend(repeatOrderCheckPopCom);
const CouponTeamPopComConstructor = Vue.extend(couponTeamPopCom);
const DrawCardPopComConstructor = Vue.extend(drawCardPopCom);
const DrawCardPopComConstructor1 = Vue.extend(drawCardPopCom1);
const helpPopupComConstructor = Vue.extend(helpPopup); //累计签到日历提示
const activityOverComConstructor = Vue.extend(activityOver); //累计签到日历提示

const shoppingCartfriendPopComConstructor = Vue.extend(shoppingCartfriendPop);
const addSkuHelpFriendComConstructor = Vue.extend(addSkuHelpFriend); //累计签到日历提示
const bigWinnerHelpFriendComConstructor = Vue.extend(bigWinnerHelpFriend); //累计签到日历提示
const fansFollowShopPopComConstructor = Vue.extend(fansFollowShopPopCom);
const addSkuPopComConstructor = Vue.extend(addSkuPopCom);
const fansRulePopComConstructor = Vue.extend(fansRulePopCom);
const fansActivityRemindPopComConstructor = Vue.extend(
  fansActivityRemindPopCom
);
const collectCouponsPopComConstructor = Vue.extend(collectCouponsPopCom);
const hbFriendsHelpPopComConstructor = Vue.extend(hbFriendsHelpPopCom);
const hbPrizePopComConstructor = Vue.extend(hbPrizePopCom);
const orderGiftFollowShopPopComConstructor = Vue.extend(
  orderGiftFollowShopPopCom
);
const couponFollowShopPopComConstructor = Vue.extend(couponFollowShopPopCom);
const orderCheckPopComConstructor = Vue.extend(orderCheckPopCom);
const myOrderPrizePopComConstructor = Vue.extend(myOrderPrizePop);
const orderSuccessPopComConstructor = Vue.extend(orderSuccessPopCom);
const orderAddressPopComConstructor = Vue.extend(orderAddressPopCom);
const fansNoPrizePopComConstructor = Vue.extend(fansNoPrizePopCom);
const readSecondsSuccessPopComConstructor = Vue.extend(
  readSecondsSuccessPopCom
);

const BargainMainConstructor = Vue.extend(bargainMainPopCom);
const BargainMemberConstructor = Vue.extend(bargainMemberPopCom);
const toastConstructor = Vue.extend(toastPopCom);
const joinMemberPop1Constructor = Vue.extend(joinMemberPop1);
const joinVipConstructor = Vue.extend(joinVip);
const winnerRecordComConstructor = Vue.extend(winnerRecordCom);
const swWishLampConstructor = Vue.extend(swWishLamp);
const wishLampConstructor = Vue.extend(wishLamp);
const winPrizeConstructor = Vue.extend(winPrize);
const notWinPrizeConstructor = Vue.extend(notWinPrize);
const virtualWinningConstructor = Vue.extend(virtualWinning);
const wishRealWinnersConstructor = Vue.extend(wishRealWinners);
const commodityListDialogConstructor = Vue.extend(commodityListDialog);
const levelDialogConstructor = Vue.extend(levelDialog);
const moreDialogConstructor = Vue.extend(moreDialog);
const failDialogConstructor = Vue.extend(failDialog);
const GradeDialogConstructor = Vue.extend(gradeDialog);
const prizeDialogConstructor = Vue.extend(prizeDialog);
const getPrizeDialogConstructor = Vue.extend(getPrizeDialog);
const addSkuDialogConstructor = Vue.extend(addSkuDialog);
const BargainMemberConstructor1 = Vue.extend(bargainMemberPopCom1);
const joinVipConstructor1 = Vue.extend(joinVip1);

const FollowShopFirstPopConstructor = Vue.extend(followShopFirstPop);
const FollowShopnotWinPrizePopConstructor = Vue.extend(
  followShopnotWinPrizePop
);
const eggPopConstructor = Vue.extend(eggPop);

const qajoinPopConstructor = Vue.extend(qajoinPop); //知识答题
const qasharePopConstructor = Vue.extend(qasharePop);
const MyApplyRecordConstructor = Vue.extend(myApplyRecord); //申请记录
const buildingLoadingPopConstructor = Vue.extend(buildingLoadingPop);
const applyAddressPopComConstructor = Vue.extend(applyAddressPopCom); //会员试用申请地址
const ReminderComConstructor = Vue.extend(reminderPopCom);
const buyUserComConstructor = Vue.extend(buyUserSheetConstructor);
const buyshareComConstructor = Vue.extend(buyshareConstructor);
const voucherPopConstructor = Vue.extend(voucherPop); //抢券关注店铺
const preferentialPopConstructor = Vue.extend(preferentialPop);
const npriceMcountPopComConstructor = Vue.extend(npriceMcountPopCom);

//申请记录
let applyRecordInstance;
export const MyApplyRecordService = {
  create(datas, isTemplate, submit) {
    // console.log('333333333333333')
    let option = {
      datas: datas.datas,
      keyData: datas.keyData,
      styleData: datas.styleData,
      isTemplate: isTemplate,
      show: true
    };
    applyRecordInstance = new MyApplyRecordConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    applyRecordInstance.$mount();
    document.body.appendChild(applyRecordInstance.$el);
  },

  close() {
    console.log(applyRecordInstance + "applyRecordInstance");
    if (applyRecordInstance) {
      applyRecordInstance.show = false;
    }
  }
};

//我的奖品
let myPrizePopComInstance;
export const MyPrizePopComService = {
  create(datas, isTemplate, submit) {
    // console.log('333333333333333')
    let option = {
      datas: datas.datas,
      keyData: datas.keyData,
      styleData: datas.styleData,
      isTemplate: isTemplate,
      show: true
    };
    myPrizePopComInstance = new MyPrizePopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    myPrizePopComInstance.$mount();
    document.body.appendChild(myPrizePopComInstance.$el);
  },

  close() {
    console.log(myPrizePopComInstance + "myPrizePopComInstance");
    if (myPrizePopComInstance) {
      myPrizePopComInstance.show = false;
    }
  }
};
//活动规则
let acRulePopComInstance;
export const AcRulePopComService = {
  create(datas, isTemplate, templateData, submit) {
    // console.log('333333333333333')
    let option = {
      datas: datas.datas,
      templateData: templateData,
      keyData: datas.keyData,
      styleData: datas.styleData,
      isTemplate: isTemplate,
      show: true
    };
    acRulePopComInstance = new AcRulePopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    acRulePopComInstance.$mount();
    document.body.appendChild(acRulePopComInstance.$el);
  },

  close() {
    if (acRulePopComInstance) {
      acRulePopComInstance.show = false;
    }
  }
};

// 邀请好友
let shareFriendPopComInstance;
export const ShareFriendPopComService = {
  create(submit) {
    let option = {
      show: true
    };
    shareFriendPopComInstance = new ShareFriendPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    shareFriendPopComInstance.$mount();
    document.body.appendChild(shareFriendPopComInstance.$el);
  },

  close() {
    if (shareFriendPopComInstance) {
      shareFriendPopComInstance.show = false;
    }
  }
};
// 邀请好友
let shareFriendPopComInstance10070;
export const ShareFriendPopComService10070 = {
  create(submit) {
    let option = {
      show: true
    };
    shareFriendPopComInstance10070 = new ShareFriendPopComConstructor10070({
      data: option,
      methods: {
        submit: submit
      }
    });
    shareFriendPopComInstance10070.$mount();
    document.body.appendChild(shareFriendPopComInstance10070.$el);
  },

  close() {
    if (shareFriendPopComInstance10070) {
      shareFriendPopComInstance10070.show = false;
    }
  }
};
// 邀请好友关注店铺助力
let shareFollowShopPopComInstance;
export const ShareFollowShopPopComService = {
  create(submit) {
    let option = {
      show: true
    };
    shareFollowShopPopComInstance = new ShareFollowShopPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    shareFollowShopPopComInstance.$mount();
    document.body.appendChild(shareFollowShopPopComInstance.$el);
  },

  close() {
    if (shareFollowShopPopComInstance) {
      shareFollowShopPopComInstance.show = false;
    }
  }
};

//地址
let addressPopComInstance;
export const AddressPopComService = {
  // styleData zhumingyang 传参多了一个 以前得度用不了了 ，暂时恢复为原来传参方式，需要修改新建页面
  create(datas, submit) {
    let option = {
      datas: datas,
      show: true
    };
    addressPopComInstance = new AddressPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    addressPopComInstance.$mount();
    document.body.appendChild(addressPopComInstance.$el);
  },

  close() {
    if (addressPopComInstance) {
      addressPopComInstance.show = false;
    }
  }
};

//物流
let logisticsPopComInstance;
export const LogisticsPopComService = {
  create(submit) {
    // console.log('4444')
    let option = {
      show: true
    };
    logisticsPopComInstance = new LogisticsPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    logisticsPopComInstance.$mount();
    document.body.appendChild(logisticsPopComInstance.$el);
  },

  close() {
    if (logisticsPopComInstance) {
      logisticsPopComInstance.show = false;
    }
  }
};

let signPromptComInstance;
//签到天数提示
export const SignPromptComService = {
  create(
    isMostDrawCount,
    hasCumSignDay,
    needCumSignDay,
    restDrawCount,
    signPlus,
    submit
  ) {
    // console.log('11111111111111')
    let option = {
      isMostDrawCount: isMostDrawCount,
      hasCumSignDay: hasCumSignDay,
      needCumSignDay: needCumSignDay,
      restDrawCount: restDrawCount,
      signPlus: signPlus,
      show: true
    };
    signPromptComInstance = new SignPromptComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    signPromptComInstance.$mount();
    document.body.appendChild(signPromptComInstance.$el);
  },

  close() {
    if (signPromptComInstance) {
      signPromptComInstance.show = false;
    }
  }
};

let signPromptComInstance1;
//签到天数提示
export const SignPromptComService1 = {
  create(signDays, currentData, submit) {
    // console.log('11111111111111')
    let option = {
      signDays: signDays,
      currentData: currentData,
      show: true
    };
    signPromptComInstance1 = new SignPromptComConstructor1({
      data: option,
      methods: {
        submit: submit
      }
    });
    signPromptComInstance1.$mount();
    document.body.appendChild(signPromptComInstance1.$el);
  },

  close() {
    if (signPromptComInstance1) {
      signPromptComInstance1.show = false;
    }
  }
};
//中奖弹框
let prizeResultPopComInstance;
export const PrizeResultPopComService = {
  create(prizeResultData, initDatas, submit) {
    console.log("4444");
    let option = {
      prizeResultData: prizeResultData,
      initDatas: initDatas,
      show: true
    };
    const at = sessionStorage.getItem("activityType");
    const snapdragon = ["10011", "10012", "10013", "10014"];
    if (snapdragon.some(o => at === o)) {
      prizeResultPopComInstance = new SnapdragonPrizeResultPopComConstructor({
        data: option,
        methods: {
          submit: submit
        }
      });
    } else {
      prizeResultPopComInstance = new PrizeResultPopComConstructor({
        data: option,
        methods: {
          submit: submit
        }
      });
    }

    prizeResultPopComInstance.$mount();
    document.body.appendChild(prizeResultPopComInstance.$el);
  },

  close() {
    if (prizeResultPopComInstance) {
      prizeResultPopComInstance.show = false;
    }
  }
};
//加购错误提示弹窗
let addBuyErrDialogInstance;
export const AddBuyErrDialogService = {
  create(prizeResultData, initDatas, submit) {
    console.log(initDatas, "initDatas");
    let option = {
      prizeResultData: prizeResultData,
      initDatas: initDatas,
      show: true
    };
    addBuyErrDialogInstance = new AddBuyErrDialog({
      data: option,
      methods: {
        submit: submit
      }
    });
    addBuyErrDialogInstance.$mount();
    document.body.appendChild(addBuyErrDialogInstance.$el);
  },

  close() {
    if (addBuyErrDialogInstance) {
      addBuyErrDialogInstance.show = false;
    }
  }
};
//中奖弹框
let prizeResulRanktPopComInstance;
export const PrizeResultRankPopComService = {
  create(prizeResultData, initDatas, submit) {
    console.log("66666666");
    let option = {
      prizeResultData: prizeResultData,
      initDatas: initDatas,
      show: true
    };
    const at = sessionStorage.getItem("activityType");
    const snapdragon = ["10011", "10012", "10013", "10014"];
    if (snapdragon.some(o => at === o)) {
      prizeResultPopComInstance = new SnapdragonPrizeResultPopComConstructor({
        data: option,
        methods: {
          submit: submit
        }
      });
    } else {
      prizeResultPopComInstance = new PrizeResultRankPopComConstructor({
        data: option,
        methods: {
          submit: submit
        }
      });
    }

    prizeResultPopComInstance.$mount();
    document.body.appendChild(prizeResultPopComInstance.$el);
  },

  close() {
    if (prizeResultPopComInstance) {
      prizeResultPopComInstance.show = false;
    }
  }
};

//未中奖弹框
let noPrizeResultPopComInstance;
export const NoPrizeResultPopComService = {
  create(pcontent, noImg, submit) {
    let option = {
      pcontent: pcontent,
      noImg: noImg,
      show: true
    };
    noPrizeResultPopComInstance = new NoPrizeResultPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    noPrizeResultPopComInstance.$mount();
    document.body.appendChild(noPrizeResultPopComInstance.$el);
  },

  close() {
    if (noPrizeResultPopComInstance) {
      noPrizeResultPopComInstance.show = false;
    }
  }
};

//活动提前、结束弹窗
let soonerOrLaterPopComInstance;
export const soonerOrLaterPopComService = {
  create(title, content, submit) {
    let option = {
      title: title,
      content: content,
      show: true
    };
    soonerOrLaterPopComInstance = new soonerOrLaterPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    soonerOrLaterPopComInstance.$mount();
    document.body.appendChild(soonerOrLaterPopComInstance.$el);
  },

  close() {
    if (soonerOrLaterPopComInstance) {
      soonerOrLaterPopComInstance.show = false;
    }
  }
};

//买家秀用户晒单
let buyUserSheetNewPopComService;
export const buyUserSheetPopComService = {
  create(item, data, alldata, submit) {
    // console.log('4444')
    let option = {
      item: item,
      data: data,
      alldata: alldata,
      show: true
    };
    buyUserSheetNewPopComService = new buyUserComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    buyUserSheetNewPopComService.$mount();
    document.body.appendChild(buyUserSheetNewPopComService.$el);
  },
  close() {
    if (buyUserSheetNewPopComService) {
      buyUserSheetNewPopComService.show = false;
    }
  }
};

//买家秀用户分享
let buyUsersharePopComService;
export const buysharePopComService = {
  create(item, data, id, submit) {
    // console.log('4444')
    let option = {
      item: item,
      id: id,
      data: data,
      show: true
    };
    buyUsersharePopComService = new buyshareComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    buyUsersharePopComService.$mount();
    document.body.appendChild(buyUsersharePopComService.$el);
  },
  close() {
    if (buyUsersharePopComService) {
      buyUsersharePopComService.show = false;
    }
  }
};

let joinMembershipPopComInstance;
export const JoinMembershipPopComService = {
  create(url, name, img, shopNmae, submit) {
    // console.log('4444')
    let option = {
      url: url,
      name: name,
      img: img,
      shopNmae: shopNmae,
      show: true
    };
    joinMembershipPopComInstance = new JoinMembershipConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    joinMembershipPopComInstance.$mount();
    document.body.appendChild(joinMembershipPopComInstance.$el);
  },

  close() {
    if (joinMembershipPopComInstance) {
      joinMembershipPopComInstance.show = false;
    }
  }
};

//砍价主态
let BargainMainPopComInstance;
export const BargainMainPopComService = {
  create(ttmoban, temPlateDataAll, submit) {
    // console.log('4444')
    let option = {
      isTemplate: ttmoban,
      temPlateDataAll: temPlateDataAll,
      show: true
    };
    BargainMainPopComInstance = new BargainMainConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    BargainMainPopComInstance.$mount();
    document.body.appendChild(BargainMainPopComInstance.$el);
  },

  close() {
    if (BargainMainPopComInstance) {
      BargainMainPopComInstance.show = false;
    }
  }
};

//砍价会员
let BargainMemberPopComInstance;
export const BargainMemberPopComService = {
  create(isTemplate, submit) {
    // console.log('4444')
    let option = {
      isTemplate: isTemplate,
      show: true
    };
    BargainMemberPopComInstance = new BargainMemberConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    BargainMemberPopComInstance.$mount();
    document.body.appendChild(BargainMemberPopComInstance.$el);
  },

  close() {
    if (BargainMemberPopComInstance) {
      BargainMemberPopComInstance.show = false;
    }
  }
};

let BargainMemberPopComInstance1;
export const BargainMemberPopComService1 = {
  create(submit) {
    let option = {
      show: true
    };
    BargainMemberPopComInstance1 = new BargainMemberConstructor1({
      data: option,
      methods: {
        submit: submit
      }
    });
    BargainMemberPopComInstance1.$mount();
    document.body.appendChild(BargainMemberPopComInstance1.$el);
  },

  close() {
    if (BargainMemberPopComInstance1) {
      BargainMemberPopComInstance1.show = false;
    }
  }
};

//toast
let toastPopComInstance;
export const toastPopComService = {
  create(text, submit) {
    // console.log('4444')
    let option = {
      message: text,
      show: true
    };
    toastPopComInstance = new toastConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    toastPopComInstance.$mount();
    document.body.appendChild(toastPopComInstance.$el);
  },

  close() {
    if (toastPopComInstance) {
      toastPopComInstance.show = false;
    }
  }
};
// joinMemberPop1
let joinMemberPopCom1Instance;
export const joinMemberPopCom1Service = {
  create(allData, isTemplate, submit) {
    // console.log('4444')
    let option = {
      allData: allData,
      isTemplate: isTemplate,
      show: true
    };
    joinMemberPopCom1Instance = new joinMemberPop1Constructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    joinMemberPopCom1Instance.$mount();
    document.body.appendChild(joinMemberPopCom1Instance.$el);
  },

  close() {
    if (joinMemberPopCom1Instance) {
      joinMemberPopCom1Instance.show = false;
    }
  }
};

let joinVipInstance;
export const joinVipService = {
  create(datas, submit) {
    // console.log('333333333333333')
    let option = {
      datas: datas
    };
    joinVipInstance = new joinVipConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    joinVipInstance.$mount();
    document.body.appendChild(joinVipInstance.$el);
  },

  close() {
    if (joinVipInstance) {
      joinVipInstance.show = false;
    }
  }
};

let joinVipInstance1;
export const joinVipService1 = {
  create(datas, submit) {
    // console.log('333333333333333')
    let option = {
      datas: datas
    };
    joinVipInstance1 = new joinVipConstructor1({
      data: option,
      methods: {
        submit: submit
      }
    });
    joinVipInstance1.$mount();
    document.body.appendChild(joinVipInstance1.$el);
  },

  close() {
    if (joinVipInstance1) {
      joinVipInstance1.show = false;
    }
  }
};

let winnerRecordComInstance;
export const winnerRecordComService = {
  create(datas, styleData, keyData, isTemplate, submit) {
    // console.log('333333333333333')
    let option = {
      datasCom: datas,
      styleDataCom: styleData,
      keyDataCom: keyData,
      isTemplateCom: isTemplate
    };
    winnerRecordComInstance = new winnerRecordComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    winnerRecordComInstance.$mount();
    document.body.appendChild(winnerRecordComInstance.$el);
  },

  close() {
    if (winnerRecordComInstance) {
      winnerRecordComInstance.show = false;
    }
  }
};

//许愿灯实物弹窗
let swWishLampInstance;
export const swWishLampService = {
  create(datas, index, drawPrizeTime, wishStartTime, submit) {
    let option = {
      datas: datas,
      index: index,
      drawPrizeTime: drawPrizeTime,
      wishStartTime: wishStartTime,
      show: true
    };
    swWishLampInstance = new swWishLampConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    swWishLampInstance.$mount();
    document.body.appendChild(swWishLampInstance.$el);
  },

  close() {
    if (swWishLampInstance) {
      swWishLampInstance.show = false;
    }
  }
};
let wishLampInstance;
export const wishLampService = {
  create(styleData, datas, index, drawPrizeTime, wishStartTime, submit) {
    let option = {
      styleData: styleData,
      datas: datas,
      index: index,
      drawPrizeTime: drawPrizeTime,
      wishStartTime: wishStartTime,
      show: true
    };
    wishLampInstance = new wishLampConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    wishLampInstance.$mount();
    document.body.appendChild(wishLampInstance.$el);
  },

  close() {
    if (wishLampInstance) {
      wishLampInstance.show = false;
    }
  }
};
//中奖弹窗
let winPrizeInstance;
export const winPrizeService = {
  create(submit) {
    let option = {
      show: true
    };
    winPrizeInstance = new winPrizeConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    winPrizeInstance.$mount();
    document.body.appendChild(winPrizeInstance.$el);
  },

  close() {
    if (winPrizeInstance) {
      winPrizeInstance.show = false;
    }
  }
};
//未中奖弹窗
let notWinPrizeInstance;
export const notWinPrizeService = {
  create(submit) {
    let option = {
      show: true
    };
    notWinPrizeInstance = new notWinPrizeConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    notWinPrizeInstance.$mount();
    document.body.appendChild(notWinPrizeInstance.$el);
  },

  close() {
    if (notWinPrizeInstance) {
      notWinPrizeInstance.show = false;
    }
  }
};

//会员许愿虚拟奖品中奖弹窗
let virtualWinningInstance;
export const virtualWinningService = {
  create(position, prizeName, showImg, cardId, submit) {
    let option = {
      position: position,
      prizeName: prizeName,
      showImg: showImg,
      cardId: cardId,
      show: true
    };
    virtualWinningInstance = new virtualWinningConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    virtualWinningInstance.$mount();
    document.body.appendChild(virtualWinningInstance.$el);
  },

  close() {
    if (virtualWinningInstance) {
      virtualWinningInstance.show = false;
    }
  }
};

// //会员许愿实物奖品中奖弹窗
let wishRealWinnersInstance;
export const wishRealWinnersService = {
  create(position, prizeName, showImg, cardId, addressId, prizeId, submit) {
    let option = {
      position: position,
      prizeName: prizeName,
      showImg: showImg,
      cardId: cardId,
      addressId: addressId,
      prizeId: prizeId,
      show: true
    };
    wishRealWinnersInstance = new wishRealWinnersConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    wishRealWinnersInstance.$mount();
    document.body.appendChild(wishRealWinnersInstance.$el);
  },

  close() {
    if (wishRealWinnersInstance) {
      wishRealWinnersInstance.show = false;
    }
  }
};
// 加购商品弹窗
let commodityListDialogInstance;
export const commodityListDialogService = {
  create(data, type, taskStatus, submit) {
    let option = {
      data: data,
      type: type,
      taskStatus: taskStatus,
      show: true
    };
    commodityListDialogInstance = new commodityListDialogConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    commodityListDialogInstance.$mount();
    document.body.appendChild(commodityListDialogInstance.$el);
  },

  close() {
    if (commodityListDialogInstance) {
      commodityListDialogInstance.show = false;
    }
  }
};

// 得奖弹窗
let getPrizeDialogInstance;
export const getPrizeDialogService = {
  create(data, canDrawFlag, taskStatus, submit) {
    let option = {
      data: data,
      canDrawFlag: canDrawFlag,
      taskStatus: taskStatus,
      show: true
    };
    getPrizeDialogInstance = new getPrizeDialogConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    getPrizeDialogInstance.$mount();
    document.body.appendChild(getPrizeDialogInstance.$el);
  },

  close() {
    if (getPrizeDialogInstance) {
      getPrizeDialogInstance.show = false;
    }
  }
};

// 读秒拼手速商品弹窗
let addSkuDialogInstance;
export const addSkuDialogService = {
  create(data, type, submit) {
    let option = {
      data: data,
      type: type,
      show: true
    };
    addSkuDialogInstance = new addSkuDialogConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    addSkuDialogInstance.$mount();
    document.body.appendChild(addSkuDialogInstance.$el);
  },

  close() {
    if (addSkuDialogInstance) {
      addSkuDialogInstance.show = false;
    }
  }
};

// 中奖弹窗
let prizeDialogInstance;
export const prizeDialogService = {
  create(data, canDrawFlag, differenceTime, challengeTime, submit) {
    let option = {
      data: data,
      canDrawFlag: canDrawFlag,
      differenceTime: differenceTime,
      challengeTime: challengeTime,
      show: true
    };
    prizeDialogInstance = new prizeDialogConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    prizeDialogInstance.$mount();
    document.body.appendChild(prizeDialogInstance.$el);
  },

  close() {
    if (prizeDialogInstance) {
      prizeDialogInstance.show = false;
    }
  }
};

// 挑战成绩
let gradeDialogInstance;
export const gradeDialogService = {
  create(grade, mainDatas, submit) {
    let option = {
      grade: grade,
      mainDatas: mainDatas,
      show: true
    };
    gradeDialogInstance = new GradeDialogConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    gradeDialogInstance.$mount();
    document.body.appendChild(gradeDialogInstance.$el);
  },

  close() {
    if (gradeDialogInstance) {
      gradeDialogInstance.show = false;
    }
  }
};

// 挑战次数为0
let failDialogInstance;
export const failDialogService = {
  create(data, type, taskStatus, submit) {
    let option = {
      data: data,
      type: type,
      taskStatus: taskStatus,
      show: true
    };
    failDialogInstance = new failDialogConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    failDialogInstance.$mount();
    document.body.appendChild(failDialogInstance.$el);
  },

  close() {
    if (failDialogInstance) {
      failDialogInstance.show = false;
    }
  }
};
// 降低游戏难度
let levelDialogInstance;
export const levelDialogService = {
  create(needFollowStore, needAddCard, mainDatas, submit) {
    let option = {
      needFollowStore: needFollowStore,
      needAddCard: needAddCard,
      mainDatas: mainDatas,
      show: true
    };
    levelDialogInstance = new levelDialogConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    levelDialogInstance.$mount();
    document.body.appendChild(levelDialogInstance.$el);
  },

  close() {
    if (levelDialogInstance) {
      levelDialogInstance.show = false;
    }
  }
};

// 更多游戏机会
let moreDialogInstance;
export const moreDialogService = {
  create(data, type, activityUserLimit, submit) {
    let option = {
      data: data,
      type: type,
      activityUserLimit: activityUserLimit,
      show: true
    };
    moreDialogInstance = new moreDialogConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    moreDialogInstance.$mount();
    document.body.appendChild(moreDialogInstance.$el);
  },

  close() {
    if (moreDialogInstance) {
      moreDialogInstance.show = false;
    }
  }
};

//dialogMore
let taskPopComInstance;
export const TaskPopComService = {
  create(
    pcontent,
    isTemplate,
    showShare,
    showFoll,
    showBuy,
    restDrawCount,
    pointFoll,
    pointShare,
    pointBuy,
    submit
  ) {
    let option = {
      pcontent: pcontent,
      isTemplate: isTemplate,
      showShare: showShare,
      showFoll: showFoll,
      showBuy: showBuy,
      restDrawCount: restDrawCount,
      pointFoll: pointFoll,
      pointShare: pointShare,
      pointBuy: pointBuy,
      show: true
    };
    taskPopComInstance = new TaskPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    taskPopComInstance.$mount();
    document.body.appendChild(taskPopComInstance.$el);
  },

  close() {
    if (taskPopComInstance) {
      taskPopComInstance.show = false;
    }
  }
};
//dialogMoreNew
let taskPopComInstanceNew;
export const TaskPopComServiceNew = {
  create(
    pcontent,
    isTemplate,
    showShare,
    showFoll,
    showBuy,
    restDrawCount,
    pointFoll,
    pointShare,
    pointBuy,
    task,
    submit
  ) {
    let option = {
      pcontent: pcontent,
      isTemplate: isTemplate,
      showShare: showShare,
      showFoll: showFoll,
      showBuy: showBuy,
      restDrawCount: restDrawCount,
      pointFoll: pointFoll,
      pointShare: pointShare,
      pointBuy: pointBuy,
      task: task,
      show: true
    };
    taskPopComInstance = new TaskPopComConstructorNew({
      data: option,
      methods: {
        submit: submit
        // tasktype: tasktype
      }
    });
    taskPopComInstance.$mount();
    document.body.appendChild(taskPopComInstance.$el);
  },

  close() {
    if (taskPopComInstance) {
      taskPopComInstance.show = false;
    }
  }
};
//dialogMore1
let taskPopComInstance1;
export const TaskPopComService1 = {
  create(
    pcontent,
    showShare1,
    showShare2,
    showShare3,
    showFoll,
    showBuy,
    restDrawCount,
    pointFoll,
    pointShare1,
    pointShare2,
    pointShare3,
    pointBuy,
    submit
  ) {
    let option = {
      pcontent: pcontent,
      showShare1: showShare1,
      showShare2: showShare2,
      showShare3: showShare3,
      showFoll: showFoll,
      showBuy: showBuy,
      restDrawCount: restDrawCount,
      pointFoll: pointFoll,
      pointShare1: pointShare1,
      pointShare2: pointShare2,
      pointShare3: pointShare3,
      pointBuy: pointBuy,
      show: true
    };
    taskPopComInstance = new TaskPopComConstructor1({
      data: option,
      methods: {
        submit: submit
      }
    });
    taskPopComInstance.$mount();
    document.body.appendChild(taskPopComInstance.$el);
  },

  close() {
    if (taskPopComInstance) {
      taskPopComInstance.show = false;
    }
  }
};
//购买商品
let shopPopComInstance;
export const ShopPopComService = {
  create(data, restDrawCount, submit) {
    let option = {
      data: data,
      restDrawCount: restDrawCount,
      show: true
    };
    shopPopComInstance = new ShopPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    shopPopComInstance.$mount();
    document.body.appendChild(shopPopComInstance.$el);
  },

  close() {
    if (shopPopComInstance) {
      shopPopComInstance.show = false;
    }
  }
};
let shopPopComNewInstance;
export const ShopPopComNewService = {
  create(data, restDrawCount, submit, styleData) {
    let option = {
      data: data,
      restDrawCount: restDrawCount,
      styleData: styleData,
      show: true
    };
    shopPopComNewInstance = new ShopPopComNewConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    shopPopComNewInstance.$mount();
    document.body.appendChild(shopPopComNewInstance.$el);
  },

  close() {
    if (shopPopComNewInstance) {
      shopPopComNewInstance.show = false;
    }
  }
};
// 关注商品 pop
let followSkuPopComInstance;
export const FollowSkuPopComService = {
  create(data, restDrawCount, submit) {
    let option = {
      data: data,
      restDrawCount: restDrawCount,
      show: true
    };
    followSkuPopComInstance = new FollowSkuPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    followSkuPopComInstance.$mount();
    document.body.appendChild(followSkuPopComInstance.$el);
  },

  close() {
    if (followSkuPopComInstance) {
      followSkuPopComInstance.show = false;
    }
  }
};
let followSkuPopNewComInstance;
export const FollowSkuPopNewComService = {
  create(data, restDrawCount, submit) {
    let option = {
      data: data,
      restDrawCount: restDrawCount,
      show: true
    };
    followSkuPopNewComInstance = new followSkuPopNewComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    followSkuPopNewComInstance.$mount();
    document.body.appendChild(followSkuPopNewComInstance.$el);
  },

  close() {
    if (followSkuPopNewComInstance) {
      followSkuPopNewComInstance.show = false;
    }
  }
};

let followSkuPopComInstance1;
export const FollowSkuPopComService1 = {
  create(data, restDrawCount, submit) {
    let option = {
      data: data,
      restDrawCount: restDrawCount,
      show: true
    };
    followSkuPopComInstance1 = new FollowSkuPopComConstructor1({
      data: option,
      methods: {
        submit: submit
      }
    });
    followSkuPopComInstance1.$mount();
    document.body.appendChild(followSkuPopComInstance1.$el);
  },

  close() {
    if (followSkuPopComInstance1) {
      followSkuPopComInstance1.show = false;
    }
  }
};

// 分享商品 pop
let sharePopComInstance;
export const SharePopComService = {
  create(isTemplate, title, data, restDrawCount, submit) {
    let option = {
      isTemplate: isTemplate,
      title: title,
      data: data,
      restDrawCount: restDrawCount,
      show: true
    };
    sharePopComInstance = new SharePopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    sharePopComInstance.$mount();
    document.body.appendChild(sharePopComInstance.$el);
  },

  close() {
    if (sharePopComInstance) {
      sharePopComInstance.show = false;
    }
  }
};

//奖品被领光啦
let noPrizeFinishedPopComInstance;
export const NoPrizeFinishedPopComService = {
  create(pcontent, noImg, submit) {
    let option = {
      pcontent: pcontent,
      noImg: noImg,
      show: true
    };
    noPrizeFinishedPopComInstance = new NoPrizeFinishedPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    noPrizeFinishedPopComInstance.$mount();
    document.body.appendChild(noPrizeFinishedPopComInstance.$el);
  },

  close() {
    if (noPrizeFinishedPopComInstance) {
      noPrizeFinishedPopComInstance.show = false;
    }
  }
};

//点击关注店铺
let clickFollowShopInstance;
export const ClickFollowShopService = {
  create(pcontent, noImg, submit) {
    let option = {
      pcontent: pcontent,
      noImg: noImg,
      show: true
    };
    clickFollowShopInstance = new ClickFollowShopConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    clickFollowShopInstance.$mount();
    document.body.appendChild(clickFollowShopInstance.$el);
  },

  close() {
    if (clickFollowShopInstance) {
      clickFollowShopInstance.show = false;
    }
  }
};
//下单有礼弹窗
let orderGiftPopComInstance;
export const OrderGiftPopComService = {
  create(
    data,
    totalOrderAmount,
    orderCnt,
    lackOrderCnt,
    lackOrderAmount,
    shopId,
    orderCntFlag,
    assignGoodsFlag,
    submit
  ) {
    let option = {
      data: data,
      totalOrderAmount: totalOrderAmount,
      orderCnt: orderCnt,
      lackOrderCnt: lackOrderCnt,
      lackOrderAmount: lackOrderAmount,
      shopId: shopId,
      orderCntFlag: orderCntFlag,
      assignGoodsFlag: assignGoodsFlag,
      show: true
    };
    orderGiftPopComInstance = new OrderGiftPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    orderGiftPopComInstance.$mount();
    document.body.appendChild(orderGiftPopComInstance.$el);
  },

  close() {
    if (orderGiftPopComInstance) {
      orderGiftPopComInstance.show = false;
    }
  }
};

// 下单有礼成功弹窗
let orderSuccessPopComInstance;
export const OrderSuccessPopService = {
  create(data, submit) {
    let option = {
      data: data,
      show: true
    };
    orderSuccessPopComInstance = new orderSuccessPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    orderSuccessPopComInstance.$mount();
    document.body.appendChild(orderSuccessPopComInstance.$el);
  },

  close() {
    if (orderSuccessPopComInstance) {
      orderSuccessPopComInstance.show = false;
    }
  }
};

// 读秒助力弹窗
let readSecondsSuccessPopComInstance;
export const ReadSecondsSuccessPopComService = {
  create(canAssist, submit) {
    let option = {
      canAssist: canAssist,
      show: true
    };
    readSecondsSuccessPopComInstance = new readSecondsSuccessPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    readSecondsSuccessPopComInstance.$mount();
    document.body.appendChild(readSecondsSuccessPopComInstance.$el);
  },

  close() {
    if (readSecondsSuccessPopComInstance) {
      readSecondsSuccessPopComInstance.show = false;
    }
  }
};

// 粉丝互动领取失败弹窗
let fansNoPrizePopComInstance;
export const FansNoPrizePopComService = {
  create(submit) {
    let option = {
      show: true
    };
    fansNoPrizePopComInstance = new fansNoPrizePopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    fansNoPrizePopComInstance.$mount();
    document.body.appendChild(fansNoPrizePopComInstance.$el);
  },

  close() {
    if (fansNoPrizePopComInstance) {
      fansNoPrizePopComInstance.show = false;
    }
  }
};
// 下单有礼成功弹窗
let orderAddressPopComInstance;
export const OrderAddressPopService = {
  create(submit) {
    let option = {
      show: true
    };
    orderAddressPopComInstance = new orderAddressPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    orderAddressPopComInstance.$mount();
    document.body.appendChild(orderAddressPopComInstance.$el);
  },

  close() {
    if (orderAddressPopComInstance) {
      orderAddressPopComInstance.show = false;
    }
  }
};
// 下单有礼关注店铺弹窗
let orderGiftFollowShopPopComInstance;
export const OrderGiftFollowShopPopService = {
  create(shopLogoUrl, submit) {
    let option = {
      shopLogoUrl: shopLogoUrl,
      show: true
    };
    orderGiftFollowShopPopComInstance = new orderGiftFollowShopPopComConstructor(
      {
        data: option,
        methods: {
          submit: submit
        }
      }
    );
    orderGiftFollowShopPopComInstance.$mount();
    document.body.appendChild(orderGiftFollowShopPopComInstance.$el);
  },

  close() {
    if (orderGiftFollowShopPopComInstance) {
      orderGiftFollowShopPopComInstance.show = false;
    }
  }
};
//下单有礼我的奖品
let myOrderPrizePopComInstance;
export const MyOrderPrizePopComService = {
  create(datas, isTemplate, submit) {
    let option = {
      datas: datas.datas,
      keyData: datas.keyData,
      styleData: datas.styleData,
      isTemplate: isTemplate,
      show: true
    };
    myOrderPrizePopComInstance = new myOrderPrizePopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    myOrderPrizePopComInstance.$mount();
    document.body.appendChild(myOrderPrizePopComInstance.$el);
  },

  close() {
    if (myOrderPrizePopComInstance) {
      myOrderPrizePopComInstance.show = false;
    }
  }
};
// 优惠券营销关注店铺弹窗
let couponFollowShopPopComInstance;
export const CouponFollowShopPopService = {
  create(prizeInfoId, submit) {
    let option = {
      prizeInfoId: prizeInfoId,
      show: true
    };
    couponFollowShopPopComInstance = new couponFollowShopPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    couponFollowShopPopComInstance.$mount();
    document.body.appendChild(couponFollowShopPopComInstance.$el);
  },

  close() {
    if (couponFollowShopPopComInstance) {
      couponFollowShopPopComInstance.show = false;
    }
  }
};

// 优惠券营销关注店铺弹窗
let orderCheckPopComInstance;
export const OrderCheckPopComService = {
  create(submit) {
    let option = {
      show: true
    };
    orderCheckPopComInstance = new orderCheckPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    orderCheckPopComInstance.$mount();
    document.body.appendChild(orderCheckPopComInstance.$el);
  },

  close() {
    if (orderCheckPopComInstance) {
      orderCheckPopComInstance.show = false;
    }
  }
};

//集卡有礼卡片弹窗
let drawCardPopComInstance;
export const DrawCardPopComService = {
  create(cardName, cardUrl, drawCardCount, submit) {
    let option = {
      cardName: cardName,
      cardUrl: cardUrl,
      drawCardCount: drawCardCount,
      show: true
    };
    drawCardPopComInstance = new DrawCardPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    drawCardPopComInstance.$mount();
    document.body.appendChild(drawCardPopComInstance.$el);
  },

  close() {
    if (drawCardPopComInstance) {
      drawCardPopComInstance.show = false;
    }
  }
};

//集卡有礼卡片弹窗
let drawCardPopComInstance1;
export const DrawCardPopComService1 = {
  create(drawCardCount, submit) {
    let option = {
      drawCardCount: drawCardCount,
      show: true
    };
    drawCardPopComInstance1 = new DrawCardPopComConstructor1({
      data: option,
      methods: {
        submit: submit
      }
    });
    drawCardPopComInstance1.$mount();
    document.body.appendChild(drawCardPopComInstance1.$el);
  },

  close() {
    if (drawCardPopComInstance1) {
      drawCardPopComInstance1.show = false;
    }
  }
};

//购物车锦鲤助力弹窗
let ShoppingCartfriendPopComInstance;
export const ShoppingCartfriendPopComService = {
  create(
    shareFlag,
    shareNumName,
    followStoreFlag,
    shareNum,
    shopName,
    shopId,
    submit
  ) {
    let option = {
      shareFlag: shareFlag,
      shareNumName: shareNumName,
      followStoreFlag: followStoreFlag,
      shareNum: shareNum,
      shopName: shopName,
      shopId: shopId,
      show: true
    };
    ShoppingCartfriendPopComInstance = new shoppingCartfriendPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    ShoppingCartfriendPopComInstance.$mount();
    document.body.appendChild(ShoppingCartfriendPopComInstance.$el);
  },

  close() {
    if (ShoppingCartfriendPopComInstance) {
      ShoppingCartfriendPopComInstance.show = false;
    }
  }
};

//购物车锦鲤奖品弹窗
let ShoppingCartfriendPopComInstance2;
export const ShoppingCartfriendPopComService2 = {
  create(addSkuDraw, submit) {
    let option = {
      addSkuDraw: addSkuDraw,
      show: true
    };
    ShoppingCartfriendPopComInstance2 = new shoppingCartfriendPopComConstructor(
      {
        data: option,
        methods: {
          submit: submit
        }
      }
    );
    ShoppingCartfriendPopComInstance2.$mount();
    document.body.appendChild(ShoppingCartfriendPopComInstance2.$el);
  },

  close() {
    if (ShoppingCartfriendPopComInstance2) {
      ShoppingCartfriendPopComInstance2.show = false;
    }
  }
};

//合成大赢家我的好友
let bigWinnerHelpFriendComInstance;
export const bigWinnerHelpFriendComService = {
  create(submit) {
    let option = {
      show: true
    };
    bigWinnerHelpFriendComInstance = new bigWinnerHelpFriendComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    bigWinnerHelpFriendComInstance.$mount();
    document.body.appendChild(bigWinnerHelpFriendComInstance.$el);
  },

  close() {
    if (bigWinnerHelpFriendComInstance) {
      bigWinnerHelpFriendComInstance.show = false;
    }
  }
};
//购物车锦鲤我的好友
let addSkuHelpFriendComInstance;
export const addSkuHelpFriendComService = {
  create(submit) {
    let option = {
      show: true
    };
    addSkuHelpFriendComInstance = new addSkuHelpFriendComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    addSkuHelpFriendComInstance.$mount();
    document.body.appendChild(addSkuHelpFriendComInstance.$el);
  },

  close() {
    if (addSkuHelpFriendComInstance) {
      addSkuHelpFriendComInstance.show = false;
    }
  }
};

let HelpPopupComInstance;
export const HelpPopupComService = {
  create(exposureList, joinFlag, submit) {
    let option = {
      exposureList: exposureList,
      joinFlag: joinFlag,
      show: true
    };
    HelpPopupComInstance = new helpPopupComConstructor({
      data: option.exposureList,
      methods: {
        submit: submit
      }
    });
    HelpPopupComInstance.$mount();
    document.body.appendChild(HelpPopupComInstance.$el);
  },

  close() {
    if (HelpPopupComInstance) {
      HelpPopupComInstance.show = false;
    }
  }
};
let ActivityOverComConstructorComInstance;
export const ActivityOverComService = {
  create(submit) {
    let option = {
      show: true
    };
    ActivityOverComConstructorComInstance = new activityOverComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    ActivityOverComConstructorComInstance.$mount();
    document.body.appendChild(ActivityOverComConstructorComInstance.$el);
  },

  close() {
    if (ActivityOverComConstructorComInstance) {
      ActivityOverComConstructorComInstance.show = false;
    }
  }
};

//粉丝互动魅力值攻略弹窗
let fansRulePopComInstance;
export const FansRulePopComService = {
  create(submit) {
    let option = {
      show: true
    };
    fansRulePopComInstance = new fansRulePopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    fansRulePopComInstance.$mount();
    document.body.appendChild(fansRulePopComInstance.$el);
  },

  close() {
    if (fansRulePopComInstance) {
      fansRulePopComInstance.show = false;
    }
  }
};

//粉丝互动二维码弹窗
let fansActivityRemindPopComInstance;
export const FansActivityRemindPopComService = {
  create(acRemindAddress, submit) {
    let option = {
      acRemindAddress: acRemindAddress,
      show: true
    };
    fansActivityRemindPopComInstance = new fansActivityRemindPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    fansActivityRemindPopComInstance.$mount();
    document.body.appendChild(fansActivityRemindPopComInstance.$el);
  },

  close() {
    if (fansActivityRemindPopComInstance) {
      fansActivityRemindPopComInstance.show = false;
    }
  }
};

//粉丝互动加购弹窗
let addSkuPopComInstance;
export const AddSkuPopComService = {
  create(data, type, submit) {
    let option = {
      data: data,
      type: type,
      show: true
    };
    addSkuPopComInstance = new addSkuPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    addSkuPopComInstance.$mount();
    document.body.appendChild(addSkuPopComInstance.$el);
  },

  close() {
    if (addSkuPopComInstance) {
      addSkuPopComInstance.show = false;
    }
  }
};

//粉丝互动加购弹窗
let collectCouponsPopComInstance;
export const CollectCouponsPopComService = {
  create(data, submit) {
    let option = {
      data: data,
      show: true
    };
    collectCouponsPopComInstance = new collectCouponsPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    collectCouponsPopComInstance.$mount();
    document.body.appendChild(collectCouponsPopComInstance.$el);
  },

  close() {
    if (collectCouponsPopComInstance) {
      collectCouponsPopComInstance.show = false;
    }
  }
};

//粉丝互动关注店铺弹窗
let fansFollowShopPopComInstance;
export const FansFollowShopPopComService = {
  create(submit) {
    let option = {
      show: true
    };
    fansFollowShopPopComInstance = new fansFollowShopPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    fansFollowShopPopComInstance.$mount();
    document.body.appendChild(fansFollowShopPopComInstance.$el);
  },

  close() {
    if (fansFollowShopPopComInstance) {
      fansFollowShopPopComInstance.show = false;
    }
  }
};

//助力抢红包助力状态弹窗
let hbFriendsHelpPopComInstance;
export const HbFriendsHelpPopComService = {
  create(data, url, submit) {
    let option = {
      data: data,
      url: url,
      show: true
    };
    hbFriendsHelpPopComInstance = new hbFriendsHelpPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    hbFriendsHelpPopComInstance.$mount();
    document.body.appendChild(hbFriendsHelpPopComInstance.$el);
  },

  close() {
    if (hbFriendsHelpPopComInstance) {
      hbFriendsHelpPopComInstance.show = false;
    }
  }
};

//助力抢红包拆红包弹窗
let hbPrizePopComInstance;
export const HbPrizePopComService = {
  create(data, shopId, submit) {
    let option = {
      data: data,
      shopId: shopId,
      show: true
    };
    hbPrizePopComInstance = new hbPrizePopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    hbPrizePopComInstance.$mount();
    document.body.appendChild(hbPrizePopComInstance.$el);
  },

  close() {
    if (hbPrizePopComInstance) {
      hbPrizePopComInstance.show = false;
    }
  }
};

//关注店铺初次进入弹窗
let FollowShopFirstPopComInstance;
export const FollowShopFirstPopComService = {
  create(pcontent, flag, submit) {
    let option = {
      pcontent: pcontent,
      flag: flag,
      show: true
    };
    FollowShopFirstPopComInstance = new FollowShopFirstPopConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    FollowShopFirstPopComInstance.$mount();
    document.body.appendChild(FollowShopFirstPopComInstance.$el);
  },

  close() {
    if (FollowShopFirstPopComInstance) {
      FollowShopFirstPopComInstance.show = false;
    }
  }
};

//抢券关注店铺初次进入弹窗
let voucherPopComInstance;
export const voucherPopComService = {
  create(pcontent, flag, submit) {
    let option = {
      pcontent: pcontent,
      flag: flag,
      show: true
    };
    voucherPopComInstance = new voucherPopConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    voucherPopComInstance.$mount();
    document.body.appendChild(voucherPopComInstance.$el);
  },

  close() {
    if (voucherPopComInstance) {
      voucherPopComInstance.show = false;
    }
  }
};

//盖楼加载
let buildingLoadingPopInstance;
export const buildingLoadingPopService = {
  create(submit) {
    let option = {
      show: true
    };
    buildingLoadingPopInstance = new buildingLoadingPopConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    buildingLoadingPopInstance.$mount();
    document.body.appendChild(buildingLoadingPopInstance.$el);
  },

  close() {
    if (buildingLoadingPopInstance) {
      buildingLoadingPopInstance.show = false;
    }
  }
};
//关注店铺答题
let qajoinPopComInstance;
export const qajoinPopComService = {
  create(pcontent, flag, datalist, prizeList, dataId, fuhuka, submit) {
    let option = {
      pcontent: pcontent,
      flag: flag,
      prizeList: prizeList,
      datalist: datalist,
      dataId: dataId,
      fuhuka: fuhuka,
      show: true
    };
    qajoinPopComInstance = new qajoinPopConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    qajoinPopComInstance.$mount();
    document.body.appendChild(qajoinPopComInstance.$el);
  },

  close() {
    if (qajoinPopComInstance) {
      qajoinPopComInstance.show = false;
    }
  }
};

//关注店铺答题错误
let qasharePopComInstance;
export const qasharePopComService = {
  create(dataList, submit) {
    let option = {
      show: true,
      dataList: dataList
    };
    qasharePopComInstance = new qasharePopConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    qasharePopComInstance.$mount();
    document.body.appendChild(qasharePopComInstance.$el);
  },

  close() {
    if (qasharePopComInstance) {
      qasharePopComInstance.show = false;
    }
  }
};
//分享得游戏机会
// let taskPopComInstance;
// export const TaskPopComService = {
//     create(pcontent, showShare,showFoll,showBuy,restDrawCount,submit) {
//         let option = {
//             pcontent: pcontent,
//             showShare: showShare,
//             showFoll: showFoll,
//             showBuy: showBuy,
//             restDrawCount:restDrawCount,
//             show: true
//         }
//         taskPopComInstance = new TaskPopComConstructor({
//             data: option,
//             methods: {
//                 submit: submit
//             }
//         });
//         taskPopComInstance.$mount();
//         document.body.appendChild(taskPopComInstance.$el);
//     },

//     close() {
//         if (taskPopComInstance) {
//             taskPopComInstance.show = false;
//         }
//     },

// };

//关注店铺 没有砸蛋次数弹窗
let FollowShopnotWinPrizePopComInstance;
export const FollowShopnotWinPrizePopComService = {
  create(pcontent, noImg, submit) {
    let option = {
      pcontent: pcontent,
      noImg: noImg,
      show: true
    };
    FollowShopnotWinPrizePopComInstance = new FollowShopnotWinPrizePopConstructor(
      {
        data: option,
        methods: {
          submit: submit
        }
      }
    );
    FollowShopnotWinPrizePopComInstance.$mount();
    document.body.appendChild(FollowShopnotWinPrizePopComInstance.$el);
  },

  close() {
    if (FollowShopnotWinPrizePopComInstance) {
      FollowShopnotWinPrizePopComInstance.show = false;
    }
  }
};

// 关注店铺砸蛋弹窗
let eggPopComInstance;
export const eggPopComService = {
  create(pcontent, styleData, submit) {
    let option = {
      pcontent: pcontent,
      eggPopStyleData: styleData,
      show: true
    };
    eggPopComInstance = new eggPopConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    eggPopComInstance.$mount();
    document.body.appendChild(eggPopComInstance.$el);
  },

  close() {
    if (eggPopComInstance) {
      eggPopComInstance.show = false;
    }
  }
};

//前n名优惠
let preferentialPopInstance;
export const preferentialPopService = {
  create(aggregate, submit) {
    let option = {
      show: true,
      aggregate: aggregate
    };
    preferentialPopInstance = new preferentialPopConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    preferentialPopInstance.$mount();
    document.body.appendChild(preferentialPopInstance.$el);
  },

  close() {
    if (preferentialPopInstance) {
      preferentialPopInstance.show = false;
    }
  }
};
//抽奖记录
let luckDrawRecordPopComInstance;
export const LuckDrawRecordPopComService = {
  create(datas, isTemplate, submit) {
    let option = {
      datas: datas.datas,
      keyData: datas.keyData,
      styleData: datas.styleData,
      isTemplate: isTemplate,
      show: true
    };
    luckDrawRecordPopComInstance = new LuckDrawRecordPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    luckDrawRecordPopComInstance.$mount();
    document.body.appendChild(luckDrawRecordPopComInstance.$el);
  },

  close() {
    if (luckDrawRecordPopComInstance) {
      luckDrawRecordPopComInstance.show = false;
    }
  }
};
//裂变神券组队弹窗
let couponTeamPopComInstance;
export const ConpouTeamPopService = {
  create(teamMemberList, isTemplate, submit) {
    let option = {
      teamMemberList: teamMemberList,
      isTemplate: isTemplate,
      show: true
    };
    couponTeamPopComInstance = new CouponTeamPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    couponTeamPopComInstance.$mount();
    document.body.appendChild(couponTeamPopComInstance.$el);
  },
  close() {
    if (couponTeamPopComInstance) {
      couponTeamPopComInstance.show = false;
    }
  }
};

//会员试用申请地址
let applyAddressPopComInstance;
export const ApplyAddressPopComService = {
  create(datas, index, submit) {
    let option = {
      datas: datas,
      index: index,
      show: true
    };
    applyAddressPopComInstance = new applyAddressPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    applyAddressPopComInstance.$mount();
    document.body.appendChild(applyAddressPopComInstance.$el);
  },

  close() {
    if (applyAddressPopComInstance) {
      applyAddressPopComInstance.show = false;
    }
  }
};

//温馨提示
let reminderPopComInstance;
export const ReminderPopComService = {
  create(pcontent, titleImg, noImg, type, index, values, submit) {
    console.log("index", index);
    let option = {
      pcontent: pcontent,
      noImg: noImg,
      titleImg: titleImg,
      type: type,
      index,
      values,
      show: true
    };
    reminderPopComInstance = new ReminderComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    reminderPopComInstance.$mount();
    document.body.appendChild(reminderPopComInstance.$el);
  },

  close() {
    if (reminderPopComInstance) {
      reminderPopComInstance.show = false;
    }
  }
};

//如何兑换礼品卡
let giftPopComInstance;
export const GiftPopComService = {
  create(jsonData, submit) {
    let option = {
      jsonData: jsonData,
      show: true
    };
    giftPopComInstance = new GiftPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    giftPopComInstance.$mount();
    document.body.appendChild(giftPopComInstance.$el);
  },

  close() {
    console.log(9999999999999);
    if (giftPopComInstance) {
      giftPopComInstance.show = false;
    }
  }
};

//评价规则
let pingJiaPopComInstance;
export const PingJiaPopComService = {
  create(datas, submit) {
    let option = {
      datas: datas,
      show: true
    };
    pingJiaPopComInstance = new PingJiaPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    pingJiaPopComInstance.$mount();
    document.body.appendChild(pingJiaPopComInstance.$el);
  },

  close() {
    if (pingJiaPopComInstance) {
      pingJiaPopComInstance.show = false;
    }
  }
};
//评价订单新规则
let pingJiaPopComInstanceOrder;
export const PingJiaPopComServiceOrder = {
  create(datas, submit) {
    let option = {
      datas: datas,
      show: true
    };
    pingJiaPopComInstanceOrder = new PingJiaPopComConstructorOrder({
      data: option,
      methods: {
        submit: submit
      }
    });
    pingJiaPopComInstanceOrder.$mount();
    document.body.appendChild(pingJiaPopComInstanceOrder.$el);
  },

  close() {
    if (pingJiaPopComInstanceOrder) {
      pingJiaPopComInstanceOrder.show = false;
    }
  }
};

// 登录接口check是否关注店铺 sureFollowShop
let sureFollowShopPopCom;
export const sureFollowShopPopComService = {
  create(datas, submit) {
    let option = {
      datas: datas,
      show: true
    };
    sureFollowShopPopCom = new sureFollowShopPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    sureFollowShopPopCom.$mount();
    document.body.appendChild(sureFollowShopPopCom.$el);
  },

  close() {
    if (sureFollowShopPopCom) {
      sureFollowShopPopCom.show = false;
    }
  }
};
//复购有礼未进行复购弹窗
let repeatOrderGiftPopComInstance;
export const RepeatOrderGiftPopComService = {
  create(data, submit) {
    let option = {
      data: data,
      show: true
    };
    repeatOrderGiftPopComInstance = new RepeatOrderGiftPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    repeatOrderGiftPopComInstance.$mount();
    document.body.appendChild(repeatOrderGiftPopComInstance.$el);
  },

  close() {
    if (repeatOrderGiftPopComInstance) {
      repeatOrderGiftPopComInstance.show = false;
    }
  }
};
//复购有礼没有资格弹窗
let repeatOrderGiftPopFailComInstance;
export const RepeatOrderGiftPopFailComService = {
  create(startTime, endTime, data, submit) {
    let option = {
      startTime: startTime,
      endTime: endTime,
      data: data,
      show: true
    };
    repeatOrderGiftPopFailComInstance = new RepeatOrderGiftPopFailComConstructor(
      {
        data: option,
        methods: {
          submit: submit
        }
      }
    );
    repeatOrderGiftPopFailComInstance.$mount();
    document.body.appendChild(repeatOrderGiftPopFailComInstance.$el);
  },

  close() {
    if (repeatOrderGiftPopFailComInstance) {
      repeatOrderGiftPopFailComInstance.show = false;
    }
  }
};
//复购有礼查订单
let repeatOrderCheckPopComInstance;
export const RepeatOrderCheckPopComService = {
  create(submit) {
    let option = {
      show: true
    };
    repeatOrderCheckPopComInstance = new RepeatOrderCheckPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    repeatOrderCheckPopComInstance.$mount();
    document.body.appendChild(repeatOrderCheckPopComInstance.$el);
  },

  close() {
    if (repeatOrderCheckPopComInstance) {
      repeatOrderCheckPopComInstance.show = false;
    }
  }
};

//N元M件弹窗
let npriceMcountPopComInstance;
export const NpriceMcountPopComService = {
  create(datas, submit) {
    // console.log('333333333333333')
    let option = {
      datas: datas,
      show: true
    };
    npriceMcountPopComInstance = new npriceMcountPopComConstructor({
      data: option,
      methods: {
        submit: submit
      }
    });
    npriceMcountPopComInstance.$mount();
    document.body.appendChild(npriceMcountPopComInstance.$el);
  },

  close() {
    if (npriceMcountPopComInstance) {
      npriceMcountPopComInstance.show = false;
    }
  }
};
