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
b59d653a
authored
Dec 06, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
b7d274b5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
166 additions
and
67 deletions
mTest/Graphics.html
mTest/index.html
mTest/lib/default.js
mTest/lib/login.js
mTest/pageImages.html
mTest/pageVideo.html
mTest/revise.html
mTest/room/liveRoom.html
mTest/userRoom.html
mTest/video.html
mTest/videoPage.html
mTest/Graphics.html
View file @
b59d653a
...
...
@@ -183,7 +183,7 @@ $(function(){
topicId
:
sessionStorage
.
topicId
},
success
:
function
(
data
){
// //console.log('查看帖文详情',data)
// //
//
console.log('查看帖文详情',data)
var
html
=
[];
var
list
=
data
.
topic
;
var
details
=
JSON
.
parse
(
list
.
content
)
...
...
@@ -271,7 +271,7 @@ $(function(){
size
:
20
},
success
:
function
(
data
){
// console.log('查看贴文评论',data)
//
//
console.log('查看贴文评论',data)
if
(
data
.
commentResult
.
length
==
0
){
var
html
=
'
<
p
class
=
"grap-msg-top"
>
評論
(
0
)
<
/p><div class="grap-bottom-box">暫無評論</
div
>
'
$(".grap-msg-box").html(html);
...
...
@@ -315,7 +315,7 @@ $(function(){
size
:
20
},
success
:
function
(
data
){
// //console.log('更多贴文评论',data)
// //
//
console.log('更多贴文评论',data)
var
html
=
[];
for
(
var
i
=
0
;
i
<
20
;
i
++
){
if
(
e
==
1
&&
i
<
2
)
continue
...
...
@@ -357,7 +357,7 @@ $(function(){
tag
:
sessionStorage
.
tag
,
},
success
:
function
(
data
){
// //console.log('獲取貼文列表',data)
// //
//
console.log('獲取貼文列表',data)
var
html
=
[];
var
moreNum
=
0
for
(
var
i
=
0
;
i
<
6
;
i
++
){
...
...
@@ -404,7 +404,7 @@ $(function(){
tag:tagNum,
},
success:function(data){
// //console.log('
獲取貼文列表'
,
data
)
// //
//
console.log('
獲取貼文列表'
,
data
)
for
(
var
i
=
0
;
i
<
data
.
dataList
.
length
;
i
++
){
if
(
data
.
dataList
[
i
]
==
undefined
)
continue
if
(
pageNum
==
1
&&
i
<
3
)
continue
;
...
...
mTest/index.html
View file @
b59d653a
...
...
@@ -392,7 +392,7 @@
</div>
<div
class=
"right-nav-content"
>
<div
class=
"right-list-box right-login-box"
>
登入/註冊
</div>
<div
class=
"right-list-box"
>
儲值
</div>
<div
class=
"right-list-box
right-list-box-reg
"
>
儲值
</div>
</div>
<!-- <div class="right-list-bottom1">刷新</div> -->
</div>
...
...
@@ -427,10 +427,12 @@ $(function(){
}
})
}
//ios首次登陆
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
sessionStorage
.
oneLogin
==
1
){
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
if
(
sessionStorage
.
type
==
"pwa"
)
return
;
sessionStorage
.
oneLogin
=
0
layer
.
open
({
type
:
1
,
...
...
@@ -446,6 +448,16 @@ $(function(){
})
}
}
//ios中PWA隱藏約會
if
(
sessionStorage
.
type
==
"pwa"
){
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
$
(
".bottom-nav >div"
).
eq
(
2
).
hide
()
$
(
".bottom-nav >div"
).
css
(
"width"
,
"33.3%"
)
$
(
".bottom-nav p"
).
css
(
"width"
,
"3.33rem"
)
}
}
//用户是否登录
if
(
localStorage
.
uid
!==
undefined
&&
localStorage
.
uid
!=
"undefined"
){
userInfo
()
...
...
@@ -486,7 +498,6 @@ $(function(){
$
(
".bottom-nav-img4"
).
removeClass
(
"bottom-nav-img4-click"
)
$
(
".bottom-nav-img1"
).
addClass
(
"bottom-nav-img1-click"
)
$
(
".top-box"
).
show
()
})
$
(
".bottom-nav-img2"
).
on
(
"click"
,
function
(){
if
(
localStorage
.
uid
==
undefined
){
...
...
@@ -636,6 +647,19 @@ $(function(){
searchGoVideo
(
$
(
".box4 .search-input"
).
val
(),
99
)
}
})
$
(
".right-list-box-reg"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
$
.
ajax
({
url
:
$ip
+
'activeLog/webActive'
,
data
:{
activeType
:
4
,
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
){
window
.
location
.
href
=
"https://www.footseen.com/footseen/phonepay/applepay.html?lang=2&gofrom=web&cidStr=ftsH5"
}
})
})
$
(
".search-back"
).
on
(
"click"
,
function
(){
likeList
()
$
(
".box1"
).
hide
()
...
...
@@ -663,7 +687,7 @@ $(function(){
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
){
console
.
log
(
'獲取用戶基本信息'
,
data
)
//
console.log('獲取用戶基本信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
window
.
localStorage
.
removeItem
(
"uid"
)
...
...
@@ -693,7 +717,17 @@ $(function(){
return
;
})
$
(
".right-list-box-reg"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
window
.
location
.
href
=
"https://www.footseen.com/footseen/phonepay/applepay.html?lang=2&gofrom=web&cidStr=ftsH5&uid="
+
localStorage
.
uid
+
""
$
.
ajax
({
url
:
$ip
+
'activeLog/webActive'
,
data
:{
activeType
:
4
,
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
){
window
.
location
.
href
=
"https://www.footseen.com/footseen/phonepay/applepay.html?lang=2&gofrom=web&cidStr=ftsH5&uid="
+
localStorage
.
uid
+
""
}
})
})
$
(
".right-list-box-face"
).
unbind
(
"click"
).
on
(
"click"
,
function
(){
$
(
"body"
).
css
(
"background"
,
"rgb(217, 217, 217)"
)
...
...
@@ -727,7 +761,7 @@ $(function(){
token
:
localStorage
.
token
},
success
:
function
(
data
){
console
.
log
(
'用户资料卡'
,
data
)
//
console.log('用户资料卡',data)
$
(
".zone-top-like-box div"
).
eq
(
0
).
text
(
data
.
zoneData
.
myfollow
)
$
(
".zone-top-fans-box div"
).
eq
(
0
).
text
(
data
.
zoneData
.
followme
)
if
(
data
.
zoneInfo
.
sex
==-
1
)
var
sexyIcon
=
''
...
...
@@ -770,7 +804,7 @@ $(function(){
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
console
.
log
(
'直播列表'
,
data
)
//
console.log('直播列表',data)
if
(
data
.
code
==-
5008
){
setTimeout
(
function
()
{
liveList
(
1
)
...
...
@@ -812,7 +846,7 @@ $(function(){
token:localStorage.token
},
success:function(data){
console.log('
搜索用户'
,
data
)
//
console.log('
搜索用户'
,
data
)
var
html
=
[];
if
(
data
.
code
==-
504
){
noUser
=
true
;
...
...
@@ -875,7 +909,7 @@ $(function(){
pageID: localStorage.canvasCode,
},
success:function(data){
//console.log('
關注
',data)
//
//
console.log('
關注
',data)
if(data.code==1){
_self.unbind("click")
_self.addClass("search-like-box-yes")
...
...
@@ -904,7 +938,7 @@ $(function(){
sort:-1,
},
success:function(data){
console.log('
搜索視頻'
,
data
)
//
console.log('
搜索視頻'
,
data
)
var
html
=
[];
var
videoNum
=
0
for
(
var
i
=
0
;
i
<
pageNum
;
i
++
){
...
...
@@ -965,7 +999,7 @@ $(function(){
pageID:localStorage.canvasCode
},
success:function(data){
console.log('
相册列表'
,
data
)
//
console.log('
相册列表'
,
data
)
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
dataList
.
length
;
i
++
){
if
(
data
.
dataList
[
i
].
type
==
3
){
...
...
@@ -1042,7 +1076,7 @@ $(function(){
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
console
.
log
(
'拉取關注列表'
,
data
)
//
console.log('拉取關注列表',data)
var
html
=
[];
liveNum
=
0
for
(
var
i
=
0
;
i
<
data
.
rooms
.
length
;
i
++
){
...
...
@@ -1116,10 +1150,10 @@ $(function(){
}
// 上下
if
(
touchY
>
e
.
changedTouches
[
0
].
clientY
){
// console.log("向上")
//
//
console.log("向上")
touchY
=
e
.
changedTouches
[
0
].
clientY
}
else
if
(
touchY
<
e
.
changedTouches
[
0
].
clientY
){
// console.log("向下")
//
//
console.log("向下")
touchY
=
e
.
changedTouches
[
0
].
clientY
}
})
...
...
@@ -1129,7 +1163,7 @@ $(function(){
if
(
startX
>
e
.
changedTouches
[
0
].
clientX
){
//向左
// console.log(zwidth)
//
//
console.log(zwidth)
if
(
goDeg
>
150
&&
zwidth
>
3
){
$
(
".right-nav"
).
css
(
"right"
,
"0rem"
)
rightNavShow
=
true
;
...
...
mTest/lib/default.js
View file @
b59d653a
...
...
@@ -28,6 +28,9 @@ if(data.tag==undefined)data.tag=''
sessionStorage
.
tag
=
data
.
tag
sessionStorage
.
qd
=
data
.
qd
sessionStorage
.
type
=
data
.
type
;
if
(
sessionStorage
.
pmt
==
undefined
||
sessionStorage
.
pmt
==
"undefined"
){
sessionStorage
.
pmt
=
data
.
pmt
}
var
mySound
=
data
.
sound
;
if
(
data
.
back
!=
undefined
)
backGo
=
data
.
back
;
if
(
sessionStorage
.
open
==
undefined
)
sessionStorage
.
open
=
1
...
...
@@ -62,6 +65,7 @@ if(data.back!=undefined)backGo=data.back;
// localStorage.token = 'debug'
// // sessionStorage.roomId=210101
// }
//ajax设置默认参数
$
.
ajaxSetup
({
global
:
false
,
type
:
'get'
,
...
...
@@ -69,7 +73,9 @@ if(data.back!=undefined)backGo=data.back;
lang
:
2
,
os
:
'h5'
,
cid
:
'ftsH5'
,
webVersion
:
'1000'
webVersion
:
'1000'
,
uid
:
localStorage
.
uid
,
token
:
localStorage
.
token
,
},
dataType
:
"JSON"
})
...
...
@@ -91,17 +97,66 @@ if(data.back!=undefined)backGo=data.back;
}
})
}
//ajax设置默认参数
$
.
ajaxSetup
({
global
:
false
,
type
:
'get'
,
data
:
{
uid
:
localStorage
.
uid
,
token
:
localStorage
.
token
,
},
dataType
:
"JSON"
})
//統計訪問人數
stat
()
webActive
()
function
stat
(){
if
(
sessionStorage
.
stat
==
1
)
return
;
if
(
localStorage
.
canvasCode
==
"oneEnter"
||
localStorage
.
canvasCode
==
undefined
)
return
if
(
localStorage
.
token
!==
undefined
){
$
.
ajax
({
url
:
$ip
+
'stat/log'
,
data
:{
resolution
:
screen
.
width
+
'*'
+
screen
.
height
,
pageID
:
localStorage
.
canvasCode
,
uid
:
localStorage
.
uid
},
success
:
function
(
data
){
// console.log('上報',data)
sessionStorage
.
stat
=
1
}
})
return
;
}
$
.
ajax
({
url
:
$ip
+
'stat/log'
,
data
:{
resolution
:
screen
.
width
+
'*'
+
screen
.
height
,
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
// console.log('上報',data)
sessionStorage
.
stat
=
1
}
})
}
function
webActive
(){
if
(
sessionStorage
.
stat2
==
1
)
return
;
if
(
localStorage
.
canvasCode
==
"oneEnter"
||
localStorage
.
canvasCode
==
undefined
)
return
;
$
.
ajax
({
url
:
$ip
+
'activeLog/webActive'
,
data
:{
activeType
:
0
,
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
){
sessionStorage
.
stat2
=
1
}
})
if
(
localStorage
.
uid
==
undefined
||
localStorage
.
uid
==
'undefined'
)
return
;
$
.
ajax
({
url
:
$ip
+
'activeLog/webActive'
,
data
:{
activeType
:
7
,
pageID
:
localStorage
.
canvasCode
,
uid
:
localStorage
.
uid
},
success
:
function
(
data
){
sessionStorage
.
stat2
=
1
}
})
}
//点击刷新
$
(
".ref"
).
on
(
"click"
,
function
()
{
sessionStorage
.
jump
=
undefined
;
...
...
mTest/lib/login.js
View file @
b59d653a
...
...
@@ -502,6 +502,16 @@ function googleLogin(){
// google.accounts.id.prompt(); // also display the One Tap dialog
}
function
loginPage
(){
$
.
ajax
({
url
:
$ip
+
'activeLog/webActive'
,
data
:{
activeType
:
6
,
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
){
}
})
$
(
".right-nav"
).
css
(
"right"
,
"-8rem"
)
$
(
".login-box"
).
css
(
"bottom"
,
"0rem"
)
$
(
".login1,.login2,.register,.reset"
).
hide
()
...
...
mTest/pageImages.html
View file @
b59d653a
...
...
@@ -187,7 +187,7 @@ $(function(){
topicId
:
sessionStorage
.
topicId
},
success
:
function
(
data
){
// //console.log('查看帖文详情',data)
// //
//
console.log('查看帖文详情',data)
var
html
=
[];
var
list
=
data
.
topic
;
var
details
=
JSON
.
parse
(
list
.
content
)
...
...
@@ -275,7 +275,7 @@ $(function(){
size
:
20
},
success
:
function
(
data
){
// console.log('查看贴文评论',data)
//
//
console.log('查看贴文评论',data)
if
(
data
.
commentResult
.
length
==
0
){
var
html
=
'
<
p
class
=
"grap-msg-top"
>
評論
(
0
)
<
/p><div class="grap-bottom-box">暫無評論</
div
>
'
$(".grap-msg-box").html(html);
...
...
@@ -319,7 +319,7 @@ $(function(){
size
:
20
},
success
:
function
(
data
){
// //console.log('更多贴文评论',data)
// //
//
console.log('更多贴文评论',data)
var
html
=
[];
for
(
var
i
=
0
;
i
<
20
;
i
++
){
if
(
e
==
1
&&
i
<
2
)
continue
...
...
@@ -361,7 +361,7 @@ $(function(){
tag
:
sessionStorage
.
tag
,
},
success
:
function
(
data
){
// //console.log('獲取貼文列表',data)
// //
//
console.log('獲取貼文列表',data)
var
html
=
[];
var
moreNum
=
0
for
(
var
i
=
0
;
i
<
6
;
i
++
){
...
...
@@ -408,7 +408,7 @@ $(function(){
tag:tagNum,
},
success:function(data){
// //console.log('
獲取貼文列表'
,
data
)
// //
//
console.log('
獲取貼文列表'
,
data
)
for
(
var
i
=
0
;
i
<
data
.
dataList
.
length
;
i
++
){
if
(
data
.
dataList
[
i
]
==
undefined
)
continue
if
(
pageNum
==
1
&&
i
<
3
)
continue
;
...
...
mTest/pageVideo.html
View file @
b59d653a
...
...
@@ -181,7 +181,7 @@ $(function(){
topicId
:
sessionStorage
.
topicId
},
success
:
function
(
data
){
// //console.log('查看帖文详情',data)
// //
//
console.log('查看帖文详情',data)
var
html
=
[];
var
list
=
data
.
topic
;
var
details
=
JSON
.
parse
(
list
.
content
)
...
...
@@ -195,7 +195,7 @@ $(function(){
$
(
".recommend-swiper"
).
html
(
'
<
video
poster
=
"https://zhibocdn.yabolive.net/comm'+details.videos[0].cover+'"
autoplay
class
=
"video"
src
=
""
id
=
"videoElement"
controls
loop
><
/video>'
)
flvPlay
(
'https://zhibocdn.yabolive.net/comm'
+
details
.
videos
[
0
].
url
+
''
)
}
// //console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
// //
//
console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
var
html
=
[];
var
tagsArr
=
[]
html
+=
'
<
img
class
=
"grap-user-face"
src
=
"https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80"
alt
=
""
>
';
...
...
@@ -230,7 +230,7 @@ $(function(){
size
:
50
},
success
:
function
(
data
){
// console.log('查看贴文评论',data)
//
//
console.log('查看贴文评论',data)
if
(
data
.
commentResult
.
length
==
0
){
var
html
=
'
<
p
class
=
"grap-msg-top"
>
評論
(
0
)
<
/p><div class="grap-bottom-box">暫無評論</
div
>
'
$(".grap-msg-box").html(html);
...
...
@@ -277,7 +277,7 @@ $(function(){
size
:
20
},
success
:
function
(
data
){
// //console.log('更多贴文评论',data)
// //
//
console.log('更多贴文评论',data)
var
html
=
[];
for
(
var
i
=
0
;
i
<
20
;
i
++
){
if
(
e
==
1
&&
i
<
2
)
continue
...
...
@@ -319,7 +319,7 @@ $(function(){
tag
:
sessionStorage
.
tag
,
},
success
:
function
(
data
){
console
.
log
(
'獲取貼文列表'
,
data
)
//
console.log('獲取貼文列表',data)
var
html
=
[];
var
moreNum
=
0
for
(
var
i
=
0
;
i
<
10
;
i
++
){
...
...
@@ -370,7 +370,7 @@ $(function(){
tag:tagNum,
},
success:function(data){
// //console.log('
獲取貼文列表'
,
data
)
// //
//
console.log('
獲取貼文列表'
,
data
)
for
(
var
i
=
0
;
i
<
data
.
dataList
.
length
;
i
++
){
if
(
data
.
dataList
[
i
]
==
undefined
)
continue
if
(
pageNum
==
1
&&
i
<
3
)
continue
;
...
...
mTest/revise.html
View file @
b59d653a
...
...
@@ -203,7 +203,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
//console.log('修改頭像姓名',data)
//
//
console.log('修改頭像姓名',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
);
}
...
...
@@ -229,7 +229,7 @@ $(function(){
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
){
console
.
log
(
"用戶資料"
,
data
)
//
console.log("用戶資料",data)
$
(
".revise-face"
).
attr
(
"src"
,
"https://zhibocdn.yabolive.net/comm"
+
data
.
roomBaseInfo
.
face
+
"?x-oss-process=image/resize,w_120"
)
var
html
=
[]
html
+=
'
<
div
data
-
type
=
"1"
>
';
...
...
@@ -278,7 +278,7 @@ $(function(){
token
:
localStorage
.
token
,
},
success
:
function
(
data
){
console
.
log
(
'學歷列表接口'
,
data
)
//
console.log('學歷列表接口',data)
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
list
.
length
;
i
++
){
var
list
=
data
.
list
[
i
]
...
...
@@ -368,7 +368,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
console
.
log
(
'修改个人信息'
,
data
)
//
console.log('修改个人信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
...
...
@@ -390,7 +390,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
console
.
log
(
'修改个人信息'
,
data
)
//
console.log('修改个人信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
...
...
@@ -413,7 +413,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
console
.
log
(
'修改个人信息'
,
data
)
//
console.log('修改个人信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
...
...
@@ -434,7 +434,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
console
.
log
(
'修改个人信息'
,
data
)
//
console.log('修改个人信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
...
...
@@ -455,7 +455,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
console
.
log
(
'修改个人信息'
,
data
)
//
console.log('修改个人信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
...
...
@@ -476,7 +476,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
console
.
log
(
'修改个人信息'
,
data
)
//
console.log('修改个人信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
...
...
@@ -497,7 +497,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
console
.
log
(
'修改个人信息'
,
data
)
//
console.log('修改个人信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
...
...
@@ -518,7 +518,7 @@ $(function(){
},
type
:
'post'
,
success
:
function
(
data
){
console
.
log
(
'修改个人信息'
,
data
)
//
console.log('修改个人信息',data)
if
(
data
.
code
!=
1
){
layer
.
msg
(
data
.
msg
)
return
...
...
@@ -544,7 +544,7 @@ $(function(){
// },
// type:'post',
// success:function(data){
// console.log('修改个人信息',data)
//
//
console.log('修改个人信息',data)
// if(data.code!=1){
// layer.msg(data.msg)
// return
...
...
mTest/room/liveRoom.html
View file @
b59d653a
This diff is collapsed.
Click to expand it.
mTest/userRoom.html
View file @
b59d653a
...
...
@@ -159,7 +159,7 @@ $(function(){
token
:
localStorage
.
token
},
success
:
function
(
data
){
console
.
log
(
'用户资料卡'
,
data
)
//
console.log('用户资料卡',data)
$
(
".zone-like-btn"
).
attr
(
"data-type"
,
data
.
zoneInfo
.
uid
)
if
(
data
.
zoneData
.
isfollow
==
0
){
...
...
@@ -211,7 +211,7 @@ $(function(){
pageID
:
localStorage
.
canvasCode
,
},
success
:
function
(
data
){
// console.log('關注',data)
//
//
console.log('關注',data)
if
(
data
.
code
==
1
){
if
(
$
(
".zone-like-btn"
).
attr
(
"data-type2"
)
==
1
){
$
(
".zone-like-btn"
).
addClass
(
"like-end"
).
text
(
"關注中"
)
...
...
@@ -236,7 +236,7 @@ $(function(){
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
console
.
log
(
'相册列表'
,
data
)
//
console.log('相册列表',data)
var
html
=
[];
for
(
var
i
=
0
;
i
<
data
.
dataList
.
length
;
i
++
){
if
(
data
.
dataList
[
i
].
type
==
3
){
...
...
mTest/video.html
View file @
b59d653a
...
...
@@ -178,7 +178,7 @@ $(function(){
topicId
:
sessionStorage
.
topicId
},
success
:
function
(
data
){
// //console.log('查看帖文详情',data)
// //
//
console.log('查看帖文详情',data)
var
html
=
[];
var
list
=
data
.
topic
;
var
details
=
JSON
.
parse
(
list
.
content
)
...
...
@@ -192,7 +192,7 @@ $(function(){
$
(
".recommend-swiper"
).
html
(
'
<
video
poster
=
"https://zhibocdn.yabolive.net/comm'+details.videos[0].cover+'"
autoplay
class
=
"video"
src
=
""
id
=
"videoElement"
controls
loop
><
/video>'
)
flvPlay
(
'https://zhibocdn.yabolive.net/comm'
+
details
.
videos
[
0
].
url
+
''
)
}
// //console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
// //
//
console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
var
html
=
[];
var
tagsArr
=
[]
html
+=
'
<
img
class
=
"grap-user-face"
src
=
"https://zhibocdn.yabolive.net/comm'+list.face+'?x-oss-process=image/resize,w_80"
alt
=
""
>
';
...
...
@@ -227,7 +227,7 @@ $(function(){
size
:
50
},
success
:
function
(
data
){
// console.log('查看贴文评论',data)
//
//
console.log('查看贴文评论',data)
if
(
data
.
commentResult
.
length
==
0
){
var
html
=
'
<
p
class
=
"grap-msg-top"
>
評論
(
0
)
<
/p><div class="grap-bottom-box">暫無評論</
div
>
'
$(".grap-msg-box").html(html);
...
...
@@ -274,7 +274,7 @@ $(function(){
size
:
20
},
success
:
function
(
data
){
// //console.log('更多贴文评论',data)
// //
//
console.log('更多贴文评论',data)
var
html
=
[];
for
(
var
i
=
0
;
i
<
20
;
i
++
){
if
(
e
==
1
&&
i
<
2
)
continue
...
...
@@ -316,7 +316,7 @@ $(function(){
tag
:
sessionStorage
.
tag
,
},
success
:
function
(
data
){
console
.
log
(
'獲取貼文列表'
,
data
)
//
console.log('獲取貼文列表',data)
var
html
=
[];
var
moreNum
=
0
for
(
var
i
=
0
;
i
<
10
;
i
++
){
...
...
@@ -367,7 +367,7 @@ $(function(){
tag:tagNum,
},
success:function(data){
// //console.log('
獲取貼文列表'
,
data
)
// //
//
console.log('
獲取貼文列表'
,
data
)
for
(
var
i
=
0
;
i
<
data
.
dataList
.
length
;
i
++
){
if
(
data
.
dataList
[
i
]
==
undefined
)
continue
if
(
pageNum
==
1
&&
i
<
3
)
continue
;
...
...
mTest/videoPage.html
View file @
b59d653a
...
...
@@ -409,7 +409,7 @@ $(function(){
$
.
ajax
({
url
:
'https://cpapi.footseen.xyz/frontPage/queryLiveUsers?lang=2&os=pc_web&cid=ftsweb&webVersion=1000&pageNum=1&pageSize=100&pageID=c0bc8998f192ed39e98dc97a6170186e'
,
success
:
function
(
data
){
// console.log('直播列表',data)
//
//
console.log('直播列表',data)
if
(
data
.
roomList
.
length
==
0
){
$
(
".module-title"
).
hide
()
$
(
".more-live-box"
).
hide
()
...
...
@@ -443,10 +443,10 @@ $(function(){
tag:tagNum,
},
success:function(data){
// //console.log('
獲取貼文列表
',data)
// //
//
console.log('
獲取貼文列表
',data)
var html=[];
var topList=JSON.parse(data.dataList[0].content)
//console.log(topList)
//
//
console.log(topList)
// duration
html+='
<
a
href
=
"video.html?topicId='+data.dataList[0].topicId+'&tag='+tagNum+'"
><
div
style
=
"background: url(https://zhibocdn.yabolive.net/comm'+topList.videos[0].cover.split('?')[0]+'?x-oss-process=video/snapshot,t_90000,f_jpg,w_510,h_0,m_fast,f_jpg)no-repeat;background-size: cover;background-position-y: center;"
class
=
"swiper-img"
>
';
html+='
<
div
class
=
"top-img-shadow"
><
/div>'
;
...
...
@@ -525,7 +525,7 @@ $(function(){
tag:tagNum,
},
success:function(data){
// //console.log('
獲取貼文列表'
,
data
)
// //
//
console.log('
獲取貼文列表'
,
data
)
for
(
var
i
=
0
;
i
<
data
.
dataList
.
length
;
i
++
){
if
(
data
.
dataList
[
i
]
==
undefined
)
continue
var
list
=
data
.
dataList
[
i
]
...
...
@@ -571,7 +571,7 @@ $(function(){
$.ajax({
url:$ip2+'
/
footSeen
/
h5
/
queryTagList
',
success:function(data){
// //console.log('
获取标签列表
',data)
// //
//
console.log('
获取标签列表
',data)
var html=[];
html+='
<
li
data
-
type
=
""
class
=
"tag-click"
>
#全部
<
/li>
'
for
(
var
i
=
0
;
i
<
data
.
tagList
.
length
;
i
++
){
...
...
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