Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e7afcf92
authored
Dec 05, 2022
by
肖康
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev/ver/1.0.0' of
http://git.ichunt.net/semour/semour_web
into dev/ver/1.0.0
parents
d4e77465
3858ad20
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
48 additions
and
10 deletions
app/Http/Services/ClassService.php
app/Http/Services/OrderService.php
resources/views/about/certification.blade.php
resources/views/about/company.blade.php
resources/views/about/privacy.blade.php
resources/views/about/quality.blade.php
resources/views/about/refund.blade.php
resources/views/about/term.blade.php
resources/views/about/termuser.blade.php
resources/views/auth/changePassword.blade.php
resources/views/auth/forget.blade.php
resources/views/auth/login.blade.php
resources/views/auth/passwords/confirm.blade.php
resources/views/auth/passwords/email.blade.php
resources/views/auth/passwords/reset.blade.php
resources/views/auth/register.blade.php
resources/views/brand/list.blade.php
resources/views/brand/map.blade.php
resources/views/car/car.blade.php
resources/views/car/confirm.blade.php
resources/views/classification/index.blade.php
resources/views/home/home.blade.php
resources/views/layouts/app.blade.php
resources/views/layouts/appMall.blade.php
resources/views/mall/index.blade.php
app/Http/Services/ClassService.php
View file @
e7afcf92
...
...
@@ -9,6 +9,10 @@ class ClassService
//获取首页需要的所有分类,没有英文名称的不要
public
static
function
getClassificationForHome
()
{
$cache
=
Redis
::
get
(
'semour_classification_cache'
);
if
(
$cache
)
{
return
json_decode
(
$cache
,
true
);
}
//先获取所有分类
$classData
=
\Http
::
get
(
config
(
'website.footstone_url'
)
.
'/open/getClassification'
)
->
json
();
$secondClassList
=
[];
...
...
@@ -56,13 +60,20 @@ class ClassService
}
}
}
return
array_values
(
$topFields
);
$data
=
array_values
(
$topFields
);
Redis
::
set
(
'semour_classification_cache'
,
json_encode
(
$data
));
Redis
::
expire
(
'semour_classification_cache'
,
600
);
return
$data
;
}
return
[];
}
public
static
function
getClassificationById
(
$classId
,
$includeChildren
=
false
)
{
$cache
=
Redis
::
get
(
'semour_classification_cache_'
.
$classId
);
if
(
$cache
)
{
return
json_decode
(
$cache
,
true
);
}
$classData
=
\Http
::
get
(
config
(
'website.footstone_url'
)
.
'/open/getClassification'
)
->
json
();
if
(
isset
(
$classData
[
'code'
])
&&
$classData
[
'code'
]
==
0
)
{
$classificationCache
=
$classData
[
'data'
];
...
...
@@ -87,6 +98,8 @@ class ClassService
}
}
$classification
[
'sku_number'
]
=
$totalSkuNumber
;
Redis
::
set
(
'semour_classification_cache_'
.
$classId
,
json_encode
(
$classification
));
Redis
::
expire
(
'semour_classification_cache_'
.
$classId
,
600
);
return
$classification
;
}
return
[];
...
...
app/Http/Services/OrderService.php
View file @
e7afcf92
...
...
@@ -462,9 +462,7 @@ class OrderService
->
keyby
(
"rec_id"
)
->
toArray
();
$temp
=
[];
$return_amount_all
=
0
;
foreach
(
$returnItems
as
$k
=>
$v
){
$recId
=
$v
[
"rec_id"
];
$orderGoodsInfo
=
\Arr
::
get
(
$orderItemsArr
,
$recId
);
...
...
@@ -479,12 +477,13 @@ class OrderService
"after_sale_price"
=>
$v
[
"return_price"
],
// 售后单价
"return_amount"
=>
$v
[
"return_amount"
],
// 售后金额
];
$return_amount_all
+=
$v
[
"return_amount"
];
}
$return_amount_all
=
0
;
$temp
=
array_values
(
$temp
);
foreach
(
$temp
as
$c
=>&
$a
){
$a
[
"no"
]
=
$c
+
1
;
$return_amount_all
+=
$a
[
"return_amount"
];
}
return
[
"return_amount_all"
=>
$return_amount_all
,
"items"
=>
$temp
];
}
...
...
resources/views/about/certification.blade.php
View file @
e7afcf92
...
...
@@ -3,7 +3,7 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/about/about.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Certification - '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
@
include
(
'common.headerNav'
)
...
...
resources/views/about/company.blade.php
View file @
e7afcf92
...
...
@@ -3,7 +3,7 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/about/about.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Company - '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
@
include
(
'common.headerNav'
)
...
...
resources/views/about/privacy.blade.php
View file @
e7afcf92
...
...
@@ -3,7 +3,7 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/about/about.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Privacy - '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
@
include
(
'common.headerNav'
)
...
...
resources/views/about/quality.blade.php
View file @
e7afcf92
...
...
@@ -3,6 +3,7 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/about/about.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Quality - '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
...
...
resources/views/about/refund.blade.php
View file @
e7afcf92
...
...
@@ -3,6 +3,7 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/about/about.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Refund - '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
...
...
resources/views/about/term.blade.php
View file @
e7afcf92
...
...
@@ -3,6 +3,7 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/about/about.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Term - '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
...
...
resources/views/about/termuser.blade.php
View file @
e7afcf92
...
...
@@ -3,6 +3,7 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/about/about.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Term User - '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
...
...
resources/views/auth/changePassword.blade.php
View file @
e7afcf92
@
extends
(
'layouts.app'
)
@
section
(
'title'
,
'Change Password - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/auth/forget.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/auth/forget.blade.php
View file @
e7afcf92
@
extends
(
'layouts.app'
)
@
section
(
'title'
,
'Forget Password - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/auth/forget.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/auth/login.blade.php
View file @
e7afcf92
@
extends
(
'layouts.app'
)
@
section
(
'title'
,
'Login - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/auth/login.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/auth/passwords/confirm.blade.php
View file @
e7afcf92
@
extends
(
'layouts.app'
)
@
section
(
'title'
,
'Confirm - '
)
@
section
(
'content'
)
<
div
class
="
container
">
...
...
resources/views/auth/passwords/email.blade.php
View file @
e7afcf92
@
extends
(
'layouts.app'
)
@
section
(
'title'
,
'Email - '
)
@
section
(
'content'
)
<
div
class
="
container
">
...
...
resources/views/auth/passwords/reset.blade.php
View file @
e7afcf92
@
extends
(
'layouts.app'
)
@
section
(
'title'
,
'Reset Password - '
)
@
section
(
'content'
)
<
div
class
="
container
">
...
...
resources/views/auth/register.blade.php
View file @
e7afcf92
@
extends
(
'layouts.app'
)
@
section
(
'title'
,
'Register - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/auth/reg.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/brand/list.blade.php
View file @
e7afcf92
@
extends
(
'layouts.appMall'
)
@
section
(
'title'
,
'Brand - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/brand/list.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/brand/map.blade.php
View file @
e7afcf92
@
extends
(
'layouts.appMall'
)
@
section
(
'title'
,
'Brand Map - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/brand/brand.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/car/car.blade.php
View file @
e7afcf92
@
extends
(
'layouts.appMall'
)
@
section
(
'title'
,
'Shopping Car - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/car/car.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/car/confirm.blade.php
View file @
e7afcf92
@
extends
(
'layouts.appMall'
)
@
section
(
'title'
,
'Order Confirm - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/car/confirm.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/classification/index.blade.php
View file @
e7afcf92
@
extends
(
'layouts.appMall'
)
@
section
(
'title'
,
'Classification - '
)
@
section
(
'css'
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/class/class.min.css?v={{time()}
}
"
>
@
endsection
...
...
resources/views/home/home.blade.php
View file @
e7afcf92
...
...
@@ -3,7 +3,7 @@
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/home/home.min.css?v={{time()}
}
"
>
@
endsection
@
section
(
'title'
,
'Semour: The Global '
)
@
section
(
'body'
)
@
include
(
'common.headerTop'
)
@
include
(
'common.headerNav'
)
...
...
resources/views/layouts/app.blade.php
View file @
e7afcf92
...
...
@@ -6,7 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<!-- CSRF Token -->
<meta
name=
"csrf-token"
content=
"{{ csrf_token() }}"
>
<title>
@yield('title'
, '深茂官网')title描述
</title>
<title>
@yield('title'
)Electronics Supply Chain Solution Provider
</title>
@include("common.css")
@yield('css')
...
...
resources/views/layouts/appMall.blade.php
View file @
e7afcf92
...
...
@@ -6,7 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<!-- CSRF Token -->
<meta
name=
"csrf-token"
content=
"{{ csrf_token() }}"
>
<title>
@yield('title'
, '深茂官网')title描述
</title>
<title>
@yield('title'
)Electronics Supply Chain Solution Provider SEMOUR
</title>
@include("common.css")
@yield('css')
...
...
resources/views/mall/index.blade.php
View file @
e7afcf92
@
extends
(
'layouts.appMall'
)
@
section
(
'css'
)
@
section
(
'title'
,
' Online Store - '
)
<
link
rel
=
"stylesheet"
href
=
"
{
{$public}}/assets/css/mall/mall.min.css?v={{time()}
}
"
>
@
endsection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment