<template>
	<view class="box">
		<view class="imgBox">
			<image  class="scimg" :src="img" mode="widthFix"></image>
		</view>
		<view class="cont">
			<view class="name">活动名称展示区域</view>
			<view class="name2">活动时间展示区域</view>
			<view class="name3">这里展示活动说明，如果后台没填则不展示</view>
		</view>
		<view style="height: 98rpx;"></view>
		<view class="btn" @click="eadit" v-if="iOSInfo.indexOf('Q021')!=-1||!iOSInfo">编辑内容</view><!-- v-if="qxdata.indexOf('Q021')!=-1" -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				img:'',
				qxdata:'',
				iOSInfo:'',
			}
		},
		onLoad(opt) {
           this.img=opt.img;
		    let iOSInfo = JSON.parse(JSON.stringify(window.iOSInfo));
		     var qxnum=uni.getStorageSync("quanxian");
		     if(qxnum==1){
		     	this.iOSInfo = JSON.parse(JSON.stringify(window.iOSInfo));
		     }else if(qxnum==2){
				 window.getAndroid=this.getAndroid;
			 }
		},
		onShow() {
			
		},
		methods: {
			getAndroid(e){	
				this.iOSInfo=e		
			},
            eadit(){
				uni.removeStorageSync('shopckList');
				uni.removeStorageSync('ckmusic');
				uni.navigateTo({
					url:'eadit?img='+this.img
				})
			}
		}
	}
</script>

<style scoped>
.imgBox{
	width: 750rpx;
}
.scimg{
	width: 750rpx;
	display: block;
}
.cont{
	background: #ffffff;
	border-radius: 24rpx 24rpx 0px 0px;
	margin-top: -30rpx;
	padding: 30rpx 24rpx;
	position: relative;
}
.name{
	color: #3C3C3C;
	line-height: 42rpx;
	font-weight: 500;
	font-size: 30rpx;
}
.name2{
	color: #3C3C3C;
	line-height: 36rpx;
	font-weight: 400;
	font-size: 26rpx;
	padding-top: 16rpx;
}
.name3{
	color: #999999;
	line-height: 36rpx;
	font-weight: 400;
	font-size: 26rpx;
	padding-top: 16rpx;
}
.btn{
	width: 750rpx;
	height: 98rpx;
	background: #3F90F7;
	position: fixed;
	left: 0;
	bottom: 0;
	line-height: 98rpx;
	text-align: center;
	color: #ffffff;
	font-size: 30rpx;
}
</style>
