Skip to content

Commit b81c1f5

Browse files
committed
add pages
1 parent b927a06 commit b81c1f5

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

src/app/modules/ajax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file utils/ajax.ts ajax网络请求
2+
* @file utils/ajax.ts ajax、jsonp 网络请求
33
* @author: 王佳欣
44
* @email: 1974740999@qq.com
55
*/

src/app/modules/confirm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { EMPTY_FUNCTION } from '../../constant';
99
import { ConfirmOptions } from '../../interface';
1010

1111
export default class Confirm {
12+
static readonly prefix = 'globalConfirm';
1213
static defaultOptions: ConfirmOptions = {
1314
title: '',
1415
closable: true,
@@ -19,7 +20,6 @@ export default class Confirm {
1920
okCallback: EMPTY_FUNCTION,
2021
cancelCallback: EMPTY_FUNCTION,
2122
};
22-
static prefix = 'globalConfirm';
2323

2424
private options: ConfirmOptions;
2525
private transitionEvent: string;

src/app/modules/loading.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { getAnimationEvent } from '@utils/device';
99
import { EMPTY_FUNCTION } from '../../constant';
1010

1111
export default class Loading {
12-
static prefix = 'globalLoading';
12+
static readonly prefix = 'globalLoading';
1313

1414
private haveLoadedPercent: number = 0;
1515
private haveLoadedCount: number = 0;

src/app/modules/mask.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getAnimationEvent } from '@utils/device';
22

33
export default class Mask {
44
private static $domMask: HTMLElement;
5-
private static prefix = 'globalMask';
5+
private static readonly prefix = 'globalMask';
66
private static animationEvent = getAnimationEvent();
77

88
static open () {

src/app/modules/share/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { isNodeFound } from '@utils/domHelper';
99
import Share from './share';
1010

1111
export default class Browser extends Share {
12-
static prefix = 'globalShare';
12+
static readonly prefix = 'globalShare';
1313
private $domShare: HTMLElement;
1414
private $domWeibo: Node;
1515
private $domQzone: Node;

src/app/modules/share/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class Index {
1515
private shareInfo: ShareInfo;
1616
private platform: Share;
1717

18-
static defaultShareInfo: ShareInfo = {
18+
static readonly defaultShareInfo: ShareInfo = {
1919
title: document.title,
2020
desc: '',
2121
link: window.location.href,

src/app/modules/share/qq.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default class QQ extends Share {
2121
super();
2222
this.shareInfo = shareInfo;
2323
this.loadQQ(appId).then(() => {
24-
this.setShareInfo();
24+
this.setShareInfo(this.shareInfo);
2525
});
2626
}
2727

@@ -30,8 +30,8 @@ export default class QQ extends Share {
3030
this.qq = window.__mqq__;
3131
}
3232

33-
public setShareInfo () {
34-
let {title, desc, link, imgUrl} = this.shareInfo;
33+
public setShareInfo (shareInfo: ShareInfo) {
34+
let {title, desc, link, imgUrl} = shareInfo;
3535
this.qq.data.setShareInfo({
3636
title,
3737
desc,
@@ -40,7 +40,7 @@ export default class QQ extends Share {
4040
});
4141
}
4242

43-
public callShare () {
43+
callShare () {
4444
this.qq.ui.showShareMenu();
4545
}
4646
}

src/app/modules/share/wechat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare global {
1818
};
1919
// declare let window: any;
2020
export default class WeChat extends Share {
21-
static prefix = 'globalShare';
21+
static readonly prefix = 'globalShare';
2222
private $domShare: HTMLElement;
2323
private wechat: any;
2424
private shareInfo: ShareInfo;

src/app/modules/tip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import { getAnimationEvent } from '@utils/device';
99
import { TipOptions } from 'interface';
1010

1111
export default class Tip {
12-
static defaultOptions: TipOptions = {
12+
static readonly defaultOptions: TipOptions = {
1313
message: '',
1414
duration: 3000,
1515
theme: 'default',
1616
closable: false,
1717
callback: EMPTY_FUNCTION
1818
};
19-
static prefix = 'globalTip';
19+
static readonly prefix = 'globalTip';
2020

2121
private timeId: any;
2222
private animationEvent: string;

0 commit comments

Comments
 (0)