隐私
This commit is contained in:
parent
41047ed476
commit
1028757ea6
52
App.vue
52
App.vue
@ -95,13 +95,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onRequestPermissionListener() {
|
onRequestPermissionListener() {
|
||||||
// #ifdef APP
|
|
||||||
// 权限监听申请
|
|
||||||
// 为应用市场审核时要求:APP在调用终端权限时,应同步告知用户申请该权限的目的。此时即可使用本API,在app.vue里全局监听。
|
|
||||||
var brand = uni.getSystemInfoSync().deviceBrand;
|
|
||||||
if (brand.toLowerCase() != 'huawei' && brand.toLowerCase() != 'xiaomi') return;
|
|
||||||
this.permissionListener = uni.createRequestPermissionListener();
|
this.permissionListener = uni.createRequestPermissionListener();
|
||||||
this.permissionListener.onRequest(async (e) => {
|
this.permissionListener.onRequest(async (e) => {
|
||||||
|
console.log(e);
|
||||||
if (this.flag) {
|
if (this.flag) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -135,12 +131,56 @@ export default {
|
|||||||
this.flag = false;
|
this.flag = false;
|
||||||
}, 5000);
|
}, 5000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// #ifndef APP-HARMONY
|
||||||
|
// 权限监听申请
|
||||||
|
// 为应用市场审核时要求:APP在调用终端权限时,应同步告知用户申请该权限的目的。此时即可使用本API,在app.vue里全局监听。
|
||||||
|
// var brand = uni.getSystemInfoSync().deviceBrand;
|
||||||
|
// if (brand.toLowerCase() == 'huawei' && brand.toLowerCase() == 'xiaomi') {
|
||||||
|
// this.permissionListener = uni.createRequestPermissionListener();
|
||||||
|
// this.permissionListener.onRequest(async (e) => {
|
||||||
|
// console.log(e);
|
||||||
|
// if (this.flag) {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// this.flag = true;
|
||||||
|
// console.log('权限-1', e);
|
||||||
|
// var item = e[0];
|
||||||
|
// const { isSuc, msg } = await requestPermissions({
|
||||||
|
// title: PermissionTips[item].title, // 申请权限时弹出框标题
|
||||||
|
// content: PermissionTips[item].content, // 申请权限时弹出框内容
|
||||||
|
// permissionID: item // 权限ID
|
||||||
|
// });
|
||||||
|
// console.log(msg);
|
||||||
|
// if (!isSuc) {
|
||||||
|
// if (msg != 'close') {
|
||||||
|
// this.popupView = showModal({
|
||||||
|
// title: PermissionTips[item].title, // 申请权限时弹出框标题
|
||||||
|
// content: PermissionTips[item].content, // 申请权限时弹出框内容
|
||||||
|
// permissionID: item // 权限ID
|
||||||
|
// });
|
||||||
|
// } else {
|
||||||
|
// console.log('用户永久拒绝');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// this.permissionListener.onComplete((e) => {
|
||||||
|
// console.log('权限-2', e);
|
||||||
|
// if (this.popupView) {
|
||||||
|
// this.popupView.close();
|
||||||
|
// }
|
||||||
|
// setTimeout(() => {
|
||||||
|
// this.flag = false;
|
||||||
|
// }, 5000);
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// #endif
|
||||||
|
|
||||||
// 权限检测成功则返回 { isSuc : true} ,未授权则弹出权限询问弹窗以及权限说明窗口
|
// 权限检测成功则返回 { isSuc : true} ,未授权则弹出权限询问弹窗以及权限说明窗口
|
||||||
|
|
||||||
// if (!isSuc) {
|
// if (!isSuc) {
|
||||||
// return false
|
// return false
|
||||||
// }
|
// }
|
||||||
// #endif
|
|
||||||
},
|
},
|
||||||
hanleTabCenter() {
|
hanleTabCenter() {
|
||||||
// 点击中间的➕
|
// 点击中间的➕
|
||||||
|
@ -14,21 +14,24 @@ const dev = {
|
|||||||
vlog: "http://43.143.227.203:8099",
|
vlog: "http://43.143.227.203:8099",
|
||||||
web: "http://43.143.227.203:8099",
|
web: "http://43.143.227.203:8099",
|
||||||
seller: "http://43.143.227.203:8889",
|
seller: "http://43.143.227.203:8889",
|
||||||
|
// common: "http://192.168.1.40:8890",
|
||||||
|
// buyer: "http://192.168.1.40:8888",
|
||||||
|
// vlog: "http://192.168.1.40:8099",
|
||||||
|
// web: "http://192.168.1.40:8099",
|
||||||
|
// seller: "http://192.168.1.40:8889",
|
||||||
|
|
||||||
};
|
};
|
||||||
// 生产环境
|
// 生产环境
|
||||||
const prod = {
|
const prod = {
|
||||||
// common: "http://192.168.1.211:8890",
|
// common: "http://192.168.1.40:8890",
|
||||||
// buyer: "http://192.168.1.211:8888",
|
// buyer: "http://192.168.1.40:8888",
|
||||||
// vlog: "http://192.168.1.211:8099",
|
// vlog: "http://192.168.1.40:8099",
|
||||||
// web: "http://192.168.1.211:8099",
|
// web: "http://192.168.1.40:8099",
|
||||||
// seller: "http://192.168.1.211:8889",
|
// seller: "http://192.168.1.40:8889",
|
||||||
// common: "http://192.168.1.211:8890",
|
|
||||||
// buyer: "http://192.168.1.211:8888",
|
|
||||||
common: "http://43.143.227.203:8890",
|
common: "http://43.143.227.203:8890",
|
||||||
buyer: "http://43.143.227.203:8888",
|
buyer: "http://43.143.227.203:8888",
|
||||||
vlog: "http://43.143.227.203:8099",
|
vlog: "http://43.143.227.203:8099",
|
||||||
// vlog: "http://192.168.1.86:8099",
|
|
||||||
web: "http://43.143.227.203:8099",
|
web: "http://43.143.227.203:8099",
|
||||||
seller: "http://43.143.227.203:8889",
|
seller: "http://43.143.227.203:8889",
|
||||||
};
|
};
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
"description" : "admin",
|
"description" : "admin",
|
||||||
"versionName" : "4.0.0",
|
"versionName" : "4.0.0",
|
||||||
"versionCode" : 404,
|
"versionCode" : 404,
|
||||||
"sassImplementationName" : "node-sass",
|
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
|
"sassImplementationName" : "node-sass",
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
"versionCode" : 404, // Android 版本号
|
"versionCode" : 404, // Android 版本号
|
||||||
@ -72,9 +72,9 @@
|
|||||||
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
],
|
],
|
||||||
"abiFilters": ["arm64-v8a"],
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
|
||||||
"schemes" : "wuzhongjie",
|
"schemes" : "wuzhongjie",
|
||||||
"minSdkVersion": 30,
|
"minSdkVersion" : 21,
|
||||||
"targetSdkVersion" : 34
|
"targetSdkVersion" : 34
|
||||||
},
|
},
|
||||||
"ios" : {
|
"ios" : {
|
||||||
@ -117,7 +117,8 @@
|
|||||||
"weixin" : {
|
"weixin" : {
|
||||||
"appid" : "wxebcdaea31881caab",
|
"appid" : "wxebcdaea31881caab",
|
||||||
"UniversalLinks" : "https://wuzhongjie.com.cn/ulink/"
|
"UniversalLinks" : "https://wuzhongjie.com.cn/ulink/"
|
||||||
}
|
},
|
||||||
|
"apple" : {}
|
||||||
},
|
},
|
||||||
"geolocation" : {
|
"geolocation" : {
|
||||||
"amap" : {
|
"amap" : {
|
||||||
|
@ -11,7 +11,9 @@
|
|||||||
"com.tencent.timpush:xiaomi:8.5.6864",
|
"com.tencent.timpush:xiaomi:8.5.6864",
|
||||||
"com.tencent.timpush:oppo:8.5.6864",
|
"com.tencent.timpush:oppo:8.5.6864",
|
||||||
"com.tencent.timpush:meizu:8.5.6864",
|
"com.tencent.timpush:meizu:8.5.6864",
|
||||||
"com.tencent.timpush:fcm:8.5.6864"
|
"com.tencent.timpush:fcm:8.5.6864",
|
||||||
|
"com.tencent.timpush:honor:8.5.6864",
|
||||||
|
"com.tencent.timpush:vivo:8.5.6864"
|
||||||
],
|
],
|
||||||
"project": {
|
"project": {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
@ -7,7 +7,10 @@ export const PermissionTips = {
|
|||||||
"android.permission.READ_EXTERNAL_STORAGE": {
|
"android.permission.READ_EXTERNAL_STORAGE": {
|
||||||
title: '正在获取相册权限',
|
title: '正在获取相册权限',
|
||||||
content: '为了您使用相机拍摄,并在评论、传头像等功能使用所拍摄的照片,我们需要访问您终端设备的摄像头权限和相册权限,如果您拒绝或关闭本项权限,我们将无法提供上述服务。'
|
content: '为了您使用相机拍摄,并在评论、传头像等功能使用所拍摄的照片,我们需要访问您终端设备的摄像头权限和相册权限,如果您拒绝或关闭本项权限,我们将无法提供上述服务。'
|
||||||
|
},
|
||||||
|
"android.permission.READ_MEDIA_IMAGES": {
|
||||||
|
title: '正在获取相册权限',
|
||||||
|
content: '为了您使用相机拍摄,并在评论、传头像等功能使用所拍摄的照片,我们需要访问您终端设备的摄像头权限和相册权限,如果您拒绝或关闭本项权限,我们将无法提供上述服务。'
|
||||||
},
|
},
|
||||||
"android.permission.CAMERA": {
|
"android.permission.CAMERA": {
|
||||||
title: '正在获取摄像头权限',
|
title: '正在获取摄像头权限',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user