补充提交
This commit is contained in:
9
.hbuilderx/launch.json
Normal file
9
.hbuilderx/launch.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"version" : "1.0",
|
||||||
|
"configurations" : [
|
||||||
|
{
|
||||||
|
"playground" : "custom",
|
||||||
|
"type" : "uni-app:app-android"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
29
nativeplugins/Tm-TmSafeSaveFileModule/package.json
Normal file
29
nativeplugins/Tm-TmSafeSaveFileModule/package.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"name": "TmSafeSaveFileModule隐私数据保存",
|
||||||
|
"id": "Tm-TmSafeSaveFileModule",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "TmSafeSaveFileModule隐私数据保存",
|
||||||
|
"_dp_type": "nativeplugin",
|
||||||
|
"_dp_nativeplugin": {
|
||||||
|
"android": {
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
|
"type": "module",
|
||||||
|
"name": "Tm-TmSafeSaveFileModule",
|
||||||
|
"class": "io.dcloud.uniplugin.safesave.TmSafeSaveFileModule"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"abis": [
|
||||||
|
"armeabi-v7a",
|
||||||
|
"x86"
|
||||||
|
],
|
||||||
|
"minSdkVersion": "26",
|
||||||
|
"integrateType": "aar",
|
||||||
|
"dependencies": [
|
||||||
|
"androidx.security:security-crypto:1.1.0-alpha06"
|
||||||
|
],
|
||||||
|
"permissions": [
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -111,7 +111,7 @@ const active = ref(false); // 组件是否激活,
|
|||||||
let changevalue = reactive([]);
|
let changevalue = reactive([]);
|
||||||
let realValue = reactive([]);
|
let realValue = reactive([]);
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
init();
|
// init();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 初始化函数
|
// 初始化函数
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id" : "H5E705637",
|
"id" : "H5E705637",
|
||||||
"name" : "app",
|
"name" : "718友晟",
|
||||||
// "appid" : "H5E705637",
|
"appid" : "__UNI__4C459F4",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"compilerVersion" : 3,
|
"compilerVersion" : 3,
|
||||||
"splashscreen" : {
|
"splashscreen" : {
|
||||||
"alwaysShowBeforeRender" : true,
|
"alwaysShowBeforeRender" : true,
|
||||||
"waiting" : false,// 是否显示等待界面
|
"waiting" : false, // 是否显示等待界面
|
||||||
"autoclose" : true,
|
"autoclose" : true,
|
||||||
"delay" : 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
@@ -43,6 +43,9 @@
|
|||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
],
|
],
|
||||||
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a" ],
|
||||||
|
"minSdkVersion" : 26,
|
||||||
|
"targetSdkVersion" : 35,
|
||||||
"icons" : {
|
"icons" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
"hdpi" : "static/icons/72x72.png",
|
"hdpi" : "static/icons/72x72.png",
|
||||||
@@ -53,9 +56,27 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios" : {},
|
"ios" : {
|
||||||
|
"dSYMs" : false
|
||||||
|
},
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs" : {}
|
"sdkConfigs" : {}
|
||||||
|
},
|
||||||
|
"nativePlugins" : {
|
||||||
|
"Tm-TmSafeSaveFileModule" : {
|
||||||
|
"__plugin_info__" : {
|
||||||
|
"name" : "TmSafeSaveFileModule隐私数据保存",
|
||||||
|
"description" : "TmSafeSaveFileModule隐私数据保存",
|
||||||
|
"platforms" : "Android",
|
||||||
|
"url" : "",
|
||||||
|
"android_package_name" : "",
|
||||||
|
"ios_bundle_id" : "",
|
||||||
|
"isCloud" : false,
|
||||||
|
"bought" : -1,
|
||||||
|
"pid" : "",
|
||||||
|
"parameters" : {}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* 快应用特有相关 */
|
/* 快应用特有相关 */
|
||||||
@@ -84,8 +105,8 @@
|
|||||||
"h5" : {
|
"h5" : {
|
||||||
"router" : {
|
"router" : {
|
||||||
"base" : ""
|
"base" : ""
|
||||||
/*,"mode": "history" 仅对 H5 平台生效 */
|
|
||||||
},
|
},
|
||||||
|
/*,"mode": "history" 仅对 H5 平台生效 */
|
||||||
"template" : "index.html"
|
"template" : "index.html"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const requestHooks = {
|
|||||||
requestInterceptorsHook(options, config) {
|
requestInterceptorsHook(options, config) {
|
||||||
// console.log("request=>config=>",config)
|
// console.log("request=>config=>",config)
|
||||||
const { urlPrefix, baseUrl, withToken, isAuth } = config;
|
const { urlPrefix, baseUrl, withToken, isAuth } = config;
|
||||||
options.header = options.header ?? {};
|
options.header = options.header ? options.header:{};
|
||||||
if (urlPrefix) {
|
if (urlPrefix) {
|
||||||
options.url = `${urlPrefix}${options.url}`;
|
options.url = `${urlPrefix}${options.url}`;
|
||||||
}
|
}
|
||||||
@@ -33,20 +33,19 @@ const requestHooks = {
|
|||||||
// console.log("response=>",response)
|
// console.log("response=>",response)
|
||||||
// console.log("response=>config=>",config)
|
// console.log("response=>config=>",config)
|
||||||
const { isTransformResponse, isReturnDefaultResponse, isAuth } = config;
|
const { isTransformResponse, isReturnDefaultResponse, isAuth } = config;
|
||||||
|
|
||||||
if (isReturnDefaultResponse) {
|
if (isReturnDefaultResponse) {
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
if (!isTransformResponse) {
|
|
||||||
return response.data;
|
|
||||||
}
|
|
||||||
// const { logout, isLogin } = useUserStore();
|
// const { logout, isLogin } = useUserStore();
|
||||||
const { code, data, msg, show } = response.data;
|
const { code, data, msg, show } = response.data;
|
||||||
// console.log(code,data,msg,show)
|
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case RequestCodeEnum.SUCCESS:
|
case RequestCodeEnum.SUCCESS:
|
||||||
msg && show && message.toast(msg);
|
msg && show && message.toast(msg);
|
||||||
return data;
|
if (!isTransformResponse) {
|
||||||
|
return response.data;
|
||||||
|
}else{
|
||||||
|
return data;
|
||||||
|
}
|
||||||
case RequestCodeEnum.FAILED:
|
case RequestCodeEnum.FAILED:
|
||||||
message.toast(msg);
|
message.toast(msg);
|
||||||
return Promise.reject(msg);
|
return Promise.reject(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user