<template>
	<div id="noMeet"></div>
</template>

<script>
import { joinVipService, sureFollowShopPopComService } from '../util/comCreate.js';
import {
	AmnjoinVipService,
	AmnsureFollowShopPopComService,
	CommonjoinVipService, //可配置
	CommonsureFollowShopPopComService
} from '../util/hdzxtcomCreate.js';
export default {
	name: 'NoMeet',
	data() {
		return {
			follow: {
				followImg: '',
				btnColor3: ''
			},
			join: {
				joinImg: '',
				btnColor3: ''
			}
		};
	},
	created() {
		let loginDatas = JSON.parse(sessionStorage.getItem('joinInfo'));
		this.activityType = sessionStorage.getItem('activityType');
		this.templateId = sessionStorage.getItem('templateId');
		let code = loginDatas.joinInfo.joinCodeInfo.joinCode;
		let shopId = sessionStorage.getItem('shopId');
		console.log(shopId, '店铺id');
		if (shopId == '1000306683') {
			this.follow.followImg = '//img10.360buyimg.com/imgzone/jfs/t1/104863/31/29263/17652/62691a0cEf620c81e/b31805b02d508a93.png';
			this.follow.btnColor3 = '#f27eb6';
			this.join.btnColor3 = '#f27eb6';
			this.join.joinImg = '//img10.360buyimg.com/imgzone/jfs/t1/104809/29/28477/16515/62691a0cEbf567936/0aeb10836b328c85.png';
		}

		//   if(this.activityType == 10026 && this.templateId == "20220422152500jfcj02"){
		//     this.follow.followImg = '//img10.360buyimg.com/imgzone/jfs/t1/104863/31/29263/17652/62691a0cEf620c81e/b31805b02d508a93.png',
		//     this.follow.btnColor3 = '#f27eb6'
		//     this.join.btnColor3 = '#f27eb6'
		//     this.join.joinImg = '//img10.360buyimg.com/imgzone/jfs/t1/104809/29/28477/16515/62691a0cEbf567936/0aeb10836b328c85.png'

		// }

		//   if(this.activityType == 10070 && this.templateId == "9440237d-5260-4010-974a-01b118809876"){
		//     this.follow.followImg = '//img10.360buyimg.com/imgzone/jfs/t1/104863/31/29263/17652/62691a0cEf620c81e/b31805b02d508a93.png',
		//     this.follow.btnColor3 = '#f27eb6'
		//     this.join.btnColor3 = '#f27eb6'
		//     this.join.joinImg = '//img10.360buyimg.com/imgzone/jfs/t1/104809/29/28477/16515/62691a0cEbf567936/0aeb10836b328c85.png'
		//   }

		//   if(this.activityType == 10032 && this.templateId == "20220425142200jkyl01"){
		//     this.follow.followImg = '//img10.360buyimg.com/imgzone/jfs/t1/104863/31/29263/17652/62691a0cEf620c81e/b31805b02d508a93.png',
		//     this.follow.btnColor3 = '#f27eb6'
		//     this.join.btnColor3 = '#f27eb6'
		//     this.join.joinImg = '//img10.360buyimg.com/imgzone/jfs/t1/104809/29/28477/16515/62691a0cEbf567936/0aeb10836b328c85.png'
		//   }

		// 会员
		if (code == 1002 || code == 1003) {
			if (shopId == '1000306683') {
				//兰蔻
				CommonjoinVipService.create(loginDatas, this.join, submit => {});
			} else if (shopId == '1000410413') {
				//阿玛尼
				AmnjoinVipService.create(loginDatas, submit => {});
			} else {
				joinVipService.create(loginDatas, submit => {});
			}
			// // 欧莱雅
			// if (this.activityType == 10021 && this.templateId == '20220321151200dzpcj02') {
			// 	AmnjoinVipService.create(loginDatas, submit => {});
			// } else if (this.activityType == 10021 && this.templateId == '20220418140400dzpcj04') {
			// 	AmnjoinVipService.create(loginDatas, submit => {});
			// } else if (this.activityType == 10071) {
			// 	AmnjoinVipService.create(loginDatas, submit => {});
			// }

			// // 兰蔻
			// else if (this.activityType == 10026 && this.templateId == '20220422152500jfcj02') {
			// 	CommonjoinVipService.create(loginDatas, this.join, submit => {});
			// } else if (this.activityType == 10070 && this.templateId == '9440237d-5260-4010-974a-01b118809876') {
			// 	CommonjoinVipService.create(loginDatas, this.join, submit => {});
			// } else if (this.activityType == 10032 && this.templateId == '20220425142200jkyl01') {
			// 	CommonjoinVipService.create(loginDatas, this.join, submit => {});
			// } else {
			// 	joinVipService.create(loginDatas, submit => {});
			// }
		}
		// 关注
		if (code == 1004 || code == 1005 || code == 1006) {
			if (shopId == '1000306683') {
				//兰蔻
				CommonsureFollowShopPopComService.create(loginDatas, this.follow, submit => {});
			} else if (shopId == '1000410413') {
				//阿玛尼
				AmnsureFollowShopPopComService.create(loginDatas, submit => {});
			} else {
				sureFollowShopPopComService.create(loginDatas, submit => {});
			}

			// if (this.activityType == 10021 && this.templateId == '20220321151200dzpcj02') {
			// 	AmnsureFollowShopPopComService.create(loginDatas, submit => {});
			// } else if (this.activityType == 10021 && this.templateId == '20220418140400dzpcj04') {
			// 	AmnsureFollowShopPopComService.create(loginDatas, submit => {});
			// } else if (this.activityType == 10071) {
			// 	AmnsureFollowShopPopComService.create(loginDatas, submit => {});
			// }
			// 兰蔻
			// else if (this.activityType == 10026 && this.templateId == '20220422152500jfcj02') {
			// 	CommonsureFollowShopPopComService.create(loginDatas, this.follow, submit => {});
			// } else if (this.activityType == 10070 && this.templateId == '9440237d-5260-4010-974a-01b118809876') {
			// 	CommonsureFollowShopPopComService.create(loginDatas, this.follow, submit => {});
			// } else if (this.activityType == 10032 && this.templateId == '20220425142200jkyl01') {
			// 	CommonsureFollowShopPopComService.create(loginDatas, this.follow, submit => {});
			// } else {
			// 	sureFollowShopPopComService.create(loginDatas, submit => {});
			// }
		}
	}
};
</script>

<style lang="scss"></style>
