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 8a841f4d
authored
Aug 08, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
044ed417
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
src/libs/vant.ts
src/utils/request.ts
src/views/home/index.vue
src/views/login/register.vue
src/libs/vant.ts
View file @
8a841f4
import
{
Button
,
Form
,
Field
,
CellGroup
,
List
Button
,
Form
,
Field
,
CellGroup
,
List
,
Cell
}
from
'vant'
export
const
components
=
[
Button
,
Form
,
Field
,
CellGroup
,
List
Button
,
Form
,
Field
,
CellGroup
,
List
,
Cell
]
\ No newline at end of file
src/utils/request.ts
View file @
8a841f4
import
axios
from
'./axios'
import
{
useUserStore
}
from
'../store/user'
const
PATH
=
'rop-scrm-renewal/router
/
'
const
PATH
=
'rop-scrm-renewal/router'
let
sessionId
=
useUserStore
().
sessionId
const
req
:
any
=
(
url
:
string
,
data
:
any
,
method
=
'POST'
,
)
=>
{
if
(
sessionId
)
data
.
sessionId
=
sessionId
data
.
method
=
url
return
axios
({
url
:
PATH
+
url
,
url
:
PATH
,
method
,
data
})
...
...
src/views/home/index.vue
View file @
8a841f4
...
...
@@ -43,7 +43,7 @@
</div>
</div>
</div>
<div
class=
"wrapper-history-list"
>
<div
class=
"wrapper-history-list"
:style=
"
{'height': innerHeight - (280 + 10 + 28) + 'px'}"
>
<div
class=
"history-list-top"
>
<img
class=
"top-img"
src=
"@/assets/images/list-info.png"
alt=
""
/>
</div>
...
...
@@ -77,6 +77,8 @@ const toLogin = () => {
const
logout
=
()
=>
{
isLogin
.
value
=
false
;
};
const
innerHeight
=
ref
(
window
.
innerHeight
)
console
.
log
(
innerHeight
)
// 跳到积分使用记录页面
const
toUseList
=
()
=>
{
router
.
push
(
"/uselist"
);
...
...
@@ -86,7 +88,6 @@ const list = reactive([]);
// const loading = ref<boolean>(true);
// const finished = ref<boolean>(false);
const
onload
=
():
void
=>
{
console
.
log
(
111
);
list
.
push
(
{
id
:
"01"
,
...
...
@@ -168,7 +169,7 @@ onMounted(() => {
border-radius
:
4px
;
margin
:
0
16px
28px
;
width
:
calc
(
100%
-
32px
);
height
:
300px
;
//
height
:
300px
;
.history-list-top
{
text-align
:
center
;
padding
:
16px
0
;
...
...
@@ -178,6 +179,7 @@ onMounted(() => {
}
}
.nodata
{
margin-top
:
40px
;
text-align
:
center
;
&-img
{
width
:
147px
;
...
...
src/views/login/register.vue
View file @
8a841f4
...
...
@@ -43,10 +43,10 @@ const formSize = ref('large')
const
register
=
reactive
({
name
:
'胡悦'
,
mobile
:
'18873336682'
,
captcha
:
'
123456
'
,
plateNo
:
'
34254324
'
,
captcha
:
'
8652
'
,
plateNo
:
'
粤B1V566
'
,
bankName
:
'阿斯顿发'
,
bankNo
:
'2
发送
'
,
bankNo
:
'2
342324325
'
,
cardName
:
''
})
let
timeout
:
number
|
undefined
=
undefined
...
...
@@ -72,11 +72,11 @@ const getCode = async() => {
const
res
=
await
req
(
'scrm.api.renewal.customer.captcha.get'
,
params
)
}
const
onRegister
=
(
values
:
object
)
=>
{
const
onRegister
=
async
(
values
:
object
)
=>
{
const
params
=
{...
register
}
params
.
cardName
=
params
.
name
console
.
log
(
params
)
// const res = await req('scrm.api.renewal.customer.resig
ter', params)
const
res
=
await
req
(
'scrm.api.renewal.customer.regis
ter'
,
params
)
Notify
({
type
:
'success'
,
message
:
'注册成功'
})
router
.
push
(
'/registerSuccess'
)
}
...
...
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