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
da287c82
Commit
da287c82
authored
May 21, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
ffc12930
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
177 deletions
+34
-177
addons/theme/stv1/_static_w3g/css/common.css
+11
-0
apps/home/Tpl/default/Home/share_w3g.html
+22
-175
apps/home/Tpl/default/User/index_w3g.html
+1
-2
No files found.
addons/theme/stv1/_static_w3g/css/common.css
View file @
da287c82
...
@@ -953,3 +953,13 @@ div::-webkit-scrollbar {
...
@@ -953,3 +953,13 @@ div::-webkit-scrollbar {
background
:
rgba
(
163
,
228
,
96
,
1
);
background
:
rgba
(
163
,
228
,
96
,
1
);
border-radius
:
0.75rem
;
border-radius
:
0.75rem
;
}
}
/* Promotion */
.promotion_top_hint
{
height
:
28px
;
background
:
rgba
(
251
,
255
,
247
,
1
);
}
.promotion_input_container
{
padding
:
0.75rem
;
}
\ No newline at end of file
apps/home/Tpl/default/Home/share_w3g.html
View file @
da287c82
<include
file=
"__THEME__/public_header_w3g"
/>
<include
file=
"__THEME__/public_header_w3g"
/>
<style
media=
"screen"
>
.comment_list
.li
.list
a
{
display
:
inline-block
;}
.comment_list
.li
.fxp
{
float
:
left
;}
.comment_list
.li
.fxp
img
{
width
:
80px
;
height
:
80px
;}
.comment_list
.li
.mynote
{
overflow
:
hidden
;
padding-left
:
10px
;
;
}
.comment_list
.li
.fbtime
span
:first-child
{
float
:
left
;}
.comment_list
.li
.fbtime
span
:last-child
{
color
:
#00BED4
;
width
:
100%
;
float
:
left
;}
.comment_list
.li
.fbtime
.time
{
color
:
#888
;
font-size
:
12px
;}
.comment_list
.li
.fbtime
{
overflow
:
hidden
;}
.comment_list
.li
.fbtime
.Operation-wd
{
display
:
none
;
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
0.1
);
left
:
0px
;
top
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
10
;}
.comment_list
.li
.fbtime
.Operation-wd
a
{
position
:
absolute
;
left
:
0
;
bottom
:
50px
;
width
:
100%
;
background
:
#fff
;
display
:
block
;}
.comment_list
.li
.fbtime
.icon-gengduo
{
float
:
right
;
font-size
:
18px
;
color
:
#333
;
margin-right
:
20px
;}
.comment_list
.li
.fbtime
.Operation-wd
a
span
{
width
:
100%
;
border-bottom
:
1px
solid
#dcdcdc
;
height
:
40px
;
line-height
:
40px
;
text-align
:
center
;
display
:
block
;
color
:
#333
;}
</style>
<div
class=
"body"
>
<style
type=
"text/css"
>
<div
class=
"header2"
>
<a
href=
"{:U('home/User/index')}"
class=
"icon-back"
></a>
<div>
我的分享
</div>
</div>
<div
class=
"body"
>
</style>
<ul
class=
"classlistnav"
>
<!-- <li class = "on"> <a href="javascript:;" type="getWenda" onclick=" navClick(this,'share')" >我的分享</a></li> -->
<!--<li> <a href="javascript:;" type="getAnswer" onclick=" navClick(this,'income')">我的分享收入余额</a></li>-->
</ul>
</div>
<div
class=
"centerbox"
>
<div
id=
"app"
>
<ul
class=
"comment_list"
style=
"padding-top:20px;"
>
</ul>
<div
class=
"layout_v"
>
<div
class=
"promotion_top_hint text_12_400 color_999999"
>
当前身份:普通推广员
</div>
<div
class=
"promotion_input_container layout_h_v_c"
>
<div
class=
"layout_v_b"
>
<span
class=
"text_14_400 color_333333"
>
收益金额
</span>
<div
class=
"layout_h"
>
<span
class=
"text_26_600 color_333333"
>
¥
</span>
<span
class=
"text_26_600 color_333333"
style=
"margin-left: 0.5rem;"
>
{{money}}
</span>
</div>
</div>
</div>
</div>
</div>
<if
condition=
"$data['data']"
>
<div
class=
"loadding"
>
<if
condition=
"$data['nowPage'] eq $data['totalPages']"
>
<div>
再拉也没有了。。
</div><else/>
正在加载更多。。
</if>
</div>
</div>
</if>
<script>
var
type
;
var
p
;
var
url
=
"{:U('home/Home/getshare')}"
;
$
(
function
(){
type
=
"me"
//异步加载我购买的课程
$
.
ajax
({
type
:
"POST"
,
url
:
url
,
data
:
"p=1&type="
+
type
,
dataType
:
"json"
,
success
:
function
(
data
){
appendHtml
(
data
,
type
);
}
});
});
//请求事件
function
ajaxBang
(
url
,
type
,
callback
){
$
.
ajax
({
type
:
"GET"
,
url
:
"{:U('home/Home/getshare')}"
,
data
:
"p="
+
p
+
"&type="
+
type
,
dataType
:
"json"
,
success
:
function
(
data
){
appendHtml
(
data
,
type
);
}
});
}
var
type
;
var
p
=
1
;
$
(
function
()
{
$
(
".header"
).
hide
();
$
(
window
).
scroll
(
function
()
{
//已经滚动到上面的页面高度
var
scrollTop
=
$
(
this
).
scrollTop
();
//页面高度
var
scrollHeight
=
$
(
document
).
height
();
//浏览器窗口高度
var
windowHeight
=
$
(
this
).
height
();
//此处是滚动条到底部时候触发的事件,在这里写要加载的数据,或者是拉动滚动条的操作
if
(
scrollHeight
-
(
scrollTop
+
windowHeight
)
<
60
)
{
if
(
!
p
||
p
>=
"{$data['totalPages']}"
){
$
(
'.loadding'
).
html
(
'<div>再拉也没有了。。</div>'
);
return
false
;
}
else
{
p
=
p
+
1
;
ajaxBang
();
}
}
});
});
function
delShare
(
obj
,
sid
)
{
$
.
ajax
({
type
:
"POST"
,
url
:
"{:U('course/VideoShare/delShare')}"
,
data
:
"sid="
+
sid
,
dataType
:
"json"
,
success
:
function
(
e
){
if
(
e
.
status
==
1
){
ui
.
success
(
e
.
info
);
window
.
location
.
reload
();
}
else
{
ui
.
error
(
e
.
info
);
}
}
});
}
//头部点击事件
function
navClick
(
cate
,
type
){
$
(
".comment_list"
).
html
(
""
);
type
=
type
;
$
(
"li"
).
removeClass
(
"on"
);
$
(
cate
).
parent
(
"li"
).
addClass
(
"on"
);
p
=
1
;
ajaxBang
(
url
,
type
);
}
</div>
<script
type=
"text/javascript"
>
//追加html
new
Vue
({
function
appendHtml
(
data
){
el
:
"#app"
,
if
(
data
.
count
<
1
){
data
:
function
()
{
$
(
".comment_list"
).
html
(
"<div class='no-data'><img src='__THEME__/images/no-data.png'/></div>"
);
return
{
}
else
{
money
:
0
$
(
".comment_list"
).
append
(
data
.
data
);
}
}
if
(
data
.
income
)
{
$
(
".comment_list"
).
html
(
"可兑换余额"
+
data
.
share_price
+
"积分"
);
$
(
'.loadding'
).
html
(
'<div>再拉也没有了。。</div>'
)
return
false
;
}
}
})
if
(
!
p
||
p
>=
data
.
totalPages
){
$
(
'.loadding'
).
html
(
'<div>再拉也没有了。。</div>'
)
return
false
;
}
}
function
edit_box
(
obj
){
$
(
".Operation-wd"
).
show
();
};
function
mobliedelShare
(
obj
,
sid
)
{
ui
.
confirm
(
'确定要删除该分享吗?'
,
{
yes
:
function
()
{
$
.
ajax
({
type
:
"POST"
,
url
:
"{:U('course/VideoShare/delShare')}"
,
data
:
"sid="
+
sid
,
dataType
:
"json"
,
success
:
function
(
e
){
if
(
e
.
status
==
1
){
ui
.
success
(
e
.
info
);
window
.
location
.
reload
();
}
else
{
ui
.
error
(
e
.
info
);
}
}
});
}
});
}
</script>
</script>
<!--footer-->
<include
file=
"__THEME__/public_footer_w3g"
/>
<include
file=
"__THEME__/public_footer_w3g"
/>
apps/home/Tpl/default/User/index_w3g.html
View file @
da287c82
...
@@ -53,7 +53,6 @@
...
@@ -53,7 +53,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layout_v center_bottom_part"
>
<div
class=
"layout_v center_bottom_part"
>
<van-cell
class=
"center_bottom_cell"
title-class=
"text_14_400 color_333333 center_bottom_cell_text"
title=
"我的收藏"
is-link
>
<van-cell
class=
"center_bottom_cell"
title-class=
"text_14_400 color_333333 center_bottom_cell_text"
title=
"我的收藏"
is-link
>
<template
#
icon
>
<template
#
icon
>
...
@@ -70,7 +69,7 @@
...
@@ -70,7 +69,7 @@
<van-icon
name=
"__THEME__/img/upload.png"
size=
"24"
></van-icon>
<van-icon
name=
"__THEME__/img/upload.png"
size=
"24"
></van-icon>
</template>
</template>
</van-cell>
</van-cell>
<van-cell
class=
"center_bottom_cell"
title-class=
"text_14_400 color_333333 center_bottom_cell_text"
title=
"推广中心"
is-link
>
<van-cell
@
click=
"onCellTap('{:U('home/Home/share')}')"
class=
"center_bottom_cell"
title-class=
"text_14_400 color_333333 center_bottom_cell_text"
title=
"推广中心"
is-link
>
<template
#
icon
>
<template
#
icon
>
<van-icon
name=
"__THEME__/img/promotion.png"
size=
"24"
></van-icon>
<van-icon
name=
"__THEME__/img/promotion.png"
size=
"24"
></van-icon>
</template>
</template>
...
...
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