Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
vite-integral
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bde61c91
authored
Aug 12, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huy_v2.8.1' of
http://192.168.3.233:8090/h5/vite-integral
into huy_v2.8.1
2 parents
3f02c969
9675863d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
postcss.config.js
src/assets/images/avatar.png
src/views/home/index.vue
src/views/login/register.vue
postcss.config.js
View file @
bde61c9
...
@@ -8,7 +8,7 @@ module.exports = {
...
@@ -8,7 +8,7 @@ module.exports = {
replace
:
true
,
// 转换成 rem 以后,不保留原来的 px 单位属性
replace
:
true
,
// 转换成 rem 以后,不保留原来的 px 单位属性
mediaQuery
:
true
,
// 允许在媒体查询中转换 px
mediaQuery
:
true
,
// 允许在媒体查询中转换 px
minPixelValue
:
2
,
// 设置要替换的最小像素值
minPixelValue
:
2
,
// 设置要替换的最小像素值
exclude
:
/node_modules/i
// 排除 node_modules 文件(node_modules 内文件禁止转换)
//
exclude: /node_modules/i // 排除 node_modules 文件(node_modules 内文件禁止转换)
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
src/assets/images/avatar.png
View file @
bde61c9
5.04 KB
|
W:
|
H:
3.96 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/views/home/index.vue
View file @
bde61c9
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
/>
/>
</div>
</div>
<div>
<div>
<span
<span
class=
"user-mobile"
>
{{
data
.
userInfo
.
mobile
}}
丨
{{
data
.
userInfo
.
plateNo
}}
</span
>
{{
data
.
userInfo
.
mobile
}}
丨
{{
data
.
userInfo
.
plateNo
}}
</span
>
>
</div>
</div>
...
@@ -101,7 +101,7 @@ import { useRouter } from "vue-router";
...
@@ -101,7 +101,7 @@ import { useRouter } from "vue-router";
import
req
from
"../../utils/request"
;
import
req
from
"../../utils/request"
;
import
{
Toast
}
from
"vant"
;
import
{
Toast
}
from
"vant"
;
import
{
useUserStore
}
from
"../../store/user"
;
import
{
useUserStore
}
from
"../../store/user"
;
import
{
log
}
from
"console"
;
type
listStyle
=
{
type
listStyle
=
{
afterAmount
?:
number
;
afterAmount
?:
number
;
amount
?:
number
;
amount
?:
number
;
...
@@ -441,6 +441,9 @@ onBeforeMount(() => {
...
@@ -441,6 +441,9 @@ onBeforeMount(() => {
font-weight
:
500
;
font-weight
:
500
;
margin-right
:
4px
;
margin-right
:
4px
;
}
}
.user-mobile
{
font-size
:
14px
;
}
.auth
{
.auth
{
width
:
48px
;
width
:
48px
;
...
@@ -450,6 +453,7 @@ onBeforeMount(() => {
...
@@ -450,6 +453,7 @@ onBeforeMount(() => {
.user-btn
{
.user-btn
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
font-size
:
14px
;
&-content
{
&-content
{
width
:
50%
;
width
:
50%
;
...
...
src/views/login/register.vue
View file @
bde61c9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</div>
</div>
<div
class=
"form-item"
>
<div
class=
"form-item"
>
<van-field
:size=
"registerData.formSize"
v-model=
"registerData.register.mobile"
name=
"mobile"
type=
"number"
maxlength=
"11"
label=
"手机号"
placeholder=
"手机号"
clearable
@
focus=
"onFocus('mobile')"
@
blur=
"onBlur('mobile')"
:rules=
"[
{ required: true, message: '请输入您的手机号' }, { validator: isTel, message: '请输入正确的手机号' }]" />
<van-field
:size=
"registerData.formSize"
v-model=
"registerData.register.mobile"
name=
"mobile"
type=
"number"
maxlength=
"11"
label=
"手机号"
placeholder=
"手机号"
clearable
@
focus=
"onFocus('mobile')"
@
blur=
"onBlur('mobile')"
:rules=
"[
{ required: true, message: '请输入您的手机号' }, { validator: isTel, message: '请输入正确的手机号' }]" />
<van-field
:size=
"registerData.formSize"
style=
"padding-left: 136px;
"
v-model=
"registerData.register.captcha"
type=
"number"
name=
"captcha"
maxlength=
"4"
clearable
<van-field
:size=
"registerData.formSize"
label=
"
"
v-model=
"registerData.register.captcha"
type=
"number"
name=
"captcha"
maxlength=
"4"
clearable
placeholder=
"验证码"
:rules=
"[
{ required: true, message: '请输入您的验证码' }]">
<template
#
button
>
placeholder=
"验证码"
:rules=
"[
{ required: true, message: '请输入您的验证码' }]">
<template
#
button
>
<span
v-if=
"!time"
class=
"code"
@
click=
"getCode(registerData.register.mobile)"
>
获取验证码
</span>
<span
v-if=
"!time"
class=
"code"
@
click=
"getCode(registerData.register.mobile)"
>
获取验证码
</span>
<span
class=
"gray-code"
v-else
>
{{
time
}}
秒后重发
</span>
<span
class=
"gray-code"
v-else
>
{{
time
}}
秒后重发
</span>
...
@@ -159,6 +159,7 @@ const onBlur = (name: string) => {
...
@@ -159,6 +159,7 @@ const onBlur = (name: string) => {
.form-explain
{
.form-explain
{
color
:
#999
;
color
:
#999
;
padding
:
0
24px
;
padding
:
0
24px
;
font-size
:
12px
;
}
}
.form-submit
{
.form-submit
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment