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
2581c2ae
Commit
2581c2ae
authored
Apr 26, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完工组件&&相机组件修改
parent
5cfa8f92
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
187 additions
and
166 deletions
+187
-166
classify.data.js
src/common/classify.data.js
+20
-44
XhFiles.vue
src/components/createCom/XhFiles.vue
+24
-4
XhLocation.vue
src/components/createCom/XhLocation.vue
+1
-1
preview.vue
src/components/photo/preview.vue
+11
-30
index.vue
src/components/take/index.vue
+2
-1
pages.json
src/pages.json
+2
-2
complete.vue
src/pages/order/complete.vue
+127
-84
No files found.
src/common/classify.data.js
View file @
2581c2ae
...
@@ -68,7 +68,7 @@ export default [{
...
@@ -68,7 +68,7 @@ export default [{
"fieldsTitle"
:
"电缆"
,
"fieldsTitle"
:
"电缆"
,
"fieldsName"
:
"file"
,
"fieldsName"
:
"file"
,
"fieldsType"
:
"file"
,
"fieldsType"
:
"file"
,
"key"
:
"
短裙
"
,
"key"
:
"
电缆
"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/5.jpg"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/5.jpg"
,
"cat"
:
10
"cat"
:
10
},
},
...
@@ -76,7 +76,7 @@ export default [{
...
@@ -76,7 +76,7 @@ export default [{
"fieldsTitle"
:
"管材"
,
"fieldsTitle"
:
"管材"
,
"fieldsName"
:
"file"
,
"fieldsName"
:
"file"
,
"fieldsType"
:
"file"
,
"fieldsType"
:
"file"
,
"key"
:
"
短裙
"
,
"key"
:
"
管材
"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/5.jpg"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/5.jpg"
,
"cat"
:
10
"cat"
:
10
},
},
...
@@ -98,54 +98,30 @@ export default [{
...
@@ -98,54 +98,30 @@ export default [{
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/7.jpg"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/7.jpg"
,
"cat"
:
10
"cat"
:
10
},
},
{
//
{
"fieldsTitle"
:
"多级选择"
,
//
"fieldsTitle": "多级选择",
"fieldsName"
:
"mutiPicker"
,
//
"fieldsName": "mutiPicker",
"fieldsType"
:
"mutipicker"
,
//
"fieldsType": "mutipicker",
"required"
:
true
,
//
"required": true,
"key"
:
"妈妈装"
,
//
"key": "妈妈装",
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/8.jpg"
,
//
"icon": "https://cdn.uviewui.com/uview/common/classify/1/8.jpg",
"cat"
:
10
//
"cat": 10
},
//
},
{
//
{
"fieldsTitle"
:
"时间选择"
,
//
"fieldsTitle": "时间选择",
"fieldsName"
:
"time"
,
//
"fieldsName": "time",
"fieldsType"
:
"time"
,
//
"fieldsType": "time",
"required"
:
true
,
//
"required": true,
"key"
:
"牛仔裤"
,
//
"key": "牛仔裤",
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/9.jpg"
,
//
"icon": "https://cdn.uviewui.com/uview/common/classify/1/9.jpg",
"cat"
:
10
//
"cat": 10
},
//
},
{
{
"fieldsTitle"
:
"备注"
,
"fieldsTitle"
:
"备注"
,
"key"
:
"备注"
,
"key"
:
"备注"
,
"fieldsType"
:
"textarea"
,
"fieldsType"
:
"textarea"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/10.jpg"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/10.jpg"
,
"cat"
:
10
"cat"
:
10
},
{
"fieldsTitle"
:
"休闲裤"
,
"key"
:
"休闲裤"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/11.jpg"
,
"cat"
:
10
},
{
"fieldsTitle"
:
"雪纺衫"
,
"key"
:
"雪纺衫"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/12.jpg"
,
"cat"
:
10
},
{
"fieldsTitle"
:
"防晒衣"
,
"key"
:
"防晒衣"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/13.jpg"
,
"cat"
:
10
},
{
"fieldsTitle"
:
"礼服/婚纱"
,
"key"
:
"礼服婚纱"
,
"icon"
:
"https://cdn.uviewui.com/uview/common/classify/1/14.jpg"
,
"cat"
:
10
}
}
]
]
},
},
...
...
src/components/createCom/XhFiles.vue
View file @
2581c2ae
...
@@ -29,7 +29,11 @@
...
@@ -29,7 +29,11 @@
name
:
'XhFiles'
,
name
:
'XhFiles'
,
components
:
{},
components
:
{},
mixins
:
[
objMixin
,
baseFile
],
mixins
:
[
objMixin
,
baseFile
],
props
:
{},
props
:
{
files
:
{
type
:
Array
,
}
},
filters
:{},
filters
:{},
data
()
{
data
()
{
return
{
return
{
...
@@ -41,7 +45,8 @@
...
@@ -41,7 +45,8 @@
{
{
text
:
'拍照'
text
:
'拍照'
}
}
]
],
takeStatus
:
false
,
}
}
},
},
computed
:
{
computed
:
{
...
@@ -49,7 +54,22 @@
...
@@ -49,7 +54,22 @@
return
this
.
item
.
settings
||
[]
return
this
.
item
.
settings
||
[]
}
}
},
},
watch
:
{},
watch
:
{
'takeStatus'
:
function
(
val
,
oldVal
){
this
.
$emit
(
'getTakeStatus'
,
{
status
:
val
,
index
:
this
.
itemIndex
})
},
'files'
:
{
// 处理相机拍照返回的图片
handler
(
val
)
{
this
.
imgList
=
val
.
map
(
v
=>
{
v
.
path
=
v
.
src
return
v
})
this
.
setValue
()
},
deep
:
true
,
immediate
:
true
,
}
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
selectUpload
(){
selectUpload
(){
...
@@ -79,7 +99,7 @@
...
@@ -79,7 +99,7 @@
return
return
}
}
// 使用拍照工具拍摄
// 使用拍照工具拍摄
this
.
takeStatus
=
true
},
},
setValue
()
{
setValue
()
{
const
dataValue
=
[]
const
dataValue
=
[]
...
...
src/components/createCom/XhLocation.vue
View file @
2581c2ae
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
let
str
=
''
let
str
=
''
const
dataValue
=
this
.
dataValue
const
dataValue
=
this
.
dataValue
if
(
dataValue
&&
dataValue
.
length
>
1
){
if
(
dataValue
&&
dataValue
.
length
>
1
){
str
=
'经度:'
+
dataValue
[
0
]
+
','
+
'维度:'
+
dataValue
[
1
]
str
=
'经度:'
+
dataValue
[
0
]
.
toFixed
(
4
)
+
','
+
'纬度:'
+
dataValue
[
1
].
toFixed
(
4
)
}
}
return
str
return
str
},
},
...
...
src/components/photo/preview.vue
View file @
2581c2ae
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
standardId
:
''
,
standardId
:
''
,
images
:
[],
images
:
[],
files
:
[],
files
:
[],
fileMaps
:
[],
keys
:
[],
keys
:
[],
token
:
''
,
token
:
''
,
product
:
''
,
product
:
''
,
...
@@ -74,7 +73,7 @@
...
@@ -74,7 +73,7 @@
})
})
}
}
}
}
photo
.
allImages
.
unshift
(
photo
.
tempPath
.
mixWater
)
if
(
photo
.
currentItem
){
if
(
photo
.
currentItem
){
photo
.
currentItem
.
imageList
.
unshift
(
photo
.
tempPath
.
mixWater
)
photo
.
currentItem
.
imageList
.
unshift
(
photo
.
tempPath
.
mixWater
)
}
}
...
@@ -139,34 +138,16 @@
...
@@ -139,34 +138,16 @@
self
.
confirmUpload
(
true
)
self
.
confirmUpload
(
true
)
},
},
submitFile
()
{
submitFile
()
{
let
self
=
this
const
photo
=
getApp
().
globalData
.
photo
if
(
self
.
keys
.
length
)
{
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
for
(
let
s
of
self
.
keys
)
{
uni
.
hideLoading
()
self
.
$u
.
api
.
saveImage
({
// 当前项的图片显示
"token"
:
self
.
token
,
// 拍照项张数目增加 等于10张
"standardId"
:
self
.
standardId
,
photo
.
allImages
.
unshift
(
this
.
fileMaps
[
0
])
"url"
:
s
,
if
(
photo
.
currentItemLength
<
10
){
}).
then
(
async
res
=>
{
this
.
$emit
(
'changeType'
,
1
)
console
.
log
(
res
,
"云服务保存图片"
);
}
else
{
if
(
res
.
result
.
code
)
{
this
.
$emit
(
'finish'
)
// TODO 参数是否要来回传递
const
photo
=
getApp
().
globalData
.
photo
photo
.
currentItemLength
=
photo
.
currentItemLength
+
1
uni
.
hideLoading
()
// 当前项的图片显示
// 拍照项张数目增加 等于10张
if
(
photo
.
currentItemLength
<
10
){
this
.
$emit
(
'changeType'
,
1
)
}
else
{
this
.
$emit
(
'finish'
)
}
}
else
{
uni
.
showToast
({
title
:
'图片上传失败 '
+
res
.
result
.
msg
})
}
})
}
}
}
},
},
downloadImages
()
{
downloadImages
()
{
...
...
src/components/take/index.vue
View file @
2581c2ae
...
@@ -111,7 +111,8 @@
...
@@ -111,7 +111,8 @@
created
(
e
)
{
created
(
e
)
{
const
photo
=
getApp
().
globalData
.
photo
const
photo
=
getApp
().
globalData
.
photo
getApp
().
trackPage
(
'拍照页'
)
getApp
().
trackPage
(
'拍照页'
)
photo
.
allImages
=
[]
photo
.
allImages
=
[]
photo
.
currentItemLength
=
0
// this.ctx = uni.createCameraContext();
// this.ctx = uni.createCameraContext();
this
.
updateTime
()
this
.
updateTime
()
this
.
getLocation
()
this
.
getLocation
()
...
...
src/pages.json
View file @
2581c2ae
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
"path"
:
"pages/order/complete"
,
"path"
:
"pages/order/complete"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"订单-完工配置"
,
"navigationBarTitleText"
:
"订单-完工配置"
,
"navigation
BarBackgroundColor"
:
"#2272FF
"
,
"navigation
Style"
:
"custom
"
,
"
navigationBarTextStyle"
:
"white"
"
disableScroll"
:
true
}
}
},{
},{
"path"
:
"pages/order/feedback"
,
"path"
:
"pages/order/feedback"
,
...
...
src/pages/order/complete.vue
View file @
2581c2ae
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