1
This commit is contained in:
parent
9a9e8327f6
commit
767c647d4a
@ -1,3 +1,3 @@
|
||||
# 开发环境
|
||||
# 请求接口地址
|
||||
VITE_REQUEST_BASE_URL = https://36.112.48.190
|
||||
VITE_REQUEST_BASE_URL = http://10.75.166.174:8080
|
||||
|
@ -2,8 +2,8 @@
|
||||
"name" : "数智产销",
|
||||
"appid" : "__UNI__F0AFD30",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.1",
|
||||
"versionCode" : 20240929,
|
||||
"versionName" : "1.0.2",
|
||||
"versionCode" : 20241010,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
@ -88,17 +88,17 @@
|
||||
});
|
||||
|
||||
/*生产环境 begin */
|
||||
loginApi({
|
||||
username: un,
|
||||
password: pw,
|
||||
ip: getDeviceIp()
|
||||
// loginApi({
|
||||
// username: un,
|
||||
// password: pw,
|
||||
// ip: getDeviceIp()
|
||||
/*生产环境 end */
|
||||
|
||||
/*开发环境 begin */
|
||||
// localLoginApi({
|
||||
// username: username.value,
|
||||
// password: password.value,
|
||||
// captcha: 'app'
|
||||
localLoginApi({
|
||||
username: username.value,
|
||||
password: password.value,
|
||||
captcha: 'app'
|
||||
/*开发环境 end */
|
||||
}).then((loginres) => {
|
||||
if (loginres.success) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__F0AFD30","name":"数智产销","version":{"name":"1.0.7","code":20240929},"description":"","developer":{"name":"","email":"","url":""},"permissions":{"Geolocation":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":true,"delay":0,"target":"id:1","waiting":true},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.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"},"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"},"prerendered":"false"}},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"packagename":"uni.UNIF0AFD30","aliasname":"__uni__f0afd30","password":"4Z2SSz2hk5AO56cxUDfY3A==","keystore":"google-keystore.keystore","custompermissions":true},"apple":{"dSYMs":false,"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}},"geolocation":{"system":{"__platform__":["android"]}}},"orientation":"portrait-primary"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#000000"},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"control":"uni-v3","vueVersion":"3","compilerVersion":"4.15","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal","webView":{"minUserAgentVersion":"49.0"}},"tabBar":{"position":"bottom","color":"#333333","selectedColor":"#01508B","borderStyle":"rgba(0,0,0,0.4)","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#FFFFFF","list":[{"text":"首页","pagePath":"pages/tab/index","iconPath":"/static/tab/index1.png","selectedIconPath":"/static/tab/index2.png"},{"text":"办公","pagePath":"pages/tab/office","iconPath":"/static/tab/office1.png","selectedIconPath":"/static/tab/office2.png"},{"text":"生产","pagePath":"pages/tab/product","iconPath":"/static/tab/product1.png","selectedIconPath":"/static/tab/product2.png"},{"text":"我的","pagePath":"pages/tab/my","iconPath":"/static/tab/user1.png","selectedIconPath":"/static/tab/user2.png"}],"midButton":{"width":"65px","height":"75px","text":"","iconPath":"static/tab/todo.png","iconWidth":"50px"},"selectedIndex":0,"shown":true},"adid":"120390270110"},"launch_path":"__uniappview.html"}
|
||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__F0AFD30","name":"数智产销","version":{"name":"1.0.2","code":20241010},"description":"","developer":{"name":"","email":"","url":""},"permissions":{"Geolocation":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":true,"delay":0,"target":"id:1","waiting":true},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.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"},"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"},"prerendered":"false"}},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"packagename":"uni.UNIF0AFD30","aliasname":"__uni__f0afd30","password":"4Z2SSz2hk5AO56cxUDfY3A==","keystore":"google-keystore.keystore","custompermissions":true},"apple":{"dSYMs":false,"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}},"geolocation":{"system":{"__platform__":["android"]}}},"orientation":"portrait-primary"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#000000"},"uniStatistics":{"enable":false},"allowsInlineMediaPlayback":true,"safearea":{"background":"#FFFFFF","bottom":{"offset":"auto"}},"uni-app":{"control":"uni-v3","vueVersion":"3","compilerVersion":"4.15","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal","webView":{"minUserAgentVersion":"49.0"}},"tabBar":{"position":"bottom","color":"#333333","selectedColor":"#01508B","borderStyle":"rgba(0,0,0,0.4)","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#FFFFFF","list":[{"text":"首页","pagePath":"pages/tab/index","iconPath":"/static/tab/index1.png","selectedIconPath":"/static/tab/index2.png"},{"text":"办公","pagePath":"pages/tab/office","iconPath":"/static/tab/office1.png","selectedIconPath":"/static/tab/office2.png"},{"text":"生产","pagePath":"pages/tab/product","iconPath":"/static/tab/product1.png","selectedIconPath":"/static/tab/product2.png"},{"text":"我的","pagePath":"pages/tab/my","iconPath":"/static/tab/user1.png","selectedIconPath":"/static/tab/user2.png"}],"midButton":{"width":"65px","height":"75px","text":"","iconPath":"static/tab/todo.png","iconWidth":"50px"},"selectedIndex":0,"shown":true},"adid":"120390270110"},"launch_path":"__uniappview.html"}
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
[data-v-3dca468b] .uni-select{border:none;padding-left:0;height:2.75rem}[data-v-3dca468b] .uni-select__input-placeholder{font-size:.875rem;color:#999}[data-v-3dca468b] .uni-icons{display:none}.logo[data-v-3dca468b]{padding-top:5.75rem}.logo uni-image[data-v-3dca468b]{width:14.84375rem;height:6.21875rem}.form[data-v-3dca468b]{margin-top:1.875rem}.form .box[data-v-3dca468b]{width:17.8125rem;height:2.75rem;background:#f8f8f8;border-radius:1.375rem;padding:0 .9375rem;margin-top:1.25rem;position:relative}.form .box .account_box[data-v-3dca468b]{position:absolute;top:3.125rem;left:2.8125rem;width:15.625rem;background-color:#fff;box-shadow:0 0 3px 1px #dfdfdf;z-index:99;border-radius:.3125rem}.form .box .account_box .account[data-v-3dca468b]{max-height:6.25rem;overflow-y:auto}.form .box .account_box .account uni-view[data-v-3dca468b]{padding:.3125rem}.form .box uni-image[data-v-3dca468b]{width:1.25rem;height:1.25rem;margin-right:.625rem}.form .box uni-input[data-v-3dca468b]{height:100%;flex:1}.pwd[data-v-3dca468b]{justify-content:flex-end;margin-top:.625rem;margin-right:1.875rem;font-size:.75rem;color:#01508b}.pwd uni-image[data-v-3dca468b]{width:1.0625rem;height:1.0625rem;margin-right:.125rem}.login[data-v-3dca468b]{margin-top:1.96875rem}.login uni-view[data-v-3dca468b]{width:19.6875rem;height:2.75rem;background:#4e74fb;border-radius:1.375rem;font-size:1rem;color:#fff;text-align:center;line-height:2.75rem}
|
||||
[data-v-c41e1a8c] .uni-select{border:none;padding-left:0;height:2.75rem}[data-v-c41e1a8c] .uni-select__input-placeholder{font-size:.875rem;color:#999}[data-v-c41e1a8c] .uni-icons{display:none}.logo[data-v-c41e1a8c]{padding-top:5.75rem}.logo uni-image[data-v-c41e1a8c]{width:14.84375rem;height:6.21875rem}.form[data-v-c41e1a8c]{margin-top:1.875rem}.form .box[data-v-c41e1a8c]{width:17.8125rem;height:2.75rem;background:#f8f8f8;border-radius:1.375rem;padding:0 .9375rem;margin-top:1.25rem;position:relative}.form .box .account_box[data-v-c41e1a8c]{position:absolute;top:3.125rem;left:2.8125rem;width:15.625rem;background-color:#fff;box-shadow:0 0 3px 1px #dfdfdf;z-index:99;border-radius:.3125rem}.form .box .account_box .account[data-v-c41e1a8c]{max-height:6.25rem;overflow-y:auto}.form .box .account_box .account uni-view[data-v-c41e1a8c]{padding:.3125rem}.form .box uni-image[data-v-c41e1a8c]{width:1.25rem;height:1.25rem;margin-right:.625rem}.form .box uni-input[data-v-c41e1a8c]{height:100%;flex:1}.pwd[data-v-c41e1a8c]{justify-content:flex-end;margin-top:.625rem;margin-right:1.875rem;font-size:.75rem;color:#01508b}.pwd uni-image[data-v-c41e1a8c]{width:1.0625rem;height:1.0625rem;margin-right:.125rem}.login[data-v-c41e1a8c]{margin-top:1.96875rem}.login uni-view[data-v-c41e1a8c]{width:19.6875rem;height:2.75rem;background:#4e74fb;border-radius:1.375rem;font-size:1rem;color:#fff;text-align:center;line-height:2.75rem}
|
||||
|
File diff suppressed because one or more lines are too long
2
unpackage/dist/build/app-plus/app-service.js
vendored
2
unpackage/dist/build/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
4
unpackage/dist/build/app-plus/manifest.json
vendored
4
unpackage/dist/build/app-plus/manifest.json
vendored
@ -7,8 +7,8 @@
|
||||
"id": "__UNI__F0AFD30",
|
||||
"name": "数智产销",
|
||||
"version": {
|
||||
"name": "1.0.1",
|
||||
"code": 20240929
|
||||
"name": "1.0.2",
|
||||
"code": 20241010
|
||||
},
|
||||
"description": "",
|
||||
"developer": {
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
[data-v-d8711c35] .uni-select{border:none;padding-left:0;height:2.75rem}[data-v-d8711c35] .uni-select__input-placeholder{font-size:.875rem;color:#999}[data-v-d8711c35] .uni-icons{display:none}.logo[data-v-d8711c35]{padding-top:5.75rem}.logo uni-image[data-v-d8711c35]{width:14.84375rem;height:6.21875rem}.form[data-v-d8711c35]{margin-top:1.875rem}.form .box[data-v-d8711c35]{width:17.8125rem;height:2.75rem;background:#f8f8f8;border-radius:1.375rem;padding:0 .9375rem;margin-top:1.25rem;position:relative}.form .box .account_box[data-v-d8711c35]{position:absolute;top:3.125rem;left:2.8125rem;width:15.625rem;background-color:#fff;box-shadow:0 0 3px 1px #dfdfdf;z-index:99;border-radius:.3125rem}.form .box .account_box .account[data-v-d8711c35]{max-height:6.25rem;overflow-y:auto}.form .box .account_box .account uni-view[data-v-d8711c35]{padding:.3125rem}.form .box uni-image[data-v-d8711c35]{width:1.25rem;height:1.25rem;margin-right:.625rem}.form .box uni-input[data-v-d8711c35]{height:100%;flex:1}.pwd[data-v-d8711c35]{justify-content:flex-end;margin-top:.625rem;margin-right:1.875rem;font-size:.75rem;color:#01508b}.pwd uni-image[data-v-d8711c35]{width:1.0625rem;height:1.0625rem;margin-right:.125rem}.login[data-v-d8711c35]{margin-top:1.96875rem}.login uni-view[data-v-d8711c35]{width:19.6875rem;height:2.75rem;background:#4e74fb;border-radius:1.375rem;font-size:1rem;color:#fff;text-align:center;line-height:2.75rem}
|
||||
[data-v-c41e1a8c] .uni-select{border:none;padding-left:0;height:2.75rem}[data-v-c41e1a8c] .uni-select__input-placeholder{font-size:.875rem;color:#999}[data-v-c41e1a8c] .uni-icons{display:none}.logo[data-v-c41e1a8c]{padding-top:5.75rem}.logo uni-image[data-v-c41e1a8c]{width:14.84375rem;height:6.21875rem}.form[data-v-c41e1a8c]{margin-top:1.875rem}.form .box[data-v-c41e1a8c]{width:17.8125rem;height:2.75rem;background:#f8f8f8;border-radius:1.375rem;padding:0 .9375rem;margin-top:1.25rem;position:relative}.form .box .account_box[data-v-c41e1a8c]{position:absolute;top:3.125rem;left:2.8125rem;width:15.625rem;background-color:#fff;box-shadow:0 0 3px 1px #dfdfdf;z-index:99;border-radius:.3125rem}.form .box .account_box .account[data-v-c41e1a8c]{max-height:6.25rem;overflow-y:auto}.form .box .account_box .account uni-view[data-v-c41e1a8c]{padding:.3125rem}.form .box uni-image[data-v-c41e1a8c]{width:1.25rem;height:1.25rem;margin-right:.625rem}.form .box uni-input[data-v-c41e1a8c]{height:100%;flex:1}.pwd[data-v-c41e1a8c]{justify-content:flex-end;margin-top:.625rem;margin-right:1.875rem;font-size:.75rem;color:#01508b}.pwd uni-image[data-v-c41e1a8c]{width:1.0625rem;height:1.0625rem;margin-right:.125rem}.login[data-v-c41e1a8c]{margin-top:1.96875rem}.login uni-view[data-v-c41e1a8c]{width:19.6875rem;height:2.75rem;background:#4e74fb;border-radius:1.375rem;font-size:1rem;color:#fff;text-align:center;line-height:2.75rem}
|
||||
|
67
unpackage/dist/dev/app-plus/app-service.js
vendored
67
unpackage/dist/dev/app-plus/app-service.js
vendored
@ -61,7 +61,7 @@ if (uni.restoreGlobal) {
|
||||
const _imports_4 = "/static/login/eye-off.png";
|
||||
const _imports_5 = "/static/login/nocheck.png";
|
||||
const _imports_6 = "/static/login/checked.png";
|
||||
let baseUrl$1 = "https://36.112.48.190/jeecg-boot";
|
||||
let baseUrl$1 = "http://10.75.166.174:8080/jeecg-boot";
|
||||
let loading = false;
|
||||
function https(config) {
|
||||
if (loading)
|
||||
@ -130,9 +130,9 @@ if (uni.restoreGlobal) {
|
||||
});
|
||||
return promise;
|
||||
}
|
||||
function loginApi(config) {
|
||||
function localLoginApi(config) {
|
||||
return https({
|
||||
url: "/sys/sinopecLogin",
|
||||
url: "/sys/login",
|
||||
method: "post",
|
||||
data: config
|
||||
});
|
||||
@ -1779,21 +1779,15 @@ This will fail in production.`);
|
||||
return proxy.$toast("请输入账号");
|
||||
if (!password.value.trim())
|
||||
return proxy.$toast("请输入密码");
|
||||
let un = Base64.encode(encodeURIComponent(username.value));
|
||||
let pw = Base64.encode(encodeURIComponent(password.value));
|
||||
Base64.encode(encodeURIComponent(username.value));
|
||||
Base64.encode(encodeURIComponent(password.value));
|
||||
uni.showLoading({
|
||||
title: "登录中..."
|
||||
});
|
||||
loginApi({
|
||||
username: un,
|
||||
password: pw,
|
||||
ip: getDeviceIp()
|
||||
/*生产环境 end */
|
||||
/*开发环境 begin */
|
||||
// localLoginApi({
|
||||
// username: username.value,
|
||||
// password: password.value,
|
||||
// captcha: 'app'
|
||||
localLoginApi({
|
||||
username: username.value,
|
||||
password: password.value,
|
||||
captcha: "app"
|
||||
/*开发环境 end */
|
||||
}).then((loginres) => {
|
||||
if (loginres.success) {
|
||||
@ -1825,31 +1819,6 @@ This will fail in production.`);
|
||||
password.value = obj.pw ? obj.pw : "";
|
||||
}
|
||||
});
|
||||
function getDeviceIp() {
|
||||
let deviceIp;
|
||||
if (plus.os.name == "Android") {
|
||||
let Context = plus.android.importClass("android.content.Context");
|
||||
let main = plus.android.runtimeMainActivity();
|
||||
let cm = main.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
plus.android.importClass(cm);
|
||||
let linkProperties = cm.getLinkProperties(cm.getActiveNetwork());
|
||||
let linkAddrs = plus.android.invoke(linkProperties, "getLinkAddresses");
|
||||
plus.android.importClass(linkAddrs);
|
||||
for (var i2 = 0; i2 < linkAddrs.size(); i2++) {
|
||||
let inetAddr = plus.android.invoke(linkAddrs.get(i2), "getAddress");
|
||||
deviceIp = plus.android.invoke(inetAddr, "getHostAddress");
|
||||
}
|
||||
if (deviceIp == "") {
|
||||
var wifiManager = plus.android.runtimeMainActivity().getSystemService(Context.WIFI_SERVICE);
|
||||
var wifiInfo = plus.android.invoke(wifiManager, "getConnectionInfo");
|
||||
var ipAddress = plus.android.invoke(wifiInfo, "getIpAddress");
|
||||
if (ipAddress != 0) {
|
||||
deviceIp = (ipAddress & 255) + "." + (ipAddress >> 8 & 255) + "." + (ipAddress >> 16 & 255) + "." + (ipAddress >> 24 & 255);
|
||||
}
|
||||
}
|
||||
}
|
||||
return deviceIp;
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return vue.openBlock(), vue.createElementBlock(
|
||||
"view",
|
||||
@ -6465,7 +6434,7 @@ This will fail in production.`);
|
||||
}
|
||||
};
|
||||
const customNav = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-420daeb5"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/customNav.vue"]]);
|
||||
const baseurl = "https://36.112.48.190/jeecg-boot/sys/common/static/";
|
||||
const baseurl = "http://10.75.166.174:8080/jeecg-boot/sys/common/static/";
|
||||
const toast = (title, icon, duration) => {
|
||||
uni.showToast({
|
||||
title,
|
||||
@ -6662,20 +6631,20 @@ This will fail in production.`);
|
||||
});
|
||||
};
|
||||
const opendocument = (url) => {
|
||||
formatAppLog("log", "at utils/index.js:276", "--1", baseurl + url);
|
||||
uni.downloadFile({
|
||||
url: baseurl + url,
|
||||
success: function(res) {
|
||||
formatAppLog("log", "at utils/index.js:280", "---2", res);
|
||||
var filePath = res.tempFilePath;
|
||||
formatAppLog("log", "at utils/index.js:282", "---2", filePath);
|
||||
uni.openDocument({
|
||||
filePath,
|
||||
showMenu: true,
|
||||
success: function(res2) {
|
||||
formatAppLog("log", "at utils/index.js:287", "打开文档成功");
|
||||
fail: function(err) {
|
||||
toast(err.errMsg);
|
||||
}
|
||||
});
|
||||
},
|
||||
fail: function(err) {
|
||||
formatAppLog("error", "at utils/index.js:289", "文件下载失败", err);
|
||||
}
|
||||
});
|
||||
};
|
||||
@ -6688,7 +6657,7 @@ This will fail in production.`);
|
||||
vue.useCssVars((_ctx) => ({
|
||||
"ae0729d5-cusnavbarheight": cusnavbarheight
|
||||
}));
|
||||
const baseurl2 = "https://36.112.48.190/jeecg-boot";
|
||||
const baseurl2 = "http://10.75.166.174:8080/jeecg-boot";
|
||||
const store = useStore();
|
||||
onShow(() => {
|
||||
cxcDaping();
|
||||
@ -11765,7 +11734,7 @@ This will fail in production.`);
|
||||
const _sfc_main$j = {
|
||||
__name: "useredit",
|
||||
setup(__props) {
|
||||
const baseUrl2 = "https://36.112.48.190/jeecg-boot";
|
||||
const baseUrl2 = "http://10.75.166.174:8080/jeecg-boot";
|
||||
const store = useStore();
|
||||
const chooseAvatar = () => {
|
||||
uni.chooseImage({
|
||||
@ -17594,7 +17563,7 @@ ${i3}
|
||||
__definePage("pages/safe/detail", PagesSafeDetail);
|
||||
__definePage("pages/zhiban/index", PagesZhibanIndex);
|
||||
__definePage("pages/task/self", PagesTaskSelf);
|
||||
const baseUrl = "https://36.112.48.190/jeecg-boot/sys/common/static/";
|
||||
const baseUrl = "http://10.75.166.174:8080/jeecg-boot/sys/common/static/";
|
||||
const useUpdateApp = defineStore("updateApp", () => {
|
||||
const updateOptions = vue.reactive({
|
||||
force: false,
|
||||
|
4
unpackage/dist/dev/app-plus/manifest.json
vendored
4
unpackage/dist/dev/app-plus/manifest.json
vendored
@ -7,8 +7,8 @@
|
||||
"id": "__UNI__F0AFD30",
|
||||
"name": "数智产销",
|
||||
"version": {
|
||||
"name": "1.0.1",
|
||||
"code": 20240929
|
||||
"name": "1.0.2",
|
||||
"code": 20241010
|
||||
},
|
||||
"description": "",
|
||||
"developer": {
|
||||
|
@ -23,7 +23,7 @@ export const beforeJump = (url, callback) => {
|
||||
}).then((res) => {
|
||||
if (res.success) {
|
||||
// 登录人被允许访问的页面
|
||||
let page = handleAllowPage(res.result?.menu||[])
|
||||
let page = handleAllowPage(res.result?.menu || [])
|
||||
// console.log('@!1',res.result?.menu);
|
||||
if (page.some(item => url.indexOf(item) !== -1)) {
|
||||
callback()
|
||||
@ -40,7 +40,7 @@ export const beforeJump = (url, callback) => {
|
||||
|
||||
// 处理接口返回的允许访问页面的数据
|
||||
const handleAllowPage = (menu, arr = []) => {
|
||||
if(!menu.length){
|
||||
if (!menu.length) {
|
||||
return []
|
||||
}
|
||||
menu.forEach((item) => {
|
||||
@ -273,20 +273,20 @@ const weatherRequest = (params) => {
|
||||
}
|
||||
|
||||
export const opendocument = (url) => {
|
||||
console.log('--1',baseurl + url)
|
||||
uni.downloadFile({
|
||||
url: baseurl + url,
|
||||
success: function(res) {
|
||||
console.log('---2',res)
|
||||
var filePath = res.tempFilePath;
|
||||
console.log('---2',filePath)
|
||||
uni.openDocument({
|
||||
filePath: filePath,
|
||||
showMenu: true,
|
||||
success: function(res) {
|
||||
console.log('打开文档成功');
|
||||
fail: function(err) {
|
||||
toast(err.errMsg);
|
||||
}
|
||||
});
|
||||
},
|
||||
fail: function(err) {
|
||||
console.error('文件下载失败', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user