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
d12246c4
Commit
d12246c4
authored
Mar 26, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add-standard-data
parent
f30a6ae3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
+25
-21
standard.vue
take-order/components/photo/standard.vue
+24
-14
take.vue
take-order/pages/photo/take.vue
+1
-7
No files found.
take-order/components/photo/standard.vue
View file @
d12246c4
<
template
>
<
template
>
<
cover-view
class=
"standard-box"
>
<
view
class=
"standard-box"
v-if=
"currentItem"
>
<swiper
class=
"swiper-box"
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
>
<swiper
class=
"swiper-box"
:current=
"swiperCurrent"
@
transition=
"transition"
@
animationfinish=
"animationfinish"
>
<swiper-item
class=
"swiper-item"
key=
"swiper1"
>
<swiper-item
class=
"swiper-item"
key=
"swiper1"
>
<view
class=
"title"
>
<view
class=
"title"
>
拍照要求
拍照要求
</view>
</view>
<view
class=
"txt-box"
>
<view
class=
"txt-box"
>
<view
class=
"txt"
>
<view
class=
"txt"
v-for=
"(txt,index) in currentItem.main_point"
:key=
"index"
>
1.充电桩必须通电,可看到电源指示灯亮
{{
index
+
1
}}
.
{{
txt
}}
</view>
</view>
<view
class=
"txt tips"
>
<view
class=
"txt tips"
>
注意:
人桩合影必须上传至少两张相片,一张
注意:
{{
currentItem
.
note
}}
</view>
</view>
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
class=
"swiper-item"
v-for=
"(src, index) in swiperList"
:key=
"index"
>
<swiper-item
class=
"swiper-item"
v-for=
"(src, index) in swiperList"
:key=
"index"
>
<cover-image
bindtap=
"previewImage(item,
index)"
class=
"icon"
mode=
"aspectFit"
:src=
"src"
></cover-image>
<cover-image
@
click=
"previewImage(
index)"
class=
"icon"
mode=
"aspectFit"
:src=
"src"
></cover-image>
</swiper-item>
</swiper-item>
</swiper>
</swiper>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
ref=
"uTabs"
:list=
"tabList"
:current=
"current"
ref=
"uTabs"
:list=
"tabList"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
</view>
</view>
</
cover-
view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
watch
:{
watch
:{
"currentItem.images"
(
val
){
"currentItem.images"
(
val
){
if
(
val
.
length
>
0
){
if
(
val
.
length
>
0
){
this
.
changeList
()
this
.
changeList
(
val
)
// let swiperList = JSON.parse(JSON.stringify(val))
// let swiperList = JSON.parse(JSON.stringify(val))
// let len = tabs.length
// let len = tabs.length
// let tabList = [{name:'拍照要求'}].concat(Array.from({name:'示意图'},len))
// let tabList = [{name:'拍照要求'}].concat(Array.from({name:'示意图'},len))
...
@@ -87,11 +87,20 @@
...
@@ -87,11 +87,20 @@
this
.
getSwiperHeight
()
this
.
getSwiperHeight
()
},
},
methods
:
{
methods
:
{
changeList
(){
changeList
(
list
){
let
swiperList
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
let
swiperList
=
JSON
.
parse
(
JSON
.
stringify
(
list
))
let
len
=
tabs
.
length
let
len
=
list
.
length
let
tabList
=
[{
name
:
'拍照要求'
}].
concat
(
Array
.
from
({
name
:
'示意图'
},
len
))
let
tabList
=
[]
console
.
log
(
tabList
,
'tabList'
)
for
(
let
i
=
0
;
i
<
len
;
i
++
){
let
item
=
{
name
:
'示意图'
+
(
i
+
1
)
}
tabList
.
push
(
item
)
}
tabList
=
[{
name
:
'拍照要求'
}].
concat
(
tabList
)
this
.
swiperList
=
swiperList
this
.
tabList
=
tabList
},
},
getSwiperHeight
(){
getSwiperHeight
(){
const
globalData
=
getApp
().
globalData
const
globalData
=
getApp
().
globalData
...
@@ -100,7 +109,7 @@
...
@@ -100,7 +109,7 @@
previewImage
(
index
){
previewImage
(
index
){
uni
.
previewImage
({
uni
.
previewImage
({
current
:
index
,
current
:
index
,
urls
:
[]
,
urls
:
this
.
swiperList
,
})
})
},
},
// tabs通知swiper切换
// tabs通知swiper切换
...
@@ -172,6 +181,7 @@
...
@@ -172,6 +181,7 @@
overflow
:
auto
;
overflow
:
auto
;
}
}
.txt
{
.txt
{
white-space
:
normal
;
padding-top
:
26rpx
;
padding-top
:
26rpx
;
line-height
:
34rpx
;
line-height
:
34rpx
;
color
:
#666
;
color
:
#666
;
...
...
take-order/pages/photo/take.vue
View file @
d12246c4
...
@@ -86,13 +86,7 @@
...
@@ -86,13 +86,7 @@
this
.
waterInfo
.
date
=
this
.
getTime
()
this
.
waterInfo
.
date
=
this
.
getTime
()
this
.
getLocation
()
this
.
getLocation
()
this
.
getMarkPath
()
this
.
getMarkPath
()
console
.
log
(
standard
,
'standard'
)
this
.
currentItem
=
photo
.
currentItem
// this.getSystemInfo()
// uni.setNavigationBarColor({
// frontColor: '#FFFFFF',
// backgroundColor: '#333333',
// })
//this.address = ''
},
},
compute
:
{},
compute
:
{},
watch
:
{
watch
:
{
...
...
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