refactor(permission): 移除位置和麦克风权限相关代码

重构权限判断逻辑,移除不再需要的位置和麦克风权限请求代码
更新manifest文件,排除位置权限并调整版本号
This commit is contained in:
2025-12-26 10:41:06 +08:00
parent dee6848bd2
commit 168ab738a3
15 changed files with 8401 additions and 10105 deletions

View File

@@ -1,9 +1,9 @@
import $http from '@/config/requestConfig'
import store from '@/store';
import base from '@/config/baseUrl';
import {
getAppWxLatLon
} from '@/plugins/utils';
// import {
// getAppWxLatLon
// } from '@/plugins/utils';
// #ifdef H5
import {
getLatLonH5,
@@ -208,32 +208,32 @@ export const setPayAssign = function(orderInfo, callback) {
// #endif
}
// 获取地址信息 微信小程序、APP、公众号
export const getLatLon = function(tip) {
return new Promise((resolve, reject) => {
const successProcess = function(res) {
store.commit("setCurrentAddress", {
latitude: res.latitude,
longitude: res.longitude
});
resolve(res);
};
const errProcess = function(err) {
reject(err);
if (tip) {
uni.showToast({
title: err,
icon: "none"
});
}
};
// #ifdef H5
getLatLonH5(successProcess, errProcess);
// #endif
// #ifndef H5
getAppWxLatLon(successProcess, errProcess);
// #endif
});
}
// export const getLatLon = function(tip) {
// return new Promise((resolve, reject) => {
// const successProcess = function(res) {
// store.commit("setCurrentAddress", {
// latitude: res.latitude,
// longitude: res.longitude
// });
// resolve(res);
// };
// const errProcess = function(err) {
// reject(err);
// if (tip) {
// uni.showToast({
// title: err,
// icon: "none"
// });
// }
// };
// // #ifdef H5
// getLatLonH5(successProcess, errProcess);
// // #endif
// // #ifndef H5
// getAppWxLatLon(successProcess, errProcess);
// // #endif
// });
// }
// 查看是否有某本书的权限
export const checkBookRight = function(data,callback) {