切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
李洪娟
6 years ago
提交
82ceadaabcef71f96783991bd3573f2bb0f47434
2 个父辈
ce9fdbdf
364d2549
Merge branch 'master' of
http://114.215.101.231:8099/lihan/integral
into juan
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
app/friendship/controller/FriendController.php
public/themes/simpleboot3/friendship/friend_list.html
app/friendship/controller/FriendController.php
查看文件 @
82ceada
...
...
@@ -33,6 +33,7 @@ class FriendController extends HomeBaseController
$request
=
request
();
$where
[
'role'
]
=
[
'eq'
,
1
];
$where
[
'user_type'
]
=
[
'eq'
,
2
];
$where
[
'id'
]
=
[
'neq'
,
session
(
'user.id'
)];
$keyword
=
$request
->
param
(
'keyword'
);
if
(
!
empty
(
$keyword
))
{
$where
[
'mobile'
]
=
[
'like'
,
"%
$keyword
%"
];
...
...
@@ -169,7 +170,7 @@ class FriendController extends HomeBaseController
$msg
=
'未知错误'
;
}
echo
json_encode
([
'msg'
=>
$msg
,
'status'
=>
$tag
]);
echo
json_encode
([
'msg'
=>
$msg
,
'status'
=>
$tag
,
'data'
=>
Db
::
name
(
'user'
)
->
where
([
'id'
=>
session
(
'user.id'
)])
->
value
(
'balance'
)
]);
exit
();
}
}
...
...
public/themes/simpleboot3/friendship/friend_list.html
查看文件 @
82ceada
...
...
@@ -267,7 +267,7 @@
<!--好友弹出层-->
<div
class=
"sendwrapper"
style=
"display:none"
>
<div
class=
"sendpop"
>
<p
class=
"remaininter"
>
您还剩余
{$balance}
积分
</p>
<p
class=
"remaininter"
>
您还剩余
<span
id=
"BALANCE"
>
{$balance}
</span>
积分
</p>
<P
class=
"give"
>
赠送好友积分
</P>
<div
class=
"enterinter"
>
<input
type=
"text"
class=
"pleaseenter"
placeholder=
"输入赠送积分值"
>
...
...
@@ -419,6 +419,7 @@
if
(
data
.
status
===
true
)
{
window
.
event
.
stopPropagation
()
$
(
".passwordwrap"
).
css
(
"display"
,
"none"
)
$
(
"#BALANCE"
).
html
(
data
.
data
);
alert
(
data
.
msg
);
}
else
{
alert
(
data
.
msg
);
...
...
请
注册
或
登录
后发表评论