Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
4a43f4dd
Commit
4a43f4dd
authored
May 13, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
1fedd3bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
apps/home/Tpl/default/UserShow/index_w3g.html
+22
-17
No files found.
apps/home/Tpl/default/UserShow/index_w3g.html
View file @
4a43f4dd
<include
file=
"__THEME__/public_header_w3g"
/>
<include
file=
"__THEME__/public_header_w3g"
/>
<!-- <link rel="stylesheet" href="__APP__/css/userShowIndex.css">
<!-- <link rel="stylesheet" href="__APP__/css/userShowIndex.css">
<style media="screen">
<style media="screen">
.bot_box #con_num, .bot_box img,.bot_box div{
.bot_box #con_num, .bot_box img,.bot_box div{
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
</style> -->
</style> -->
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.van-cell__title
{
.van-cell__title
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -25,23 +24,20 @@
...
@@ -25,23 +24,20 @@
.van-cell
::after
{
.van-cell
::after
{
right
:
1rem
;
right
:
1rem
;
}
}
</style>
</style>
<div
id=
"app"
>
<div
id=
"app"
>
<div
class=
"layout_v"
>
<div
class=
"layout_v"
>
<van-cell
title=
"头像"
is-link
>
<van-cell
title=
"头像"
is-link
>
<slot>
<slot>
<van-uploader
<van-uploader
result-type=
"file"
:after-read=
"onRead"
>
result-type=
"file"
:after-read=
"onRead"
>
<van-image
@
error=
"onError"
height=
"44"
width=
"44"
fit=
"cover"
round
:src=
"currentAvatar"
/>
<van-image
@
error=
"onError"
height=
"44"
width=
"44"
fit=
"cover"
round
:src=
"currentAvatar"
/>
</van-uploader>
</van-uploader>
</slot>
</slot>
</van-cell>
</van-cell>
<van-cell
@
click=
"onNickName"
title=
"昵称"
is-link
:value=
"currentNickName"
></van-cell>
<van-cell
@
click=
"onNickName"
title=
"昵称"
is-link
:value=
"currentNickName"
></van-cell>
<van-cell
@
click=
"onGender"
title=
"性别"
is-link
:value=
"currentGender"
></van-cell>
<van-cell
@
click=
"onGender"
title=
"性别"
is-link
:value=
"currentGender"
></van-cell>
<van-cell
@
click=
"onAddress"
title=
"收货信息"
is-link
></van-cell>
<van-cell
@
click=
"onAddress"
title=
"收货信息"
is-link
></van-cell>
<div
@
click=
"onConfirm"
class=
"confirm_button"
style=
"margin-top: 7.125rem;"
>
<div
@
click=
"onConfirm"
class=
"confirm_button"
style=
"margin-top: 7.125rem;"
>
<span>
确认修改
</span>
<span>
确认修改
</span>
</div>
</div>
...
@@ -216,7 +212,7 @@
...
@@ -216,7 +212,7 @@
ui
.
error
(
'昵称仅支持中英文、数字、下划线'
)
ui
.
error
(
'昵称仅支持中英文、数字、下划线'
)
return
return
}
}
$
.
post
(
U
(
'home/User/saveUser'
),
{},
function
(
data
)
{
$
.
post
(
U
(
'home/User/saveUser'
),
{},
function
(
data
)
{
if
(
data
.
status
)
{
if
(
data
.
status
)
{
ui
.
success
(
'基本信息更改成功'
);
ui
.
success
(
'基本信息更改成功'
);
setTimeout
(
'window.location.reload();'
,
2000
);
setTimeout
(
'window.location.reload();'
,
2000
);
...
@@ -226,13 +222,22 @@
...
@@ -226,13 +222,22 @@
},
'json'
);
},
'json'
);
},
},
onRead
:
function
(
r
)
{
onRead
:
function
(
r
)
{
if
(
"undefined"
!=
typeof
(
core
.
uploadFile
))
{
let
formData
=
new
FormData
()
core
.
uploadFile
.
filehash
=
new
Array
();
formData
.
append
(
'file'
,
f
.
file
)
}
let
url
=
U
(
'widget/Upload/save'
)
+
'&attach_type=avatar&upload_type=image&thumb=1&width=44&height=44&cut=false'
core
.
plugInit
(
'uploadFile'
,
{},
function
(
data
)
{
$
.
ajax
({
let
picurl
=
data
.
save_path
+
data
.
save_name
;
url
:
url
,
type
:
"post"
,
data
:
formData
,
contentType
:
false
,
processData
:
false
,
success
:
function
(
data
)
{
console
.
log
(
data
)
console
.
log
(
data
)
},
'image'
);
},
error
:
function
(
data
)
{
console
.
log
(
data
)
}
})
},
},
onNickName
:
function
()
{
onNickName
:
function
()
{
...
@@ -250,4 +255,4 @@
...
@@ -250,4 +255,4 @@
})
})
</script>
</script>
<include
file=
"__THEME__/public_footer_w3g"
/>
<include
file=
"__THEME__/public_footer_w3g"
/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment