jmash-core-mp 0.1.21 → 0.1.22
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/.editorconfig +9 -9
- package/README.md +60 -60
- package/babel.config.json +34 -34
- package/eslint.config.mjs +7 -7
- package/lib/api/auth/index.d.ts +21 -21
- package/lib/api/auth/index.js +199 -199
- package/lib/api/auth/types.d.ts +86 -86
- package/lib/api/auth/types.js +9 -9
- package/lib/api/cms/index.d.ts +20 -20
- package/lib/api/cms/index.js +161 -161
- package/lib/api/cms/types.d.ts +200 -200
- package/lib/api/cms/types.js +1 -1
- package/lib/api/constant.d.ts +5 -5
- package/lib/api/constant.js +6 -6
- package/lib/api/dict/index.d.ts +18 -18
- package/lib/api/dict/index.js +34 -34
- package/lib/api/dict/types.d.ts +28 -28
- package/lib/api/dict/types.js +1 -1
- package/lib/api/dicts.d.ts +18 -18
- package/lib/api/dicts.js +67 -67
- package/lib/api/files/index.d.ts +25 -25
- package/lib/api/files/index.js +135 -135
- package/lib/api/files/types.d.ts +38 -38
- package/lib/api/files/types.js +1 -1
- package/lib/api/index.d.ts +4 -4
- package/lib/api/index.js +6 -6
- package/lib/api/myorgan/types.d.ts +22 -22
- package/lib/api/myorgan/types.js +1 -1
- package/lib/api/region/index.d.ts +7 -7
- package/lib/api/region/index.js +19 -19
- package/lib/api/region/types.d.ts +19 -19
- package/lib/api/region/types.js +1 -1
- package/lib/api/storage/index.d.ts +10 -10
- package/lib/api/storage/index.js +43 -43
- package/lib/api/storage/types.d.ts +28 -28
- package/lib/api/storage/types.js +1 -1
- package/lib/api/types.d.ts +42 -42
- package/lib/api/types.js +1 -1
- package/lib/app.mpx.d.ts +1 -1
- package/lib/components/auth-user/jmash-update-user.mpx.d.ts +1 -1
- package/lib/components/auth-user/jmash-user.mpx.d.ts +1 -1
- package/lib/components/cms/jmash-cms-acticle-list.mpx.d.ts +1 -1
- package/lib/components/cms/jmash-cms-article-item.mpx.d.ts +1 -1
- package/lib/components/cms/jmash-cms-article-view.mpx.d.ts +1 -0
- package/lib/components/cms/jmash-cms-article.mpx.d.ts +1 -1
- package/lib/components/cms/jmash-cms-like.mpx.d.ts +1 -1
- package/lib/components/common/jmash-upload-picture.mpx.d.ts +1 -0
- package/lib/components/core/jmash-login.mpx.d.ts +1 -0
- package/lib/index.d.ts +21 -21
- package/lib/index.js +14 -14
- package/lib/packages/pages/cms/cms-article-list.mpx.d.ts +1 -1
- package/lib/pages/index.mpx.d.ts +1 -0
- package/lib/store/user.d.ts +31 -31
- package/lib/store/user.js +227 -227
- package/lib/utils/common.d.ts +35 -35
- package/lib/utils/common.js +166 -166
- package/lib/utils/config.d.ts +5 -5
- package/lib/utils/config.js +29 -29
- package/lib/utils/db.d.ts +21 -21
- package/lib/utils/db.js +84 -84
- package/lib/utils/grpc.d.ts +5 -5
- package/lib/utils/grpc.js +20 -20
- package/lib/utils/net.d.ts +7 -7
- package/lib/utils/net.js +15 -15
- package/lib/utils/request.d.ts +2 -2
- package/lib/utils/request.js +123 -123
- package/mpx.config.js +27 -27
- package/package.json +1 -1
- package/postcss.config.js +11 -11
- package/project.config.json +24 -24
- package/project.private.config.json +13 -13
- package/public/index.html +15 -15
- package/src/api/auth/index.ts +227 -227
- package/src/api/auth/types.ts +166 -166
- package/src/api/cms/index.ts +218 -218
- package/src/api/cms/types.ts +379 -379
- package/src/api/constant.ts +6 -6
- package/src/api/dict/index.ts +44 -44
- package/src/api/dict/types.ts +49 -49
- package/src/api/dicts.ts +72 -72
- package/src/api/files/index.ts +163 -163
- package/src/api/files/types.ts +67 -67
- package/src/api/index.ts +11 -11
- package/src/api/myorgan/types.ts +42 -42
- package/src/api/region/index.ts +23 -23
- package/src/api/region/types.ts +36 -36
- package/src/api/storage/index.ts +62 -62
- package/src/api/storage/types.ts +54 -54
- package/src/api/types.ts +72 -72
- package/src/app.mpx +71 -71
- package/src/components/auth-user/jmash-logout.mpx +91 -91
- package/src/components/auth-user/jmash-update-user.mpx +386 -386
- package/src/components/auth-user/jmash-update-user.web.mpx +366 -366
- package/src/components/auth-user/jmash-user.mpx +359 -359
- package/src/components/cms/jmash-cms-acticle-list.mpx +182 -182
- package/src/components/cms/jmash-cms-article-item.mpx +241 -241
- package/src/components/cms/jmash-cms-article-view.mpx +131 -131
- package/src/components/cms/jmash-cms-article.mpx +68 -68
- package/src/components/cms/jmash-cms-like.mpx +151 -151
- package/src/components/common/jmash-avatar-edit.mpx +153 -153
- package/src/components/common/jmash-cascader-region.mpx +112 -112
- package/src/components/common/jmash-menu.mpx +129 -129
- package/src/components/common/jmash-none-data.mpx +82 -82
- package/src/components/common/jmash-pic-swiper.mpx +71 -71
- package/src/components/common/jmash-popup.mpx +137 -137
- package/src/components/common/jmash-search.mpx +126 -126
- package/src/components/common/jmash-single-btn.mpx +53 -53
- package/src/components/common/jmash-stepper.mpx +214 -214
- package/src/components/common/jmash-tab-bar.mpx +50 -50
- package/src/components/common/jmash-textarea.mpx +88 -88
- package/src/components/common/jmash-top-navigation.mpx +203 -203
- package/src/components/common/jmash-upload-picture.mpx +129 -126
- package/src/components/core/jmash-cms-protocol.mpx +66 -66
- package/src/components/core/jmash-login.ali.mpx +284 -284
- package/src/components/core/jmash-login.mpx +348 -348
- package/src/components/core/jmash-login.web.mpx +421 -421
- package/src/components/core/jmash-popup-login.ali.mpx +311 -311
- package/src/components/core/jmash-popup-login.mpx +415 -415
- package/src/components/core/jmash-popup-login.web.mpx +389 -389
- package/src/custom-tab-bar/index.mpx +10 -10
- package/src/global.d.ts +11 -11
- package/src/index.ts +71 -71
- package/src/packages/index.mpx +10 -10
- package/src/packages/pages/auth/cms-protocol.mpx +31 -31
- package/src/packages/pages/auth/login.mpx +59 -59
- package/src/packages/pages/auth/update-user.mpx +17 -17
- package/src/packages/pages/cms/cms-article-list.mpx +164 -164
- package/src/packages/pages/cms/cms-article.mpx +32 -32
- package/src/pages/basic-component.mpx +30 -30
- package/src/pages/half-home.mpx +58 -58
- package/src/pages/home.mpx +52 -52
- package/src/pages/home2.mpx +47 -47
- package/src/pages/index.mpx +13 -3
- package/src/pages/tabbar/home.mpx +77 -77
- package/src/pages/tabbar/my.mpx +80 -80
- package/src/store/user.ts +270 -270
- package/src/styles/index.scss +20 -20
- package/src/styles/vars.scss +27 -27
- package/src/utils/common.ts +179 -179
- package/src/utils/config.ts +35 -35
- package/src/utils/db.ts +100 -100
- package/src/utils/grpc.ts +21 -21
- package/src/utils/net.ts +18 -18
- package/src/utils/request.ts +134 -134
- package/static/ali/mini.project.json +4 -4
- package/static/dd/project.config.json +15 -15
- package/static/swan/project.swan.json +14 -14
- package/static/tt/project.config.json +11 -11
- package/static/wx/project.config.json +40 -40
- package/uno.config.js +9 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<jmash-tab-bar wx:ref="tabBar"></jmash-tab-bar>
|
|
3
|
-
</template>
|
|
4
|
-
<script type="application/json">
|
|
5
|
-
{
|
|
6
|
-
"usingComponents": {
|
|
7
|
-
"jmash-tab-bar": "../components/common/jmash-tab-bar.mpx"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<jmash-tab-bar wx:ref="tabBar"></jmash-tab-bar>
|
|
3
|
+
</template>
|
|
4
|
+
<script type="application/json">
|
|
5
|
+
{
|
|
6
|
+
"usingComponents": {
|
|
7
|
+
"jmash-tab-bar": "../components/common/jmash-tab-bar.mpx"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
</script>
|
package/src/global.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare module "*?fallback=true" {
|
|
2
|
-
const URL: string;
|
|
3
|
-
export default URL;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare const my: {
|
|
7
|
-
getOpenUserInfo(options: any): Promise<any>;
|
|
8
|
-
getPhoneNumber(options: any): Promise<any>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
declare module "sm-crypto";
|
|
1
|
+
declare module "*?fallback=true" {
|
|
2
|
+
const URL: string;
|
|
3
|
+
export default URL;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare const my: {
|
|
7
|
+
getOpenUserInfo(options: any): Promise<any>;
|
|
8
|
+
getPhoneNumber(options: any): Promise<any>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare module "sm-crypto";
|
package/src/index.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
AppConfig,
|
|
3
|
-
ResponseData,
|
|
4
|
-
ValidateData,
|
|
5
|
-
EventBase,
|
|
6
|
-
EventTarget,
|
|
7
|
-
CanvasResponse,
|
|
8
|
-
} from "./api/types";
|
|
9
|
-
export type {
|
|
10
|
-
LoginReq,
|
|
11
|
-
LoginRes,
|
|
12
|
-
RolesPerms,
|
|
13
|
-
WebLoginReq,
|
|
14
|
-
TokenModel,
|
|
15
|
-
PhoneRegisterReq,
|
|
16
|
-
PhoneReplaceReq,
|
|
17
|
-
UpdateUserReq,
|
|
18
|
-
UserInfoReq,
|
|
19
|
-
UserInfo,
|
|
20
|
-
} from "./api/auth/types";
|
|
21
|
-
export type {
|
|
22
|
-
CmsSiteList,
|
|
23
|
-
CmsChannelReq,
|
|
24
|
-
CmsChannelList,
|
|
25
|
-
CmsContentInfoReq,
|
|
26
|
-
CmsContentInfoModel,
|
|
27
|
-
CmsInfoModel,
|
|
28
|
-
CmsInfoContentModel,
|
|
29
|
-
CmsChannelModel,
|
|
30
|
-
} from "./api/cms/types";
|
|
31
|
-
export type { Entry, DictEntryModel } from "./api/dict/types";
|
|
32
|
-
export { EntryDict, EnumDict } from "./api/dicts";
|
|
33
|
-
export type {
|
|
34
|
-
FileInfo,
|
|
35
|
-
FileBase64Req,
|
|
36
|
-
FileDownInfo,
|
|
37
|
-
FileWebReq,
|
|
38
|
-
} from "./api/files/types";
|
|
39
|
-
export type {
|
|
40
|
-
DictRegionList,
|
|
41
|
-
DictRegionReq,
|
|
42
|
-
DictRegionModel,
|
|
43
|
-
} from "./api/region/types";
|
|
44
|
-
export type {
|
|
45
|
-
StorageOrganInfoReq,
|
|
46
|
-
StorageOrganInfoList,
|
|
47
|
-
StorageOrganInfoModel,
|
|
48
|
-
ShopBrowserUserList,
|
|
49
|
-
ShopBrowserUserModel,
|
|
50
|
-
StorageOrganBrowserUpdateReq,
|
|
51
|
-
StorageOrganBrowserModel,
|
|
52
|
-
} from "./api/storage/types";
|
|
53
|
-
|
|
54
|
-
export { mpxFetch } from "./utils/request";
|
|
55
|
-
export { config, initConfig, setConfig } from "./utils/config";
|
|
56
|
-
export { grpc } from "./utils/grpc";
|
|
57
|
-
export { db } from "./utils/db";
|
|
58
|
-
export { useUserStore } from "./store/user";
|
|
59
|
-
export { authApi } from "./api/auth";
|
|
60
|
-
export { cmsApi } from "./api/cms";
|
|
61
|
-
export { dictApi } from "./api/dict";
|
|
62
|
-
export { fileApi } from "./api/files";
|
|
63
|
-
export { regionApi } from "./api/region";
|
|
64
|
-
export { storageApi } from "./api/storage";
|
|
65
|
-
export { net } from "./utils/net";
|
|
66
|
-
export {
|
|
67
|
-
getHeight,
|
|
68
|
-
formatDateTime,
|
|
69
|
-
validateRules,
|
|
70
|
-
validateRequired,
|
|
71
|
-
} from "./utils/common";
|
|
1
|
+
export type {
|
|
2
|
+
AppConfig,
|
|
3
|
+
ResponseData,
|
|
4
|
+
ValidateData,
|
|
5
|
+
EventBase,
|
|
6
|
+
EventTarget,
|
|
7
|
+
CanvasResponse,
|
|
8
|
+
} from "./api/types";
|
|
9
|
+
export type {
|
|
10
|
+
LoginReq,
|
|
11
|
+
LoginRes,
|
|
12
|
+
RolesPerms,
|
|
13
|
+
WebLoginReq,
|
|
14
|
+
TokenModel,
|
|
15
|
+
PhoneRegisterReq,
|
|
16
|
+
PhoneReplaceReq,
|
|
17
|
+
UpdateUserReq,
|
|
18
|
+
UserInfoReq,
|
|
19
|
+
UserInfo,
|
|
20
|
+
} from "./api/auth/types";
|
|
21
|
+
export type {
|
|
22
|
+
CmsSiteList,
|
|
23
|
+
CmsChannelReq,
|
|
24
|
+
CmsChannelList,
|
|
25
|
+
CmsContentInfoReq,
|
|
26
|
+
CmsContentInfoModel,
|
|
27
|
+
CmsInfoModel,
|
|
28
|
+
CmsInfoContentModel,
|
|
29
|
+
CmsChannelModel,
|
|
30
|
+
} from "./api/cms/types";
|
|
31
|
+
export type { Entry, DictEntryModel } from "./api/dict/types";
|
|
32
|
+
export { EntryDict, EnumDict } from "./api/dicts";
|
|
33
|
+
export type {
|
|
34
|
+
FileInfo,
|
|
35
|
+
FileBase64Req,
|
|
36
|
+
FileDownInfo,
|
|
37
|
+
FileWebReq,
|
|
38
|
+
} from "./api/files/types";
|
|
39
|
+
export type {
|
|
40
|
+
DictRegionList,
|
|
41
|
+
DictRegionReq,
|
|
42
|
+
DictRegionModel,
|
|
43
|
+
} from "./api/region/types";
|
|
44
|
+
export type {
|
|
45
|
+
StorageOrganInfoReq,
|
|
46
|
+
StorageOrganInfoList,
|
|
47
|
+
StorageOrganInfoModel,
|
|
48
|
+
ShopBrowserUserList,
|
|
49
|
+
ShopBrowserUserModel,
|
|
50
|
+
StorageOrganBrowserUpdateReq,
|
|
51
|
+
StorageOrganBrowserModel,
|
|
52
|
+
} from "./api/storage/types";
|
|
53
|
+
|
|
54
|
+
export { mpxFetch } from "./utils/request";
|
|
55
|
+
export { config, initConfig, setConfig } from "./utils/config";
|
|
56
|
+
export { grpc } from "./utils/grpc";
|
|
57
|
+
export { db } from "./utils/db";
|
|
58
|
+
export { useUserStore } from "./store/user";
|
|
59
|
+
export { authApi } from "./api/auth";
|
|
60
|
+
export { cmsApi } from "./api/cms";
|
|
61
|
+
export { dictApi } from "./api/dict";
|
|
62
|
+
export { fileApi } from "./api/files";
|
|
63
|
+
export { regionApi } from "./api/region";
|
|
64
|
+
export { storageApi } from "./api/storage";
|
|
65
|
+
export { net } from "./utils/net";
|
|
66
|
+
export {
|
|
67
|
+
getHeight,
|
|
68
|
+
formatDateTime,
|
|
69
|
+
validateRules,
|
|
70
|
+
validateRequired,
|
|
71
|
+
} from "./utils/common";
|
package/src/packages/index.mpx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script type="application/json">
|
|
2
|
-
{
|
|
3
|
-
"pages": [
|
|
4
|
-
"./pages/auth/login",
|
|
5
|
-
"./pages/auth/update-user",
|
|
6
|
-
"./pages/auth/cms-protocol",
|
|
7
|
-
"./pages/cms/cms-article",
|
|
8
|
-
"./pages/cms/cms-article-list"
|
|
9
|
-
]
|
|
10
|
-
}
|
|
1
|
+
<script type="application/json">
|
|
2
|
+
{
|
|
3
|
+
"pages": [
|
|
4
|
+
"./pages/auth/login",
|
|
5
|
+
"./pages/auth/update-user",
|
|
6
|
+
"./pages/auth/cms-protocol",
|
|
7
|
+
"./pages/cms/cms-article",
|
|
8
|
+
"./pages/cms/cms-article-list"
|
|
9
|
+
]
|
|
10
|
+
}
|
|
11
11
|
</script>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<cms-protocol siteId="{{ siteId }}" tenant="{{ tenant }}" channelAlias="{{ channelAlias }}"></cms-protocol>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
import { createPage, ref, onLoad } from '@mpxjs/core'
|
|
7
|
-
|
|
8
|
-
createPage({
|
|
9
|
-
setup(props) {
|
|
10
|
-
//console.log("123", props);
|
|
11
|
-
let config = getApp().globalData.config;
|
|
12
|
-
let siteId = ref(config.siteId);
|
|
13
|
-
let tenant = ref(config.tenant);
|
|
14
|
-
let channelAlias = ref('');
|
|
15
|
-
onLoad((options) => {
|
|
16
|
-
console.log(options);
|
|
17
|
-
channelAlias.value = options.channelAlias || 'privacy';
|
|
18
|
-
})
|
|
19
|
-
return { siteId, tenant, channelAlias };
|
|
20
|
-
},
|
|
21
|
-
})
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style lang="scss"></style>
|
|
25
|
-
|
|
26
|
-
<script type="application/json">
|
|
27
|
-
{
|
|
28
|
-
"usingComponents": {
|
|
29
|
-
"cms-protocol": "../../../components/core/jmash-cms-protocol.mpx"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<cms-protocol siteId="{{ siteId }}" tenant="{{ tenant }}" channelAlias="{{ channelAlias }}"></cms-protocol>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import { createPage, ref, onLoad } from '@mpxjs/core'
|
|
7
|
+
|
|
8
|
+
createPage({
|
|
9
|
+
setup(props) {
|
|
10
|
+
//console.log("123", props);
|
|
11
|
+
let config = getApp().globalData.config;
|
|
12
|
+
let siteId = ref(config.siteId);
|
|
13
|
+
let tenant = ref(config.tenant);
|
|
14
|
+
let channelAlias = ref('');
|
|
15
|
+
onLoad((options) => {
|
|
16
|
+
console.log(options);
|
|
17
|
+
channelAlias.value = options.channelAlias || 'privacy';
|
|
18
|
+
})
|
|
19
|
+
return { siteId, tenant, channelAlias };
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style lang="scss"></style>
|
|
25
|
+
|
|
26
|
+
<script type="application/json">
|
|
27
|
+
{
|
|
28
|
+
"usingComponents": {
|
|
29
|
+
"cms-protocol": "../../../components/core/jmash-cms-protocol.mpx"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
32
|
</script>
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<jmash-login linkType="{{ linkType }}" backurl="{{ backurl }}">
|
|
3
|
-
<image mode="widthFix" src="{{ resourceUrl }}/images/login_bg.png" class="index_bj" slot="before">
|
|
4
|
-
<image mode="widthFix" src="{{ resourceUrl }}/images/logo.png" class="login_logo"></image>
|
|
5
|
-
</image>
|
|
6
|
-
<view class="tips_box" slot="after">温馨提示:{{ appName }}手机号授权登录。</view>
|
|
7
|
-
</jmash-login>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import { createPage, ref, onLoad } from '@mpxjs/core'
|
|
12
|
-
|
|
13
|
-
createPage({
|
|
14
|
-
setup(props) {
|
|
15
|
-
let config = getApp().globalData.config;
|
|
16
|
-
let resourceUrl = ref(config.resourceUrl);
|
|
17
|
-
let appName = ref(config.name);
|
|
18
|
-
let linkType = ref("redirectTo");
|
|
19
|
-
let backurl = ref("/pages/home");
|
|
20
|
-
onLoad((options) => {
|
|
21
|
-
console.log(options);
|
|
22
|
-
linkType.value = options.tabbar === 'true' ? "switchTab" : "redirectTo";
|
|
23
|
-
backurl.value = options.backurl || "/pages/home";
|
|
24
|
-
console.log("linkType", linkType);
|
|
25
|
-
console.log("backurl", backurl);
|
|
26
|
-
})
|
|
27
|
-
return { resourceUrl, appName, linkType, backurl };
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<style lang="scss">
|
|
33
|
-
.index_bj {
|
|
34
|
-
width: 100%;
|
|
35
|
-
position: relative;
|
|
36
|
-
|
|
37
|
-
.login_logo {
|
|
38
|
-
position: absolute;
|
|
39
|
-
left: 50%;
|
|
40
|
-
top: 20%;
|
|
41
|
-
transform: translateX(-50%);
|
|
42
|
-
width: 120rpx;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.tips_box {
|
|
47
|
-
text-align: center;
|
|
48
|
-
color: #666;
|
|
49
|
-
font-size: 24rpx;
|
|
50
|
-
margin-top: 40rpx;
|
|
51
|
-
}
|
|
52
|
-
</style>
|
|
53
|
-
|
|
54
|
-
<script type="application/json">
|
|
55
|
-
{
|
|
56
|
-
"usingComponents": {
|
|
57
|
-
"jmash-login": "../../../components/core/jmash-login.mpx"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<jmash-login linkType="{{ linkType }}" backurl="{{ backurl }}">
|
|
3
|
+
<image mode="widthFix" src="{{ resourceUrl }}/images/login_bg.png" class="index_bj" slot="before">
|
|
4
|
+
<image mode="widthFix" src="{{ resourceUrl }}/images/logo.png" class="login_logo"></image>
|
|
5
|
+
</image>
|
|
6
|
+
<view class="tips_box" slot="after">温馨提示:{{ appName }}手机号授权登录。</view>
|
|
7
|
+
</jmash-login>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import { createPage, ref, onLoad } from '@mpxjs/core'
|
|
12
|
+
|
|
13
|
+
createPage({
|
|
14
|
+
setup(props) {
|
|
15
|
+
let config = getApp().globalData.config;
|
|
16
|
+
let resourceUrl = ref(config.resourceUrl);
|
|
17
|
+
let appName = ref(config.name);
|
|
18
|
+
let linkType = ref("redirectTo");
|
|
19
|
+
let backurl = ref("/pages/home");
|
|
20
|
+
onLoad((options) => {
|
|
21
|
+
console.log(options);
|
|
22
|
+
linkType.value = options.tabbar === 'true' ? "switchTab" : "redirectTo";
|
|
23
|
+
backurl.value = options.backurl || "/pages/home";
|
|
24
|
+
console.log("linkType", linkType);
|
|
25
|
+
console.log("backurl", backurl);
|
|
26
|
+
})
|
|
27
|
+
return { resourceUrl, appName, linkType, backurl };
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<style lang="scss">
|
|
33
|
+
.index_bj {
|
|
34
|
+
width: 100%;
|
|
35
|
+
position: relative;
|
|
36
|
+
|
|
37
|
+
.login_logo {
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: 50%;
|
|
40
|
+
top: 20%;
|
|
41
|
+
transform: translateX(-50%);
|
|
42
|
+
width: 120rpx;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.tips_box {
|
|
47
|
+
text-align: center;
|
|
48
|
+
color: #666;
|
|
49
|
+
font-size: 24rpx;
|
|
50
|
+
margin-top: 40rpx;
|
|
51
|
+
}
|
|
52
|
+
</style>
|
|
53
|
+
|
|
54
|
+
<script type="application/json">
|
|
55
|
+
{
|
|
56
|
+
"usingComponents": {
|
|
57
|
+
"jmash-login": "../../../components/core/jmash-login.mpx"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
60
|
</script>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view>
|
|
3
|
-
<jmash-update-user></jmash-update-user>
|
|
4
|
-
</view>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { createPage } from '@mpxjs/core'
|
|
9
|
-
createPage({})
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<script type="application/json">
|
|
13
|
-
{
|
|
14
|
-
"usingComponents": {
|
|
15
|
-
"jmash-update-user": "../../../components/auth-user/jmash-update-user"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<view>
|
|
3
|
+
<jmash-update-user></jmash-update-user>
|
|
4
|
+
</view>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import { createPage } from '@mpxjs/core'
|
|
9
|
+
createPage({})
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<script type="application/json">
|
|
13
|
+
{
|
|
14
|
+
"usingComponents": {
|
|
15
|
+
"jmash-update-user": "../../../components/auth-user/jmash-update-user"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
18
|
</script>
|