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
a4114ce8
Commit
a4114ce8
authored
May 21, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
b6d2186f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
464 additions
and
0 deletions
+464
-0
apps/home/Tpl/default/Home/share_w3g_old.html
+190
-0
apps/home/Tpl/default/User/account/index_w3g_old.html
+0
-0
apps/home/Tpl/default/User/account/take_list_old.html
+117
-0
apps/home/Tpl/default/User/account/take_list_w3g.html
+26
-0
apps/home/Tpl/default/User/account/take_old.html
+131
-0
No files found.
apps/home/Tpl/default/Home/share_w3g_old.html
0 → 100644
View file @
a4114ce8
<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"
>
<div
class=
"header2"
>
<a
href=
"{:U('home/User/index')}"
class=
"icon-back"
></a>
<div>
我的分享
</div>
</div>
<div
class=
"body"
>
<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"
>
<ul
class=
"comment_list"
style=
"padding-top:20px;"
>
</ul>
</div>
</div>
<if
condition=
"$data['data']"
>
<div
class=
"loadding"
>
<if
condition=
"$data['nowPage'] eq $data['totalPages']"
>
<div>
再拉也没有了。。
</div><else/>
正在加载更多。。
</if>
</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
);
}
//追加html
function
appendHtml
(
data
){
if
(
data
.
count
<
1
){
$
(
".comment_list"
).
html
(
"<div class='no-data'><img src='__THEME__/images/no-data.png'/></div>"
);
}
else
{
$
(
".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>
<!--footer-->
<include
file=
"__THEME__/public_footer_w3g"
/>
apps/home/Tpl/default/User/account/index_w3g_old.html
0 → 100644
View file @
a4114ce8
This diff is collapsed.
Click to expand it.
apps/home/Tpl/default/User/account/take_list_old.html
0 → 100644
View file @
a4114ce8
<include
file=
"__THEME__/public_header"
/>
<style
type=
"text/css"
>
.center_left
{
border-radius
:
4px
;
overflow
:
hidden
;
float
:
left
;
}
.center_right
{
float
:
right
;
}
.center_right_tit
div
.on
{
color
:
#00BED4
;
}
.user-con-title
a
{
width
:
auto
;
float
:
left
;
}
</style>
<div
class=
"content cbg"
>
<div
class=
"wrap"
>
<include
file=
"../../User/public/_left"
/>
<div
class=
"center_right"
>
<div
class=
"center_right_tit"
>
<div
class=
"user-con-title"
>
<include
file=
"_tab"
/>
</div>
</div>
<div
class=
"center_right_con Manage_all"
style=
"display:block"
>
<div
class=
"mt10b20 clearfix h55"
>
<form
method=
"get"
action=
"{:U('home/User/account', array('tab'=>3))}"
id=
"account-find-form"
>
<span
class=
"selected_title fl"
>
时间:
</span>
<div
class=
"myInput1 fl w130"
style=
"padding:0;height:30px"
>
<input
type=
"text"
style=
"height:30px;top:0"
onfocus=
"core.rcalendar(this,'');"
class=
"rcalendar_select"
readonly
name=
"st"
value=
"{$_GET['st']}"
/>
</div>
<span
class=
"fl"
>
到
</span>
<div
class=
"myInput1 fl w130"
style=
"padding:0;height:30px"
>
<input
type=
"text"
style=
"height:30px;top:0"
onfocus=
"core.rcalendar(this,'');"
class=
"rcalendar_select"
readonly
name=
"et"
value=
"{$_GET['et']}"
/>
</div>
<a
class=
"sel_w fl ml15"
id=
"find-submit"
href=
"javascript:;"
>
查询
</a>
</form>
</div>
<style>
table
.table_ye
tr
td
{
border-top
:
1px
solid
#e3e3e3
;
border-left
:
1px
solid
#e3e3e3
;}
</style>
<table
class=
"table_ye"
cellpadding=
"0"
cellspacing=
"0"
border=
"0"
width=
"100%"
style=
"border-right:1px solid #e3e3e3;border-bottom:1px solid #e3e3e3;"
>
<thead>
<tr><td
width=
"10%"
>
序号
</td>
<td
width=
"25%"
>
申请时间
</td>
<td
width=
"25%"
>
提现金额
</td>
<td
width=
"40%"
>
状态
</td>
</tr></thead>
<tbody>
<?php
$statusTxts = array('处理中', '处理中', '完成', '失败', '取消');
foreach($data['data'] as $i=>$rs):?>
<tr>
<td>
<?php echo ($i+1)*$data['nowPage']?>
</td>
<td>
{:friendlyDate($rs['ctime'])}
</td>
<td>
{:unLast0($rs['wnum'])}余额
</td>
<td
{$
rs
['
status
']<
2
?'
class=
"lan_txt"
'
:
''}
>
<?php echo $statusTxts[$rs['status']];echo $rs['status']==0?' <a href="javascript:;" onclick="cancelWithdraw('.$rs['id'].');" style="color:#06A7E1">取消</a>':'';?>
</td>
</tr>
<?php endforeach;?>
</tbody></table>
<div
class=
"mt10 account_page"
>
累计成功提现:
<em
class=
"red_txt"
>
{:unLast0($total)}
</em>
余额
<p>
共{$data.totalRows}条 {$data.html}
</p></div>
</div>
</div>
</div>
</div>
<script
type=
"text/javascript"
>
$
(
'input.rcalendar_select,#rcalendar_y,#rcalendar_m,#ryears,#rmonths'
).
live
(
'click'
,
function
(
e
){
return
false
;
});
$
(
document
).
click
(
function
(){
typeof
rcalendar_close
!=
'undefined'
&&
rcalendar_close
();
});
$
(
'#account-find-form'
).
submit
(
function
(
e
)
{
if
(
$
(
"input.rcalendar_select"
).
val
()
==
''
)
ui
.
error
(
'请选择查询时间'
);
var
url
=
$
(
this
).
attr
(
'action'
)
+
''
;
if
(
url
.
indexOf
(
'?'
)
>-
1
){
window
.
location
=
url
+
'&'
+
$
(
this
).
serialize
();
}
else
{
window
.
location
=
url
+
'?'
+
$
(
this
).
serialize
();
}
return
false
;
}).
find
(
'#find-submit'
).
click
(
function
(){
$
(
this
).
parents
(
'form'
).
submit
();
});
function
cancelWithdraw
(
id
){
ui
.
confirm
(
'确认取消提现?'
,{
yes
:
function
(){
$
.
get
(
'{:U("home/User/account",array("tab"=>3,"id"=>"'
+
id
+
'"))}'
,
null
,
function
(
data
){
if
(
data
.
status
){
ui
.
success
(
'取消成功'
);
setTimeout
(
function
(){
window
.
location
.
reload
();
},
2000
);
}
else
{
var
errMsgs
=
[
'取消失败'
,
null
,
'没有找到提现记录'
,
null
,
'余额解冻失败'
,
null
,
'提现已完成或已经关闭'
];
data
.
info
=
parseInt
(
data
.
info
);
var
msg
=
errMsgs
[
data
.
info
]
?
errMsgs
[
data
.
info
]
:
'未知错误'
;
ui
.
error
(
'错误:'
+
msg
);
}
},
'json'
);
}
});
}
</script>
<include
file=
"__THEME__/public_footer"
/>
\ No newline at end of file
apps/home/Tpl/default/User/account/take_list_w3g.html
0 → 100644
View file @
a4114ce8
<include
file=
"__THEME__/public_header"
/>
<style
type=
"text/css"
>
</style>
<div
id=
"app"
>
<div
class=
"layout_v"
>
<div
class=
"widthraw_list_top layout_h"
>
<span
class=
"text_12_400 color_999999"
>
提现总金额:
</span>
<span
class=
"text_12_400 color_primary"
>
¥154
</span>
</div>
</div>
</div>
<script
type=
"text/javascript"
>
new
Vue
({
el
:
"#app"
,
data
:
function
()
{
return
{
}
}
})
</script>
<include
file=
"__THEME__/public_footer"
/>
\ No newline at end of file
apps/home/Tpl/default/User/account/take_old.html
0 → 100644
View file @
a4114ce8
<include
file=
"__THEME__/public_header"
/>
<style
type=
"text/css"
>
.center_left
{
border-radius
:
4px
;
overflow
:
hidden
;
float
:
left
;
}
.center_right
{
float
:
right
;
}
.center_right_tit
div
.on
{
color
:
#00BED4
;
}
.user-con-title
a
{
width
:
auto
;
float
:
left
;
}
</style>
<div
class=
"content cbg"
>
<div
class=
"wrap"
>
<include
file=
"../../User/public/_left"
/>
<div
class=
"center_right"
>
<div
class=
"center_right_tit"
>
<div
class=
"user-con-title"
>
<include
file=
"_tab"
/>
</div>
</div>
<div
class=
"user-Release"
>
<div
class=
"cent_r_box clearfix"
>
<div
class=
"box_block"
>
<p
class=
"lh30 mb10"
><span
class=
"selected_title_a fl"
>
可用余额
</span>
<em
class=
"lan_txt ft24"
>
{:unLast0($userLearnc['balance'])}
</em>
余额
</p>
<?php if(!$data):?>
<div
class=
"clearfix h55"
>
<span
class=
"selected_title selected_title_a color_hui fl"
>
输入兑换金额
</span>
<div
class=
"myInput1 Album_Title_s fl w276"
>
<input
type=
"text"
class=
"upload_input_a"
id=
"withdraw_num"
rel=
"请输入提现数量"
basenum=
"{:intval(getAppConfig('withdraw_basenum'))}"
total=
"{$userLearnc['balance']}"
>
<span
class=
"w276"
>
(只允许输入{:intval(getAppConfig('withdraw_basenum'))}的倍数)
</span>
</div>
<div
class=
"fr txt_r"
>
<a
class=
"sel_w Collect"
href=
"javascript:;"
onClick=
"applyWithdraw();"
>
提现
</a>
</div>
</div>
<script
type=
"text/javascript"
>
$
(
function
(){
$
(
'html,body'
).
click
(
function
(){
if
(
$
(
"#withdraw_num"
).
val
()
==
''
){
$
(
"span.w276"
).
show
();
}
});
$
(
'.myInput1'
).
click
(
function
(){
$
(
"#withdraw_num"
).
focus
();
$
(
this
).
find
(
"span.w276"
).
hide
();
return
false
;
});
});
function
applyWithdraw
(){
var
input
=
$
(
'.myInput1 #withdraw_num:first'
);
var
num
=
input
.
val
();
var
basenum
=
parseInt
(
input
.
attr
(
'basenum'
));
var
total
=
parseFloat
(
input
.
attr
(
'total'
));
if
(
!
/^
[
1-9
][
0-9
\.]
*$/
.
test
(
num
)){
ui
.
error
(
'请输入正确的金额!'
);
input
.
focus
();
return
false
;
}
num
=
parseFloat
(
num
);
if
(
num
>
total
){
ui
.
error
(
'无法提现:余额不足'
);
input
.
focus
();
return
false
;
}
if
(
num
<
0
||
num
<
basenum
||
num
%
basenum
!=
0
){
ui
.
error
(
'只允许输入'
+
basenum
+
'的倍数'
);
input
.
focus
();
return
false
;
}
if
(
!
confirm
(
'提现金额:'
+
num
+
',确认申请提现?'
))
return
false
;
$
.
post
(
window
.
location
,
{
num
:
num
},
function
(
data
){
if
(
data
.
status
){
ui
.
success
(
'申请提现成功'
);
setTimeout
(
function
(){
window
.
location
.
reload
();
},
2000
);
}
else
{
var
errMsgs
=
[
'未知错误'
,
'申请提现应为'
+
basenum
+
'的倍数'
,
'未找到用户或未绑定银行卡'
,
'同时只能申请一笔提现'
,
'余额转冻结失败或余额不足'
,
'提现申请失败'
];
data
.
info
=
parseInt
(
data
.
info
);
var
msg
=
errMsgs
[
data
.
info
]
?
errMsgs
[
data
.
info
]
:
'未知错误'
;
ui
.
error
(
'错误:'
+
msg
);
input
.
focus
();
return
false
;
}
},
'json'
);
}
</script>
<?php else:?>
<table
class=
"table_ye mt10"
cellpadding=
"0"
cellspacing=
"1"
border=
"1"
width=
"100%"
>
<?php foreach($data as $rs):?>
<tr>
<td
width=
"50%"
style=
"color: red"
>
正在处理提现中
</td>
<td
width=
"50%"
>
{:unLast0($rs['wnum'])} 余额
</td>
</tr>
<?php endforeach;?>
<tr>
<td>
剩余的资产
</td>
<td>
{:unLast0($userLearnc['balance'])} 余额
</td>
</tr>
</table>
<?php endif;?>
</div>
<?php if($data):?>
<div
class=
"clearfix h80"
style=
"margin-left:207px"
>
<span
class=
"fl zzcl"
></span>
<a
class=
"lan_y"
href=
"javascript:;"
>
dian
</a>
<a
class=
"lan_y"
href=
"javascript:;"
>
dian
</a>
<a
class=
"lan_y"
href=
"javascript:;"
>
dian
</a>
<a
class=
"lan_ky"
href=
"javascript:;"
>
dian
</a>
<a
class=
"lan_y"
href=
"javascript:;"
>
dian
</a>
<a
class=
"lan_y"
href=
"javascript:;"
>
dian
</a>
<a
class=
"lan_y"
href=
"javascript:;"
>
dian
</a>
<span
class=
"fl hkwc"
></span>
</div>
<?php endif;?>
<p
class=
"lh30 "
>
提示:1余额=1元人民币,提现金额必须是{:intval(getAppConfig('withdraw_basenum'))}的倍数;同时只能申请一笔提现,现金发放于工作日当周完成。如发现页面中一直是处理状态,请及时联系我们。联系电话:{$sys_tel?:'028-86743303'}
</p>
</div>
</div>
</div>
</div>
</div>
<include
file=
"__THEME__/public_footer"
/>
\ No newline at end of file
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