Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
4d4e9ac1
Commit
4d4e9ac1
authored
May 18, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
b7f73c8d
56365876
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
index.vue
src/components/take/index.vue
+9
-1
readme.md
src/components/take/readme.md
+1
-0
detail.vue
src/pages/order/detail.vue
+1
-1
No files found.
src/components/take/index.vue
View file @
4d4e9ac1
...
...
@@ -71,6 +71,12 @@
default
()
{
return
true
}
},
num
:
{
type
:
Number
,
default
()
{
return
10
}
}
},
components
:
{
...
...
@@ -116,7 +122,9 @@
const
photo
=
getApp
().
globalData
.
photo
getApp
().
trackPage
(
'拍照页'
)
photo
.
allImages
=
[]
photo
.
currentItemLength
=
0
const
length
=
(
this
.
num
>
10
||
this
.
num
<
0
||
typeof
this
.
num
!==
'number'
)
?
0
:
10
-
this
.
num
photo
.
currentItemLength
=
length
// this.ctx = uni.createCameraContext();
this
.
updateTime
()
...
...
src/components/take/readme.md
View file @
4d4e9ac1
...
...
@@ -18,6 +18,7 @@ uni.hideTabBar()
| 属性名 | 类型 | 默认值 | 可选值 | 说明 |
| :-: | :-: | :-: | :-: | :-: |
| update | Boolean | true | true/false | 是否默认上传 true:会自动上传好图片并返回绝对路径 false: 只返回临时路径,需要在父组件做上传动作 |
| num | Number | 10 | 1-10 | 拍照数量,只能传1-10的正整数 |
| currentItem | Object | - | - | 对应的规范数据,用于获取示意图和水印,以及保存图片所需的ID
**格式见下文**
|
### currentItem 格式
...
...
src/pages/order/detail.vue
View file @
4d4e9ac1
...
...
@@ -158,7 +158,7 @@
</view>
</view>
</view>
<take-photo
type=
"test"
v-if=
"takeStatus"
@
close=
"closeTake"
></take-photo>
<take-photo
type=
"test"
v-if=
"takeStatus"
@
close=
"closeTake"
:num=
"1"
></take-photo>
<PopView
title=
"查看交互规范"
message=
"为完善交付质量,请查看对应的交付规范"
:visible
.
sync=
"visibale"
@
click=
"handleClick"
/>
</view>
</
template
>
...
...
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