<template>
	<dm-pop-view ref='popView' :isShowTitle="false" :isShowClose="false" :isShowConfirm="false" :maskTapHide='maskTapHide'>
		<view class="content" v-if="false">
			<view class="content_success">
				<image class="img_success" src="../../static/icons/complete_success.png" mode=""></image>
			</view>
			<view class="content-des">保存完成！</view>
			<view class="goBtn" :style="`background-color: ${themeColor};`" @click="confirmAction">好的</view>
		</view>
		<view  class="content" v-if="false">
			<view class="content_success">
				<image class="img_success" src="../../static/icons/complete_failure.png" mode=""></image>
			</view>
			<view class="content-des">保存失败！</view>
			<view class="goBtn" :style="`background-color: ${themeColor};`" @click="confirmAction">重新编辑</view>
		</view>
		<view  class="content">
			<view class="content_success">
				<view style="position: relative;margin-top: 100rpx;width: 118rpx;height: 118rpx;">
					<image class="img_success" src="../../static/icons/icon_info_bt_bg.png" mode="" style="margin-top: 0rpx;"></image>
					<image style="width: 54rpx;height: 10rpx;position: absolute;left: 50%;top: 50%;transform: translate(-50%,-50%);" src="../../static/icons/diandiandian.png" mode=""></image>
				</view>
				
			</view>
			<view class="content-des">填写完必填项后，方可保存</view>
			<view class="goBtn" :style="`background-color: ${themeColor};`" @click="confirmAction">继续填写</view>
		</view>
	</dm-pop-view>
</template>

<script>
	import dmPopView from './dmPopView.vue'
	
	let app = getApp();
	export default {
		props: {
			maskTapHide: {
				type: Boolean,
				default: true
			}
		},
		data() {
			return {
				themeColor: null,
				fuzhuColor: null,
				themeColor50: null,
				themeColor25: null,
				fuzhuColor50: null,
			}
		},
		mounted() {
			this.themeColor = app.globalData.themeColor
			this.themeColor50 = app.globalData.themeColor50
			this.themeColor25 = app.globalData.themeColor25
			this.fuzhuColor = app.globalData.fuzhuColor
			this.fuzhuColor50 = app.globalData.fuzhuColor50
			
		},
		methods: {
			show() {
				this.$refs.popView.show()
			},
			knowAction(){
				this.$refs.popView.hide()
			},
			confirmAction() {
				this.$refs.popView.hide()
				this.$emit('confirmAction')
			}
		},
		components: {
			dmPopView
		}
	}
</script>

<style scoped lang="scss">
	.content {
		width: 100%;
		height: 520rpx;
		font-family: Verdana;
		
		.content_success{
			width: 100%;
			height: 118rpx;
			border-radius: 50%;
			display: flex;
			justify-content: center;
			
			.img_success{
				width: 118rpx;
				height: 118rpx;
				border-radius: 50%;
				margin-top: 100rpx;
			}
		}
		.content-des {
			color: #333333;
			font-size: 32rpx;
			font-weight: bold;
			margin-top: 125rpx;
			text-align: center;
		}
		
		.goBtn {
			width: 260rpx;
			height: 84rpx;
			border-radius: 42rpx;
			margin-left: calc((100% - 260rpx) / 2);
			margin-top: 90rpx;
			font-size: 32rpx;
			color: #FFFFFF;
			line-height: 84rpx;
			text-align: center;
		}
		
	}
</style>
