调用飞猴用户服务协议、飞猴隐私政策
							parent
							
								
									4ea5a4223c
								
							
						
					
					
						commit
						b105715ccc
					
				|  | @ -1,18 +1,36 @@ | ||||||
| <template> | <template> | ||||||
| 	<view> | 	<view> | ||||||
|  | 		<status-nav :navBarTitle="title" returnColor="#c2c2c2"></status-nav> | ||||||
|  | 		<container-subgroup> | ||||||
|  | 			<view slot="content" style="margin: 0 -30rpx;" class="bacf"> | ||||||
| 				 | 				 | ||||||
| 			</view> | 			</view> | ||||||
|  | 		</container-subgroup> | ||||||
|  | 	</view> | ||||||
| </template> | </template> | ||||||
| 
 | 
 | ||||||
| <script> | <script> | ||||||
| 	export default { | 	export default { | ||||||
| 		data(){ | 		data(){ | ||||||
| 			return { | 			return { | ||||||
| 				 | 				title:'',//标题 | ||||||
|  | 				richText:''//富文本详情 | ||||||
| 			} | 			} | ||||||
| 		}, | 		}, | ||||||
| 		onLoad() { | 		onLoad(options) { | ||||||
| 			 | 			options.type*1 ? this.title = '飞猴隐私政策' : this.title = '飞猴用户服务协议'; | ||||||
|  | 			this.checkAgreement(options.type); | ||||||
|  | 		}, | ||||||
|  | 		methods:{ | ||||||
|  | 			checkAgreement(type){ | ||||||
|  | 				console.log(type,26); | ||||||
|  | 				let url = type*1 ? '/universal/api.login/register_user_agreement' : '/universal/api.login/register_privacy_agreement'; | ||||||
|  | 				this.$requst.post(url).then(res=>{ | ||||||
|  | 					if(res.code==1) { | ||||||
|  | 						// this.richText =  | ||||||
|  | 					} else this.$toolAll.tools.showToast(res.msg); | ||||||
|  | 				}) | ||||||
|  | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
|  | @ -266,7 +266,9 @@ | ||||||
| 			}, | 			}, | ||||||
| 			// 前往协议或政策 | 			// 前往协议或政策 | ||||||
| 			goXY(index){ | 			goXY(index){ | ||||||
| 				console.log(index); | 				uni.navigateTo({ | ||||||
|  | 					url:`/pages/login/agreement?type=${index}` | ||||||
|  | 				}) | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue