@zfqh/uniapp 0.2.22 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/lib/apis/request.js +30 -2
- package/lib/styles/index.scss +2 -2
- package/lib/styles/text-vue.scss +5 -5
- package/package.json +2 -2
- package/types/index.d.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [0.2.
|
|
6
|
+
## [0.2.23](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.2.22...@zfqh/uniapp@0.2.23) (2026-06-28)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @zfqh/uniapp
|
|
9
9
|
|
|
@@ -12,6 +12,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
## [0.2.22](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.2.21...@zfqh/uniapp@0.2.22) (2026-06-27)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @zfqh/uniapp
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
15
24
|
## [0.2.21](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.2.20...@zfqh/uniapp@0.2.21) (2026-06-26)
|
|
16
25
|
|
|
17
26
|
**Note:** Version bump only for package @zfqh/uniapp
|
package/lib/apis/request.js
CHANGED
|
@@ -1,17 +1,45 @@
|
|
|
1
1
|
import api from '../configs/api';
|
|
2
2
|
import app from '../configs/app';
|
|
3
3
|
import { createRequest, createInterceptors } from '../utils/request';
|
|
4
|
-
import { LANGUAGE } from '../utils/consts';
|
|
4
|
+
import { LANGUAGE, SYSTEM_INFO } from '../utils/consts';
|
|
5
5
|
import query from '../utils/query';
|
|
6
6
|
import http from '@gmcb/uv-ui/libs/function/http';
|
|
7
7
|
http.interceptors.request.use((conf) => {
|
|
8
8
|
const store = uni.$store;
|
|
9
9
|
if (store) {
|
|
10
10
|
const { tenantId } = store.state.login?.info || {};
|
|
11
|
+
let channel = query.channel || app.channel;
|
|
12
|
+
let terminal = 0;
|
|
13
|
+
// #ifdef MP-WEIXIN
|
|
14
|
+
terminal = 10;
|
|
15
|
+
// #endif
|
|
16
|
+
// #ifdef APP
|
|
17
|
+
if (SYSTEM_INFO.platform === 'android') {
|
|
18
|
+
terminal = 32;
|
|
19
|
+
}
|
|
20
|
+
else if (SYSTEM_INFO.platform === 'ios') {
|
|
21
|
+
terminal = 31;
|
|
22
|
+
}
|
|
23
|
+
// #endif
|
|
24
|
+
// #ifdef H5
|
|
25
|
+
terminal = 20;
|
|
26
|
+
if (query.platform === 'mp') {
|
|
27
|
+
terminal = 10;
|
|
28
|
+
}
|
|
29
|
+
else if (query.platform === 'app') {
|
|
30
|
+
if (SYSTEM_INFO.platform === 'android') {
|
|
31
|
+
terminal = 32;
|
|
32
|
+
}
|
|
33
|
+
else if (SYSTEM_INFO.platform === 'ios') {
|
|
34
|
+
terminal = 31;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// #endif
|
|
11
38
|
const header = {
|
|
12
39
|
'X-Language': LANGUAGE[query.locale || uni.getLocale()],
|
|
13
40
|
'Tenant-Id': tenantId || 1,
|
|
14
|
-
|
|
41
|
+
channel,
|
|
42
|
+
terminal,
|
|
15
43
|
};
|
|
16
44
|
conf.header = {
|
|
17
45
|
...header,
|
package/lib/styles/index.scss
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/* #ifndef APP-NVUE */
|
|
6
6
|
@import './reset-vue.scss';
|
|
7
7
|
@import './text-vue.scss';
|
|
8
|
-
@import './layout-vue.scss';
|
|
8
|
+
@import './layout-vue.scss';
|
|
9
9
|
@import './flex-vue.scss';
|
|
10
10
|
/* #endif */
|
|
11
11
|
/* #ifdef APP-NVUE */
|
|
12
|
-
@import './text-nvue.scss';
|
|
12
|
+
@import './text-nvue.scss';
|
|
13
13
|
@import './layout-nvue.scss';
|
|
14
14
|
@import './flex-nvue.scss';
|
|
15
15
|
/* #endif */
|
package/lib/styles/text-vue.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zfqh/uniapp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"description": "uniapp公共模块",
|
|
5
5
|
"author": "yinjiazeng@163.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@types/qs": "^6.9.16",
|
|
47
47
|
"@types/url-parse": "^1.4.11"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "5066a90bac173982cb7be220a844cfddc6095c3b"
|
|
50
50
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare global {
|
|
|
9
9
|
interface Uni extends UniTypes {
|
|
10
10
|
$store: Store;
|
|
11
11
|
$i18n: I18n;
|
|
12
|
-
$uv: any;
|
|
12
|
+
$uv: any;
|
|
13
13
|
webView: any;
|
|
14
14
|
showAppFromBackground: boolean;
|
|
15
15
|
getLocationCallback: {
|
|
@@ -22,9 +22,9 @@ declare global {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
interface Window {
|
|
25
|
-
__wxjs_environment: string;
|
|
26
|
-
electron: any;
|
|
27
|
-
versionName: string;
|
|
25
|
+
__wxjs_environment: string;
|
|
26
|
+
electron: any;
|
|
27
|
+
versionName: string;
|
|
28
28
|
versionCode: number;
|
|
29
29
|
}
|
|
30
30
|
}
|