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
5cca28db
Commit
5cca28db
authored
Aug 22, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
相册优惠券查询添加新参数
parent
bcc9dc38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
myPhotoAlbum.vue
pages/album/myPhotoAlbum/myPhotoAlbum.vue
+16
-8
No files found.
pages/album/myPhotoAlbum/myPhotoAlbum.vue
View file @
5cca28db
...
...
@@ -179,7 +179,7 @@ export default {
this
.
obtainProvince
()
//获取省市区
this
.
inquireMerchant
()
//查询所有商户
this
.
getPhotos
()
//照片列表
this
.
mearchLoadList
()
},
methods
:
{
mearchLoadList
(){
//调用参数
...
...
@@ -190,6 +190,7 @@ export default {
}).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
merchantMessage
=
res
.
data
this
.
checkMonkey
()
}
else
{
this
.
$refs
.
uToast
.
show
({
title
:
res
.
message
,
...
...
@@ -251,6 +252,8 @@ export default {
item
[
'image'
]
=
item
.
faceSourceUrl
||
item
.
faceAiUrl
item
[
'title'
]
=
''
})
this
.
mearchLoadList
()
}
else
{
this
.
$refs
.
uToast
.
show
({
title
:
res
.
message
,
...
...
@@ -315,7 +318,6 @@ export default {
if
(
item
.
checkType
==
true
){
this
.
originalPrices
+=
item
.
originalPrice
//原价
this
.
sellingPrices
+=
item
.
sellingPrice
//售价
console
.
log
(
item
.
sellingPrice
)
this
.
priceNum
++
}
})
...
...
@@ -327,15 +329,21 @@ export default {
merchantId
:
this
.
merchantMessage
[
0
].
merchantId
,
tickets
:
1
,
productId
:
this
.
merchantMessage
[
0
].
merchantExtendProjectId
,
orderSource
:
11
,
//指定为相册优惠券
}
this
.
$request
(
'wechatUser/myPage/usableCouponList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
res
.
data
.
masterSlaveCouponList
.
forEach
(
item
=>
{
item
[
'couponPrice'
]
=
item
.
deductPrice
})
this
.
masterSlaveCouponList
=
res
.
data
.
masterSlaveCouponList
this
.
favorablePrice
=
this
.
masterSlaveCouponList
[
0
].
deductPrice
this
.
sellingPrices
=
this
.
sellingPrices
-
this
.
masterSlaveCouponList
[
0
].
deductPrice
if
(
res
.
data
.
masterSlaveCouponList
!=
undefined
){
res
.
data
.
masterSlaveCouponList
.
forEach
(
item
=>
{
item
[
'couponPrice'
]
=
item
.
deductPrice
})
this
.
masterSlaveCouponList
=
res
.
data
.
masterSlaveCouponList
this
.
favorablePrice
=
this
.
masterSlaveCouponList
[
0
].
deductPrice
this
.
sellingPrices
=
this
.
sellingPrices
-
this
.
masterSlaveCouponList
[
0
].
deductPrice
}
if
(
this
.
sellingPrices
<
0
){
this
.
sellingPrices
=
0
}
}
else
{
this
.
$refs
.
uToast
.
show
({
title
:
res
.
message
,
...
...
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