|  | @@ -13,7 +13,7 @@
 | 
	
		
			
				|  |  |  					<view class="name">{{detail.actName}}</view>
 | 
	
		
			
				|  |  |  					<view class="time" v-if="detail.startTime">
 | 
	
		
			
				|  |  |  						有效期:{{detail.startTime.slice(0,10)}}-{{detail.endTime.slice(0,10)}}</view>
 | 
	
		
			
				|  |  | -					<view class="time" v-else>有效期:</view>
 | 
	
		
			
				|  |  | +					<view class="time" v-else>有效期:领取后{{detail.endOffsetDays}}天有效</view>
 | 
	
		
			
				|  |  |  				</view>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			</view>
 | 
	
	
		
			
				|  | @@ -84,6 +84,7 @@
 | 
	
		
			
				|  |  |  				userInfo:'',
 | 
	
		
			
				|  |  |  				ext:'',
 | 
	
		
			
				|  |  |  				wxOpenData:'',
 | 
	
		
			
				|  |  | +				scene:'',
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		onLoad(opt) {
 | 
	
	
		
			
				|  | @@ -92,13 +93,25 @@
 | 
	
		
			
				|  |  |  			this.type=opt.type;
 | 
	
		
			
				|  |  |  			this.userInfo=this.$store.state.userInfo;
 | 
	
		
			
				|  |  |  			this.ext=this.$common.getExtStoreId();
 | 
	
		
			
				|  |  | +			//scene=2E03F5108B434EFABD70F2D208890209
 | 
	
		
			
				|  |  |  			if(this.userInfo){
 | 
	
		
			
				|  |  | -				this.getData();
 | 
	
		
			
				|  |  | +				if(opt.scene&&opt.scene!='undefined'){
 | 
	
		
			
				|  |  | +					this.scene=opt.scene;
 | 
	
		
			
				|  |  | +					this.getShareParams()
 | 
	
		
			
				|  |  | +				}else{
 | 
	
		
			
				|  |  | +				 this.getData();
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +				
 | 
	
		
			
				|  |  |  			}else{
 | 
	
		
			
				|  |  |  				this.$common.automaticlogin().then(val => {
 | 
	
		
			
				|  |  |  					this.userInfo=this.$store.state.userInfo;
 | 
	
		
			
				|  |  |  					this.wxOpenData=this.$store.state.wxOpenData;
 | 
	
		
			
				|  |  | -					this.getData();
 | 
	
		
			
				|  |  | +					if(opt.scene&&opt.scene!='undefined'){
 | 
	
		
			
				|  |  | +						this.scene=opt.scene;
 | 
	
		
			
				|  |  | +						this.getShareParams()
 | 
	
		
			
				|  |  | +					}else{
 | 
	
		
			
				|  |  | +					 this.getData();
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  |  					if(!this.userInfo){
 | 
	
		
			
				|  |  |  						this.authorizShow=true
 | 
	
		
			
				|  |  |  					}
 | 
	
	
		
			
				|  | @@ -108,6 +121,16 @@
 | 
	
		
			
				|  |  |  			
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		methods: {
 | 
	
		
			
				|  |  | +			getShareParams(){
 | 
	
		
			
				|  |  | +				this.$http('openMall/getShareParamsCache', {
 | 
	
		
			
				|  |  | +				  scene:this.scene,
 | 
	
		
			
				|  |  | +				 },'GET').then(res => {
 | 
	
		
			
				|  |  | +					 var data= JSON.parse(res.data) ;
 | 
	
		
			
				|  |  | +					 console.log(data)
 | 
	
		
			
				|  |  | +					 this.id=data.couponId;
 | 
	
		
			
				|  |  | +					 this.getData(); 
 | 
	
		
			
				|  |  | +				 })
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  |  			receive(id){
 | 
	
		
			
				|  |  |  				uni.showLoading({
 | 
	
		
			
				|  |  |  					title: '领取中'
 | 
	
	
		
			
				|  | @@ -137,7 +160,7 @@
 | 
	
		
			
				|  |  |  						custId:this.$store.state.wxOpenData.loginInfo.customerInfo.id
 | 
	
		
			
				|  |  |  					}
 | 
	
		
			
				|  |  |  				}else{
 | 
	
		
			
				|  |  | -					var url='opencoupon/detailsCoupon'
 | 
	
		
			
				|  |  | +					var url='opencoupon/detailsCouponDetails'
 | 
	
		
			
				|  |  |  					var params={
 | 
	
		
			
				|  |  |  						id: this.id,
 | 
	
		
			
				|  |  |  					}
 |