فهرست منبع

添加隐身和政策开始弹出框

slambb 3 سال پیش
والد
کامیت
29d5d47167

+ 27 - 0
androidPrivacy.json

@@ -0,0 +1,27 @@
+{  
+  "version": "21112901",    
+  "prompt": "template",  
+  "title": "服务协议和隐私政策",  
+  "message": "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href='https://www.9527fun.cn/doc/Agreement.html'>《服务协议》</a>和<a href='https://www.9527fun.cn/doc/PrivacyPolicy.html'>《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",  
+  "buttonAccept": "同意并接受",  
+  "buttonRefuse": "暂不同意",  
+  "second": {  
+    "title": "确认提示",  
+    "message": "  进入应用前,你需先同意<a href='https://www.9527fun.cn/doc/Agreement.html'>《服务协议》</a>和<a href='https://www.9527fun.cn/doc/PrivacyPolicy.html'>《隐私政策》</a>,否则将退出应用。",  
+    "buttonAccept": "同意并继续",  
+    "buttonRefuse": "退出应用"  
+  },  
+  "styles": {  
+    "backgroundColor": "#FFFFFF",  
+    "borderRadius":"5px",  
+    "title": {  
+      "color": "#000000"  
+    },  
+    "buttonAccept": {  
+      "color": "#000000"  
+    },  
+    "buttonRefuse": {  
+      "color": "#000000"  
+    }  
+  }  
+}

+ 2 - 2
common/config.js

@@ -7,7 +7,7 @@ const refreshRate = "a";
 //*******当前活动环境,需要和根据地址设置!!环境 dev,prd
 const active = "dev";
 //线上地址,腾讯云服务器
-// const host="https://www.9527fun.cn/api_prd"
+const host="https://www.9527fun.cn/api_prd"
 //测试地址,阿里云服务器
 // const host = "https://www.9527fun.cn/api_dev"
 //本地测试地址
@@ -15,7 +15,7 @@ const active = "dev";
 // const host = "http://192.168.0.112:9090/api_dev"
 // const host = "http://47.104.216.192:9090/api_dev"
 // const host = "http://121.4.103.151:9090/api_prd"
-const host = "http://121.4.59.141:9090/api_dev"
+// const host = "http://121.4.59.141:9090/api_dev"
 
 const URL = {
 	//验证token,获取服务器返回的信息

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "哔蹦",
     "appid" : "__UNI__2635DF5",
     "description" : "",
-    "versionName" : "2.5.11",
-    "versionCode" : 21111801,
+    "versionName" : "2.5.14",
+    "versionCode" : 21120103,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {

+ 4 - 1
pages.json

@@ -175,7 +175,10 @@
 
 		, {
 			"path": "pages/login-page/userAgreement/userAgreement",
-			"style": {}
+			"style": {
+				"navigationStyle": "default",
+				"navigationBarTitleText": ""
+			}
 		}, {
 			"path": "pages/personal-page/devices-category/devices-category",
 			"style": {}

+ 58 - 5
pages/login-page/login/login.vue

@@ -108,12 +108,17 @@
 
 			</view>
 			<view v-if="bGetCode">
-				<view class="action-row-text " style="margin-top: 30rpx;">
-					<view class="text-gray">登录即代表同意哔蹦</view>
-					<view class="text-bold text-decoration make-text-bPurple" @tap="onSwitchAgree('agreement')">用户协议
+				<view class="action-row-text " style="margin-top: 25rpx;">
+					<checkbox-group style="transform: scale(0.7,0.7);" @change="CheckboxChange">
+						<checkbox class='round red' :class="checkbox[0].checked?'checked':''"
+							:checked="checkbox[0].checked?true:false" value="A"></checkbox>
+					</checkbox-group>
+					<!-- 登录即代表同意哔蹦 我已阅读并同意-->
+					<view class="text-gray" style="margin-top: 2px;">我已阅读并同意</view>
+					<view class="text-bold text-decoration make-text-bPurple" style="margin-top: 2px;" @tap="onSwitchAgree('agreement')">用户协议
 					</view>
-					<view class="text-gray">和</view>
-					<view class="text-bold text-decoration make-text-bPurple" @tap="onSwitchAgree('privacy')">隐私政策
+					<view class="text-gray" style="margin-top: 2px;">和</view>
+					<view class="text-bold text-decoration make-text-bPurple" style="margin-top: 2px;" @tap="onSwitchAgree('privacy')">隐私政策
 					</view>
 				</view>
 			</view>
@@ -185,6 +190,10 @@
 
 				//苹果服务
 				appleOauth: null,
+				checkbox: [{
+					value: 'A',
+					checked: false
+				}],
 			}
 		},
 		computed: mapState(['bNewUser', 'forcedLogin', 'phoneNumber', 'mailboxNumber', 'bCodeDisabled', 'count',
@@ -195,6 +204,20 @@
 			...mapMutations(['login', 'addUserAvatarAndLogin', 'appleUserInfoLogin', 'accountLogin', 'countDown',
 				'resetCountDown'
 			]),
+			CheckboxChange(e) {
+				console.log(11);
+				var items = this.checkbox,
+					values = e.detail.value;
+				for (var i = 0, lenI = items.length; i < lenI; ++i) {
+					items[i].checked = false;
+					for (var j = 0, lenJ = values.length; j < lenJ; ++j) {
+						if (items[i].value == values[j]) {
+							items[i].checked = true;
+							break
+						}
+					}
+				}
+			},
 			initProvider() {
 				// const filters = ['weixin', 'qq', 'sinaweibo'];
 				const filters = ['weixin'];
@@ -265,6 +288,13 @@
 
 			bindLogin() {
 				let _self = this;
+				if(!_self.checkbox[0].checked){
+					uni.showToast({
+						icon: 'none',
+						title: '请阅读并勾选下方协议'
+					});
+					return;
+				}
 				uni.showToast({
 					icon: 'loading',
 					title: '',
@@ -355,6 +385,13 @@
 			},
 			oauth(value) {
 				let _self = this;
+				if(!_self.checkbox[0].checked){
+					uni.showToast({
+						icon: 'none',
+						title: '请阅读并勾选下方协议'
+					});
+					return;
+				}
 				uni.showToast({
 					title: "",
 					icon: "loading",
@@ -554,6 +591,15 @@
 				this.bPhoneNumberAndPasswordLogin = !this.bPhoneNumberAndPasswordLogin;
 			},
 			onNavToReg() {
+				
+				if(!this.checkbox[0].checked){
+					uni.showToast({
+						icon: 'none',
+						title: '请阅读并勾选下方协议'
+					});
+					return;
+				}
+				
 				if (this.bMobileLogin) {
 					if (!verify.checkPhone(this.account)) {
 						uni.showToast({
@@ -706,6 +752,13 @@
 				})
 			},
 			onAppleReg() {
+				if(!this.checkbox[0].checked){
+					uni.showToast({
+						icon: 'none',
+						title: '请阅读并勾选下方协议'
+					});
+					return;
+				}
 				this.onAppleLogout(() => {
 					this.onAppleRegEvent();
 				})

+ 8 - 5
pages/login-page/userAgreement/userAgreement.vue

@@ -1,15 +1,18 @@
 <template>
     <view class="content">
-      <uni-nav-bar id="nav-bar" status-bar="true" @clickLeft="onBack()" :title="title" color="#000000" fixed="true" :border="false">
+      <!-- <uni-nav-bar id="nav-bar" status-bar="true" @clickLeft="onBack()" :title="title" color="#000000" fixed="true" :border="false">
       	<view slot="left">
       		<view class=" flex align-center margin-left">
       			<image class="p-left-arrow" src="../../../static/p-left-arrow.png"></image>
       		</view>
       	</view>
-      
-      </uni-nav-bar>
+      </uni-nav-bar> -->
+	  <web-view  :src="bAgreement?'https://www.9527fun.cn/doc/Agreement.html':'https://www.9527fun.cn/doc/PrivacyPolicy.html'">
+	  		  
+	  </web-view>
+	
 	  
-	  <view style="margin:10px;">
+	 <!-- <view style="margin:10px;">
 		  <text v-if="bAgreement">
 		  	  (以下简称“本公司”)按照下列条款与条件提供信息和产品,您在本协议中亦可被称为“用户”,以下所述条款和条件将构成您与本公司,就您使用提供的内容所达成的全部协议(以下称“本协议”)。
 		  	  
@@ -316,7 +319,7 @@
 				我们可能适时修订本《隐私政策》的条款,该等修订构成本《隐私政策》的一部分。如该等修订造成您在本《隐私政策》下权利的实质减少,我们将在修订生效前通过在主页上显著位置提示或向您发送电子邮件或以其他方式通知您。在该种情况下,若您继续使用我们的服务,即表示同意受经修订的本《隐私政策》的约束。
 			</text>
 		  
-	  </view>
+	  </view> -->
 	</view>
 </template>
 

+ 24 - 24
pages/personal-page/personal/personal.vue

@@ -206,9 +206,9 @@
 			<!-- <view class="example">
 				<button @click="onTipLevel">显示 ontipLevel</button>
 			</view> -->
-			<view class="example" style="margin-top: 10rpx;">
+			<!-- <view class="example" style="margin-top: 10rpx;">
 				<button @click="onNavToDirection">跳转校准页面</button>
-			</view>
+			</view> -->
 			<!-- <view class="example">
 				<button @click="onGetBluetoothConnectView({
 												hiddenType: 'firstInstallation'
@@ -223,7 +223,7 @@
 											})">计划</button>
 			</view> -->
 			
-			<view style="height: 100rpx;"></view>
+			<view style="height: 50rpx;"></view>
 		</scroll-view>
 
 		<!-- 底部中间上滑按钮 -->
@@ -477,31 +477,31 @@
 		</view>
 
 		<!-- 这里vConsole 是为了解决再页面内显示vconsole -->
-		<view id="vconsole" :prop="vLog" :change:prop="vconsole.updateData"></view>
+		<!-- <view id="vconsole" :prop="vLog" :change:prop="vconsole.updateData"></view> -->
 	</view>
 </template>
 
 <!-- 这里vConsole 是为了解决再页面内显示vconsole -->
-<script module="vconsole" lang="renderjs">
-	import VConsole from '../../../util/util-js/vconsole.min.js'
-	new VConsole();
-	export default {
-		mounted() {
-			// ...
-		},
-		data: {
-			return () {}
-		},
-		methods: {
-			updateData(newValue, oldValue, ownerInstance, instance) {
-				// newValue: 新数据
-				// oldValue: 老数据
-				var log = console.log.bind(console);
-				log(newValue)
-			}
-		}
-	}
-</script>
+// <script module="vconsole" lang="renderjs">
+// 	import VConsole from '../../../util/util-js/vconsole.min.js'
+// 	new VConsole();
+// 	export default {
+// 		mounted() {
+// 			// ...
+// 		},
+// 		data: {
+// 			return () {}
+// 		},
+// 		methods: {
+// 			updateData(newValue, oldValue, ownerInstance, instance) {
+// 				// newValue: 新数据
+// 				// oldValue: 老数据
+// 				var log = console.log.bind(console);
+// 				log(newValue)
+// 			}
+// 		}
+// 	}
+// </script>
 
 <script>
 	// import uniNavBar from '@/components/uni-nav-bar/uni-nav-bar.vue';