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
7ffebf85
Commit
7ffebf85
authored
Dec 25, 2020
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
照片规范列表 页面搭建
parent
ad5a5354
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
193 additions
and
1 deletion
+193
-1
pages.json
take-order/pages.json
+9
-0
brand.vue
take-order/pages/photo/brand.vue
+3
-1
list.vue
take-order/pages/photo/list.vue
+181
-0
No files found.
take-order/pages.json
View file @
7ffebf85
...
...
@@ -6,6 +6,14 @@
*/
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/photo/list"
,
"style"
:
{
"navigationBarTitleText"
:
"规范展示"
}
},
{
"path"
:
"pages/photo/product"
,
"style"
:
{
...
...
@@ -20,6 +28,7 @@
}
},
{
"path"
:
"pages/photo/try"
,
"style"
:
{
...
...
take-order/pages/photo/brand.vue
View file @
7ffebf85
...
...
@@ -37,7 +37,9 @@
//选择 点击
itemClick
:
function
(
item
)
{
uni
.
navigateTo
({
url
:
'/pages/photo/list'
})
},
...
...
take-order/pages/photo/list.vue
0 → 100644
View file @
7ffebf85
<
template
>
<view
class=
"backView"
>
<text
class=
"topTitle"
>
{{
topTitle
}}
</text>
<view
class=
"centerBackView"
>
<view
class=
"leftView"
>
<view
class=
"leftItemView"
v-for=
"(item,ikey) in leftList"
:key=
"ikey"
>
<text
class=
"leftItemText"
>
{{
item
.
title
}}
</text>
</view>
</view>
<view
class=
"rightView"
>
<view
class=
"rightItemView"
v-for=
"(item,ikey) in rightList"
:key=
"ikey"
>
<view
:class=
" item.images ? 'rightContentView width_50' : 'rightContentView width_100' "
>
<text
class=
"rightTitle u-m-t-30 u-m-l-30"
>
{{
item
.
title
}}
(
{{
item
.
photoNumber
}}
张)
</text>
<text
class=
"rightContent u-m-t-30 u-m-l-30"
>
{{
item
.
content
}}
</text>
</view>
<view
class=
"rightImageView"
v-if=
"item.images"
>
<image
class=
"rightImage"
src=
""
mode=
""
></image>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
topTitle
:
''
,
leftList
:[],
rightList
:[],
}
},
onLoad
(
e
)
{
this
.
topTitle
=
'充电桩-北汽'
this
.
getData
()
},
methods
:
{
getData
:
function
(){
this
.
leftList
=
[
{
'title'
:
'回单'
,
'id'
:
0
},
{
'title'
:
'回单'
,
'id'
:
1
},
{
'title'
:
'回单'
,
'id'
:
2
}
]
this
.
rightList
=
[
{
'title'
:
'电源点照片'
,
'photoNumber'
:
4
,
'content'
:
'拍照要求:232拍照要求131拍照要求23拍照要求123拍照要求12'
,
'images'
:[
'asdasdasd.png'
,
'assdasdad.png'
,
'asdsds.png'
]
},
{
'title'
:
'电源点照片'
,
'photoNumber'
:
4
,
'content'
:
'拍照要求:232拍照要求131拍照要求23拍照要求123拍照要求12'
,
'images'
:
null
},
{
'title'
:
'电源点照片'
,
'photoNumber'
:
4
,
'content'
:
'拍照要求:232拍照要求131拍照要求23拍照要求123拍照要求12'
,
'images'
:[
'asdasdasd.png'
,
'assdasdad.png'
,
'asdsds.png'
]
},
]
},
//拨打客服 点击
phoneCallClick
:
function
(
phone
)
{
uni
.
makePhoneCall
({
phoneNumber
:
phone
});
},
}
}
</
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
;
}
.centerBackView
{
display
:
flex
;
flex-direction
:
row
;
margin-top
:
80
rpx
;
width
:
100%
;
}
.leftView
{
background-color
:
#FFFFFF
;
width
:
20%
;
display
:
flex
;
flex-direction
:
column
;
}
.leftItemView
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
height
:
80
rpx
;
border-bottom
:
2
rpx
solid
#F3F3F3
;
}
.leftItemText
{
font-size
:
28
rpx
;
}
.rightView
{
background-color
:
#FFFFFF
;
width
:
80%
;
display
:
flex
;
flex-direction
:
column
;
}
.rightItemView
{
width
:
100%
;
display
:
flex
;
flex-direction
:
row
;
border-bottom
:
20
rpx
solid
#F3F3F3
;
}
.rightContentView
{
display
:
flex
;
flex-direction
:
column
;
border-left
:
2
rpx
solid
#F3F3F3
;
}
.width_50
{
width
:
50%
;
}
.width_100
{
width
:
100%
;
}
.rightTitle
{
font-size
:
28
rpx
;
}
.rightContent
{
font-size
:
28
rpx
;
}
.rightImageView
{
background-color
:
#FFFFFF
;
width
:
50%
;
height
:
240
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.rightImage
{
background-color
:
#F3F3F3
;
width
:
80%
;
height
:
80%
;
}
</
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