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

@ -1,51 +1,51 @@
{ {
"name": "无终街", "name" : "无终街",
"appid": "__UNI__6DB512D", "appid" : "__UNI__6DB512D",
"description": "admin", "description" : "admin",
"versionName": "4.0.0", "versionName" : "4.0.0",
"versionCode": 404, "versionCode" : 404,
"transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
"transformPx": false, "app-plus" : {
"app-plus": { "android" : {
"android": { "versionCode" : 404, // Android
"versionCode": 404, // Android "versionName" : "4.0.0" //
"versionName": "4.0.0" //
}, },
"compatible": { "compatible" : {
"ignoreVersion": true //trueHBuilderX1.9.0 "ignoreVersion" : true //trueHBuilderX1.9.0
}, },
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
/* 5+App */ /* 5+App */
"usingComponents": true, "usingComponents" : true,
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
"screenOrientation": ["portrait-primary"], "screenOrientation" : [ "portrait-primary" ],
"modules": { "modules" : {
"Payment": {}, "Payment" : {},
"Share": {}, "Share" : {},
"Geolocation": {}, "Geolocation" : {},
"Maps": {}, "Maps" : {},
"Camera": {}, "Camera" : {},
"Barcode": {}, "Barcode" : {},
"VideoPlayer": {}, "VideoPlayer" : {},
"Push": {}, "Push" : {},
"OAuth": {} "OAuth" : {}
}, },
"error": { "error" : {
/* 404*/ /* 404*/
"url": "hybrid/html/error.html" "url" : "hybrid/html/error.html"
}, },
/* */ /* */
"distribute": { "distribute" : {
/* */ /* */
"android": { "android" : {
/* android */ /* android */
"permissions": [ "permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
@ -72,173 +72,174 @@
"<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" : {
"idfa": false, "idfa" : false,
"privacyDescription": { "privacyDescription" : {
"NSPhotoLibraryUsageDescription": "需要用与评论上传,头像上传功能", "NSPhotoLibraryUsageDescription" : "需要用与评论上传,头像上传功能",
"NSPhotoLibraryAddUsageDescription": "保存商品图片到本地", "NSPhotoLibraryAddUsageDescription" : "保存商品图片到本地",
"NSCameraUsageDescription": "需要用与扫描二维码和商品评论图片拍摄", "NSCameraUsageDescription" : "需要用与扫描二维码和商品评论图片拍摄",
"NSLocationAlwaysAndWhenInUseUsageDescription": "可根据位置向您介绍附近的视频信息提升浏览体验或帮助你在发布的信息中展示位置不授权不影响app正常使用", "NSLocationAlwaysAndWhenInUseUsageDescription" : "可根据位置向您介绍附近的视频信息提升浏览体验或帮助你在发布的信息中展示位置不授权不影响app正常使用",
"NSMicrophoneUsageDescription": "用户上传视频时需使用音频信息" "NSMicrophoneUsageDescription" : "用户上传视频时需使用音频信息"
}, },
"capabilities": { "capabilities" : {
"entitlements": { "entitlements" : {
"com.apple.developer.associated-domains": ["applinks:wuzhongjie.com.cn"] "com.apple.developer.associated-domains" : [ "applinks:wuzhongjie.com.cn" ]
} }
}, },
"urltypes": "wuzhongjie", "urltypes" : "wuzhongjie",
"dSYMs": false "dSYMs" : false
}, },
/* ios */ /* ios */
"sdkConfigs": { "sdkConfigs" : {
"payment": { "payment" : {
"weixin": { "weixin" : {
"__platform__": ["ios", "android"], "__platform__" : [ "ios", "android" ],
"appid": "wxebcdaea31881caab", "appid" : "wxebcdaea31881caab",
"UniversalLinks": "https://wuzhongjie.com.cn/ulink/" "UniversalLinks" : "https://wuzhongjie.com.cn/ulink/"
}, },
"alipay": { "alipay" : {
"__platform__": ["ios", "android"] "__platform__" : [ "ios", "android" ]
} }
}, },
"ad": {}, "ad" : {},
"share": { "share" : {
"weixin": { "weixin" : {
"appid": "wxebcdaea31881caab", "appid" : "wxebcdaea31881caab",
"UniversalLinks": "https://wuzhongjie.com.cn/ulink/" "UniversalLinks" : "https://wuzhongjie.com.cn/ulink/"
} }
}, },
"oauth": { "oauth" : {
"weixin": { "weixin" : {
"appid": "wxebcdaea31881caab", "appid" : "wxebcdaea31881caab",
"UniversalLinks": "https://wuzhongjie.com.cn/ulink/" "UniversalLinks" : "https://wuzhongjie.com.cn/ulink/"
},
"apple" : {}
},
"geolocation" : {
"amap" : {
"__platform__" : [ "ios", "android" ],
"appkey_ios" : "f463d3350efe63f8be5d9a62f24d0aab",
"appkey_android" : "fb3f1ccb34616c70f068aa950f3e27df"
},
"system" : {
"__platform__" : [ "ios", "android" ]
} }
}, },
"geolocation": { "maps" : {
"amap": { "amap" : {
"__platform__": ["ios", "android"], "appkey_ios" : "f463d3350efe63f8be5d9a62f24d0aab",
"appkey_ios": "f463d3350efe63f8be5d9a62f24d0aab", "appkey_android" : "fb3f1ccb34616c70f068aa950f3e27df"
"appkey_android": "fb3f1ccb34616c70f068aa950f3e27df"
},
"system": {
"__platform__": ["ios", "android"]
} }
}, },
"maps": { "push" : {}
"amap": {
"appkey_ios": "f463d3350efe63f8be5d9a62f24d0aab",
"appkey_android": "fb3f1ccb34616c70f068aa950f3e27df"
}
}, },
"push": {} "icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
}, },
"icons": { "ios" : {
"android": { "appstore" : "unpackage/res/icons/1024x1024.png",
"hdpi": "unpackage/res/icons/72x72.png", "ipad" : {
"xhdpi": "unpackage/res/icons/96x96.png", "app" : "unpackage/res/icons/76x76.png",
"xxhdpi": "unpackage/res/icons/144x144.png", "app@2x" : "unpackage/res/icons/152x152.png",
"xxxhdpi": "unpackage/res/icons/192x192.png" "notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
}, },
"ios": { "iphone" : {
"appstore": "unpackage/res/icons/1024x1024.png", "app@2x" : "unpackage/res/icons/120x120.png",
"ipad": { "app@3x" : "unpackage/res/icons/180x180.png",
"app": "unpackage/res/icons/76x76.png", "notification@2x" : "unpackage/res/icons/40x40.png",
"app@2x": "unpackage/res/icons/152x152.png", "notification@3x" : "unpackage/res/icons/60x60.png",
"notification": "unpackage/res/icons/20x20.png", "settings@2x" : "unpackage/res/icons/58x58.png",
"notification@2x": "unpackage/res/icons/40x40.png", "settings@3x" : "unpackage/res/icons/87x87.png",
"proapp@2x": "unpackage/res/icons/167x167.png", "spotlight@2x" : "unpackage/res/icons/80x80.png",
"settings": "unpackage/res/icons/29x29.png", "spotlight@3x" : "unpackage/res/icons/120x120.png"
"settings@2x": "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png"
},
"iphone": {
"app@2x": "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png"
} }
} }
}, },
"splashscreen": { "splashscreen" : {
"iosStyle": "common", "iosStyle" : "common",
"ios": { "ios" : {
"storyboard": "CustomStoryboard.zip" "storyboard" : "CustomStoryboard.zip"
}, },
"androidStyle": "default", "androidStyle" : "default",
"android": { "android" : {
"hdpi": "CustomStartPage/start-page.9.png", "hdpi" : "CustomStartPage/start-page.9.png",
"xhdpi": "CustomStartPage/start-page.9.png", "xhdpi" : "CustomStartPage/start-page.9.png",
"xxhdpi": "CustomStartPage/start-page.9.png" "xxhdpi" : "CustomStartPage/start-page.9.png"
}, },
"useOriginalMsgbox": true "useOriginalMsgbox" : true
} }
}, },
"nativePlugins": {} "nativePlugins" : {}
}, },
"permission": { "permission" : {
"scope.userLocation": { "scope.userLocation" : {
"desc": "你的位置信息将用于高德地图的效果展示" "desc" : "你的位置信息将用于高德地图的效果展示"
} }
}, },
/* SDK */ /* SDK */
"quickapp": {}, "quickapp" : {},
/* */ /* */
"mp-weixin": { "mp-weixin" : {
/* */ /* */
"usingComponents": true, "usingComponents" : true,
"appid": "wx6f10f29075dc1b0b", "appid" : "wx6f10f29075dc1b0b",
"optimization": { "optimization" : {
"subPackages": true "subPackages" : true
}, },
"setting": { "setting" : {
"urlCheck": false, "urlCheck" : false,
"minified": true, "minified" : true,
"postcss": false, "postcss" : false,
"es6": true "es6" : true
}, },
"permission": { "permission" : {
"scope.userLocation": { "scope.userLocation" : {
"desc": "位置信息将用于高德地图的效果展示" "desc" : "位置信息将用于高德地图的效果展示"
} }
}, },
"plugins": { "plugins" : {
"myPlugin": { "myPlugin" : {
"version": "1.1.0", "version" : "1.1.0",
"provider": "wx738958e0f4c894f9" "provider" : "wx738958e0f4c894f9"
}, },
"live-player-plugin": { "live-player-plugin" : {
"version": "1.3.0", "version" : "1.3.0",
"provider": "wx2b03c6e691cd7370" "provider" : "wx2b03c6e691cd7370"
} }
} }
}, },
"h5": { "h5" : {
"devServer": { "devServer" : {
"disableHostCheck": true "disableHostCheck" : true
}, },
"router": { "router" : {
"mode": "history", "mode" : "history",
"base": "" "base" : ""
}, },
"sdkConfigs": { "sdkConfigs" : {
"maps": {} "maps" : {}
}, },
"optimization": { "optimization" : {
"treeShaking": { "treeShaking" : {
"enable": true "enable" : true
} }
}, },
"title": "lilishop", "title" : "lilishop",
"template": "" "template" : ""
} }
} }

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