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
2dec7783
Commit
2dec7783
authored
Dec 31, 2020
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preview-photo
parent
8134a94e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
712 additions
and
903 deletions
+712
-903
pages.json
take-order/pages.json
+21
-8
preview.vue
take-order/pages/photo/preview.vue
+18
-1
take.vue
take-order/pages/photo/take.vue
+419
-695
try.vue
take-order/pages/photo/try.vue
+254
-199
No files found.
take-order/pages.json
View file @
2dec7783
...
@@ -62,6 +62,12 @@
...
@@ -62,6 +62,12 @@
"navigationBarTitleText"
:
"选择品牌"
"navigationBarTitleText"
:
"选择品牌"
}
}
},
},
{
"path"
:
"pages/photo/take"
,
"style"
:
{
"navigationBarTitleText"
:
"拍照-ljd"
}
},
...
@@ -89,13 +95,13 @@
...
@@ -89,13 +95,13 @@
{
//
{
"path"
:
"pages/take/index
"
,
//
"path"
:
"pages/take/try
"
,
"style"
:
{
//
"style"
:
{
"navigationBarTitleText"
:
"接单"
,
//
"navigationBarTitleText"
:
"接单"
,
"enablePullDownRefresh"
:
true
//
"enablePullDownRefresh"
:
true
}
//
}
},
//
},
...
@@ -180,9 +186,16 @@
...
@@ -180,9 +186,16 @@
"navigationBarTitleText"
:
"uni-app"
,
"navigationBarTitleText"
:
"uni-app"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
"backgroundColor"
:
"#F8F8F8"
},
"condition"
:
{
//模式配置,仅开发期间生效
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[{
"name"
:
"拍照小工具"
,
//模式名称
"path"
:
"pages/photo/try"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
}]
}
}
}
}
take-order/pages/photo/preview.vue
View file @
2dec7783
<
template
>
<
template
>
<view>
<image
class=
"pic"
:src=
"images[0]"
mode=
"aspectFill"
></image>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -10,10 +12,20 @@
...
@@ -10,10 +12,20 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
console
.
log
(
e
,
'e'
)
if
(
e
.
img
){
this
.
images
=
[
e
.
img
]
}
},
},
methods
:
{
methods
:
{
showPreviewFn
(
img
)
{
uni
.
previewImage
({
current
:
0
,
urls
:
this
.
images
});
},
//拨打客服 点击
//拨打客服 点击
phoneCallClick
:
function
(
phone
)
{
phoneCallClick
:
function
(
phone
)
{
uni
.
makePhoneCall
({
uni
.
makePhoneCall
({
...
@@ -28,4 +40,9 @@
...
@@ -28,4 +40,9 @@
</
script
>
</
script
>
<
style
>
<
style
>
.pic
{
display
:
block
;
width
:
100%
;
height
:
auto
;
}
</
style
>
</
style
>
take-order/pages/photo/take.vue
View file @
2dec7783
This diff is collapsed.
Click to expand it.
take-order/pages/photo/try.vue
View file @
2dec7783
This diff is collapsed.
Click to expand it.
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