Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
b77e147e
Commit
b77e147e
authored
Jan 24, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
94242990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
10 deletions
+34
-10
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+34
-10
No files found.
pages/jiuzhai/jz_LineDetail.vue
View file @
b77e147e
...
...
@@ -56,7 +56,7 @@
<text
style=
"color: #999999; font-size: 28rpx; font-weight: 400"
>
/人起
</text>
</view>
<view
v-if=
"stepNumber==0&&
currentPrice
.teamType==0"
class=
"row items-center jz_LineDetaCZ"
style=
"border-radius: 4px;overflow: hidden;font-size: 12px;"
>
<view
v-if=
"stepNumber==0&&
dataList
.teamType==0"
class=
"row items-center jz_LineDetaCZ"
style=
"border-radius: 4px;overflow: hidden;font-size: 12px;"
>
<view
class=
"jz_LineDetaCZL"
>
<view
style=
"opacity: 0;"
>
1
</view>
</view>
...
...
@@ -66,19 +66,19 @@
</view>
</view>
</view>
<view
v-if=
"maxCouponDiscount>0"
class=
"jz_LineDetaYJDKQ"
style=
"padding: 0rpx 0 0 0;"
>
<view
v-if=
"maxCouponDiscount>0
||stepNumber>4
"
class=
"jz_LineDetaYJDKQ"
style=
"padding: 0rpx 0 0 0;"
>
<view
class=
"jz_LineDetaYJ"
>
<view
class=
"jz_LineDetaYJL"
>
原价 ¥{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}/人起
</view>
<view
class=
"jz_LineDetaYJR"
>
已减{{maxCouponDiscount}}
</view>
</view>
<view
v-if=
"
stepNumber
>0"
class=
"jz_LineDetaRDKQ"
>
<view>
共
1
张抵扣券
</view>
<view
v-if=
"
couponList.length
>0"
class=
"jz_LineDetaRDKQ"
>
<view>
共
{{couponList.length}}
张抵扣券
</view>
<u-icon
name=
"arrow"
size=
"30"
color=
"#cecece"
style=
"margin-left: 5px;"
></u-icon>
</view>
</view>
<view
class=
"jz_LineDetaYJDKQ"
v-if=
"
stepNumber
>0"
>
<view
class=
"jz_LineDetaYJDKQ"
v-if=
"
dataList.teamType==0||stepNumber>0||couponList.length
>0"
>
<view
class=
"jz_LineDetaFL"
>
<view
v-if=
"
currentPrice
.teamType==0"
class=
"row items-center jz_LineDetaCZ"
<view
v-if=
"
stepNumber>0&&dataList
.teamType==0"
class=
"row items-center jz_LineDetaCZ"
style=
"border-radius: 4px;overflow: hidden;font-size: 12px;margin-right: 15rpx;"
>
<view
class=
"jz_LineDetaCZL"
>
<view
style=
"opacity: 0;"
>
1
</view>
...
...
@@ -88,12 +88,12 @@
<
template
v-else
>
30
</
template
>
元/人
</view>
</view>
<view
class=
"jz_LineDetaFLJf"
>
<view
class=
"jz_LineDetaFLJf"
>
278.25积分
</view>
</view>
<view
class=
"jz_LineDetaRDKQ"
>
<view>
共{{
currentPrice.teamType==0?'3':'2'
}}项福利
</view>
<view>
共{{
Discounts
}}项福利
</view>
<u-icon
name=
"arrow"
size=
"30"
color=
"#cecece"
style=
"margin-left: 5px;"
></u-icon>
</view>
</view>
...
...
@@ -1279,6 +1279,7 @@
stepNumber
:
0
,
UnfOddNumber
:
0
,
discountPrice
:
0
,
Discounts
:
1
,
}
;
}
,
watch
:
{
...
...
@@ -1424,6 +1425,9 @@
x
.
denomination
=
x
.
expansionModel
.
denomination
}
}
)
// setTimeout(()=>
{
// console.log(this.currentPrice,'=======222')
// ,1000
}
)
}
,
SelectSales
(
item
){
this
.
SaleName
=
item
.
EmName
...
...
@@ -1454,6 +1458,9 @@
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
couponList
=
res
.
data
if
(
this
.
couponList
.
length
>
0
)
{
this
.
Discounts
+=
1
}
this
.
calcPzCouponHandler
()
this
.
couponList
.
forEach
(
x
=>
{
if
(
x
.
couponsType
==
1
&&
x
.
denomination
>
this
.
maxCouponDiscount
)
this
.
maxCouponDiscount
=
x
.
denomination
...
...
@@ -1463,8 +1470,23 @@
}
}
)
let
money
=
this
.
$utils
.
getretailer
()?
this
.
currentPrice
.
b2BPrice
:
this
.
currentPrice
.
b2CPrice
this
.
discountPrice
=
money
-
this
.
maxCouponDiscount
let
maxCouponDiscount
=
this
.
maxCouponDiscount
if
(
this
.
stepNumber
<
5
){
this
.
discountPrice
=
money
-
this
.
maxCouponDiscount
}
else
{
let
discountPrice
=
money
-
this
.
maxCouponDiscount
if
(
this
.
dataList
.
lineId
==
168
){
this
.
discountPrice
=
(
discountPrice
*
0.95
).
toFixed
(
2
)
maxCouponDiscount
+=
money
-
Number
(
this
.
discountPrice
)
console
.
log
(
discountPrice
*
0.95
,
'-----欧洲线'
)
}
else
{
this
.
discountPrice
=
Number
(
discountPrice
)
-
100
maxCouponDiscount
+=
100
console
.
log
(
Number
(
discountPrice
)
-
100
,
'-----其他线'
)
}
console
.
log
(
maxCouponDiscount
,
'------已减'
)
this
.
maxCouponDiscount
=
maxCouponDiscount
.
toFixed
(
2
)
}
}
}
,
(
err
)
=>
{
}
...
...
@@ -1665,6 +1687,8 @@
this.dataList = res.data;
this.stepNumber = this.dataList.orderNum
this.UnfOddNumber = (Number(this.stepNumber)-5)*-1
if(this.stepNumber>4) this.Discounts += 1
if(this.dataList.teamType==0) this.Discounts += 1
try {
this.formatDay();
}
catch (e) {
...
...
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