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
92df0de8
Commit
92df0de8
authored
Aug 24, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的相册 图片下载
parent
e21c31ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
purchasedPhotoAlbum.vue
pages/album/purchasedPhotoAlbum/purchasedPhotoAlbum.vue
+18
-17
electronicTicket.vue
pages/my/order/electronicTicket/electronicTicket.vue
+8
-3
No files found.
pages/album/purchasedPhotoAlbum/purchasedPhotoAlbum.vue
View file @
92df0de8
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
<view>
{{
item
.
merchantName
}}
</view>
<view>
{{
item
.
merchantName
}}
</view>
</view>
</view>
<view
class=
"album-subject"
>
<view
class=
"album-subject"
>
<view
class=
"subject-List"
v-for=
"(item2,index2) in item.
l
ist"
:key=
"index2"
>
<view
class=
"subject-List"
v-for=
"(item2,index2) in item.
photoOrderImgResVoL
ist"
:key=
"index2"
>
<image
class=
"list-image"
:src=
"item2.
faceSourceUrl||item2.faceAi
Url"
@
click=
"stopPhoto(index,index2)"
></image>
<image
class=
"list-image"
:src=
"item2.
img
Url"
@
click=
"stopPhoto(index,index2)"
></image>
<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>
...
@@ -101,14 +101,15 @@ export default {
...
@@ -101,14 +101,15 @@ export default {
sellingPrices
:
0
,
//售价
sellingPrices
:
0
,
//售价
favorablePrice
:
0
,
//优惠
favorablePrice
:
0
,
//优惠
priceNum
:
0
,
//选购了多少照片
priceNum
:
0
,
//选购了多少照片
options
:{},
//参数
//
options:{},//参数
imgList
:[],
//下载图片列表
imgList
:[],
//下载图片列表
downImgNumber
:
0
,
//下载图片的数量
downImgNumber
:
0
,
//下载图片的数量
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
openid
=
'oroHZ5B455jLw_BqDmVpr7W13NLY'
//获取openid uni.getStorageSync('openid')
this
.
openid
=
uni
.
getStorageSync
(
'openid'
)
//获取openid
this
.
options
=
option
//this.openid = 'oh2UV1lFq2CjxbBw0y7DOohhBFBM' //获取openid uni.getStorageSync('openid')
//this.options = option
//this.merchantId = 'z0015605022691a5945bbe463141668c'//uni.getStorageSync('merchantId')
//this.merchantId = 'z0015605022691a5945bbe463141668c'//uni.getStorageSync('merchantId')
this
.
obtainProvince
()
//获取省市区
this
.
obtainProvince
()
//获取省市区
this
.
inquireMerchant
()
//查询所有商户
this
.
inquireMerchant
()
//查询所有商户
...
@@ -147,14 +148,14 @@ export default {
...
@@ -147,14 +148,14 @@ export default {
},
},
getPhotos
(){
//照片
getPhotos
(){
//照片
var
data
=
{
var
data
=
{
openi
d
:
this
.
openid
,
userI
d
:
this
.
openid
,
merchantId
:
this
.
merchantId
,
//商户ID
orderType
:
11
,
//商户ID
}
}
this
.
$request
(
'
wechatUser/pdFace/getAlbum
List'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'
orderc/photo/queryPhotoOrder
List'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
this
.
previewData
=
res
.
data
this
.
previewData
=
res
.
data
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
l
ist
.
forEach
((
item2
,
index2
)
=>
{
item
.
photoOrderImgResVoL
ist
.
forEach
((
item2
,
index2
)
=>
{
item2
[
'checkType'
]
=
false
item2
[
'checkType'
]
=
false
})
})
})
})
...
@@ -186,10 +187,10 @@ export default {
...
@@ -186,10 +187,10 @@ export default {
if
(
this
.
checkProjectAll
==
true
){
if
(
this
.
checkProjectAll
==
true
){
this
.
checkProjectAll
=
false
this
.
checkProjectAll
=
false
}
}
if
(
this
.
previewData
[
index
].
l
ist
[
index2
].
checkType
==
false
){
if
(
this
.
previewData
[
index
].
photoOrderImgResVoL
ist
[
index2
].
checkType
==
false
){
this
.
previewData
[
index
].
l
ist
[
index2
].
checkType
=
true
this
.
previewData
[
index
].
photoOrderImgResVoL
ist
[
index2
].
checkType
=
true
}
else
{
}
else
{
this
.
previewData
[
index
].
l
ist
[
index2
].
checkType
=
false
this
.
previewData
[
index
].
photoOrderImgResVoL
ist
[
index2
].
checkType
=
false
}
}
this
.
checkTypeFun
=
false
this
.
checkTypeFun
=
false
this
.
checkTypeFun
=
true
this
.
checkTypeFun
=
true
...
@@ -198,25 +199,25 @@ export default {
...
@@ -198,25 +199,25 @@ export default {
if
(
this
.
checkProjectAll
==
true
){
if
(
this
.
checkProjectAll
==
true
){
this
.
checkProjectAll
=
false
this
.
checkProjectAll
=
false
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
l
ist
.
forEach
((
item2
,
index2
)
=>
{
item
.
photoOrderImgResVoL
ist
.
forEach
((
item2
,
index2
)
=>
{
item2
.
checkType
=
false
item2
.
checkType
=
false
})
})
})
})
}
else
{
}
else
{
this
.
checkProjectAll
=
true
this
.
checkProjectAll
=
true
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
l
ist
.
forEach
((
item2
,
index2
)
=>
{
item
.
photoOrderImgResVoL
ist
.
forEach
((
item2
,
index2
)
=>
{
item2
.
checkType
=
true
item2
.
checkType
=
true
})
})
})
})
}
}
},
},
upLoad
(){
//下
单
upLoad
(){
//下
载
this
.
imgList
=
[]
this
.
imgList
=
[]
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
l
ist
.
forEach
((
item2
,
index2
)
=>
{
item
.
photoOrderImgResVoL
ist
.
forEach
((
item2
,
index2
)
=>
{
if
(
item2
.
checkType
==
true
){
if
(
item2
.
checkType
==
true
){
var
imgUrl
=
item2
.
faceSourceUrl
||
item2
.
faceAi
Url
var
imgUrl
=
item2
.
img
Url
this
.
imgList
.
push
(
imgUrl
)
this
.
imgList
.
push
(
imgUrl
)
}
}
})
})
...
...
pages/my/order/electronicTicket/electronicTicket.vue
View file @
92df0de8
...
@@ -354,7 +354,7 @@
...
@@ -354,7 +354,7 @@
<image
class=
"coupon-backgruondImg"
src=
"../../../../static/img/my/backgroundIcon01.png"
></image>
<image
class=
"coupon-backgruondImg"
src=
"../../../../static/img/my/backgroundIcon01.png"
></image>
<u-icon
class=
"close"
name=
"close-circle"
@
click=
"closeMask"
></u-icon>
<u-icon
class=
"close"
name=
"close-circle"
@
click=
"closeMask"
></u-icon>
</view>
</view>
<u-button
type=
"primary"
shape=
"circle"
@
click=
"showtip
= false"
v-if=
"showtip
"
>
知道了
</u-button>
<u-button
type=
"primary"
shape=
"circle"
@
click=
"showtip
CloseFun()
"
>
知道了
</u-button>
</view>
</view>
</u-mask>
</u-mask>
</view>
</view>
...
@@ -624,6 +624,10 @@ export default {
...
@@ -624,6 +624,10 @@ export default {
this
.
showtip
=
false
//领取提示
this
.
showtip
=
false
//领取提示
this
.
showUseRule
=
true
//使用规则提示
this
.
showUseRule
=
true
//使用规则提示
},
},
showtipCloseFun
(){
//点击使用规则
this
.
showtip
=
false
//领取提示
this
.
showUseRule
=
false
//使用规则提示
},
closeMask
(){
//遮罩关闭
closeMask
(){
//遮罩关闭
this
.
showtip
=
false
//领取提示
this
.
showtip
=
false
//领取提示
this
.
showUseRule
=
false
//使用规则提示
this
.
showUseRule
=
false
//使用规则提示
...
@@ -663,6 +667,7 @@ export default {
...
@@ -663,6 +667,7 @@ export default {
if
(
item
.
useRange
==
11
&&
item
.
couponStatus
==
1
){
if
(
item
.
useRange
==
11
&&
item
.
couponStatus
==
1
){
this
.
couponType
=
true
this
.
couponType
=
true
}
}
})
})
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -1633,8 +1638,8 @@ export default {
...
@@ -1633,8 +1638,8 @@ export default {
position
:
fixed
;
position
:
fixed
;
right
:
-30rpx
;
right
:
-30rpx
;
bottom
:
200rpx
;
bottom
:
200rpx
;
width
:
1
2
0rpx
;
width
:
1
4
0rpx
;
height
:
1
2
0rpx
;
height
:
1
4
0rpx
;
z-index
:
20
;
z-index
:
20
;
}
}
</
style
>
</
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