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
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
844 additions
and
0 deletions
+844
-0
apps/home/Tpl/default/Home/share_w3g_old.html
+190
-0
apps/home/Tpl/default/User/account/index_w3g_old.html
+380
-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
<include
file=
"__THEME__/public_header_w3g"
/>
<link
rel=
"stylesheet"
href=
"__APP__/css/account_3g.css"
>
<div
class=
"el-integral-recharge"
>
<div
class=
"el-header-nav"
>
<a
href=
"{:U('home/User/index')}"
class=
"icon-back"
></a>
<div>
我的余额
</div>
<a
href=
"{:U('home/User/account', array('tab'=>6))}"
style=
"font-size: 12px;line-height: 40px;"
class=
"payment_record_box"
>
明细
</a>
</div>
<div
class=
"el-min-box"
>
<p><span>
我的余额:
</span>
<span>
¥{:unLast0($userLearnc['balance'])}
</span></p>
<p
class=
"el-min-twelve"
>
备注:1元人民币=1余额
</p>
</div>
</div>
<div
class=
"body"
>
<!-- <ul class="fqalistnav" style="margin-bottom:0"></ul>
<div class="cenbox_find_pr">
<div class="find_pr_head">
<a href="{:U('home/User/index')}" class="icon-back"></a>
<div>我的余额</div>
<a href="{:U('home/User/account', array('tab'=>6))}" class="payment_record_box">明细</a>
</div>
<p class="txt_r ft24 pb20">
<em class="green_txt ft30 mlr22"></em>
</p>
</div> -->
<div
class=
"centerbox"
>
<div
class=
"center-type-hd"
>
<a
class=
"choose"
href=
"javascript:;"
>
余额充值
</a>
</div>
<form
action=
"{:U('classroom/Pay/recharge')}"
method=
"post"
id=
"recharge_form"
style=
"background: #fff"
>
<if
condition=
"$is_wx and in_array('wxpay',$payConfig['pay'])"
>
<input
type=
"hidden"
value=
"wxpay"
name=
"pay"
/>
<else/>
<volist
name=
"payWay"
id=
"vo"
offset=
"0"
length=
"1"
>
<input
type=
"hidden"
value=
"{$vo}"
name=
"pay"
/>
</volist>
</if>
<input
type=
"hidden"
value=
"0"
name=
"money"
/>
<div
class=
"teacher_bd db"
>
<div
id=
"oline_pay_div"
>
<dl
class=
"pay_dl"
>
<dd
name=
"group-list"
class=
"btn_je_box"
>
<volist
name=
"rechange_default"
id=
"redt"
>
<label><a
class=
"btn_hui_h"
href=
"javascript:;"
val=
"{$redt[0]}:{$redt[0]}"
give=
"{$redt[0]}"
>
<if
condition=
"$redt[1]"
>
充{$redt[0]}元/
<i
class=
"i-give"
>
送{$redt[1]}元
</i>
<else
/>
{$redt[0]}元
</if>
</a></label>
</volist>
<label
class=
"parent_custom"
>
<input
type=
"text"
placeholder=
"自定义..."
id=
"custom_money"
>
</label>
</dd>
</dl>
<dl
class=
"pay_dl"
style=
"padding: 0 3%"
>
<dd
class=
""
>
</dd>
</dl>
</div>
<hr
class=
"tabspaw"
>
<div
class=
"clearfix h55 mt15"
id=
"cardpay_div"
style=
"display: none"
>
<span
class=
"selected_title selected_title_a color_hui fl"
>
充值卡编号:
</span>
<input
class=
"myInput1"
style=
"border: solid 1px #cccbcb;"
type=
"text"
name=
"card_number"
placeholder=
"请输入充值卡编号"
>
<span
class=
"lh30 ml15"
></span>
</div>
<div
class=
"center-type-hd"
>
<br>
<a
class=
"choose"
href=
"javascript:;"
>
支付方式
</a>
</div>
</div>
</form>
<dl
class=
"pay_dl marsty_docse"
>
<dd
id=
"select_pay"
>
<if
condition=
"in_array('wxpay',$payConfig['pay'])"
>
<label
<
if
condition=
"$is_wx"
>
class="selected"
</if>
val="wxpay">
<img
src=
"__APP__/images/weixin.png"
alt=
""
>
<h3
class=
"name"
>
微信
</h3><i
class=
"yuan"
></i></label>
</if>
<if
condition=
"in_array('alipay',$payConfig['pay']) and ($is_wx eq false)"
>
<label
class=
"selected"
val=
"alipay"
>
<img
src=
"__APP__/images/zfb.png"
alt=
""
>
<h3
class=
"name"
>
支付宝
</h3><i
class=
"icon icon-xuanze"
></i>
</label>
</if>
<if
condition=
"in_array('unionpay',$payConfig['pay'])"
>
<!--<label val="unionpay"><img src="__THEME__/images/yyzf.png"></label>-->
</if>
<if
condition=
"in_array('cardpay',$payConfig['pay'])"
>
<label
val=
"cardpay"
>
<img
src=
"__APP__/images/chongzhi.png"
alt=
""
>
<h3
class=
"name"
>
充值卡
</h3><i
class=
"yuan"
></i>
</label>
</if>
</dd>
</dl>
<dl
class=
"pay_dl"
style=
"padding: 0 5%"
>
<dt
class=
"pay_dt"
><label><input
id=
"user_recharge"
type=
"checkbox"
checked
>
同意
<a
target=
"_blank"
href=
"{:U('basic/Single/info',array('id'=>'buy'))}"
>
《{$site['site_keyword']}虚拟货币服务协议》
</a></label></dt>
</dl>
<div
class=
"foot_menu_fix"
>
<dl
class=
"pay_dl pay_money_dl"
>
<dt>
实付:
<em
id=
"lan_txt_cost"
class=
"lan_txt ft18 ml15"
>
¥0
</em></dt>
</dl>
<a
class=
"pay_btn"
href=
"javascript:;"
onclick=
"rechange(this);"
>
立即充值
</a>
</div>
</div>
</div>
<if
condition=
"$is_wx eq false"
>
<style>
#_ts_box_h5
{
width
:
290px
;
height
:
180px
;
text-align
:
center
;
color
:
#535353
;
border-radius
:
5px
;
position
:
fixed
;
background
:
#fff
;
-webkit-box-shadow
:
0
2px
5px
#dddddd
;
-moz-box-shadow
:
0
2px
5px
#dddddd
;
-khtml-box-shadow
:
0
2px
5px
#dddddd
;
-ms-box-shadow
:
0
0
15px
#888888
;
box-shadow
:
0
0
15px
#888888
;
z-index
:
997
;
left
:
5%
;
top
:
35%
;
margin
:
0
auto
;
background
:
#fff
;
}
._hide_box_h5
{
z-index
:
996
;
filter
:
alpha
(
opacity
=
50
);
background
:
#666
;
opacity
:
0.5
;
-moz-opacity
:
0.5
;
left
:
0
;
top
:
0
;
height
:
99%
;
width
:
100%
;
position
:
fixed
;
}
#_ts_box_h5
._box_hd
{
padding
:
20px
0px
;
color
:
black
;
font-size
:
16px
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0.16
);
}
#_layer-content
{
padding
:
15px
0px
;
color
:
rgba
(
255
,
35
,
0
,
0.69
);
font-size
:
16px
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0.1
);
}
._layer-wt
{
padding
:
15px
0px
;
color
:
#908d8d
;
font-size
:
16px
;
}
</style>
<div
class=
"_hide_box_h5"
style=
"display: none;"
></div>
<div
id=
"_ts_box_h5"
style=
"display: none;"
>
<div
class=
"_box_hd"
>
请确认微信支付是否完成
</div>
<div
id=
"_layer-content"
>
已完成支付
</div>
<div
class=
"_layer-wt"
><a
href=
"{:U('home/User/recharge')}"
>
支付遇到问题,联系客服
</a></div>
</div>
</if>
<script>
'<if condition="$is_wx eq false">'
$
(
function
()
{
var
wpay
=
"{$_GET['wpay']}"
;
var
ppn
=
"{$_GET['ppn']}"
;
if
(
wpay
!=
''
)
{
$
(
'._hide_box_h5,#_ts_box_h5'
).
show
();
$
(
'#_layer-content'
).
click
(
function
()
{
$
(
'._hide_box_h5,#_ts_box_h5'
).
hide
();
s
=
setInterval
(
function
()
{
$
.
ajax
({
url
:
"{:U('classroom/Pay/getPayStatus')}"
,
data
:
{
pay_pass_num
:
ppn
},
type
:
'post'
,
success
:
function
(
res
)
{
try
{
res
=
JSON
.
parse
(
res
);
if
(
res
.
status
==
1
)
{
clearInterval
(
s
);
ui
.
success
(
'充值成功'
);
setTimeout
(
function
()
{
window
.
location
.
href
=
"{:U('home/UserShow/index',['uid'=>$uid])}"
;
//res.data
},
2000
);
}
}
catch
(
e
)
{
return
;
}
}
});
},
1800
);
});
}
});
'</if>'
$
(
function
()
{
$
(
'.btn_je_box a.btn_hui_h'
).
click
(
function
()
{
$
(
this
).
parents
(
'form'
).
find
(
'input:hidden[name="money"]'
).
val
(
$
(
this
).
attr
(
'val'
));
$
(
'#lan_txt_cost'
).
text
(
"¥"
+
$
(
this
).
attr
(
'give'
));
$
(
'input#custom_money'
).
val
(
''
).
blur
();
});
//默认点击事件
$
(
'.btn_je_box a.btn_hui_h:eq(1)'
).
click
();
$
(
'input#custom_money'
).
change
(
function
(
e
)
{
$
(
'.btn_je_box'
).
children
().
removeAttr
(
'selected'
);
$
(
this
).
parents
(
'form'
).
find
(
'input:hidden[name="money"]'
).
val
(
$
(
this
).
val
());
$
(
'#lan_txt_cost'
).
text
(
"¥"
+
$
(
this
).
val
());
});
//选择效果
$
(
document
).
on
(
'click'
,
'[name="group-list"] label'
,
function
()
{
if
(
$
(
this
).
attr
(
"class"
)
==
"parent_custom"
){
return
;
}
$
(
this
).
addClass
(
'selected'
).
siblings
().
removeClass
(
'selected'
);
});
$
(
'.btn_je_box label:eq(1)'
).
click
();
//默认采用第一个支付方式
$
(
'#select_pay label:first'
).
click
();
});
//选择支付方式
$
(
'#select_pay label'
).
click
(
function
()
{
$
(
this
).
addClass
(
'selected'
).
siblings
().
removeClass
(
'selected'
);
if
(
$
(
this
).
hasClass
(
"selected"
))
{
$
(
this
).
find
(
".yuan"
).
addClass
(
"icon icon-xuanze"
).
removeClass
(
"yuan"
);
$
(
this
).
siblings
().
find
(
".icon-xuanze"
).
removeClass
(
"icon icon-xuanze"
).
addClass
(
"yuan"
);
}
$
(
'#recharge_form'
).
find
(
'input:hidden[name="pay"]'
).
val
(
$
(
this
).
attr
(
'val'
));
var
pay
=
$
(
'#recharge_form'
).
find
(
'input:hidden[name="pay"]'
).
val
();
if
(
pay
==
'cardpay'
)
{
$
(
'#oline_pay_div'
).
hide
(
100
);
$
(
'.pay_money_dl'
).
hide
(
100
);
$
(
'#cardpay_div'
).
show
(
100
);
$
(
"hr.tabspaw"
).
hide
(
100
)
}
else
{
$
(
'#oline_pay_div'
).
show
(
100
);
$
(
'.pay_money_dl'
).
show
(
100
);
$
(
'#cardpay_div'
).
hide
(
100
);
$
(
"hr.tabspaw"
).
show
(
100
)
}
});
//充值余额
function
rechange
(
sbt
)
{
var
rechange_base
=
parseFloat
(
'{:getAppConfig("rechange_basenum")}'
);
var
form
=
$
(
'#recharge_form'
);
var
pay
=
form
.
find
(
'input:hidden[name="pay"]'
).
val
();
var
money
=
form
.
find
(
'input:hidden[name="money"]'
).
val
();
if
(
pay
!=
'alipay'
&&
pay
!=
'unionpay'
&&
pay
!=
'wxpay'
&&
pay
!=
'cardpay'
)
{
ui
.
error
(
'错误的支付方式'
);
return
false
;
}
if
(
money
<=
0
)
{
ui
.
error
(
'请选择或填写充值金额'
);
return
false
;
}
if
(
!
$
(
"#user_recharge"
).
is
(
':checked'
))
{
ui
.
error
(
"请同意《{$site['site_keyword']}虚拟货币服务协议》"
);
return
false
;
}
var
s
=
0
if
(
pay
==
'wxpay'
)
{
$
.
ajax
({
url
:
"{:U('classroom/Pay/recharge')}"
,
data
:
form
.
serialize
(),
async
:
false
,
type
:
'post'
,
success
:
function
(
data
)
{
if
(
typeof
data
!=
'object'
)
{
var
data
=
eval
(
'('
+
data
+
')'
);
}
if
(
data
.
status
==
1
)
{
var
pay_pass_num
=
data
.
data
.
pay_pass_num
;
'<if condition="$is_wx">'
WeixinJSBridge
.
invoke
(
'getBrandWCPayRequest'
,
JSON
.
parse
(
data
.
data
.
html
),
function
(
res
)
{
if
(
res
.
err_msg
==
"get_brand_wcpay_request:ok"
)
{
s
=
setInterval
(
function
()
{
$
.
ajax
({
url
:
"{:U('classroom/Pay/getPayStatus')}"
,
data
:
{
pay_pass_num
:
pay_pass_num
},
type
:
'post'
,
success
:
function
(
res
)
{
try
{
res
=
JSON
.
parse
(
res
);
if
(
res
.
status
==
1
)
{
clearInterval
(
s
);
ui
.
success
(
'充值成功'
);
setTimeout
(
function
()
{
window
.
location
.
href
=
"{:U('home/UserShow/index',['uid'=>$uid])}"
;
//res.data
},
1500
);
}
}
catch
(
e
)
{
return
;
}
}
});
},
1800
);
}
}
);
'<else/>'
var
a
=
document
.
createElement
(
'a'
);
a
.
href
=
data
.
data
.
html
;
a
.
click
();
return
false
;
'</if>'
}
else
{
ui
.
error
(
e
.
data
);
setTimeout
(
function
()
{
window
.
location
.
href
=
'{:U("home/User/recharge")}'
;
},
2000
);
}
},
error
:
function
()
{
return
false
}
});
}
else
if
(
pay
==
'cardpay'
)
{
$
.
post
(
"{:U('classroom/Pay/recharge')}"
,
form
.
serialize
(),
function
(
res
)
{
res
=
JSON
.
parse
(
res
);
if
(
res
.
status
==
1
)
{
ui
.
success
(
res
.
info
);
setTimeout
(
function
()
{
window
.
location
.
href
=
res
.
data
;
},
2000
);
}
else
{
ui
.
error
(
res
.
info
);
return
false
}
});
}
else
{
form
.
submit
();
}
}
</script>
<include
file=
"__THEME__/public_footer_w3g"
/>
\ No newline at end of file
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