Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
5
59110440259
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
senior-prj-62
59110440259
Commits
69157781
Commit
69157781
authored
Mar 09, 2020
by
Piyaphorn Arphornsri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
dbb28bff
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
198 additions
and
85 deletions
+198
-85
index.js
Backend/controllers/shop/index.js
+2
-2
index.js
Backend/models/shop/index.js
+17
-3
CS59110440259.pdf
BeautyProject/CS59110440259.pdf
+0
-0
index.js
b_beauty_project/src/views/DataShopPage/Datashop/index.js
+28
-7
index.js
b_beauty_project/src/views/HomePage/index.js
+57
-20
index.js
b_beauty_project/src/views/ShopPage/index.js
+94
-53
No files found.
Backend/controllers/shop/index.js
View file @
69157781
...
@@ -15,7 +15,7 @@ exports.addShop = async (req, res) => {
...
@@ -15,7 +15,7 @@ exports.addShop = async (req, res) => {
exports
.
getShop
=
async
(
req
,
res
)
=>
{
exports
.
getShop
=
async
(
req
,
res
)
=>
{
try
{
try
{
let
shop
=
await
Shop
.
findAll
();
let
shop
=
await
Shop
.
findAll
();
res
.
status
(
200
).
send
(
"success"
);
res
.
status
(
200
).
send
(
shop
);
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
res
.
sendStatus
(
401
);
res
.
sendStatus
(
401
);
...
@@ -45,7 +45,7 @@ exports.getShopId = async (req, res) => {
...
@@ -45,7 +45,7 @@ exports.getShopId = async (req, res) => {
id
:
shopId
id
:
shopId
}
}
});
});
res
.
status
(
200
).
send
(
"success"
);
res
.
status
(
200
).
send
(
shop
);
}
catch
(
err
)
{
}
catch
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
res
.
sendStatus
(
401
);
res
.
sendStatus
(
401
);
...
...
Backend/models/shop/index.js
View file @
69157781
...
@@ -9,13 +9,16 @@ module.exports = db.sequelize.define("shops", {
...
@@ -9,13 +9,16 @@ module.exports = db.sequelize.define("shops", {
},
},
name
:
{
name
:
{
type
:
Sequelize
.
INTEGER
type
:
Sequelize
.
STRING
},
},
timeopen
:
{
nameeng
:
{
type
:
Sequelize
.
STRING
type
:
Sequelize
.
STRING
},
},
timeopen
:
{
type
:
Sequelize
.
DATE
},
timeclose
:
{
timeclose
:
{
type
:
Sequelize
.
STRING
type
:
Sequelize
.
DATE
},
},
address
:
{
address
:
{
type
:
Sequelize
.
TEXT
type
:
Sequelize
.
TEXT
...
@@ -32,6 +35,14 @@ module.exports = db.sequelize.define("shops", {
...
@@ -32,6 +35,14 @@ module.exports = db.sequelize.define("shops", {
facebook
:
{
facebook
:
{
type
:
Sequelize
.
TEXT
type
:
Sequelize
.
TEXT
},
},
image
:{
type
:
Sequelize
.
TEXT
},
userId
:
{
type
:
Sequelize
.
INTEGER
,
references
:
'users'
,
referencesKey
:
'id'
},
type
:
{
type
:
{
type
:
Sequelize
.
ENUM
(
type
:
Sequelize
.
ENUM
(
"สปาและนวด"
,
"สปาและนวด"
,
...
@@ -42,4 +53,7 @@ module.exports = db.sequelize.define("shops", {
...
@@ -42,4 +53,7 @@ module.exports = db.sequelize.define("shops", {
"แต่งหน้าทำผม"
"แต่งหน้าทำผม"
)
)
}
}
});
});
BeautyProject/CS59110440259.pdf
View file @
69157781
No preview for this file type
b_beauty_project/src/views/DataShopPage/Datashop/index.js
View file @
69157781
...
@@ -80,11 +80,13 @@ class Datashop extends Component {
...
@@ -80,11 +80,13 @@ class Datashop extends Component {
state
=
{
state
=
{
currency
:
"1"
,
currency
:
"1"
,
name
:
""
,
name
:
""
,
nameeng
:
""
,
timeopen
:
""
,
timeopen
:
""
,
timeclose
:
""
,
timeclose
:
""
,
tel
:
""
,
tel
:
""
,
address
:
""
,
address
:
""
,
detail
:
""
,
detail
:
""
,
images
:
""
,
map
:
""
,
map
:
""
,
facebook
:
""
,
facebook
:
""
,
type
:
""
,
type
:
""
,
...
@@ -110,6 +112,7 @@ class Datashop extends Component {
...
@@ -110,6 +112,7 @@ class Datashop extends Component {
const
{
const
{
currency
,
currency
,
name
,
name
,
nameeng
,
timeopen
,
timeopen
,
timeclose
,
timeclose
,
tel
,
tel
,
...
@@ -161,7 +164,22 @@ class Datashop extends Component {
...
@@ -161,7 +164,22 @@ class Datashop extends Component {
}}
}}
onChange
=
{
this
.
handleChange
}
onChange
=
{
this
.
handleChange
}
/
>
/
>
<
TextField
className
=
{
classes
.
margin
}
id
=
"nameeng"
name
=
"nameeng"
value
=
{
nameeng
}
label
=
"Name"
variant
=
"outlined"
InputProps
=
{{
startAdornment
:
(
<
InputAdornment
position
=
"start"
>
<
AccountCircle
/>
<
/InputAdornment
>
)
}}
onChange
=
{
this
.
handleChange
}
/
>
<
TextField
<
TextField
className
=
{
classes
.
margin
}
className
=
{
classes
.
margin
}
id
=
"timeopen"
id
=
"timeopen"
...
@@ -179,6 +197,10 @@ class Datashop extends Component {
...
@@ -179,6 +197,10 @@ class Datashop extends Component {
}}
}}
onChange
=
{
this
.
handleChange
}
onChange
=
{
this
.
handleChange
}
/
>
/
>
<
/div
>
<
br
/>
<
div
>
<
TextField
<
TextField
className
=
{
classes
.
margin
}
className
=
{
classes
.
margin
}
id
=
"timeclose"
id
=
"timeclose"
...
@@ -196,9 +218,6 @@ class Datashop extends Component {
...
@@ -196,9 +218,6 @@ class Datashop extends Component {
}}
}}
onChange
=
{
this
.
handleChange
}
onChange
=
{
this
.
handleChange
}
/
>
/
>
<
/div
>
<
br
/>
<
div
>
<
TextField
<
TextField
className
=
{
classes
.
margin
}
className
=
{
classes
.
margin
}
id
=
"tel"
id
=
"tel"
...
@@ -233,6 +252,10 @@ class Datashop extends Component {
...
@@ -233,6 +252,10 @@ class Datashop extends Component {
}}
}}
onChange
=
{
this
.
handleChange
}
onChange
=
{
this
.
handleChange
}
/
>
/
>
<
/div
>
<
br
/>
<
div
>
<
TextField
<
TextField
className
=
{
classes
.
margin
}
className
=
{
classes
.
margin
}
id
=
"detail"
id
=
"detail"
...
@@ -250,9 +273,6 @@ class Datashop extends Component {
...
@@ -250,9 +273,6 @@ class Datashop extends Component {
}}
}}
onChange
=
{
this
.
handleChange
}
onChange
=
{
this
.
handleChange
}
/
>
/
>
<
/div
>
<
br
/>
<
div
>
<
TextField
<
TextField
className
=
{
classes
.
margin
}
className
=
{
classes
.
margin
}
id
=
"map"
id
=
"map"
...
@@ -330,6 +350,7 @@ class Datashop extends Component {
...
@@ -330,6 +350,7 @@ class Datashop extends Component {
axios
axios
.
post
(
"http://localhost:9000/api/shop/add"
,
{
.
post
(
"http://localhost:9000/api/shop/add"
,
{
name
:
name
,
name
:
name
,
nameeng
:
nameeng
,
timeopen
:
timeopen
,
timeopen
:
timeopen
,
timeclose
:
timeclose
,
timeclose
:
timeclose
,
tel
:
tel
,
tel
:
tel
,
...
...
b_beauty_project/src/views/HomePage/index.js
View file @
69157781
...
@@ -22,7 +22,7 @@ import { injectIntl, FormattedRelativeTime } from "react-intl";
...
@@ -22,7 +22,7 @@ import { injectIntl, FormattedRelativeTime } from "react-intl";
import
{
th
}
from
"date-fns/locale"
;
import
{
th
}
from
"date-fns/locale"
;
import
{
format
}
from
"date-fns"
;
import
{
format
}
from
"date-fns"
;
import
MenuIcon
from
"@material-ui/icons/Menu"
;
import
MenuIcon
from
"@material-ui/icons/Menu"
;
import
axios
from
"axios"
;
import
SearchIcon
from
"@material-ui/icons/Search"
;
import
SearchIcon
from
"@material-ui/icons/Search"
;
import
DirectionsIcon
from
"@material-ui/icons/Directions"
;
import
DirectionsIcon
from
"@material-ui/icons/Directions"
;
import
ListIcon
from
"@material-ui/icons/List"
;
import
ListIcon
from
"@material-ui/icons/List"
;
...
@@ -63,34 +63,64 @@ const styles = theme => ({
...
@@ -63,34 +63,64 @@ const styles = theme => ({
justifyContent
:
"center"
justifyContent
:
"center"
}
}
});
});
const
currencieslist
=
[
{
value
:
"1"
,
label
:
" กรุณาเลือกรายการ "
},
{
value
:
"2"
,
label
:
"อบไอน้ำ 30 นาที"
},
{
value
:
"3"
,
label
:
"นวดหน้า 60 นาที "
},
{
value
:
"4"
,
label
:
"สระได 20 นาที"
},
{
value
:
"5"
,
label
:
"ทำเล็บ 60 นาที"
},
{
value
:
"6"
,
label
:
"ยืดผมถาวร 120 นาที"
},
{
value
:
"7"
,
label
:
"ทำสีผม 60 นาที"
}
];
const
currencies
=
[
const
currencies
=
[
{
{
value
:
"1"
,
value
:
"1"
,
label
:
" กรุณาเลือก
ประเภท
"
label
:
" กรุณาเลือก
ช่าง
"
},
},
{
{
value
:
"2"
,
value
:
"2"
,
label
:
"
สปาและนวด
"
label
:
"
ช่าง ก
"
},
},
{
{
value
:
"3"
,
value
:
"3"
,
label
:
"
ผิวหน้า
"
label
:
"
ช่าง ข
"
},
},
{
{
value
:
"4"
,
value
:
"4"
,
label
:
"
ขนตาและคิ้ว
"
label
:
"
ช่าง ค
"
},
},
{
{
value
:
"5"
,
value
:
"5"
,
label
:
"
ทำเล็บ
"
label
:
"
ช่าง ง
"
},
},
{
{
value
:
"6"
,
value
:
"6"
,
label
:
"ช
าลอน
"
label
:
"ช
่าง จ
"
},
},
{
{
value
:
"7"
,
value
:
"7"
,
label
:
"
แต่งหน้าทำผม
"
label
:
"
ช่าง
"
}
}
];
];
class
HomePage
extends
Component
{
class
HomePage
extends
Component
{
...
@@ -99,7 +129,8 @@ class HomePage extends Component {
...
@@ -99,7 +129,8 @@ class HomePage extends Component {
date
:
new
Date
(),
date
:
new
Date
(),
open
:
false
,
open
:
false
,
list
:
false
,
list
:
false
,
rating
:
0
rating
:
0
,
shops
:
[]
};
};
handleClickOpen
=
()
=>
{
handleClickOpen
=
()
=>
{
this
.
setState
({
this
.
setState
({
...
@@ -122,7 +153,7 @@ class HomePage extends Component {
...
@@ -122,7 +153,7 @@ class HomePage extends Component {
});
});
};
};
componentDidMount
=
()
=>
{
componentDidMount
=
async
()
=>
{
let
{
pathname
}
=
this
.
props
.
location
;
let
{
pathname
}
=
this
.
props
.
location
;
pathname
=
pathname
.
substring
(
1
,
pathname
.
length
);
pathname
=
pathname
.
substring
(
1
,
pathname
.
length
);
// console.log('pathname', pathname)
// console.log('pathname', pathname)
...
@@ -142,8 +173,12 @@ class HomePage extends Component {
...
@@ -142,8 +173,12 @@ class HomePage extends Component {
:
0
;
:
0
;
// 7
// 7
const
response
=
await
axios
.
get
(
"http://localhost:9000/api/shop/all"
);
console
.
warn
(
response
.
data
)
this
.
setState
({
this
.
setState
({
tab
:
tab
tab
:
tab
,
shops
:
response
.
data
});
});
};
};
...
@@ -177,7 +212,7 @@ class HomePage extends Component {
...
@@ -177,7 +212,7 @@ class HomePage extends Component {
const
{
classes
}
=
this
.
props
;
const
{
classes
}
=
this
.
props
;
// const tab = this.state.tab;
// const tab = this.state.tab;
// หรือ
// หรือ
const
{
tab
,
date
,
open
,
list
,
value
,
rating
}
=
this
.
state
;
const
{
tab
,
date
,
open
,
list
,
value
,
rating
,
shops
}
=
this
.
state
;
return
(
return
(
<
div
>
<
div
>
<
AppBra
tab
=
{
tab
}
handleChangeTab
=
{
this
.
handleChangeTab
}
/
>
<
AppBra
tab
=
{
tab
}
handleChangeTab
=
{
this
.
handleChangeTab
}
/
>
...
@@ -214,6 +249,7 @@ class HomePage extends Component {
...
@@ -214,6 +249,7 @@ class HomePage extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
{
shops
.
map
(
shop
=>
<
div
className
=
"row mt-5 mb-2 "
>
<
div
className
=
"row mt-5 mb-2 "
>
<
div
className
=
"col s12 m6 l6"
>
<
div
className
=
"col s12 m6 l6"
>
<
div
className
=
"row mt-3 mb-2 center"
>
<
div
className
=
"row mt-3 mb-2 center"
>
...
@@ -221,7 +257,7 @@ class HomePage extends Component {
...
@@ -221,7 +257,7 @@ class HomePage extends Component {
src
=
"https://www.smeleader.com/wp-content/uploads/2018/05/%E0%B9%81%E0%B8%9F%E0%B8%A3%E0%B8%99%E0%B9%84%E0%B8%8A%E0%B8%AA%E0%B9%8C%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%AA%E0%B8%A3%E0%B8%B4%E0%B8%A1%E0%B8%AA%E0%B8%A7%E0%B8%A2-%E0%B8%A3%E0%B8%A7%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%A3%E0%B8%99%E0%B8%94%E0%B9%8C%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B8%8B%E0%B8%B2%E0%B8%A5%E0%B8%AD%E0%B8%99-%E0%B8%AA%E0%B8%B2%E0%B8%99%E0%B8%9D%E0%B8%B1%E0%B8%99%E0%B8%98%E0%B8%B8%E0%B8%A3%E0%B8%81%E0%B8%B4%E0%B8%88%E0%B8%97%E0%B8%A3%E0%B8%87%E0%B8%9C%E0%B8%A1.jpg"
src
=
"https://www.smeleader.com/wp-content/uploads/2018/05/%E0%B9%81%E0%B8%9F%E0%B8%A3%E0%B8%99%E0%B9%84%E0%B8%8A%E0%B8%AA%E0%B9%8C%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%AA%E0%B8%A3%E0%B8%B4%E0%B8%A1%E0%B8%AA%E0%B8%A7%E0%B8%A2-%E0%B8%A3%E0%B8%A7%E0%B8%A1%E0%B9%81%E0%B8%9A%E0%B8%A3%E0%B8%99%E0%B8%94%E0%B9%8C%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B8%8B%E0%B8%B2%E0%B8%A5%E0%B8%AD%E0%B8%99-%E0%B8%AA%E0%B8%B2%E0%B8%99%E0%B8%9D%E0%B8%B1%E0%B8%99%E0%B8%98%E0%B8%B8%E0%B8%A3%E0%B8%81%E0%B8%B4%E0%B8%88%E0%B8%97%E0%B8%A3%E0%B8%87%E0%B8%9C%E0%B8%A1.jpg"
width
=
"60%"
width
=
"60%"
onClick
=
{()
=>
{
onClick
=
{()
=>
{
this
.
props
.
history
.
push
(
"/ShopPage"
);
this
.
props
.
history
.
push
(
"/ShopPage"
,
{
id
:
shop
.
id
}
);
}}
}}
/
>
/
>
<
/div
>
<
/div
>
...
@@ -229,12 +265,12 @@ class HomePage extends Component {
...
@@ -229,12 +265,12 @@ class HomePage extends Component {
<
div
className
=
"col s12 m6 l4"
>
<
div
className
=
"col s12 m6 l4"
>
<
div
className
=
"row mt-2 mb-2"
>
<
div
className
=
"row mt-2 mb-2"
>
<
h3
>
น้องใหม่บิวตี้
NongMai
Beauty
<
/h3
>
<
h3
>
{
shops
.
name
}
<
/h3
>
<
/div
>
<
/div
>
<
div
className
=
"row mt-2 mb-2"
>
<
div
className
=
"row mt-2 mb-2"
>
ที่อยู่
:
10
หมู่
1
บ้านโพนเมือง
ตำบลโพนเมือง
อำเภอเหล่าเสือโก้ก
{
shops
.
address
}
จังหวัดอุบลราชธานี
34000
<
/div
>
<
/div
>
<
div
className
=
"row mt-3 mb-2"
>
<
div
className
=
"row mt-3 mb-2"
>
...
@@ -329,11 +365,11 @@ class HomePage extends Component {
...
@@ -329,11 +365,11 @@ class HomePage extends Component {
)
)
}}
}}
>
>
{
/* {currencies
.map(option => (
{
currencieslist
.
map
(
option
=>
(
<
option
key
=
{
option
.
value
}
value
=
{
option
.
value
}
>
<
option
key
=
{
option
.
value
}
value
=
{
option
.
value
}
>
{
option
.
label
}
{
option
.
label
}
<
/option
>
<
/option
>
))} */
}
))
}
<
/TextField
>
<
/TextField
>
<
TextField
<
TextField
className
=
{
classes
.
margin
}
className
=
{
classes
.
margin
}
...
@@ -354,11 +390,11 @@ class HomePage extends Component {
...
@@ -354,11 +390,11 @@ class HomePage extends Component {
)
)
}}
}}
>
>
{
/*
{currencies.map(option => (
{
currencies
.
map
(
option
=>
(
<
option
key
=
{
option
.
value
}
value
=
{
option
.
value
}
>
<
option
key
=
{
option
.
value
}
value
=
{
option
.
value
}
>
{
option
.
label
}
{
option
.
label
}
<
/option
>
<
/option
>
))} */
}
))
}
<
/TextField
>
<
/TextField
>
<
/DialogContentText
>
<
/DialogContentText
>
<
/DialogContent
>
<
/DialogContent
>
...
@@ -374,6 +410,7 @@ class HomePage extends Component {
...
@@ -374,6 +410,7 @@ class HomePage extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)
}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
);
);
...
...
b_beauty_project/src/views/ShopPage/index.js
View file @
69157781
...
@@ -20,7 +20,7 @@ import {
...
@@ -20,7 +20,7 @@ import {
DialogTitle
,
DialogTitle
,
InputAdornment
,
InputAdornment
,
TextField
,
TextField
,
InputBase
,
InputBase
}
from
"@material-ui/core"
;
}
from
"@material-ui/core"
;
import
MoreVertIcon
from
"@material-ui/icons/MoreVert"
;
import
MoreVertIcon
from
"@material-ui/icons/MoreVert"
;
import
{
DatePicker
}
from
"@material-ui/pickers"
;
import
{
DatePicker
}
from
"@material-ui/pickers"
;
...
@@ -70,15 +70,76 @@ const styles = theme => ({
...
@@ -70,15 +70,76 @@ const styles = theme => ({
right
:
theme
.
spacing
(
2
)
right
:
theme
.
spacing
(
2
)
}
}
});
});
const
currencieslist
=
[
{
value
:
"1"
,
label
:
" กรุณาเลือกรายการ "
},
{
value
:
"2"
,
label
:
"อบไอน้ำ 30 นาที"
},
{
value
:
"3"
,
label
:
"นวดหน้า 60 นาที "
},
{
value
:
"4"
,
label
:
"สระได 20 นาที"
},
{
value
:
"5"
,
label
:
"ทำเล็บ 60 นาที"
},
{
value
:
"6"
,
label
:
"ยืดผมถาวร 120 นาที"
},
{
value
:
"7"
,
label
:
"ทำสีผม 60 นาที"
}
];
const
currencies
=
[
{
value
:
"1"
,
label
:
" กรุณาเลือกช่าง "
},
{
value
:
"2"
,
label
:
"ช่าง ก"
},
{
value
:
"3"
,
label
:
"ช่าง ข"
},
{
value
:
"4"
,
label
:
"ช่าง ค"
},
{
value
:
"5"
,
label
:
"ช่าง ง"
},
{
value
:
"6"
,
label
:
"ช่าง จ"
},
{
value
:
"7"
,
label
:
"ช่าง"
}
];
class
ShopPage
extends
Component
{
class
ShopPage
extends
Component
{
state
=
{
state
=
{
name
:
"xxx"
,
email
:
"xyz.ggg.com"
,
reviwe
:
false
,
reviwe
:
false
,
list
:
false
,
list
:
false
,
date
:
new
Date
(),
date
:
new
Date
(),
open
:
false
,
open
:
false
,
data
:
false
queue
:
false
,
shop
:
null
};
};
handleClickOpen
=
()
=>
{
handleClickOpen
=
()
=>
{
this
.
setState
({
this
.
setState
({
...
@@ -110,58 +171,40 @@ class ShopPage extends Component {
...
@@ -110,58 +171,40 @@ class ShopPage extends Component {
list
:
false
list
:
false
});
});
};
};
ClickOpen
data
=
()
=>
{
ClickOpen
queue
=
()
=>
{
this
.
setState
({
this
.
setState
({
data
:
true
queue
:
true
});
});
};
};
Close
data
=
()
=>
{
Close
queue
=
()
=>
{
this
.
setState
({
this
.
setState
({
data
:
false
queue
:
false
});
});
};
};
componentDidMount
=
()
=>
{
componentDidMount
=
async
()
=>
{
axios
const
{
location
}
=
this
.
props
;
.
get
(
"http://localhost:9000/api/auth/getUserById/7"
)
const
id
=
location
.
state
.
id
;
.
then
(
function
(
response
)
{
const
response
=
await
axios
.
get
(
`http://localhost:9000/api/shop/getShopId/
${
id
}
`
);
// handle success
// console.log("response : ", response.data);
// const name = response.data.name;
// const email = response.data.email;
const
{
name
,
email
}
=
response
.
data
;
console
.
log
(
"name : "
,
name
);
console
.
log
(
"email : "
,
email
);
this
.
setState
({
this
.
setState
({
name
:
name
,
shop
:
response
.
data
email
:
email
});
});
})
.
catch
(
function
(
error
)
{
// handle error
console
.
log
(
error
);
});
console
.
log
(
"here"
);
};
};
render
()
{
render
()
{
const
{
classes
}
=
this
.
props
;
const
{
classes
}
=
this
.
props
;
const
bull
=
<
span
className
=
{
classes
.
bullet
}
>
•
<
/span>
;
const
bull
=
<
span
className
=
{
classes
.
bullet
}
>
•
<
/span>
;
const
{
name
,
email
,
reviwe
,
list
,
date
,
open
,
data
}
=
this
.
state
;
const
{
shop
,
reviwe
,
list
,
date
,
open
,
queue
}
=
this
.
state
;
return
(
return
(
<
div
>
<
div
>
<
AppBar
/>
<
AppBar
/>
<
div
className
=
"row
"
>
{
shop
&&
<
div
className
=
"row
"
>
<
div
className
=
"row mt-2 mb-2"
>
<
div
className
=
"row mt-2 mb-2"
>
<
div
className
=
"col s12 m6 l1"
><
/div
>
<
div
className
=
"col s12 m6 l1"
><
/div
>
<
div
className
=
"col s12 m6 l11"
>
<
div
className
=
"col s12 m6 l11"
>
<
h3
>
น้องใหม่บิวตี้
NongMai
Beauty
<
/h3
>
<
h3
>
{
shop
.
name
}
<
/h3
>
10
หมู่
1
บ้านโพนเมือง
ตำบลโพนเมือง
อำเภอเหล่าเสือโก้ก
{
shop
.
address
}
จังหวัดอุบลราชธานี
34000
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"row mt-4 mb-2"
>
<
div
className
=
"row mt-4 mb-2"
>
...
@@ -240,15 +283,15 @@ class ShopPage extends Component {
...
@@ -240,15 +283,15 @@ class ShopPage extends Component {
<
Button
<
Button
variant
=
"outlined"
variant
=
"outlined"
color
=
"primary"
color
=
"primary"
onClick
=
{
this
.
ClickOpen
data
}
onClick
=
{
this
.
ClickOpen
queue
}
>
>
ถัดไป
ถัดไป
<
/Button
>
<
/Button
>
<
/DialogActions
>
<
/DialogActions
>
<
/Dialog
>
<
/Dialog
>
<
Dialog
<
Dialog
open
=
{
data
}
open
=
{
queue
}
onClose
=
{
this
.
Close
data
}
onClose
=
{
this
.
Close
queue
}
aria
-
labelledby
=
"max-width-dialog-title"
aria
-
labelledby
=
"max-width-dialog-title"
>
>
<
DialogTitle
id
=
"max-width-dialog-title"
>
<
DialogTitle
id
=
"max-width-dialog-title"
>
...
@@ -275,12 +318,12 @@ class ShopPage extends Component {
...
@@ -275,12 +318,12 @@ class ShopPage extends Component {
)
)
}}
}}
>
>
{
/* {currencies
.map(option => (
{
currencieslist
.
map
(
option
=>
(
<
option
key
=
{
option
.
value
}
value
=
{
option
.
value
}
>
<
option
key
=
{
option
.
value
}
value
=
{
option
.
value
}
>
{
option
.
label
}
{
option
.
label
}
<
/option
>
<
/option
>
))}
*/
}
))}
<
/TextField>
 
;
<
/TextField>
 
;
<
TextField
<
TextField
className
=
{
classes
.
margin
}
className
=
{
classes
.
margin
}
id
=
"list"
id
=
"list"
...
@@ -300,19 +343,19 @@ class ShopPage extends Component {
...
@@ -300,19 +343,19 @@ class ShopPage extends Component {
)
)
}}
}}
>
>
{
/* {
currencies.map(option => (
{
currencies
.
map
(
option
=>
(
<
option
key
=
{
option
.
value
}
value
=
{
option
.
value
}
>
<
option
key
=
{
option
.
value
}
value
=
{
option
.
value
}
>
{
option
.
label
}
{
option
.
label
}
<
/option
>
<
/option
>
))}
*/
}
))}
<
/TextField
>
<
/TextField
>
<
/DialogContentText
>
<
/DialogContentText
>
<
/DialogContent
>
<
/DialogContent
>
<
DialogActions
>
<
DialogActions
>
<
Button
onClick
=
{
this
.
Close
data
}
color
=
"primary"
>
<
Button
onClick
=
{
this
.
Close
queue
}
color
=
"primary"
>
Cancel
Cancel
<
/Button
>
<
/Button
>
<
Button
onClick
=
{
this
.
Close
data
}
color
=
"primary"
>
<
Button
onClick
=
{
this
.
Close
queue
}
color
=
"primary"
>
Subscribe
Subscribe
<
/Button
>
<
/Button
>
<
/DialogActions
>
<
/DialogActions
>
...
@@ -331,15 +374,14 @@ class ShopPage extends Component {
...
@@ -331,15 +374,14 @@ class ShopPage extends Component {
<
/div
>
<
/div
>
<
div
className
=
"row"
>
<
div
className
=
"row"
>
<
h4
>
<
h4
>
ที่อยู่
:
10
หมู่
1
บ้านโพนเมือง
ตำบลโพนเมือง
{
shop
.
address
}
อำเภอเหล่าเสือโก้ก
จังหวัดอุบลราชธานี
34000
<
/h4
>
<
/h4
>
<
/div
>
<
/div
>
<
div
className
=
"row"
>
<
div
className
=
"row"
>
<
h4
>
เบอร์โทร
:
082
-
547
-
8955
<
/h4
>
<
h4
>
เบอร์โทร
:
{
shop
.
tel
}
<
/h4
>
<
h4
>
เวลาเปิด
:
08
:
00
น
.
<
/h4
>
<
h4
>
เวลาเปิด
:
{
shop
.
timeopen
}
น
.
<
/h4
>
<
h4
>
เวลาปิด
:
18
:
00
น
.
<
/h4
>
<
h4
>
เวลาปิด
:
{
shop
.
timeclose
}
น
.
<
/h4
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -347,7 +389,6 @@ class ShopPage extends Component {
...
@@ -347,7 +389,6 @@ class ShopPage extends Component {
<
div
className
=
"row mt-2 mb-2"
>
<
div
className
=
"row mt-2 mb-2"
>
<
div
className
=
"col s12 m6 l7"
>
<
div
className
=
"col s12 m6 l7"
>
<
div
className
=
"row center"
>
<
div
className
=
"row center"
>
<
h4
>
ผลงานช่าง
ปิยพร
อาภรศรี
<
/h4
>
<
h4
>
ผลงานช่าง
ปิยพร
อาภรศรี
<
/h4
>
<
div
className
=
"col s12 m6 l4"
>
<
div
className
=
"col s12 m6 l4"
>
<
img
src
=
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSAaEt_unwBuDLyqCP_bW3PBawVHkjZrNq-F3u7mAKtSjmBTrHE"
><
/img
>
<
img
src
=
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSAaEt_unwBuDLyqCP_bW3PBawVHkjZrNq-F3u7mAKtSjmBTrHE"
><
/img
>
...
@@ -355,7 +396,6 @@ class ShopPage extends Component {
...
@@ -355,7 +396,6 @@ class ShopPage extends Component {
<
div
className
=
"col s12 m6 l4"
>
<
div
className
=
"col s12 m6 l4"
>
<
img
src
=
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSAaEt_unwBuDLyqCP_bW3PBawVHkjZrNq-F3u7mAKtSjmBTrHE"
><
/img
>
<
img
src
=
"https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSAaEt_unwBuDLyqCP_bW3PBawVHkjZrNq-F3u7mAKtSjmBTrHE"
><
/img
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"col s12 m6 l1"
><
/div
>
<
div
className
=
"col s12 m6 l1"
><
/div
>
...
@@ -443,7 +483,7 @@ class ShopPage extends Component {
...
@@ -443,7 +483,7 @@ class ShopPage extends Component {
onClose
=
{
this
.
handleClose
}
onClose
=
{
this
.
handleClose
}
aria
-
labelledby
=
"form-dialog-title"
aria
-
labelledby
=
"form-dialog-title"
>
>
<
DialogTitle
id
=
"form-dialog-title"
>
Subscribe
<
/DialogTitle
>
<
DialogTitle
id
=
"form-dialog-title"
>
เขียนรีวิวติชม
<
/DialogTitle
>
<
DialogContent
>
<
DialogContent
>
<
DialogContentText
>
<
DialogContentText
>
To
subscribe
to
this
website
,
please
enter
your
email
To
subscribe
to
this
website
,
please
enter
your
email
...
@@ -463,6 +503,7 @@ class ShopPage extends Component {
...
@@ -463,6 +503,7 @@ class ShopPage extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
}
<
/div
>
<
/div
>
);
);
}
}
...
...
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