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
ea5bacad
Commit
ea5bacad
authored
Aug 11, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次下载图片 清空上次下载的数据数组
parent
48e19a0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
7 deletions
+27
-7
myPhotoAlbum.vue
pages/album/myPhotoAlbum/myPhotoAlbum.vue
+17
-0
purchasedPhotoAlbum.vue
pages/album/purchasedPhotoAlbum/purchasedPhotoAlbum.vue
+10
-7
No files found.
pages/album/myPhotoAlbum/myPhotoAlbum.vue
View file @
ea5bacad
...
@@ -174,8 +174,25 @@ export default {
...
@@ -174,8 +174,25 @@ export default {
this
.
obtainProvince
()
//获取省市区
this
.
obtainProvince
()
//获取省市区
this
.
inquireMerchant
()
//查询所有商户
this
.
inquireMerchant
()
//查询所有商户
this
.
getPhotos
()
//照片列表
this
.
getPhotos
()
//照片列表
this
.
mearchLoadList
()
},
},
methods
:
{
methods
:
{
mearchLoadList
(){
//调用参数
var
merchantIds
=
[]
merchantIds
.
push
(
this
.
merchantId
)
this
.
$request
(
'scenic/merchantExtendProject/loadList'
,{
merchantIds
:
merchantIds
}).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
option
=
res
.
data
}
else
{
this
.
$refs
.
uToast
.
show
({
title
:
res
.
message
,
type
:
'error'
,
})
}
})
},
obtainProvince
(){
//获取省列表
obtainProvince
(){
//获取省列表
this
.
$request
(
'scenic/search/loadAreaByCity'
,{
this
.
$request
(
'scenic/search/loadAreaByCity'
,{
areaLevel
:
1
,
areaLevel
:
1
,
...
...
pages/album/purchasedPhotoAlbum/purchasedPhotoAlbum.vue
View file @
ea5bacad
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</view>
</view>
<!--主体循环-->
<!--主体循环-->
<
template
v-for=
"(item,index) in previewData"
>
<
view
class=
"album-subjectBox"
v-for=
"(item,index) in previewData"
>
<view
class=
"suject-lable"
:key=
"index"
>
<view
class=
"suject-lable"
:key=
"index"
>
<image
src=
"../static/album/icon01.png"
></image>
<image
src=
"../static/album/icon01.png"
></image>
<view>
{{
item
.
merchantName
}}
</view>
<view>
{{
item
.
merchantName
}}
</view>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<u-checkbox
v-model=
"item2.checkType"
v-if=
"checkTypeFun==true"
@
click
.
stop
.
native=
"()=>
{}" @change="stopPhoto(index,index2)" shape="circle" class="list-uCheck">
</u-checkbox>
<u-checkbox
v-model=
"item2.checkType"
v-if=
"checkTypeFun==true"
@
click
.
stop
.
native=
"()=>
{}" @change="stopPhoto(index,index2)" shape="circle" class="list-uCheck">
</u-checkbox>
</view>
</view>
</view>
</view>
</
template
>
</
view
>
<!--脚部-->
<!--脚部-->
<view
class=
"album-bottom"
>
<view
class=
"album-bottom"
>
...
@@ -212,6 +212,7 @@ export default {
...
@@ -212,6 +212,7 @@ export default {
}
}
},
},
upLoad
(){
//下单
upLoad
(){
//下单
this
.
imgList
=
[]
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
list
.
forEach
((
item2
,
index2
)
=>
{
item
.
list
.
forEach
((
item2
,
index2
)
=>
{
if
(
item2
.
checkType
==
true
){
if
(
item2
.
checkType
==
true
){
...
@@ -312,7 +313,7 @@ export default {
...
@@ -312,7 +313,7 @@ export default {
height
:
100%
;
height
:
100%
;
background-color
:
#F7F7F7
;
background-color
:
#F7F7F7
;
padding-bottom
:
98rpx
;
padding-bottom
:
98rpx
;
padding-top
:
144
rpx
;
padding-top
:
96
rpx
;
overflow
:
auto
;
overflow
:
auto
;
}
}
...
@@ -356,7 +357,12 @@ export default {
...
@@ -356,7 +357,12 @@ export default {
.
album-address
:
:-
webkit-scrollbar
{
.
album-address
:
:-
webkit-scrollbar
{
display
:
none
;
display
:
none
;
}
}
.album-subjectBox
{
display
:
flex
;
flex-direction
:
column
;
flex
:
1
;
overflow
:
auto
;
}
.suject-lable
{
.suject-lable
{
display
:
flex
;
display
:
flex
;
height
:
44rpx
;
height
:
44rpx
;
...
@@ -378,10 +384,7 @@ export default {
...
@@ -378,10 +384,7 @@ export default {
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
justify-content
:
space-between
;
flex
:
1
;
padding
:
0
24rpx
0
24rpx
;
padding
:
0
24rpx
0
24rpx
;
overflow
:
auto
;
.subject-List
{
.subject-List
{
width
:
344rpx
;
width
:
344rpx
;
height
:
344rpx
;
height
:
344rpx
;
...
...
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