|  |  | @ -58,7 +58,8 @@ | 
			
		
	
		
			
				
					|  |  |  | <view>报名费用</view> | 
			
		
	
		
			
				
					|  |  |  | </view> | 
			
		
	
		
			
				
					|  |  |  | <view class="caozuo-box"> | 
			
		
	
		
			
				
					|  |  |  | <view class="caozuo-item border-r"> | 
			
		
	
		
			
				
					|  |  |  | <view class="caozuo-item border-r" | 
			
		
	
		
			
				
					|  |  |  | @click="collect"> | 
			
		
	
		
			
				
					|  |  |  | <image src="@/static/image/home/shoucang-icon.png" mode=""></image> | 
			
		
	
		
			
				
					|  |  |  | <text>收藏</text> | 
			
		
	
		
			
				
					|  |  |  | </view> | 
			
		
	
	
		
			
				
					|  |  | @ -191,15 +192,15 @@ import { error } from '../uni_modules/uv-ui-tools/libs/function' | 
			
		
	
		
			
				
					|  |  |  | methods:{ | 
			
		
	
		
			
				
					|  |  |  | daohang() { | 
			
		
	
		
			
				
					|  |  |  | uni.openLocation({ | 
			
		
	
		
			
				
					|  |  |  | latitude: Number(this.activityDetails.latitude), | 
			
		
	
		
			
				
					|  |  |  | longitude: Number(this.activityDetails.longitude), | 
			
		
	
		
			
				
					|  |  |  | success: function () { | 
			
		
	
		
			
				
					|  |  |  | console.log('success'); | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | fail:(error)=> { | 
			
		
	
		
			
				
					|  |  |  | console.log('error',error); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | }); | 
			
		
	
		
			
				
					|  |  |  | latitude: Number(this.activityDetails.latitude), | 
			
		
	
		
			
				
					|  |  |  | longitude: Number(this.activityDetails.longitude), | 
			
		
	
		
			
				
					|  |  |  | success: function () { | 
			
		
	
		
			
				
					|  |  |  | console.log('success'); | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | fail:(error)=> { | 
			
		
	
		
			
				
					|  |  |  | console.log('error',error); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | }); | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | activityInfo(activityId) { | 
			
		
	
		
			
				
					|  |  |  | this.$api('activityInfo',{activityId},res=> { | 
			
		
	
	
		
			
				
					|  |  | @ -220,6 +221,19 @@ import { error } from '../uni_modules/uv-ui-tools/libs/function' | 
			
		
	
		
			
				
					|  |  |  | chooseClick(item,i) { | 
			
		
	
		
			
				
					|  |  |  | this.chooseIndex = i | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | collect(){ | 
			
		
	
		
			
				
					|  |  |  | this.$api('collect', { | 
			
		
	
		
			
				
					|  |  |  | id : this.activityId | 
			
		
	
		
			
				
					|  |  |  | }, res => { | 
			
		
	
		
			
				
					|  |  |  | this.activityInfo(this.activityId) | 
			
		
	
		
			
				
					|  |  |  | if(res.code == 200){ | 
			
		
	
		
			
				
					|  |  |  | uni.showToast({ | 
			
		
	
		
			
				
					|  |  |  | title: res.message, | 
			
		
	
		
			
				
					|  |  |  | icon: 'none' | 
			
		
	
		
			
				
					|  |  |  | }) | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | }) | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | confirmClick(typePrice) { | 
			
		
	
		
			
				
					|  |  |  | this.$api('createOrder',{id:this.activityId,typePrice:typePrice,type:0},res=>{ | 
			
		
	
		
			
				
					|  |  |  | if(res.code === 200) { | 
			
		
	
	
		
			
				
					|  |  | 
 |