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
a2106b72
Commit
a2106b72
authored
May 21, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
543e1cef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
117 additions
and
239 deletions
+117
-239
addons/theme/stv1/_static_w3g/css/common.css
+7
-0
apps/home/Tpl/default/Home/share_w3g.html
+1
-1
apps/home/Tpl/default/User/account/take.html
+92
-131
apps/home/Tpl/default/User/account/take_list.html
+17
-107
No files found.
addons/theme/stv1/_static_w3g/css/common.css
View file @
a2106b72
...
@@ -970,4 +970,10 @@ div::-webkit-scrollbar {
...
@@ -970,4 +970,10 @@ div::-webkit-scrollbar {
height
:
2rem
;
height
:
2rem
;
background
:
rgba
(
163
,
228
,
96
,
1
);
background
:
rgba
(
163
,
228
,
96
,
1
);
border-radius
:
1rem
;
border-radius
:
1rem
;
}
/* record list */
.widthraw_list_top
{
padding
:
0.5rem
0.75rem
;
background
:
rgba
(
251
,
255
,
247
,
1
);
}
}
\ No newline at end of file
apps/home/Tpl/default/Home/share_w3g.html
View file @
a2106b72
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
},
},
onWithdraw
:
function
()
{
onWithdraw
:
function
()
{
window
.
location
.
href
=
"{:U('home/User/account')}"
+
"?tab=take_list"
},
},
onMyQrcode
:
function
()
{
onMyQrcode
:
function
()
{
...
...
apps/home/Tpl/default/User/account/take.html
View file @
a2106b72
<include
file=
"__THEME__/public_header"
/>
<include
file=
"__THEME__/public_header_w3g"
/>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.center_left
{
.content_container
{
border-radius
:
4px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
overflow
:
hidden
;
border-radius
:
0.75rem
;
float
:
left
;
padding
:
0.75rem
0.75rem
1.5625rem
0.75rem
;
}
}
.center_right
{
float
:
right
;
.input_container
{
}
margin-top
:
0.5rem
;
.center_right_tit
div
.on
{
}
color
:
#00BED4
;
}
.input_bottom
{
.user-con-title
a
{
margin-top
:
0.5rem
;
width
:
auto
;
justify-content
:
space-between
;
float
:
left
;
}
}
</style>
<div
class=
"content cbg"
>
.withdraw_hint
{
<div
class=
"wrap"
>
margin-top
:
0.375rem
;
<include
file=
"../../User/public/_left"
/>
margin-left
:
1rem
;
}
<div
class=
"center_right"
>
<div
class=
"center_right_tit"
>
<div
class=
"user-con-title"
>
.confirm_button
{
<include
file=
"_tab"
/>
margin-left
:
1rem
;
</div>
margin-right
:
1rem
;
</div>
margin-top
:
3.5rem
;
}
<div
class=
"user-Release"
>
<div
class=
"cent_r_box clearfix"
>
>>>
.van-field__control
{
<div
class=
"box_block"
>
font-size
:
1.25rem
;
<p
class=
"lh30 mb10"
><span
class=
"selected_title_a fl"
>
可用余额
</span>
<em
class=
"lan_txt ft24"
>
{:unLast0($userLearnc['balance'])}
</em>
余额
</p>
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
<?php if(!$data):?>
font-weight
:
400
;
<div
class=
"clearfix h55"
>
}
<span
class=
"selected_title selected_title_a color_hui fl"
>
</style>
输入兑换金额
<div
id=
"app"
>
</span>
<div
class=
"layout_v"
>
<div
class=
"myInput1 Album_Title_s fl w276"
>
<div
class=
"content_container layout_v"
>
<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
class=
"input_container layout_h"
>
</div>
<div
class=
"layout_v"
>
<div
class=
"fr txt_r"
>
<div
class=
"text_14_400 color_333333"
>
提现金额
</div>
<a
class=
"sel_w Collect"
href=
"javascript:;"
onClick=
"applyWithdraw();"
>
提现
</a>
<div
class=
"layout_h"
>
</div>
<div
class=
"color_333333 text_26_600 self_center"
>
¥
</div>
</div>
<van-field
:placeholder=
"minWithdraw"
v-model=
"value"
input-align=
"left"
type=
"number"
></van-field>
<script
type=
"text/javascript"
>
</div>
$
(
function
(){
</div>
$
(
'html,body'
).
click
(
function
(){
<div
class=
"self_center layout_h_r weight_full"
>
if
(
$
(
"#withdraw_num"
).
val
()
==
''
){
<div
@
click=
"onAll"
class=
"text_14_400 color_primary self_center"
>
全部提现
</div>
$
(
"span.w276"
).
show
();
</div>
}
</div>
});
<div
class=
"divider"
></div>
$
(
'.myInput1'
).
click
(
function
(){
<div
class=
"input_bottom layout_h"
>
$
(
"#withdraw_num"
).
focus
();
<div>
$
(
this
).
find
(
"span.w276"
).
hide
();
<span
class=
"text_14_400 color_333333"
>
最大可提现:¥
<span
class=
"text_14_400 color_EF4339"
>
{{max}}
</span></span>
return
false
;
</div>
});
</div>
});
</div>
function
applyWithdraw
(){
<div
@
click=
"onWithdraw"
class=
"round_button confirm_button layout_h_c"
>
var
input
=
$
(
'.myInput1 #withdraw_num:first'
);
<span
class=
"text_14_600 self_center color_white"
>
确认提现
</span>
var
num
=
input
.
val
();
</div>
var
basenum
=
parseInt
(
input
.
attr
(
'basenum'
));
</div>
var
total
=
parseFloat
(
input
.
attr
(
'total'
));
</div>
if
(
!
/^
[
1-9
][
0-9
\.]
*$/
.
test
(
num
)){
ui
.
error
(
'请输入正确的金额!'
);
<script>
input
.
focus
();
return
false
;
new
Vue
({
}
el
:
"#app"
,
num
=
parseFloat
(
num
);
data
:
function
()
{
if
(
num
>
total
){
return
{
ui
.
error
(
'无法提现:余额不足'
);
value
:
""
,
input
.
focus
();
return
false
;
min
:
100
,
}
max
:
156
,
if
(
num
<
0
||
num
<
basenum
||
num
%
basenum
!=
0
){
}
ui
.
error
(
'只允许输入'
+
basenum
+
'的倍数'
);
},
input
.
focus
();
return
false
;
computed
:
{
}
minWithdraw
:
function
()
{
if
(
!
confirm
(
'提现金额:'
+
num
+
',确认申请提现?'
))
return
false
;
return
'最低满'
+
this
.
min
+
'可提现'
$
.
post
(
window
.
location
,
{
num
:
num
},
function
(
data
){
}
if
(
data
.
status
){
},
ui
.
success
(
'申请提现成功'
);
methods
:
{
setTimeout
(
function
(){
onWithdraw
:
function
()
{
window
.
location
.
reload
();
},
2000
);
},
}
else
{
onAll
:
function
()
{
var
errMsgs
=
[
'未知错误'
,
'申请提现应为'
+
basenum
+
'的倍数'
,
'未找到用户或未绑定银行卡'
,
'同时只能申请一笔提现'
,
'余额转冻结失败或余额不足'
,
'提现申请失败'
];
this
.
value
=
this
.
max
data
.
info
=
parseInt
(
data
.
info
);
}
var
msg
=
errMsgs
[
data
.
info
]
?
errMsgs
[
data
.
info
]
:
'未知错误'
;
}
ui
.
error
(
'错误:'
+
msg
);
})
input
.
focus
();
return
false
;
</script>
}
},
'json'
);
<include
file=
"__THEME__/public_footer_w3g"
/>
}
</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
apps/home/Tpl/default/User/account/take_list.html
View file @
a2106b72
<include
file=
"__THEME__/public_header"
/>
<include
file=
"__THEME__/public_header"
/>
<style
type=
"text/css"
>
<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>
</style>
<div
class=
"content cbg"
>
<div
id=
"app"
>
<div
class=
"wrap"
>
<div
class=
"layout_v"
>
<include
file=
"../../User/public/_left"
/>
<div
class=
"widthraw_list_top layout_h"
>
<span
class=
"text_12_400 color_999999"
>
提现总金额:
</span>
<div
class=
"center_right"
>
<span
class=
"text_12_400 color_primary"
>
¥154
</span>
<div
class=
"center_right_tit"
>
</div>
<div
class=
"user-con-title"
>
</div>
<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>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
'input.rcalendar_select,#rcalendar_y,#rcalendar_m,#ryears,#rmonths'
).
live
(
'click'
,
function
(
e
){
new
Vue
({
return
false
;
el
:
"#app"
,
});
data
:
function
()
{
$
(
document
).
click
(
function
(){
return
{
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>
</script>
<include
file=
"__THEME__/public_footer"
/>
<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