Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoya-agent-program
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqian
xiaoya-agent-program
Commits
6f1ce203
Commit
6f1ce203
authored
Apr 08, 2020
by
18868195926
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 门店详情页面新增
parent
f764dfe5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
+84
-0
index.jsx
src/pages/storeDetail/index.jsx
+55
-0
index.scss
src/pages/storeDetail/index.scss
+29
-0
No files found.
src/pages/storeDetail/index.jsx
0 → 100644
View file @
6f1ce203
import
Taro
,
{
Component
}
from
'@tarojs/taro'
import
{
View
,
Image
,
Text
}
from
'@tarojs/components'
import
{
connect
}
from
'@tarojs/redux'
import
{
setUserInfo
}
from
'@/actions/user'
import
NavBar
from
'@/components/NavBar'
import
'./index.scss'
@
connect
(({
user
,
nav
})
=>
({
user
,
nav
}),
(
dispatch
)
=>
({
setUserInfo
(
data
)
{
dispatch
(
setUserInfo
(
data
||
{}))
},
}))
class
Index
extends
Component
{
state
=
{}
componentWillReceiveProps
(
nextProps
)
{
console
.
log
(
this
.
props
,
nextProps
)
}
componentWillUnmount
()
{
}
componentDidMount
()
{}
componentDidShow
()
{
}
componentDidHide
()
{
}
render
()
{
return
(
<
View
>
<
NavBar
pageName=
'门店'
bgColor=
'#fff'
showBack
></
NavBar
>
<
View
className=
'top'
>
<
Text
>
米雅便利(北京店)
</
Text
>
<
Text
className=
'distance'
>
200m
</
Text
>
</
View
>
<
Image
className=
'head-img'
src=
'https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1586229157&di=6997346b65b0e2e2ff7a733ae9b5fcc5&src=http://a3.att.hudong.com/14/75/01300000164186121366756803686.jpg'
></
Image
>
<
View
className=
'instore-img'
>
<
Text
className=
'instore-img-title'
>
店内环境
</
Text
>
<
Image
className=
'head-img'
src=
'https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1586229157&di=6997346b65b0e2e2ff7a733ae9b5fcc5&src=http://a3.att.hudong.com/14/75/01300000164186121366756803686.jpg'
></
Image
>
</
View
>
<
View
className=
'info-content'
>
<
Text
className=
'info-content-text'
>
营业时间
</
Text
>
<
Text
className=
'info-content-text'
>
10:00 - 18:00
</
Text
>
</
View
>
</
View
>
)
}
}
export
default
Index
src/pages/storeDetail/index.scss
0 → 100644
View file @
6f1ce203
.top
{
position
:
relative
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background-color
:
#ccc
;
padding
:
20px
0
;
.distance
{
position
:
absolute
;
right
:
10px
;
}
}
.head-img
{
width
:
100%
;
height
:
300px
;
}
.instore-img-title
{
display
:
block
;
font-size
:
24px
;
padding
:
10px
0
;
}
.info-content
{
display
:
flex
;
flex-direction
:
column
;
.info-content-text
{
margin
:
10px
0
;
}
}
\ 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