切换导航条
此项目
正在载入...
登录
李涵
/
integral
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
lihan
6 years ago
提交
a5a041350bc088e687f6de1065bb33466b65d703
1 个父辈
cc994136
1 个管道 的构建
通过
耗费 0 秒
赠送积分模块
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
81 行增加
和
5 行删除
app/user/controller/CenterController.php
public/themes/simpleboot3/user/center/integral_log.html
public/themes/simpleboot3/user/center/my_balance.html
app/user/controller/CenterController.php
查看文件 @
a5a0413
...
...
@@ -11,7 +11,7 @@ class CenterController extends HomeBaseController
function
_initialize
()
{
if
(
empty
(
session
(
'user.id'
)))
{
$this
->
error
(
'登录
失败'
);
$this
->
error
(
'登录
超时'
,
url
(
'index/Index/index'
)
);
}
}
...
...
@@ -356,4 +356,18 @@ class CenterController extends HomeBaseController
}
}
public
function
integralLog
()
{
$type
=
request
()
->
param
(
'type'
);
if
(
$type
==
1
)
{
$title
=
'积分获取记录'
;
}
else
{
$title
=
'积分使用记录'
;
}
$log
=
Db
::
name
(
'zj_integral_log'
)
->
where
([
'uid'
=>
session
(
'user.id'
)])
->
select
();
return
$this
->
fetch
(
'integral_log'
,
[
'log'
=>
$log
,
'title'
=>
$title
]);
}
}
...
...
public/themes/simpleboot3/user/center/integral_log.html
0 → 100644
查看文件 @
a5a0413
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"
/>
<link
rel=
"stylesheet"
href=
"https://at.alicdn.com/t/font_834805_0ml90wdq5hzm.css"
>
<link
rel=
"stylesheet"
href=
"__INDEX__/css/base.css"
>
<link
rel=
"stylesheet"
href=
"__INDEX__/css/swiper.min.css"
>
<script
type=
"text/javascript"
src=
"__INDEX__/js/base.js"
></script>
<title>
{$title}
</title>
<style>
.gainlist
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
0.42rem
0.36rem
;
border-bottom
:
1px
solid
#f5f5f5
;
background
:
#fff
;
}
.buy_good
{
font-size
:
0.32rem
;
color
:
#000000
;
font-weight
:
bold
;
}
.good_date
{
color
:
#999999
;
font-size
:
0.26rem
;
margin-top
:
0.1rem
;
}
.code_intergral
{
color
:
#FF0800
;
font-size
:
0.36rem
;
}
</style>
</head>
<body>
<div
class=
"container"
>
<volist
name=
"log"
id=
"vo"
>
<div
class=
"gainlist"
>
<div
class=
"good_intergral"
>
<p
class=
"buy_good"
>
<if
condition=
"$vo['type'] eq '1'"
>
购买商品消费
</if>
<if
condition=
"$vo['type'] eq '2'"
>
购买商品获得
</if>
<if
condition=
"$vo['type'] eq '3'"
>
好友购买奖励
</if>
</p>
<p
class=
"good_date"
>
{$vo.create_time|date='Y-m-d', ###}
</p>
</div>
<div
class=
"code_intergral"
>
{$vo.balance}积分
</div>
</div>
</volist>
</div>
</body>
</html>
...
...
public/themes/simpleboot3/user/center/my_balance.html
查看文件 @
a5a0413
...
...
@@ -60,11 +60,11 @@
<p
class=
"remain"
>
积分余额
</p>
</div>
<div
class=
"integrate_list"
>
<div
class=
"list takenote"
>
<div
class=
"list takenote"
data-url=
"{:url('user/Center/integralLog',['type'=>1])}"
>
<p
class=
"record"
>
积分获取记录
</p>
<P
class=
"iconfont icon-jinru"
></P>
</div>
<div
class=
"list uselist"
>
<div
class=
"list uselist"
data-url=
"{:url('user/Center/integralLog',['type'=>2])}"
>
<p
class=
"record"
>
积分使用记录
</p>
<P
class=
"iconfont icon-jinru"
></P>
</div>
...
...
@@ -82,10 +82,10 @@
<script
src=
"__INDEX__/js/jquery.min.js"
></script>
<script>
$
(
".takenote"
).
click
(
function
(){
window
.
location
.
href
=
$
(
this
).
attr
(
'data-url'
);
})
$
(
".uselist"
).
click
(
function
(){
window
.
location
.
href
=
$
(
this
).
attr
(
'data-url'
);
})
//赠送好友积分
$
(
".friend"
).
click
(
function
(){
...
...
请
注册
或
登录
后发表评论