feat:登录
This commit is contained in:
1 parent
0088fe3509
commit
8cfe87e31e
8 files changed
+5048
-3914
No files matched your search
+7
-10
@@ -52,8 +52,13 @@ export enum LinkTypeEnum {
|
||||
"CUSTOM_LINK" = "custom",
|
||||
}
|
||||
|
||||
export function navigateTo(link: Link, navigateType: "navigateTo" | "reLaunch" | "switchTab" = "navigateTo") {
|
||||
const url = link.query ? `${link.path}?${objectToQuery(link.query)}` : link.path;
|
||||
export function navigateTo(
|
||||
link: Link,
|
||||
navigateType: "navigateTo" | "reLaunch" | "switchTab" = "navigateTo"
|
||||
) {
|
||||
const url = link.query
|
||||
? `${link.path}?${objectToQuery(link.query)}`
|
||||
: link.path;
|
||||
navigateType == "navigateTo" && uni.navigateTo({ url });
|
||||
navigateType == "reLaunch" && uni.reLaunch({ url });
|
||||
navigateType == "switchTab" && uni.switchTab({ url });
|
||||
@@ -193,11 +198,3 @@ export function encryption(src: string, keyWord: string) {
|
||||
});
|
||||
return encrypted.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
*加密处理
|
||||
*/
|
||||
export function encryptionBase64(rawStr: string) {
|
||||
let wordArray = CryptoJS.enc.Utf8.parse(rawStr);
|
||||
return CryptoJS.enc.Base64.stringify(wordArray);
|
||||
}
|
||||
Reference in new issue
Block a user