diff --git a/App.vue b/App.vue
index 5ae3568b0e86515c80a1faacea0e86ff87af9b9f..e7c79a75058db6be3d34e7325fdd976074a80341 100644
--- a/App.vue
+++ b/App.vue
@@ -1,5 +1,6 @@
-
-
diff --git a/uni_modules/uni-agree/pages/uni-agree/uni-agree.nvue b/uni_modules/uni-agree/pages/uni-agree/uni-agree.nvue
new file mode 100644
index 0000000000000000000000000000000000000000..ca5110cc33f7b1ddcf36efba7d6198200c4d1f84
--- /dev/null
+++ b/uni_modules/uni-agree/pages/uni-agree/uni-agree.nvue
@@ -0,0 +1,124 @@
+
+
+
+ 个人信息保护指引
+
+
+ 1.在浏览使用时,我们会收集、使用设备标识信息用于推荐。
+
+
+ 2.我们可能会申请位置权限,用于演示 uni-app 的地图、定位能力。
+
+
+ 3.你可以查看完整版
+
+
+ 《用户协议》
+ 和
+ 《隐私政策》
+
+
+ 以便了解我们收集、使用、共享、存储信息的情况,以及对信息的保护措施。
+
+
+ 如果你同意请点击下面的按钮以接受我们的服务
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni_modules/uni-agree/pages/uni-agree/uni-agree.vue b/uni_modules/uni-agree/pages/uni-agree/uni-agree.vue
deleted file mode 100644
index eb26226618411596eb090aecbb2c2e010b0ab9b7..0000000000000000000000000000000000000000
--- a/uni_modules/uni-agree/pages/uni-agree/uni-agree.vue
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/uni_modules/uni-agree/utils/uni-agree.js b/uni_modules/uni-agree/utils/uni-agree.js
index d0331147d93a51a8c7cd4cd6415138f022706883..dd9ed6d09fee99f1d5c84b0ed4f1375052f31daf 100644
--- a/uni_modules/uni-agree/utils/uni-agree.js
+++ b/uni_modules/uni-agree/utils/uni-agree.js
@@ -1,9 +1,10 @@
-export default function checkIsAgree(){
+export default function(){
if (uni.getSystemInfoSync().platform == "android") {
let iKnowAgree = uni.getStorageSync('iKnowAgree') || false;
if(!iKnowAgree){
uni.navigateTo({
- url:'/uni_modules/uni-agree/pages/uni-agree/uni-agree'
+ url:'uni_modules/uni-agree/pages/uni-agree/uni-agree',
+ animationType:"none"
})
}
}
diff --git a/uni_modules/uni-id-users/js_sdk/validator/uni-id-users.js b/uni_modules/uni-id-users/js_sdk/validator/uni-id-users.js
index ae8b1e3ba56cf59630fadefa4af63410ee1b1a6c..f17ba657c11bcf6453342d4601a00746f714fc1b 100644
--- a/uni_modules/uni-id-users/js_sdk/validator/uni-id-users.js
+++ b/uni_modules/uni-id-users/js_sdk/validator/uni-id-users.js
@@ -32,16 +32,16 @@ const validator = {
"defaultValue": 0,
"label": "性别"
},
- "mobile": {
- "rules": [{
- "format": "string"
- },
- {
- "pattern": "^\\+?[0-9-]{3,20}$"
- }
- ],
- "label": "手机号码"
- },
+ // "mobile": {
+ // "rules": [{
+ // "format": "string"
+ // },
+ // {
+ // "pattern": "^\\+?[0-9-]{3,20}$"
+ // }
+ // ],
+ // "label": "手机号码"
+ // },
"nickname": {
"rules": [{
diff --git a/uni_modules/uni-id-users/pages/uni-id-users/edit.vue b/uni_modules/uni-id-users/pages/uni-id-users/edit.vue
index 1a54fea55be97a87d10241b79ebafeabaee7e8a4..eaf387d1e67515d905a68d6e08e86262378b6869 100644
--- a/uni_modules/uni-id-users/pages/uni-id-users/edit.vue
+++ b/uni_modules/uni-id-users/pages/uni-id-users/edit.vue
@@ -11,7 +11,7 @@
-
+
@@ -68,7 +68,7 @@
]
},
rules: {
- ...getValidator(["avatar", "gender", "mobile", "nickname"])
+ ...getValidator(["avatar", "gender", "nickname"])
}
}
},
diff --git a/uni_modules/uni-login-page/common/loginPage.mixin.js b/uni_modules/uni-login-page/common/loginPage.mixin.js
index 39d6184a9fc8982d6eb778b5ec5c640e77b5132f..0c492e29b18242fa2aa9f46fc5db0dfc00f06fd0 100644
--- a/uni_modules/uni-login-page/common/loginPage.mixin.js
+++ b/uni_modules/uni-login-page/common/loginPage.mixin.js
@@ -1,5 +1,6 @@
const helpPage = '/pages/ucenter/help/help'; // 帮助页面
import {mapMutations} from 'vuex';
+import loginSuccess from './loginSuccess.js';
let mixin = {
// // 监听帮助按钮
// onNavigationBarButtonTap(event) {
@@ -81,24 +82,27 @@ let mixin = {
setUserInfo: 'user/login'
}),
loginSuccess(result){
- uni.showToast({
- title: '登陆成功',
- icon: 'none'
- });
- uni.setStorageSync('uni_id_uid', result.uid)
- uni.setStorageSync('uni_id_token', result.token)
- uni.setStorageSync('uni_id_token_expired', result.tokenExpired)
+ loginSuccess(result)
delete result.userInfo.token
this.setUserInfo(result.userInfo)
+ // uni.showToast({
+ // title: '登陆成功',
+ // icon: 'none'
+ // });
+ // uni.setStorageSync('uni_id_uid', result.uid)
+ // uni.setStorageSync('uni_id_token', result.token)
+ // uni.setStorageSync('uni_id_token_expired', result.tokenExpired)
+ // delete result.userInfo.token
+ // this.setUserInfo(result.userInfo)
- var delta = 0//判断需要返回几层
- let pages = getCurrentPages();
- pages.forEach((page,index)=>{
- if(pages[pages.length-index-1].route.split('/')[1] == 'uni-login-page'){
- delta ++
- }
- })
- uni.navigateBack({delta})
+ // var delta = 0//判断需要返回几层
+ // let pages = getCurrentPages();
+ // pages.forEach((page,index)=>{
+ // if(pages[pages.length-index-1].route.split('/')[1] == 'uni-login-page'){
+ // delta ++
+ // }
+ // })
+ // uni.navigateBack({delta})
}
}
}
diff --git a/uni_modules/uni-login-page/common/loginSuccess.js b/uni_modules/uni-login-page/common/loginSuccess.js
new file mode 100644
index 0000000000000000000000000000000000000000..0c19774b772a38c74c16a040871866b8949575a3
--- /dev/null
+++ b/uni_modules/uni-login-page/common/loginSuccess.js
@@ -0,0 +1,22 @@
+export default function(result){
+ uni.showToast({
+ title: '登陆成功',
+ icon: 'none'
+ });
+ console.log('登陆成功',result);
+ uni.setStorageSync('uni_id_uid', result.uid)
+ uni.setStorageSync('uni_id_token', result.token)
+ uni.setStorageSync('uni_id_token_expired', result.tokenExpired)
+ //delete result.userInfo.token
+ // this.setUserInfo(result.userInfo)
+
+ var delta = 0//判断需要返回几层
+ let pages = getCurrentPages();
+ console.log(pages);
+ pages.forEach((page,index)=>{
+ if(pages[pages.length-index-1].route.split('/')[1] == 'uni-login-page'){
+ delta ++
+ }
+ })
+ uni.navigateBack({delta})
+}
\ No newline at end of file
diff --git a/uni_modules/uni-login-page/components/uni-quick-login/uni-quick-login.vue b/uni_modules/uni-login-page/components/uni-quick-login/uni-quick-login.vue
index 1115f1c456bbeaa3312b3928269ff512d244a1cc..aa2864cace516d0b9c38f1f2822da0e469ed84a2 100644
--- a/uni_modules/uni-login-page/components/uni-quick-login/uni-quick-login.vue
+++ b/uni_modules/uni-login-page/components/uni-quick-login/uni-quick-login.vue
@@ -9,6 +9,7 @@