Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
ccfde4cc
ShopXO
项目概览
jamesyang1999
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ccfde4cc
编写于
5月 08, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
钱包优化
上级
299aa37a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
8 deletion
+34
-8
application/plugins/view/wallet/public/nav.html
application/plugins/view/wallet/public/nav.html
+3
-3
application/plugins/view/wallet/walletadmin/saveinfo.html
application/plugins/view/wallet/walletadmin/saveinfo.html
+5
-0
application/plugins/wallet/service/WalletService.php
application/plugins/wallet/service/WalletService.php
+7
-1
public/static/plugins/css/wallet/index/common.css
public/static/plugins/css/wallet/index/common.css
+19
-4
未找到文件。
application/plugins/view/wallet/public/nav.html
浏览文件 @
ccfde4cc
...
...
@@ -12,10 +12,10 @@
<div
class=
"am-topbar-right"
>
{{if in_array($plugins_control, ['wallet', 'recharge'])}}
<button
class=
"am-btn am-btn-secondary am-topbar-btn am-btn-sm am-icon-shield"
data-am-modal=
"{target: '#plugins-recharge-pay-modal', width: 260, height: 130}"
>
在线
充值
</button>
<button
class=
"am-btn am-btn-secondary am-topbar-btn am-btn-sm am-icon-shield"
data-am-modal=
"{target: '#plugins-recharge-pay-modal', width: 260, height: 130}"
>
充值
</button>
{{/if}}
{{if in_array($plugins_control, ['wallet', 'cash'])}}
<a
class=
"am-btn am-btn-success am-topbar-btn am-btn-sm am-icon-money"
>
申请
提现
</a>
<a
class=
"am-btn am-btn-success am-topbar-btn am-btn-sm am-icon-money"
>
提现
</a>
{{/if}}
</div>
</ul>
...
...
@@ -33,7 +33,7 @@
<span>
冻结金额
</span>
<span
class=
"integral-value"
>
{{$user_wallet.frozen_money}}
</span>
<em>
元
</em>
<span
class=
"integral-tips"
>
一般积分
交易中、提现、交易并未完成,锁定相应的积分
</span>
<span
class=
"integral-tips"
>
一般积分
预交易中、提现、交易并未完成,冻结相应的金额
</span>
</div>
<div
class=
"give"
>
<span>
赠送金额
</span>
...
...
application/plugins/view/wallet/walletadmin/saveinfo.html
浏览文件 @
ccfde4cc
...
...
@@ -55,6 +55,11 @@
<textarea
class=
"am-radius"
name=
"msg"
rows=
"3"
maxlength=
"80"
placeholder=
"最多80个字符"
data-validation-message=
"操作原因格式最多 80 个字符"
></textarea>
</div>
<div
class=
"am-form-group"
>
<label
class=
"block"
>
发送站内信
</label>
<input
name=
"is_send_message"
value=
"1"
type=
"checkbox"
data-off-text=
"否"
data-on-text=
"是"
data-size=
"xs"
data-on-color=
"success"
data-off-color=
"default"
data-handle-width=
"50"
data-am-switch
checked=
"true"
/>
</div>
<div
class=
"am-form-group am-form-group-refreshing"
>
<input
type=
"hidden"
name=
"id"
{{
if
!
empty
($
data
['
id
'])}}
value=
"{{$data.id}}"
{{/
if
}}
/>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100"
data-am-loading=
"{loadingText:'处理中...'}"
>
保存
</button>
...
...
application/plugins/wallet/service/WalletService.php
浏览文件 @
ccfde4cc
...
...
@@ -326,6 +326,9 @@ class WalletService
[
'field'
=>
'give_money'
,
'money_type'
=>
2
],
];
// 是否发送消息
$is_send_message
=
(
isset
(
$params
[
'is_send_message'
])
&&
$params
[
'is_send_message'
]
==
1
)
?
1
:
0
;
// 操作原因
$operation_msg
=
empty
(
$params
[
'msg'
])
?
''
:
' [ '
.
$params
[
'msg'
]
.
' ]'
;
foreach
(
$money_field
as
$v
)
...
...
@@ -352,7 +355,10 @@ class WalletService
}
// 消息通知
MessageService
::
MessageAdd
(
$wallet
[
'user_id'
],
'账户余额变动'
,
$log_data
[
'msg'
],
0
,
$wallet
[
'id'
]);
if
(
$is_send_message
==
1
)
{
MessageService
::
MessageAdd
(
$wallet
[
'user_id'
],
'账户余额变动'
,
$log_data
[
'msg'
],
0
,
$wallet
[
'id'
]);
}
}
}
...
...
public/static/plugins/css/wallet/index/common.css
浏览文件 @
ccfde4cc
...
...
@@ -16,11 +16,11 @@
.chosen-container-single
.chosen-single
,
.so-list
select
{
height
:
28px
;
line-height
:
28px
;
width
:
100%
;
}
.reset-submit
{
margin-left
:
20px
;
}
.so-list
select
{
padding
:
0
0
0
8px
;
}
@media
only
screen
and
(
min-width
:
641px
){
@media
only
screen
and
(
min-width
:
641px
)
{
.so-list
.chosen-container
,
.so-list
select
{
width
:
217px
!important
;
display
:
-webkit-inline-box
;
}
.thin_sub
:hover
{
color
:
#F60
;
}
}
@media
only
screen
and
(
max-width
:
641px
){
@media
only
screen
and
(
max-width
:
641px
)
{
.so-list
input
{
width
:
40%
!important
;
}
.so-list
td
{
width
:
100%
;
display
:
block
;
}
.so-list
tr
td
:last-child
{
margin-top
:
10px
;
}
...
...
@@ -52,6 +52,7 @@
}
.user-content-body
.am-nav
.am-topbar-right
{
margin-right
:
0
;
text-align
:
right
;
}
.user-content-body
.am-nav
.am-topbar-right
.am-btn
:not
(
:last-child
)
{
margin-right
:
5px
;
...
...
@@ -59,6 +60,15 @@
.user-content-body
.am-nav
.am-topbar-right
.am-topbar-btn
{
margin-top
:
0
;
}
@media
only
screen
and
(
max-width
:
641px
)
{
.user-content-body
.am-nav
li
a
{
font-size
:
12px
;
padding
:
2px
5px
;
}
.user-content-body
.am-nav
.am-topbar-right
.am-topbar-btn
{
padding
:
2px
5px
;
}
}
/**
* 账户信息
...
...
@@ -79,12 +89,17 @@
font-weight
:
700
;
}
.user-content-body
.integral-tips
{
color
:
#
d7b27d
;
background
:
#f
8f5ee
;
color
:
#
ff9600
;
background
:
#f
df8ed
;
padding
:
3px
6px
;
border
:
1px
solid
#f4eadb
;
margin-left
:
10px
;
}
@media
only
screen
and
(
max-width
:
641px
)
{
.user-content-body
.integral-tips
{
display
:
none
;
}
}
/**
* 业务弹窗
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录