Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
5d8573fa
Commit
5d8573fa
authored
Sep 05, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组合票样式修改
parent
c4e53868
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
albumOrderdetail.vue
pages/album/albumOrderdetail/albumOrderdetail.vue
+1
-0
combinationProduct.vue
pages/scenic/combinationProduct/combinationProduct.vue
+20
-13
No files found.
pages/album/albumOrderdetail/albumOrderdetail.vue
View file @
5d8573fa
...
...
@@ -245,6 +245,7 @@ export default {
},
//---下载方法
downloadFun
(
imgUrl
)
{
console
.
log
(
imgUrl
)
uni
.
showLoading
({
title
:
'下载中'
,
mask
:
true
...
...
pages/scenic/combinationProduct/combinationProduct.vue
View file @
5d8573fa
...
...
@@ -85,7 +85,7 @@
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<u-waterfall
v-model=
"albumList"
style=
"padding-top: 8rpx;"
>
<u-waterfall
v-model=
"albumList"
class=
"waterfall"
style=
"padding-top: 8rpx;"
>
<
template
v-slot:left=
"{leftList}"
>
<view
v-for=
"(item, index) in leftList"
:key=
"index"
class=
"album-left"
@
click=
"goAlbum(index)"
>
<view
class=
"album-list-top"
>
...
...
@@ -128,10 +128,10 @@
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<u-empty
text=
"空空如也
3
..."
mode=
"list"
></u-empty>
<u-empty
text=
"空空如也..."
mode=
"list"
></u-empty>
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<u-empty
text=
"空空如也
4
..."
mode=
"list"
></u-empty>
<u-empty
text=
"空空如也..."
mode=
"list"
></u-empty>
</swiper-item>
</swiper>
</view>
...
...
@@ -338,6 +338,12 @@ export default {
//---导航栏切换
tabbarChange
(
index
)
{
this
.
active
=
index
if
(
index
==
0
){
this
.
countSwiper
()
}
if
(
index
==
1
){
this
.
countSwiper
(
'waterfall'
)
}
},
//---swiper滑动结束,分别设置tabs和swiper的状态
animationfinish
(
e
)
{
...
...
@@ -383,28 +389,26 @@ export default {
this
.
$refs
.
detail
.
showPop
=
true
},
//计算第一个swiper高度
countSwiper1
(){
countSwiper
(
label
){
let
labels
=
label
||
'checkbox-box'
this
.
$nextTick
(()
=>
{
const
query
=
uni
.
createSelectorQuery
().
in
(
this
)
query
.
select
(
'.checkbox-box'
)
.
boundingClientRect
(
data
=>
{
this
.
swiperHeight
=
data
.
height
})
.
exec
()
query
.
select
(
`.
${
labels
}
`
).
boundingClientRect
(
data
=>
{
this
.
swiperHeight
=
data
.
height
}).
exec
()
})
},
//---展示更多产品
showMoreProduct
(
item
)
{
item
.
productListCopy
=
item
.
productList
this
.
$forceUpdate
()
this
.
countSwiper
1
()
this
.
countSwiper
()
},
//---收起产品
retractProduct
(
item
)
{
item
.
productListCopy
=
item
.
productList
.
slice
(
0
,
2
)
this
.
$forceUpdate
()
this
.
countSwiper
1
()
this
.
countSwiper
()
},
//---多选框变化
checkboxChange
(
e
)
{
...
...
@@ -521,7 +525,7 @@ export default {
})
})
this
.
$nextTick
(()
=>
{
this
.
countSwiper
1
()
this
.
countSwiper
()
})
}
else
{
uni
.
showToast
({
...
...
@@ -865,4 +869,7 @@ export default {
.swiper-item
/
deep
/
.u-waterfall
{
padding-top
:
8rpx
;
}
.swiper-item
/
deep
/
.u-empty
{
height
:
300px
;
}
</
style
>
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