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
7979cbef
Commit
7979cbef
authored
Mar 25, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-拍照规范页面
parent
67562e01
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
21 deletions
+23
-21
launch.json
take-order/.hbuilderx/launch.json
+0
-16
standard.vue
take-order/pages/photo/standard.vue
+22
-5
take.vue
take-order/pages/photo/take.vue
+1
-0
No files found.
take-order/.hbuilderx/launch.json
deleted
100644 → 0
View file @
67562e01
{
//
launch.json
配置了启动调试时相关设置,configurations下节点名称可为
app-plus/h
5
/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp
-360
/
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
"version"
:
"0.0"
,
"configurations"
:
[{
"default"
:
{
"launchtype"
:
"remote"
},
"mp-weixin"
:
{
"launchtype"
:
"local"
},
"type"
:
"uniCloud"
}
]
}
take-order/pages/photo/standard.vue
View file @
7979cbef
...
@@ -14,15 +14,14 @@
...
@@ -14,15 +14,14 @@
</view>
</view>
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
class=
"swiper-item"
v-for=
"(src, index) in currentItem.images"
:key=
"index"
>
<swiper-item
class=
"swiper-item"
v-for=
"(src, index) in swiperList"
:key=
"index"
>
<!--
{{
item
.
title
}}
-->
<cover-image
bindtap=
"previewImage(item,index)"
class=
"icon"
mode=
"aspectFit"
:src=
"src"
></cover-image>
<cover-image
bindtap=
"previewImage(item,index)"
class=
"icon"
mode=
"aspectFit"
:src=
"src"
></cover-image>
</swiper-item>
</swiper-item>
</swiper>
</swiper>
<view
class=
"tab-box"
>
<view
class=
"tab-box"
>
<u-tabs-swiper
bg-color=
"transparent"
inactive-color=
"#999"
<u-tabs-swiper
bg-color=
"transparent"
inactive-color=
"#999"
ref=
"uTabs"
:list=
"
l
ist"
:current=
"current"
ref=
"uTabs"
:list=
"
tabL
ist"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
@
change=
"tabsChange"
:is-scroll=
"false"
swiperWidth=
"750"
></u-tabs-swiper>
</view>
</view>
</view>
</view>
...
@@ -44,14 +43,14 @@
...
@@ -44,14 +43,14 @@
},
},
data
()
{
data
()
{
return
{
return
{
l
ist
:
[{
tabL
ist
:
[{
name
:
'十年'
name
:
'十年'
},
{
},
{
name
:
'青春'
name
:
'青春'
},
{
},
{
name
:
'之约'
name
:
'之约'
}],
}],
tabs
:[{
swiperList
:[{
title
:
'记录的距离大家零点九零杰拉德杰拉德建立的连接就111111111111'
,
title
:
'记录的距离大家零点九零杰拉德杰拉德建立的连接就111111111111'
,
},{
},{
title
:
'记录的距离大家零点九零杰拉德杰拉德建立的连接就222222'
,
title
:
'记录的距离大家零点九零杰拉德杰拉德建立的连接就222222'
,
...
@@ -64,6 +63,17 @@
...
@@ -64,6 +63,17 @@
height
:
0
,
height
:
0
,
}
}
},
},
watch
:{
"currentItem.images"
(
val
){
if
(
val
.
length
>
0
){
this
.
changeList
()
// let swiperList = JSON.parse(JSON.stringify(val))
// let len = tabs.length
// let tabList = [{name:'拍照要求'}].concat(Array.from({name:'示意图'},len))
// console.log(tabList,'tabList')
}
},
},
created
()
{
created
()
{
// getApp().trackPage('照片预览页')
// getApp().trackPage('照片预览页')
// console.log(e, 'e')
// console.log(e, 'e')
...
@@ -73,9 +83,16 @@
...
@@ -73,9 +83,16 @@
// console.log(this.images, 'this.images')
// console.log(this.images, 'this.images')
},
},
mounted
(){
mounted
(){
this
.
changeList
(
this
.
currentItem
.
images
)
this
.
getSwiperHeight
()
this
.
getSwiperHeight
()
},
},
methods
:
{
methods
:
{
changeList
(){
let
swiperList
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
let
len
=
tabs
.
length
let
tabList
=
[{
name
:
'拍照要求'
}].
concat
(
Array
.
from
({
name
:
'示意图'
},
len
))
console
.
log
(
tabList
,
'tabList'
)
},
getSwiperHeight
(){
getSwiperHeight
(){
const
globalData
=
getApp
().
globalData
const
globalData
=
getApp
().
globalData
this
.
height
=
globalData
.
screenHeight
*
2
-
globalData
.
navHeight
-
200
this
.
height
=
globalData
.
screenHeight
*
2
-
globalData
.
navHeight
-
200
...
...
take-order/pages/photo/take.vue
View file @
7979cbef
...
@@ -484,6 +484,7 @@
...
@@ -484,6 +484,7 @@
bottom
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
left
:
0
;
right
:
0
;
height
:
200rpx
;
height
:
200rpx
;
z-index
:
100
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
...
...
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