hy-app 0.1.5 → 0.2.0
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/components/hy-address-picker/hy-address-picker.vue +11 -0
- package/components/hy-address-picker/index.scss +1 -1
- package/components/hy-avatar/hy-avatar.vue +11 -0
- package/components/hy-avatar/index.scss +8 -8
- package/components/hy-back-top/hy-back-top.vue +13 -2
- package/components/hy-back-top/index.scss +11 -1
- package/components/hy-badge/hy-badge.vue +11 -0
- package/components/hy-badge/index.scss +18 -40
- package/components/hy-button/hy-button.vue +15 -5
- package/components/hy-button/index.scss +25 -45
- package/components/hy-calendar/header.vue +12 -12
- package/components/hy-calendar/hy-calendar.vue +11 -2
- package/components/hy-calendar/index.scss +140 -131
- package/components/hy-calendar/month.vue +18 -18
- package/components/hy-card/hy-card.vue +11 -0
- package/components/hy-card/index.scss +12 -12
- package/components/hy-card/props.ts +2 -2
- package/components/hy-cell/hy-cell.vue +22 -13
- package/components/hy-cell/index.scss +55 -28
- package/components/hy-cell/props.ts +2 -3
- package/components/hy-cell/typing.d.ts +3 -10
- package/components/hy-check-button/hy-check-button.vue +13 -2
- package/components/hy-check-button/index.scss +0 -5
- package/components/hy-checkbox/hy-checkbox.vue +31 -8
- package/components/hy-checkbox/index.scss +15 -5
- package/components/hy-checkbox/props.ts +1 -2
- package/components/hy-checkbox/typing.d.ts +1 -1
- package/components/hy-config-provider/hy-config-provider.vue +52 -0
- package/components/hy-config-provider/index.scss +21 -0
- package/components/hy-config-provider/props.ts +13 -0
- package/components/hy-config-provider/typing.d.ts +28 -0
- package/components/hy-count-down/hy-count-down.vue +11 -0
- package/components/hy-count-down/index.scss +13 -1
- package/components/hy-count-to/hy-count-to.vue +12 -1
- package/components/hy-count-to/index.scss +14 -1
- package/components/hy-count-to/props.ts +1 -1
- package/components/hy-datetime-picker/hy-datetime-picker.vue +11 -0
- package/components/hy-datetime-picker/index.scss +1 -1
- package/components/hy-divider/hy-divider.vue +11 -0
- package/components/hy-divider/index.scss +1 -1
- package/components/hy-dropdown/hy-dropdown.vue +13 -1
- package/components/hy-dropdown/index.scss +4 -1
- package/components/hy-dropdown/props.ts +2 -2
- package/components/hy-dropdown-item/hy-dropdown-item.vue +21 -3
- package/components/hy-dropdown-item/index.scss +35 -2
- package/components/hy-empty/hy-empty.vue +22 -10
- package/components/hy-empty/index.scss +17 -3
- package/components/hy-empty/props.ts +1 -5
- package/components/hy-empty/typing.d.ts +3 -18
- package/components/hy-float-button/hy-float-button.vue +11 -0
- package/components/hy-float-button/index.scss +13 -2
- package/components/hy-float-button/props.ts +3 -3
- package/components/hy-folding-panel/hy-folding-panel.vue +11 -0
- package/components/hy-folding-panel/index.scss +4 -1
- package/components/hy-form/hy-form.vue +25 -9
- package/components/hy-form/index.scss +12 -2
- package/components/hy-grid/hy-grid.vue +11 -0
- package/components/hy-grid/index.scss +1 -1
- package/components/hy-icon/hy-icon.vue +12 -1
- package/components/hy-icon/index.scss +16 -7
- package/components/hy-icon/props.ts +2 -2
- package/components/hy-image/hy-image.vue +11 -0
- package/components/hy-image/index.scss +4 -3
- package/components/hy-input/hy-input.vue +31 -3
- package/components/hy-input/index.scss +12 -2
- package/components/hy-input/props.ts +1 -1
- package/components/hy-input/typing.d.ts +8 -0
- package/components/hy-line/hy-line.vue +11 -0
- package/components/hy-line/index.scss +4 -1
- package/components/hy-line-progress/hy-line-progress.vue +17 -2
- package/components/hy-line-progress/index.scss +20 -8
- package/components/hy-line-progress/props.ts +4 -4
- package/components/hy-line-progress/typing.d.ts +4 -0
- package/components/hy-list/hy-list.vue +23 -8
- package/components/hy-list/index.scss +1 -4
- package/components/hy-loading/hy-loading.vue +11 -0
- package/components/hy-loading/index.scss +2 -2
- package/components/hy-login/TheUserLogin.vue +63 -106
- package/components/hy-login/hy-login.vue +269 -266
- package/components/hy-login/props.ts +1 -1
- package/components/hy-login/typing.d.ts +5 -0
- package/components/hy-modal/hy-modal.vue +15 -7
- package/components/hy-modal/index.scss +19 -3
- package/components/hy-navbar/hy-navbar.vue +11 -0
- package/components/hy-navbar/index.scss +14 -3
- package/components/hy-navbar/props.ts +1 -1
- package/components/hy-notice-bar/hy-notice-bar.vue +11 -0
- package/components/hy-notice-bar/index.scss +35 -35
- package/components/hy-number-step/hy-number-step.vue +15 -8
- package/components/hy-number-step/index.scss +34 -25
- package/components/hy-number-step/props.ts +4 -4
- package/components/hy-overlay/index.scss +3 -1
- package/components/hy-picker/hy-picker.vue +12 -0
- package/components/hy-picker/index.scss +7 -3
- package/components/hy-picker/props.ts +1 -1
- package/components/hy-popup/hy-popup.vue +11 -0
- package/components/hy-popup/index.scss +10 -1
- package/components/hy-price/hy-price.vue +11 -0
- package/components/hy-price/index.scss +4 -1
- package/components/hy-qrcode/hy-qrcode.vue +11 -0
- package/components/hy-qrcode/index.scss +4 -1
- package/components/hy-radio/hy-radio.vue +19 -3
- package/components/hy-radio/index.scss +17 -5
- package/components/hy-radio/props.ts +1 -2
- package/components/hy-rate/hy-rate.vue +11 -0
- package/components/hy-rate/index.scss +6 -6
- package/components/hy-read-more/hy-read-more.vue +23 -2
- package/components/hy-read-more/index.scss +29 -2
- package/components/hy-read-more/props.ts +2 -7
- package/components/hy-scroll-list/hy-scroll-list.vue +31 -9
- package/components/hy-scroll-list/index.scss +10 -1
- package/components/hy-scroll-list/props.ts +2 -2
- package/components/hy-search/hy-search.vue +11 -0
- package/components/hy-search/index.scss +25 -4
- package/components/hy-search/props.ts +2 -2
- package/components/hy-slider/hy-slider.vue +11 -0
- package/components/hy-slider/index.scss +3 -2
- package/components/hy-slider/props.ts +1 -1
- package/components/hy-steps/hy-steps.vue +38 -20
- package/components/hy-steps/index.scss +57 -17
- package/components/hy-steps/props.ts +2 -2
- package/components/{hy-submitBar/hy-submitBar.vue → hy-submit-bar/hy-submit-bar.vue} +13 -34
- package/components/hy-submit-bar/index.scss +45 -0
- package/components/hy-subsection/hy-subsection.vue +12 -0
- package/components/hy-subsection/index.scss +28 -8
- package/components/hy-subsection/props.ts +3 -3
- package/components/hy-swiper/hy-swiper.vue +11 -0
- package/components/hy-swiper/index.scss +13 -2
- package/components/hy-switch/hy-switch.vue +17 -3
- package/components/hy-switch/index.scss +25 -7
- package/components/hy-switch/props.ts +1 -2
- package/components/hy-switch/typing.d.ts +3 -3
- package/components/hy-tabs/hy-tabs.vue +27 -15
- package/components/hy-tabs/index.scss +25 -4
- package/components/hy-tabs/props.ts +4 -10
- package/components/hy-tag/hy-tag.vue +13 -7
- package/components/hy-tag/index.scss +27 -115
- package/components/hy-text/hy-text.vue +12 -1
- package/components/hy-text/index.scss +20 -37
- package/components/hy-textarea/hy-textarea.vue +16 -5
- package/components/hy-textarea/index.scss +16 -5
- package/components/hy-toast/hy-toast.vue +12 -1
- package/components/hy-toast/index.scss +26 -26
- package/components/hy-tooltip/hy-tooltip.vue +11 -0
- package/components/hy-tooltip/index.scss +3 -3
- package/components/hy-tooltip/props.ts +1 -1
- package/components/hy-upload/hy-upload.vue +11 -0
- package/components/hy-upload/index.scss +12 -1
- package/components/hy-warn/hy-warn.vue +22 -11
- package/components/hy-warn/index.scss +46 -1
- package/components/hy-waterfall/hy-waterfall.vue +11 -0
- package/components/hy-waterfall/index.scss +1 -1
- package/config/icon.ts +4 -0
- package/libs/css/common.scss +9 -0
- package/libs/css/mixin.scss +78 -0
- package/package.json +2 -2
- package/public/font/iconfont.css +3 -3
- package/store/userInfo.ts +26 -25
- package/theme.scss +76 -60
- package/typing/modules/common.d.ts +4 -0
- package/utils/colorGradient.ts +1 -1
- package/utils/inside.ts +3 -0
- package/components/hy-submitBar/Index.vue +0 -17
- package/components/hy-submitBar/index.scss +0 -9
- /package/components/{hy-submitBar → hy-submit-bar}/props.ts +0 -0
- /package/components/{hy-submitBar → hy-submit-bar}/typing.d.ts +0 -0
|
@@ -1,285 +1,288 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<!--
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<view class="normal-login-container">
|
|
3
|
+
<view class="logo-content align-center flex justify-center">
|
|
4
|
+
<image class="image" :src="props.logo" mode="widthFix"></image>
|
|
5
|
+
</view>
|
|
6
|
+
<!-- 登录 -->
|
|
7
|
+
<view class="login-form-content">
|
|
8
|
+
<view class="form-top">
|
|
9
|
+
<view
|
|
10
|
+
class="top-col"
|
|
11
|
+
v-for="(item, i) in tabs"
|
|
12
|
+
:key="i"
|
|
13
|
+
@tap="currentTab = i"
|
|
14
|
+
>
|
|
15
|
+
<view class="form-top-title">
|
|
16
|
+
{{ item.name }}
|
|
17
|
+
</view>
|
|
18
|
+
<view
|
|
19
|
+
:class="i === currentTab ? 'line' : ''"
|
|
20
|
+
:style="'background:' + props.themeColor"
|
|
21
|
+
></view>
|
|
22
|
+
</view>
|
|
23
|
+
</view>
|
|
24
|
+
<TheUserLogin
|
|
25
|
+
v-if="'user' === indexCode(currentTab)"
|
|
26
|
+
ref="userLoginRef"
|
|
27
|
+
:themeColor="props.themeColor"
|
|
28
|
+
:prefix="props.prefix"
|
|
29
|
+
:isShowPwd="isShowPwd"
|
|
30
|
+
:userPlaceholder="userPlaceholder"
|
|
31
|
+
:pwdPlaceholder="pwdPlaceholder"
|
|
32
|
+
:customUserValidator="props.customUserValidator"
|
|
33
|
+
:customPwdValidator="props.customPwdValidator"
|
|
34
|
+
:userNumValidator="props.userNumValidator"
|
|
35
|
+
:pwdNumValidator="props.pwdNumValidator"
|
|
36
|
+
@handleCheckbox="handleCheckbox"
|
|
37
|
+
/>
|
|
38
|
+
<ThePhoneLogin
|
|
39
|
+
v-if="'phone' === indexCode(currentTab)"
|
|
40
|
+
ref="phoneLoginRef"
|
|
41
|
+
:themeColor="props.themeColor"
|
|
42
|
+
:customPhoneValidator="props.customPhoneValidator"
|
|
43
|
+
/>
|
|
44
|
+
<view class="action-btn">
|
|
45
|
+
<HyButton class="login-btn" :color="props.themeColor" @click="loginFn"
|
|
46
|
+
>登录
|
|
47
|
+
</HyButton>
|
|
48
|
+
</view>
|
|
49
|
+
<view class="footer">
|
|
50
|
+
<view
|
|
51
|
+
class="footer__tips"
|
|
52
|
+
v-for="(item, i) in menu"
|
|
53
|
+
:key="i"
|
|
54
|
+
@click="clickMenuFn(i)"
|
|
55
|
+
>{{ item }}</view
|
|
56
|
+
>
|
|
57
|
+
</view>
|
|
58
|
+
</view>
|
|
59
|
+
</view>
|
|
60
|
+
</template>
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
<script lang="ts" setup>
|
|
63
|
+
import { ref, computed, watch } from "vue";
|
|
64
|
+
import { storeToRefs } from "pinia";
|
|
65
|
+
import { encryptData } from "../../utils";
|
|
66
|
+
import { useUserInfo } from "../../store";
|
|
67
|
+
import defaultProps from "./props";
|
|
68
|
+
import type IProps from "./typing";
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
// 组件
|
|
71
|
+
import TheUserLogin from "./TheUserLogin.vue";
|
|
72
|
+
import ThePhoneLogin from "./ThePhoneLogin.vue";
|
|
73
|
+
import HyButton from "../hy-button/hy-button.vue";
|
|
73
74
|
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
const props = withDefaults(defineProps<IProps>(), defaultProps);
|
|
76
|
+
const emit = defineEmits(["login", "handleClickMenu"]);
|
|
76
77
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
78
|
+
const userInfoStore = useUserInfo();
|
|
79
|
+
const { userForm, rememberPsw } = storeToRefs(userInfoStore);
|
|
80
|
+
const indexCode = computed(() => {
|
|
81
|
+
return (temp: string | number) => {
|
|
82
|
+
switch (Number(props.loginType)) {
|
|
83
|
+
case 1:
|
|
84
|
+
return "user";
|
|
85
|
+
case 2:
|
|
86
|
+
return "phone";
|
|
87
|
+
default:
|
|
88
|
+
if (temp == 0) {
|
|
89
|
+
return "user";
|
|
90
|
+
} else {
|
|
91
|
+
return "phone";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
const selectModel = (temp: number) => {
|
|
97
|
+
return new Promise((resolve, reject) => {
|
|
98
|
+
switch (Number(props.loginType)) {
|
|
99
|
+
case 1:
|
|
100
|
+
resolve("user");
|
|
101
|
+
break;
|
|
102
|
+
case 2:
|
|
103
|
+
resolve("phone");
|
|
104
|
+
break;
|
|
105
|
+
default:
|
|
106
|
+
if (temp == 0) {
|
|
107
|
+
resolve("user");
|
|
108
|
+
} else {
|
|
109
|
+
resolve("phone");
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
const tabs = ref([
|
|
116
|
+
{
|
|
117
|
+
name: "账号登录",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "验证码登录",
|
|
121
|
+
},
|
|
122
|
+
]);
|
|
123
|
+
const currentTab = ref(0);
|
|
124
|
+
const userLoginRef = ref<InstanceType<typeof TheUserLogin>>();
|
|
125
|
+
const phoneLoginRef = ref<InstanceType<typeof ThePhoneLogin>>();
|
|
126
|
+
watch(
|
|
127
|
+
() => Number(props.loginType),
|
|
128
|
+
(newVal) => {
|
|
129
|
+
tabs.value = computed(() => {
|
|
130
|
+
switch (newVal) {
|
|
131
|
+
case 1:
|
|
132
|
+
return [{ name: "账号登录" }];
|
|
133
|
+
case 2:
|
|
134
|
+
return [{ name: "验证码登录" }];
|
|
135
|
+
default:
|
|
136
|
+
return [{ name: "账号登录" }, { name: "验证码登录" }];
|
|
137
|
+
}
|
|
138
|
+
}).value;
|
|
139
|
+
},
|
|
140
|
+
{ immediate: true, deep: true },
|
|
141
|
+
);
|
|
141
142
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<!--};-->
|
|
143
|
+
/**
|
|
144
|
+
* 登录用户名
|
|
145
|
+
* */
|
|
146
|
+
const loginFn = async () => {
|
|
147
|
+
const type = await selectModel(currentTab.value);
|
|
148
|
+
switch (type) {
|
|
149
|
+
case "user":
|
|
150
|
+
// let user = userForm.value.userName;
|
|
151
|
+
// let pwd = userForm.value.password;
|
|
152
|
+
await userLoginRef.value?.loginFn();
|
|
153
|
+
//缓存账号和密码
|
|
154
|
+
if (rememberPsw.value) {
|
|
155
|
+
uni.setStorageSync(
|
|
156
|
+
`${props.prefix}_account`,
|
|
157
|
+
encryptData({
|
|
158
|
+
rememberPsw: rememberPsw.value,
|
|
159
|
+
...userForm.value,
|
|
160
|
+
}),
|
|
161
|
+
);
|
|
162
|
+
} else {
|
|
163
|
+
// 如果没有选记住密码就移除之前保存的
|
|
164
|
+
uni.removeStorageSync(`${props.prefix}_account`);
|
|
165
|
+
uni.setStorageSync(
|
|
166
|
+
`${props.prefix}_account`,
|
|
167
|
+
encryptData({ rememberPsw: rememberPsw.value }),
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
emit("login", userForm.value);
|
|
171
|
+
break;
|
|
172
|
+
case "phone":
|
|
173
|
+
await phoneLoginRef.value?.loginFn();
|
|
174
|
+
break;
|
|
175
|
+
default:
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
<!--</script>-->
|
|
180
|
+
/**
|
|
181
|
+
* 点击下面小菜单
|
|
182
|
+
* */
|
|
183
|
+
const clickMenuFn = (index: number) => {
|
|
184
|
+
emit("handleClickMenu", index);
|
|
185
|
+
};
|
|
187
186
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
<!-- /* #ifndef APP-PLUS-NVUE */-->
|
|
194
|
-
<!-- box-sizing: border-box;-->
|
|
195
|
-
<!-- /* #endif */-->
|
|
196
|
-
<!-- display: flex;-->
|
|
197
|
-
<!-- justify-content: center;-->
|
|
198
|
-
<!-- flex-direction: column;-->
|
|
199
|
-
<!-- //align-items: center;-->
|
|
187
|
+
/**
|
|
188
|
+
* @description 记住密码
|
|
189
|
+
* */
|
|
190
|
+
const handleCheckbox = () => {};
|
|
191
|
+
</script>
|
|
200
192
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
<!-- height: auto;-->
|
|
214
|
-
<!-- }-->
|
|
215
|
-
<!-- /* #endif */-->
|
|
216
|
-
<!-- }-->
|
|
193
|
+
<style lang="scss" scoped>
|
|
194
|
+
.normal-login-container {
|
|
195
|
+
width: 100%;
|
|
196
|
+
height: 100vh;
|
|
197
|
+
padding: 0 60rpx;
|
|
198
|
+
/* #ifndef APP-PLUS-NVUE */
|
|
199
|
+
box-sizing: border-box;
|
|
200
|
+
/* #endif */
|
|
201
|
+
display: flex;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
flex-direction: column;
|
|
204
|
+
//align-items: center;
|
|
217
205
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
206
|
+
/*logo图片展示*/
|
|
207
|
+
.logo-content {
|
|
208
|
+
width: 300rpx;
|
|
209
|
+
display: flex;
|
|
210
|
+
justify-content: center;
|
|
211
|
+
align-items: center;
|
|
212
|
+
/* #ifndef APP-PLUS-NVUE */
|
|
213
|
+
margin: 0 auto 100rpx;
|
|
214
|
+
box-sizing: border-box;
|
|
215
|
+
height: auto;
|
|
216
|
+
.image {
|
|
217
|
+
width: 100%;
|
|
218
|
+
height: auto;
|
|
219
|
+
}
|
|
220
|
+
/* #endif */
|
|
221
|
+
}
|
|
225
222
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
223
|
+
/*登录模块*/
|
|
224
|
+
.login-form-content {
|
|
225
|
+
//text-align: center;
|
|
226
|
+
box-shadow: 0px 5px 4px 0px rgba(200, 200, 200, 0.5);
|
|
227
|
+
border-radius: 10px;
|
|
228
|
+
background: #ffffff;
|
|
229
|
+
padding: 28rpx 50rpx 50rpx;
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
<!-- align-items: center;-->
|
|
231
|
+
.form-top {
|
|
232
|
+
display: flex;
|
|
233
|
+
justify-content: space-around;
|
|
234
|
+
margin-bottom: 40rpx;
|
|
236
235
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
.top-col {
|
|
237
|
+
display: flex;
|
|
238
|
+
flex-direction: column;
|
|
239
|
+
justify-content: center;
|
|
240
|
+
align-items: center;
|
|
240
241
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
<!-- margin-top: 6rpx;-->
|
|
245
|
-
<!-- }-->
|
|
246
|
-
<!-- }-->
|
|
247
|
-
<!-- }-->
|
|
242
|
+
.form-top-title {
|
|
243
|
+
font-size: 28rpx;
|
|
244
|
+
}
|
|
248
245
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
246
|
+
.line {
|
|
247
|
+
width: 90rpx;
|
|
248
|
+
height: 4rpx;
|
|
249
|
+
margin-top: 6rpx;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
256
253
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
.mui-input-row {
|
|
255
|
+
display: flex;
|
|
256
|
+
/* #ifndef APP-PLUS-NVUE */
|
|
257
|
+
justify-self: start;
|
|
258
|
+
/* #endif */
|
|
259
|
+
margin-top: 27rpx;
|
|
260
|
+
}
|
|
260
261
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
<!-- /* #ifndef APP-PLUS-NVUE */-->
|
|
265
|
-
<!-- margin: auto 20%;-->
|
|
266
|
-
<!-- /* #endif */-->
|
|
262
|
+
.action-btn {
|
|
263
|
+
margin-top: 30rpx;
|
|
264
|
+
}
|
|
267
265
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
<!-- }-->
|
|
275
|
-
<!-- }-->
|
|
266
|
+
.footer {
|
|
267
|
+
display: flex;
|
|
268
|
+
justify-content: space-around;
|
|
269
|
+
/* #ifndef APP-PLUS-NVUE */
|
|
270
|
+
margin: auto 20%;
|
|
271
|
+
/* #endif */
|
|
276
272
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
273
|
+
&__tips {
|
|
274
|
+
font-size: 12px;
|
|
275
|
+
margin-top: 27rpx;
|
|
276
|
+
text-align: center;
|
|
277
|
+
color: grey;
|
|
278
|
+
text-decoration: underline;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
284
281
|
|
|
285
|
-
|
|
282
|
+
.xieyi {
|
|
283
|
+
color: #333;
|
|
284
|
+
margin-top: 40rpx;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
</style>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
v-if="showConfirmButton && showCancelButton"
|
|
71
71
|
></view>
|
|
72
72
|
<view
|
|
73
|
-
class="hy-modal__button-group__wrapper
|
|
73
|
+
class="hy-modal__button-group__wrapper hy-modal__button-group__wrapper--confirm"
|
|
74
74
|
:hover-stay-time="150"
|
|
75
75
|
hover-class="hy-modal__button-group__wrapper--hover"
|
|
76
76
|
:class="[
|
|
@@ -81,14 +81,10 @@
|
|
|
81
81
|
v-if="showConfirmButton"
|
|
82
82
|
@tap="confirmHandler"
|
|
83
83
|
>
|
|
84
|
-
<
|
|
85
|
-
v-if="loading"
|
|
86
|
-
:name="IconConfig.LOADING"
|
|
87
|
-
:isRotate="loading"
|
|
88
|
-
></HyIcon>
|
|
84
|
+
<HyLoading v-if="loading"></HyLoading>
|
|
89
85
|
<text
|
|
90
86
|
v-else
|
|
91
|
-
class="hy-modal__button-group__wrapper__text"
|
|
87
|
+
class="hy-modal__button-group__wrapper__text hy-modal__button-group__wrapper--confirm-text"
|
|
92
88
|
:style="{
|
|
93
89
|
color: confirmColor,
|
|
94
90
|
}"
|
|
@@ -101,6 +97,17 @@
|
|
|
101
97
|
</HyPopup>
|
|
102
98
|
</template>
|
|
103
99
|
|
|
100
|
+
<script lang="ts">
|
|
101
|
+
export default {
|
|
102
|
+
name: "hy-modal",
|
|
103
|
+
options: {
|
|
104
|
+
addGlobalClass: true,
|
|
105
|
+
virtualHost: true,
|
|
106
|
+
styleIsolation: "shared",
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
</script>
|
|
110
|
+
|
|
104
111
|
<script setup lang="ts">
|
|
105
112
|
import { ref, toRefs, watch } from "vue";
|
|
106
113
|
import defaultProps from "./props";
|
|
@@ -111,6 +118,7 @@ import { IconConfig } from "../../config";
|
|
|
111
118
|
// 组件
|
|
112
119
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
113
120
|
import HyPopup from "../hy-popup/hy-popup.vue";
|
|
121
|
+
import HyLoading from "../hy-loading/hy-loading.vue";
|
|
114
122
|
|
|
115
123
|
const props = withDefaults(defineProps<IProps>(), defaultProps);
|
|
116
124
|
const { show, asyncClose, closeOnClickOverlay } = toRefs(props);
|