切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
lihan
6 years ago
提交
1311503bf3c8a98bab56af18d98af487546d41d5
1 个父辈
65088eda
1 个管道 的构建
通过
耗费 3 秒
赠送积分和角色管理
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
9 行增加
和
4 行删除
app/friendship/controller/FriendController.php
public/themes/simpleboot3/friendship/friend_list.html
app/friendship/controller/FriendController.php
查看文件 @
1311503
...
...
@@ -44,7 +44,8 @@ class FriendController extends HomeBaseController
if
(
!
empty
(
$list
))
{
return
$this
->
fetch
(
':friend_list'
,
[
'keyword'
=>
$keyword
,
'list'
=>
$list
'list'
=>
$list
,
'balance'
=>
Db
::
name
(
'user'
)
->
where
([
'id'
=>
session
(
'user.id'
)])
->
value
(
'balance'
)
]);
}
else
{
$this
->
error
(
'查无此人'
);
...
...
public/themes/simpleboot3/friendship/friend_list.html
查看文件 @
1311503
...
...
@@ -267,8 +267,8 @@
<!--好友弹出层-->
<div
class=
"sendwrapper"
style=
"display:none"
>
<div
class=
"sendpop"
>
<p
class=
"remaininter"
>
您还剩余200积分
</p>
<P
class=
"give"
>
赠送xxx好友积分
</P>
<p
class=
"remaininter"
>
您还剩余{$balance}积分
</p>
<P
class=
"give"
>
赠送好友积分
</P>
<div
class=
"enterinter"
>
<input
type=
"text"
class=
"pleaseenter"
placeholder=
"输入赠送积分值"
>
</div>
...
...
@@ -302,7 +302,7 @@
</div>
<div
class=
"sendintegral"
>
<p
class=
"inter_img"
>
<p
class=
"inter_img"
data-id=
"{$vo.friend_id}"
>
<img
src=
"__INDEX__/img/jifen.png"
alt=
""
>
</p>
<P
class=
"friend_inter"
data-id=
"{$vo.friend_id}"
>
...
...
@@ -318,10 +318,12 @@
<script
type=
"text/javascript"
src=
"__INDEX__/js/jquery.min.js"
></script>
<script>
var
friend_id
=
''
;
$
(
".pleaseenter"
).
click
(
function
(){
window
.
event
.
stopPropagation
();
})
$
(
".inter_img"
).
click
(
function
(){
friend_id
=
$
(
this
).
attr
(
'data-id'
);
$
(
".sendwrapper"
).
css
(
"display"
,
"block"
);
})
$
(
".sendwrapper"
).
click
(
function
(){
...
...
@@ -397,6 +399,8 @@
console
.
log
(
arr
);
var
str
=
arr
[
0
]
+
arr
[
1
]
+
arr
[
2
]
+
arr
[
3
]
+
arr
[
4
]
+
arr
[
5
];
console
.
log
(
str
)
alert
(
1
);
}
}
...
...
请
注册
或
登录
后发表评论