Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
ad5a5354
Commit
ad5a5354
authored
Dec 25, 2020
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
选择产品页 选择品牌页 页面搭建
parent
af0189e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
176 additions
and
0 deletions
+176
-0
pages.json
take-order/pages.json
+13
-0
brand.vue
take-order/pages/photo/brand.vue
+80
-0
product.vue
take-order/pages/photo/product.vue
+83
-0
No files found.
take-order/pages.json
View file @
ad5a5354
...
@@ -6,6 +6,19 @@
...
@@ -6,6 +6,19 @@
*/
*/
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/photo/product"
,
"style"
:
{
"navigationBarTitleText"
:
"选择产品"
}
},
{
"path"
:
"pages/photo/brand"
,
"style"
:
{
"navigationBarTitleText"
:
"选择品牌"
}
},
{
{
"path"
:
"pages/photo/try"
,
"path"
:
"pages/photo/try"
,
...
...
take-order/pages/photo/brand.vue
0 → 100644
View file @
ad5a5354
<
template
>
<view
class=
"backView"
>
<text
class=
"topTitle"
>
选择产品
</text>
<view
class=
""
>
<view
class=
"itemView u-m-t-80"
v-for=
"(item,ikey) in brandList"
:key=
"ikey"
>
<text
class=
"itemTitle"
@
click=
"itemClick(item)"
>
{{
item
.
title
}}
</text>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
brandList
:[]
}
},
onLoad
(
e
)
{
this
.
getBrandList
()
},
methods
:
{
getBrandList
:
function
()
{
this
.
brandList
=
[
{
'title'
:
'广汽'
,
'id'
:
0
},
{
'title'
:
'比亚迪'
,
'id'
:
1
}
]
},
//选择 点击
itemClick
:
function
(
item
)
{
},
}
}
</
script
>
<
style
>
.backView
{
background-color
:
#FAFAFA
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.topTitle
{
margin-top
:
80
rpx
;
font-size
:
32
rpx
;
}
.itemView
{
background-color
:
#999999
;
width
:
400
rpx
;
height
:
80
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.itemTitle
{
font-size
:
28
rpx
;
}
</
style
>
take-order/pages/photo/product.vue
0 → 100644
View file @
ad5a5354
<
template
>
<view
class=
"backView"
>
<text
class=
"topTitle"
>
选择产品
</text>
<view
class=
""
>
<view
class=
"itemView u-m-t-80"
v-for=
"(item,ikey) in productList"
:key=
"ikey"
>
<text
class=
"itemTitle"
@
click=
"itemClick(item)"
>
{{
item
.
title
}}
</text>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
productList
:[]
}
},
onLoad
(
e
)
{
this
.
getProductList
()
},
methods
:
{
getProductList
:
function
(){
this
.
productList
=
[
{
'title'
:
'新风机'
,
'id'
:
0
},
{
'title'
:
'充电桩'
,
'id'
:
1
}
]
},
//选择 点击
itemClick
:
function
(
item
)
{
uni
.
navigateTo
({
url
:
'/pages/photo/brand'
})
},
}
}
</
script
>
<
style
>
.backView
{
background-color
:
#FAFAFA
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
}
.topTitle
{
margin-top
:
80
rpx
;
font-size
:
32
rpx
;
}
.itemView
{
background-color
:
#999999
;
width
:
400
rpx
;
height
:
80
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.itemTitle
{
font-size
:
28
rpx
;
}
</
style
>
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