This commit is contained in:
abu 2025-05-20 10:58:51 +08:00
parent 41047ed476
commit 1028757ea6
5 changed files with 334 additions and 285 deletions

52
App.vue
View File

@ -95,13 +95,9 @@ export default {
}, },
methods: { methods: {
onRequestPermissionListener() { onRequestPermissionListener() {
// #ifdef APP
//
// APP使APIapp.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使APIapp.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() {
// //

View File

@ -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",
}; };

View File

@ -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" : {

View File

@ -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": [

View File

@ -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: '正在获取摄像头权限',