Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
______--______
ShopXO
提交
4e1d8d2b
ShopXO
项目概览
______--______
/
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,发现更多精彩内容 >>
提交
4e1d8d2b
编写于
12月 29, 2018
作者:
惠达浪
提交者:
gongfuxiang
12月 29, 2018
浏览文件
操作
浏览文件
下载
差异文件
!1 测试Pull Request
Merge pull request !1 from 灰大狼/crazy
上级
02fb5edb
164844a4
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
33 addition
and
13 deletion
+33
-13
Crazy.php
Crazy.php
+10
-0
application/index/controller/Search.php
application/index/controller/Search.php
+1
-1
application/index/view/default/index/index.html
application/index/view/default/index/index.html
+1
-1
application/service/ConfigService.php
application/service/ConfigService.php
+11
-0
application/service/UserService.php
application/service/UserService.php
+3
-3
index.php
index.php
+1
-2
public/static/index/default/css/common.css
public/static/index/default/css/common.css
+6
-6
未找到文件。
Crazy.php
0 → 100644
浏览文件 @
4e1d8d2b
<?php
/**
* Created by PhpStorm.
* User: Crazy
* Email: crazys@126.com
* Date: 2018/12/29
* Time: 11:13
*/
$test
=
'这是一个测试文件,用来测试Pull Request贡献代码的。'
;
\ No newline at end of file
application/index/controller/Search.php
浏览文件 @
4e1d8d2b
...
...
@@ -67,7 +67,7 @@ class Search extends Common
{
if
(
input
(
'post.'
))
{
return
redirect
(
'index/search/index'
,
[
'keywords'
=>
$this
->
params
[
'keywords'
]]
);
return
redirect
(
MyUrl
(
'index/search/index'
,
[
'keywords'
=>
$this
->
params
[
'keywords'
]])
);
}
else
{
// 品牌列表
$this
->
assign
(
'brand_list'
,
BrandService
::
CategoryBrandList
([
'category_id'
=>
$this
->
params
[
'category_id'
]]));
...
...
application/index/view/default/index/index.html
浏览文件 @
4e1d8d2b
...
...
@@ -182,7 +182,7 @@
<div
class=
"goods-title ellipsis"
>
<a
href=
"{{$goods['goods_url']}}"
target=
"_blank"
{{
if
!
empty
($
goods.title_color
)}}
style=
"color:{{$goods.title_color}};"
{{/
if
}}
>
{{$goods.title}}
</a>
</div>
<div
class=
"price"
>
¥{{$goods.price}}
</div>
<div
class=
"price"
>
¥{{$goods.
min_
price}}
</div>
</div>
<a
href=
"{{$goods.goods_url}}"
target=
"_blank"
>
<img
src=
"{{$goods.home_recommended_images}}"
/>
...
...
application/service/ConfigService.php
浏览文件 @
4e1d8d2b
...
...
@@ -55,6 +55,17 @@ class ConfigService
// 附件
$data_fields
=
[
'home_site_logo'
,
'home_site_logo_wap'
,
'home_site_desktop_icon'
];
// 当前参数中不存在则移除
foreach
(
$data_fields
as
$key
=>
$field
)
{
if
(
!
isset
(
$params
[
$field
]))
{
unset
(
$data_fields
[
$key
]);
}
}
// 获取附件
$attachment
=
ResourcesService
::
AttachmentParams
(
$params
,
$data_fields
);
foreach
(
$attachment
[
'data'
]
as
$k
=>
$v
)
{
...
...
application/service/UserService.php
浏览文件 @
4e1d8d2b
...
...
@@ -686,7 +686,7 @@ class UserService
* @desc description
* @param [array] $params [输入参数]
*/
public
function
UserAvatarUpload
(
$params
=
[])
public
static
function
UserAvatarUpload
(
$params
=
[])
{
// 请求参数
$p
=
[
...
...
@@ -729,8 +729,8 @@ class UserService
// 开始处理图片存储
// 定义图片目录
$root_path
=
ROOT
_PATH
;
$img_path
=
'
Public'
.
DS
.
'Upload
'
.
DS
.
'user_avatar'
.
DS
;
$root_path
=
ROOT
.
'public'
.
DS
;
$img_path
=
'
static'
.
DS
.
'upload'
.
DS
.
'images
'
.
DS
.
'user_avatar'
.
DS
;
$date
=
DS
.
date
(
'Y'
)
.
DS
.
date
(
'm'
)
.
DS
.
date
(
'd'
)
.
DS
;
// 图像类库
...
...
index.php
浏览文件 @
4e1d8d2b
...
...
@@ -13,5 +13,4 @@
define
(
'IS_ROOT_ACCESS'
,
true
);
// 引入公共入口文件
require
'./public/index.php'
;
?>
\ No newline at end of file
require
'./public/index.php'
;
\ No newline at end of file
public/static/index/default/css/common.css
浏览文件 @
4e1d8d2b
...
...
@@ -89,11 +89,11 @@ color: #555555;background:none;border-color:transparent;cursor: default;}
/*搜索框*/
.search-bar
{
height
:
36px
;
width
:
calc
(
100%
-
103px
);
display
:
-webkit-inline-box
;}
.search-bar
form
{
border
:
2px
solid
#d2364c
;
width
:
100%
;}
.search-bar
form
{
border
:
2px
solid
#d2364c
;
width
:
100%
;
position
:
relative
;
}
.search-bar
input
{
height
:
32px
;
width
:
72%
;
outline
:
none
;
font-size
:
12px
;
border
:
none
}
#search-input
{
padding-left
:
8px
;
}
#ai-topsearch
{
width
:
27%
;
height
:
32px
;
border
:
none
;
float
:
right
;
background
:
#d2364c
none
repeat
scroll
0%
0%
;
color
:
#F5F5F2
;
font-size
:
14px
;
cursor
:
pointer
;
border-radius
:
0px
0px
;
}
#ai-topsearch
{
width
:
27%
;
height
:
32px
;
border
:
none
;
background
:
#d2364c
none
repeat
scroll
0%
0%
;
color
:
#F5F5F2
;
font-size
:
14px
;
cursor
:
pointer
;
border-radius
:
0px
0px
;
position
:
absolute
;
top
:
0
;
right
:
0
;
}
.search-hot-keywords
{
margin-top
:
5px
;
height
:
16px
;
overflow
:
hidden
;
display
:
none
;
}
.search-hot-keywords
li
{
float
:
left
;
}
.search-hot-keywords
li
:not
(
:last-child
)
{
margin-right
:
10px
;
}
...
...
@@ -109,7 +109,7 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px; }
/* 顶部小导航 */
.header-top
{
background-color
:
#fafafa
;
border-bottom
:
solid
1px
#f0f0f0
;
}
.header
{
display
:
none
;
max-width
:
1000px
;
margin
:
0px
auto
;
font-size
:
12px
;}
.header
{
display
:
none
;
max-width
:
1000px
;
margin
:
0px
auto
;
font-size
:
12px
;
position
:
relative
;
overflow
:
hidden
;
}
.am-footer
{
border-top
:
2px
solid
#d2364c
;
}
.footer-bd
{
display
:
none
}
...
...
@@ -133,14 +133,14 @@ color: #F5F5F2;font-size: 14px;cursor:pointer;border-radius:0px 0px; }
.header
{
display
:
block
;
height
:
30px
;}
.top-nav-left
{
float
:
left
;}
.top-nav-left
.top-nav-items
,
.top-nav-right
.top-nav-items
{
padding
:
0px
8px
;
height
:
30px
;
line-height
:
30px
;
}
.top-nav-right
{
float
:
right
;
}
.top-nav-right
{
position
:
absolute
;
top
:
0
;
right
:
0
;
}
.top-nav-right
.top-nav-items
{
float
:
left
;}
.nav-search
.logo
{
display
:
none
;}
.nav-search
.logo-big
{
display
:
block
;
float
:
left
;
height
:
40px
;
width
:
135px
;
margin
:
0px
auto
;
margin-left
:
5px
;
margin-right
:
5px
;}
.nav-search
.logo-big
img
{
width
:
100%
;}
.search-bar
{
height
:
40px
;
width
:
calc
(
100%
-
146px
);}
.search-bar
input
{
width
:
80
%
;
height
:
36px
;}
.search-bar
input
{
width
:
78
%
;
height
:
36px
;}
.classified
{
display
:
none
;}
.mobile-navigation
{
display
:
none
;}
.nav-search
{
position
:
relative
;
top
:
0px
;
z-index
:
0
;
margin-bottom
:
5px
;
margin-top
:
5px
;}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录