张文飞 hace 3 años
padre
commit
3311ce1fcf

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 5 - 5
components/subComponents/dmAgreement.vue


+ 13 - 5
components/subComponents/dmLogin.vue

@@ -23,9 +23,9 @@
 					</view>
 				</view>
 			</view>
-			<view class="agreement"  @click="agreeXieYI">
-				<image class="icon_agree" v-if="agree" src="../../static/icons/icon_yezhu_selected.png" mode=""></image>
-				<image class="icon_agree" v-else src="../../static/icons/icon_yezhu_unselected.png" mode=""></image>
+			<view class="agreement"  >
+				<image class="icon_agree" @click="agreeXieYI" v-if="agree" src="../../static/icons/icon_yezhu_selected.png" mode=""></image>
+				<image class="icon_agree"  @click="agreeXieYI" v-else src="../../static/icons/icon_yezhu_unselected.png" mode=""></image>
 				
 				我已阅读并同意
 				<text class="agreement_" @click="yonghuxy">《用户使用协议》</text>
@@ -54,8 +54,16 @@
 			}
 		},
 		methods:{
-			yonghuxy(){},
-			ysxieyi(){},
+			yonghuxy(){
+				uni.navigateTo({
+					url:"../../pages/webviewPage/webviewPage?type=1"
+				})
+			},
+			ysxieyi(){
+				uni.navigateTo({
+					url:"../../pages/webviewPage/webviewPage?type=2"
+				})
+			},
 			agreeXieYI(){
 				this.agree = !this.agree
 			},

+ 9 - 0
pages.json

@@ -99,6 +99,15 @@
             }
             
         }
+        ,{
+            "path" : "pages/webviewPage/webviewPage",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",

+ 13 - 2
pages/ownerCertification/ownerCertification.vue

@@ -95,7 +95,7 @@
 		<view class="btn_next" @click="toRegist">
 			下一步
 		</view>
-		<dmAgreeement ref='agreement' @agree='agreeXieyi'></dmAgreeement>
+		<dmAgreeement ref='agreement' @agree='agreeXieyi' :url='proviceUrl'></dmAgreeement>
 		<dmPickerView ref="genderPicker" :options="genderList" :value="gender" @confirm="confirm" title="性别"></dmPickerView>
 	    <dmPickerView ref="housePicker" :options="houseList" :value="houseId" @confirm="houseConfirm" title="认证项目"></dmPickerView>
 	    <dmPickerView ref="certificateTypePicker" :options="certificateTypeList" :value="certificateType" @confirm="certificateTypeConfirm" title="证件类型"></dmPickerView>
@@ -148,7 +148,8 @@
 				roomNo:"",
 				timer:null,
 				countdownTimes:120,
-				showInputVerifity:true
+				showInputVerifity:true,
+				proviceUrl:"",
 			};
 		},
 		onLoad(param) {
@@ -156,8 +157,18 @@
 		},
 		created() {
 			this.queryProjectBox();
+			this.queryProtocolConfigView();
 		},
 		methods:{
+			async queryProtocolConfigView(){
+				let res = await this.$myRequest({
+					url: "/project/queryProtocolConfigView",
+					data: {},
+				})
+				if(res.data.success){
+					this.proviceUrl = res.data.single.ownerRegistProtocol;
+				}
+			},
 			onKeyYHKNameInput(event){
 				let value = event.target.value;
 				let patt = /.*[0-9]{1,}.*/i;

+ 59 - 0
pages/webviewPage/webviewPage.vue

@@ -0,0 +1,59 @@
+<template>
+	<view>
+		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				url: "",
+				webviewStyles: {
+					progress: {
+						color: '#F07423'
+					}
+				},
+				type:""
+			};
+		},
+		onLoad(param) {
+			this.type = param.type;
+			let title = ""
+			if(this.type==1){
+				title = "用户使用协议"
+			}else if(this.type==2){
+				title = "隐私协议"
+			}else if(this.type==3){
+				title = "入驻协议"
+			}
+			uni.setNavigationBarTitle({
+				title:title
+			})
+			this.webviewStyles.progress.color = getApp().globalData.color1;
+			this.queryProtocolConfigView();
+		},
+		methods:{
+			async queryProtocolConfigView(){
+				let res = await this.$myRequest({
+					url: "/project/queryProtocolConfigView",
+					data: {},
+				})
+				if(res.data.success){
+					if(this.type='1'){ //使用协议
+						this.url = res.data.single.userUseProtocol;
+					}else if(this.type='2') { //隐私协议
+						this.url = res.data.single.userPrivacyProtocol;
+					}else if(this.type='3') { //业主注册协议
+						this.url = res.data.single.ownerRegistProtocol;
+					}
+					
+				}
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+
+</style>