切换导航条
此项目
正在载入...
登录
郭盛
/
store
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
5 years ago
提交
cd5655b27526924d8fee4628258a12f4c92e28c2
1 个父辈
d49c1034
1 个管道 的构建
通过
耗费 1 秒
修改问题文档
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
application/admin/controller/Store.php
public/assets/js/backend/store.js
application/admin/controller/Store.php
查看文件 @
cd5655b
...
...
@@ -72,7 +72,7 @@ class Store extends Backend
$list
=
collection
(
$list
)
->
toArray
();
foreach
(
$list
as
&
$v
){
$province_ids
=
[];
$user_province
=
Db
::
name
(
'user_province'
)
->
where
([
'expiration_time'
=>
[
'gt'
,
time
()]])
->
select
();
$user_province
=
Db
::
name
(
'user_province'
)
->
where
([
'expiration_time'
=>
[
'gt'
,
time
()]
,
'user_id'
=>
$v
[
'user_id'
]
])
->
select
();
foreach
(
$user_province
as
$key
=>
$u_p
){
$province_ids
[]
=
$u_p
[
'province_id'
];
}
...
...
public/assets/js/backend/store.js
查看文件 @
cd5655b
...
...
@@ -36,7 +36,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{
field
:
'phone'
,
title
:
__
(
'Phone'
)},
{
field
:
'address'
,
title
:
__
(
'Address'
),
operate
:
false
},
{
field
:
'viptype'
,
title
:
__
(
'Viptype'
),
formatter
:
Table
.
api
.
formatter
.
label
,
searchList
:{
'1'
:
'普通会员'
,
'2'
:
'超级会员'
}},
{
field
:
'
expiration
'
,
title
:
__
(
'Expiration'
),
operate
:
false
,
addclass
:
'datetimerange'
,
formatter
:
Table
.
api
.
formatter
.
datetime
},
{
field
:
'
svip_passtime
'
,
title
:
__
(
'Expiration'
),
operate
:
false
,
addclass
:
'datetimerange'
,
formatter
:
Table
.
api
.
formatter
.
datetime
},
// {field: 'expiration', title: __('huiyuanhuoqishi'), operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime},
// {field: 'expiration', title: __('Expiration'), operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{
field
:
'province_ids'
,
title
:
__
(
'Province_ids'
)},
...
...
请
注册
或
登录
后发表评论