Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion_group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
章建武
fashion_group
Commits
37c2c4f5
Commit
37c2c4f5
authored
May 08, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
4de3001b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
GoodsItemController.php
app/Http/Controllers/Index/GoodsItemController.php
+22
-0
IndexBanner.php
moell/laravel-layui-admin/src/Models/IndexBanner.php
+2
-2
more.blade.php
resources/views/Index/goods_item/more.blade.php
+4
-3
No files found.
app/Http/Controllers/Index/GoodsItemController.php
View file @
37c2c4f5
...
@@ -14,11 +14,33 @@ class GoodsItemController extends Controller
...
@@ -14,11 +14,33 @@ class GoodsItemController extends Controller
{
{
public
function
index
()
public
function
index
()
{
{
$url
=
url
()
->
full
();
$pathinfo
=
parse_url
(
$url
);
$path
=
$pathinfo
[
'path'
];
$en
=
substr
(
$path
,
1
,
2
);
if
(
$en
==
'en'
){
$language_type
=
1
;
}
else
{
$language_type
=
0
;
}
return
view
(
'index.goods_item.index'
);
return
view
(
'index.goods_item.index'
);
}
}
public
function
more
(
Request
$request
)
public
function
more
(
Request
$request
)
{
{
$url
=
url
()
->
full
();
$pathinfo
=
parse_url
(
$url
);
$path
=
$pathinfo
[
'path'
];
$en
=
substr
(
$path
,
1
,
2
);
if
(
$en
==
'en'
){
$language_type
=
1
;
}
else
{
$language_type
=
0
;
}
$type
=
$request
->
get
(
'type'
);
$type
=
$request
->
get
(
'type'
);
$data
=
IndexBanner
::
query
()
->
where
(
'type'
,
'='
,
$type
)
$data
=
IndexBanner
::
query
()
->
where
(
'type'
,
'='
,
$type
)
->
orderBy
(
'id'
,
'asc'
)
->
get
();
->
orderBy
(
'id'
,
'asc'
)
->
get
();
...
...
moell/laravel-layui-admin/src/Models/IndexBanner.php
View file @
37c2c4f5
...
@@ -13,5 +13,5 @@ class IndexBanner extends Model
...
@@ -13,5 +13,5 @@ class IndexBanner extends Model
{
{
protected
$table
=
'index_banner'
;
protected
$table
=
'index_banner'
;
protected
$fillable
=
[
'path'
,
'sequence'
,
'type'
,
'anchor'
,
'title'
];
protected
$fillable
=
[
'path'
,
'sequence'
,
'type'
,
'anchor'
,
'img_title'
,
'title'
,
'content'
];
}
}
\ No newline at end of file
resources/views/Index/goods_item/more.blade.php
View file @
37c2c4f5
...
@@ -18,13 +18,14 @@
...
@@ -18,13 +18,14 @@
<div class="
container1
">
<div class="
container1
">
<div class="
pro
-
info
-
t
">
<div class="
pro
-
info
-
t
">
<h1>{{
$title
}}</h1>
<h1>{{
$title
}}</h1>
<p><span style="
font
-
family
:
宋体
,
SimSun
;
">{{
$content
}}</span></p> <h2></h2>
<p><span style="
font
-
family
:
宋体
,
SimSun
;
">{{
$content
}}</span></p>
<h2></h2>
</div>
</div>
<div class="
pro
-
info
-
b
">
<div class="
pro
-
info
-
b
">
<div class="
pro
-
img
">
<div class="
pro
-
img
">
<ul>
<ul>
@foreach(
$data
as
$v
)
@foreach(
$data
as
$v
)
<li name="
{{
asset
(
$v
->
path
)
}}
" data-txt="
{{
$v
->
title
}}
">
<li name="
{{
asset
(
$v
->
path
)
}}
" data-txt="
{{
$v
->
img_
title
}}
">
<a href="
javascript
:
;
">
<a href="
javascript
:
;
">
<img src="
{{
asset
(
$v
->
path
)
}}
">
<img src="
{{
asset
(
$v
->
path
)
}}
">
</a>
</a>
...
@@ -173,4 +174,4 @@
...
@@ -173,4 +174,4 @@
}
}
})
})
</script>
</script>
\ No newline at end of file
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