Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c1870544
authored
Jul 01, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
4fda91a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
space/myRoom.html
space/myRoom.html
View file @
c1870544
...
...
@@ -56,7 +56,7 @@
<div
class=
"myRoom-content"
>
<h2
class=
"myRoom-h2"
><div></div>
我的頭像
</h2>
<div
class=
"myRoom-face-box"
>
<img
class=
"myRoom-face"
src=
"https://
zhibocdn.yabolive.net/comm/user/boy.png?x-oss-process=image/resize,w_90
"
alt=
""
>
<img
class=
"myRoom-face"
src=
"https://
www.footseen.xyz/images/boy.png
"
alt=
""
>
<div
class=
"myRoom-face-exc"
>
編輯
</div>
<p
class=
"myRoom-tips-p"
>
檔案格式 : JPG,PNG(限制10MB以內)
</p>
...
...
@@ -151,7 +151,9 @@ $(function(){
},
success
:
function
(
data
){
console
.
log
(
"用戶資料卡"
,
data
);
$
(
".myRoom-face"
).
attr
(
"src"
,
"https://zhibocdn.yabolive.net/comm"
+
data
.
zoneInfo
.
face
+
"?x-oss-process=image/resize,w_90"
)
if
(
data
.
zoneInfo
.
face
==
'/user/boy.png'
)
var
faceImg
=
'https://www.footseen.xyz/images/boy.png'
;
else
var
faceImg
=
'https://zhibocdn.yabolive.net/comm'
+
data
.
zoneInfo
.
face
+
'?x-oss-process=image/resize,w_50'
;
$
(
".myRoom-face"
).
attr
(
"src"
,
faceImg
)
var
html
=
[];
html
+=
'
<
li
>
暱稱
:
<
span
>
'+data.zoneInfo.nickname+'
<
/span></
li
>
';
html+='
<
li
>
ID
:
<
span
>
'+data.zoneInfo.uid+'
<
/span></
li
>
';
...
...
@@ -166,7 +168,7 @@ $(function(){
else html+='
<
li
>
體重
:
<
span
>
'+data.zoneInfo.weight+'
kg
<
/span></
li
>
';
html+='
<
li
>
學歷
:
<
span
>
'+data.zoneInfo.culture+'
<
/span></
li
>
';
html+='
<
li
>
職業
:
<
span
>
'+data.zoneInfo.work+'
<
/span></
li
>
';
html+='
<
li
>
簽名
:
<
span
>
'+data.zoneInfo.sign+'
<
/span></
li
>
';
html+='
<
li
>
簽名
:
<
span
>
'+data.zoneInfo.sign
.replace("Firefly Live","Footseen")
+'
<
/span></
li
>
';
$(".myRoom-ul").html(html);
$(".myRoom-face-box").append('
<
a
href
=
"index.html?fid='+data.zoneInfo.uid+'"
><
span
class
=
"myRoom-go-space"
>
前往我的主頁
><
/span></
a
>
'
)
$
(
".myRoom-text-exc"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
...
...
@@ -221,7 +223,7 @@ $(function(){
if
(
data
.
infoChanged
.
changedSex
==
0
)
$
(
".sex-tips"
).
hide
()
else
$
(
".sex-select"
).
attr
(
"disabled"
,
"disabled"
)
$
(
".profession-input"
).
val
(
data
.
zoneInfo
.
work
)
$
(
".sign-input"
).
val
(
data
.
zoneInfo
.
sign
)
$
(
".sign-input"
).
val
(
data
.
zoneInfo
.
sign
.
replace
(
"Firefly Live"
,
"Footseen"
)
)
//console.log(data.zoneInfo.birth.split('-'))
$
(
"#date"
).
selectDate
()
...
...
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