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
Hide 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 @@
<view>
{{
item
.
merchantName
}}
</view>
</view>
<view
class=
"album-subject"
>
<view
class=
"subject-List"
v-for=
"(item2,index2) in item.
l
ist"
:key=
"index2"
>
<image
class=
"list-image"
:src=
"item2.
faceSourceUrl||item2.faceAi
Url"
@
click=
"stopPhoto(index,index2)"
></image>
<view
class=
"subject-List"
v-for=
"(item2,index2) in item.
photoOrderImgResVoL
ist"
:key=
"index2"
>
<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>
</view>
</view>
...
...
@@ -101,14 +101,15 @@ export default {
sellingPrices
:
0
,
//售价
favorablePrice
:
0
,
//优惠
priceNum
:
0
,
//选购了多少照片
options
:{},
//参数
//
options:{},//参数
imgList
:[],
//下载图片列表
downImgNumber
:
0
,
//下载图片的数量
}
},
onLoad
(
option
)
{
this
.
openid
=
'oroHZ5B455jLw_BqDmVpr7W13NLY'
//获取openid uni.getStorageSync('openid')
this
.
options
=
option
this
.
openid
=
uni
.
getStorageSync
(
'openid'
)
//获取openid
//this.openid = 'oh2UV1lFq2CjxbBw0y7DOohhBFBM' //获取openid uni.getStorageSync('openid')
//this.options = option
//this.merchantId = 'z0015605022691a5945bbe463141668c'//uni.getStorageSync('merchantId')
this
.
obtainProvince
()
//获取省市区
this
.
inquireMerchant
()
//查询所有商户
...
...
@@ -147,14 +148,14 @@ export default {
},
getPhotos
(){
//照片
var
data
=
{
openi
d
:
this
.
openid
,
merchantId
:
this
.
merchantId
,
//商户ID
userI
d
:
this
.
openid
,
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'
){
this
.
previewData
=
res
.
data
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
l
ist
.
forEach
((
item2
,
index2
)
=>
{
item
.
photoOrderImgResVoL
ist
.
forEach
((
item2
,
index2
)
=>
{
item2
[
'checkType'
]
=
false
})
})
...
...
@@ -186,10 +187,10 @@ export default {
if
(
this
.
checkProjectAll
==
true
){
this
.
checkProjectAll
=
false
}
if
(
this
.
previewData
[
index
].
l
ist
[
index2
].
checkType
==
false
){
this
.
previewData
[
index
].
l
ist
[
index2
].
checkType
=
true
if
(
this
.
previewData
[
index
].
photoOrderImgResVoL
ist
[
index2
].
checkType
==
false
){
this
.
previewData
[
index
].
photoOrderImgResVoL
ist
[
index2
].
checkType
=
true
}
else
{
this
.
previewData
[
index
].
l
ist
[
index2
].
checkType
=
false
this
.
previewData
[
index
].
photoOrderImgResVoL
ist
[
index2
].
checkType
=
false
}
this
.
checkTypeFun
=
false
this
.
checkTypeFun
=
true
...
...
@@ -198,25 +199,25 @@ export default {
if
(
this
.
checkProjectAll
==
true
){
this
.
checkProjectAll
=
false
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
l
ist
.
forEach
((
item2
,
index2
)
=>
{
item
.
photoOrderImgResVoL
ist
.
forEach
((
item2
,
index2
)
=>
{
item2
.
checkType
=
false
})
})
}
else
{
this
.
checkProjectAll
=
true
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
l
ist
.
forEach
((
item2
,
index2
)
=>
{
item
.
photoOrderImgResVoL
ist
.
forEach
((
item2
,
index2
)
=>
{
item2
.
checkType
=
true
})
})
}
},
upLoad
(){
//下
单
upLoad
(){
//下
载
this
.
imgList
=
[]
this
.
previewData
.
forEach
((
item
,
index
)
=>
{
item
.
l
ist
.
forEach
((
item2
,
index2
)
=>
{
item
.
photoOrderImgResVoL
ist
.
forEach
((
item2
,
index2
)
=>
{
if
(
item2
.
checkType
==
true
){
var
imgUrl
=
item2
.
faceSourceUrl
||
item2
.
faceAi
Url
var
imgUrl
=
item2
.
img
Url
this
.
imgList
.
push
(
imgUrl
)
}
})
...
...
pages/my/order/electronicTicket/electronicTicket.vue
View file @
92df0de8
...
...
@@ -354,7 +354,7 @@
<image
class=
"coupon-backgruondImg"
src=
"../../../../static/img/my/backgroundIcon01.png"
></image>
<u-icon
class=
"close"
name=
"close-circle"
@
click=
"closeMask"
></u-icon>
</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>
</u-mask>
</view>
...
...
@@ -624,6 +624,10 @@ export default {
this
.
showtip
=
false
//领取提示
this
.
showUseRule
=
true
//使用规则提示
},
showtipCloseFun
(){
//点击使用规则
this
.
showtip
=
false
//领取提示
this
.
showUseRule
=
false
//使用规则提示
},
closeMask
(){
//遮罩关闭
this
.
showtip
=
false
//领取提示
this
.
showUseRule
=
false
//使用规则提示
...
...
@@ -663,6 +667,7 @@ export default {
if
(
item
.
useRange
==
11
&&
item
.
couponStatus
==
1
){
this
.
couponType
=
true
}
})
}
else
{
uni
.
showToast
({
...
...
@@ -1633,8 +1638,8 @@ export default {
position
:
fixed
;
right
:
-30rpx
;
bottom
:
200rpx
;
width
:
1
2
0rpx
;
height
:
1
2
0rpx
;
width
:
1
4
0rpx
;
height
:
1
4
0rpx
;
z-index
:
20
;
}
</
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