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
8a1193e8
Commit
8a1193e8
authored
Feb 06, 2023
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持scene传参
parent
c53b2af6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
76 deletions
+99
-76
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+99
-76
No files found.
pages/jiuzhai/jz_LineDetail.vue
View file @
8a1193e8
...
...
@@ -1094,15 +1094,29 @@ export default {
},
created
()
{},
onLoad
(
option
)
{
if
(
option
.
tcid
)
{
this
.
delMsg
.
tcid
=
option
.
tcid
;
}
if
(
option
.
configId
)
{
this
.
delMsg
.
configId
=
option
.
configId
;
}
if
(
option
.
cityId
)
{
this
.
delMsg
.
cityId
=
option
.
cityId
;
}
if
(
!
option
.
scene
){
if
(
option
.
tcid
)
{
this
.
delMsg
.
tcid
=
option
.
tcid
;
}
if
(
option
.
configId
)
{
this
.
delMsg
.
configId
=
option
.
configId
;
}
if
(
option
.
cityId
)
{
this
.
delMsg
.
cityId
=
option
.
cityId
;
}
}
else
{
let
t
=
decodeURIComponent
(
option
.
scene
).
split
(
'&'
)
t
.
forEach
(
x
=>
{
let
item
=
x
.
split
(
'='
)
if
(
item
.
length
===
2
){
if
(
item
[
0
]
===
'tcid'
){
this
.
delMsg
.
tcid
=
item
[
1
]
}
else
if
(
item
[
0
]
===
'configId'
){
this
.
delMsg
.
configId
=
item
[
1
]
}
}
})
}
this
.
getDetails
();
this
.
U
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
this
.
U
)
{
...
...
@@ -1275,74 +1289,83 @@ export default {
this
.
delMsg
,
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
res
.
data
.
tempImgCover
=
JSON
.
parse
(
res
.
data
.
imgCover
);
// let tempPrice= res.data.priceList.filter(x=>x.remainNum>0)
// res.data.priceList=tempPrice
this
.
dataList
=
res
.
data
;
this
.
scenicNum
=
0
;
//this.dataList.productRecommend=this.dataList.productRecommend.split('\n').join('&hc')
console
.
log
(
this
.
dataList
.
productRecommend
);
this
.
dataList
.
dayList
.
forEach
((
x
)
=>
{
x
.
dayArray
.
forEach
((
y
)
=>
{
if
(
y
.
type
==
2
)
{
this
.
scenicNum
++
;
}
if
(
y
.
type
==
4
&&
y
.
childItem
.
useDinnerType
==
1
)
{
this
.
breakfastNum
++
;
}
if
(
y
.
type
==
4
&&
y
.
childItem
.
useDinnerType
==
2
)
{
this
.
lunchNum
++
;
}
if
(
y
.
type
==
4
&&
y
.
childItem
.
useDinnerType
==
3
)
{
this
.
dinnerNum
++
;
}
});
});
this
.
currentPrice
=
this
.
dataList
.
currentPriceInfo
;
if
(
this
.
currentPrice
.
remainNum
==
0
)
{
let
temp
=
this
.
dataList
.
priceList
.
find
((
x
)
=>
x
.
remainNum
>
0
);
if
(
temp
)
{
this
.
getDayInfo
(
temp
);
}
}
this
.
dataList
.
priceList
.
forEach
((
x
)
=>
{
if
(
x
.
tcid
==
this
.
delMsg
.
tcid
)
{
this
.
delMsg
.
tcnum
=
x
.
tcnum
;
}
if
(
x
.
remainNum
>
0
)
{
this
.
canCreateOrder
=
true
;
}
});
this
.
finishFirstLoad
=
true
;
// #ifdef MP-ALIPAY
if
(
this
.
dataList
.
feature
.
feeInclude
)
{
this
.
dataList
.
feature
.
feeInclude
=
parseHtml
(
this
.
dataList
.
feature
.
feeInclude
);
}
if
(
this
.
dataList
.
feature
.
feeNonInclude
)
{
this
.
dataList
.
feature
.
feeNonInclude
=
parseHtml
(
this
.
dataList
.
feature
.
feeNonInclude
);
}
if
(
this
.
dataList
.
feature
.
importantTip
)
{
this
.
dataList
.
feature
.
importantTip
=
parseHtml
(
this
.
dataList
.
feature
.
importantTip
);
}
if
(
this
.
dataList
.
feature
.
warmTip
)
{
this
.
dataList
.
feature
.
warmTip
=
parseHtml
(
this
.
dataList
.
feature
.
warmTip
);
}
if
(
this
.
dataList
.
feature
.
visaRemark
)
{
this
.
dataList
.
feature
.
visaRemark
=
parseHtml
(
this
.
dataList
.
feature
.
visaRemark
);
try
{
res
.
data
.
tempImgCover
=
JSON
.
parse
(
res
.
data
.
imgCover
);
// let tempPrice= res.data.priceList.filter(x=>x.remainNum>0)
// res.data.priceList=tempPrice
this
.
dataList
=
res
.
data
;
this
.
scenicNum
=
0
;
//this.dataList.productRecommend=this.dataList.productRecommend.split('\n').join('&hc')
console
.
log
(
this
.
dataList
.
productRecommend
);
this
.
dataList
.
dayList
.
forEach
((
x
)
=>
{
x
.
dayArray
.
forEach
((
y
)
=>
{
if
(
y
.
type
==
2
)
{
this
.
scenicNum
++
;
}
if
(
y
.
type
==
4
&&
y
.
childItem
.
useDinnerType
==
1
)
{
this
.
breakfastNum
++
;
}
if
(
y
.
type
==
4
&&
y
.
childItem
.
useDinnerType
==
2
)
{
this
.
lunchNum
++
;
}
if
(
y
.
type
==
4
&&
y
.
childItem
.
useDinnerType
==
3
)
{
this
.
dinnerNum
++
;
}
});
});
this
.
currentPrice
=
this
.
dataList
.
currentPriceInfo
;
if
(
this
.
currentPrice
.
remainNum
==
0
)
{
let
temp
=
this
.
dataList
.
priceList
.
find
((
x
)
=>
x
.
remainNum
>
0
);
if
(
temp
)
{
this
.
getDayInfo
(
temp
);
}
}
this
.
dataList
.
priceList
.
forEach
((
x
)
=>
{
if
(
x
.
tcid
==
this
.
delMsg
.
tcid
)
{
this
.
delMsg
.
tcnum
=
x
.
tcnum
;
}
if
(
x
.
remainNum
>
0
)
{
this
.
canCreateOrder
=
true
;
}
});
this
.
finishFirstLoad
=
true
;
// #ifdef MP-ALIPAY
if
(
this
.
dataList
.
feature
.
feeInclude
)
{
this
.
dataList
.
feature
.
feeInclude
=
parseHtml
(
this
.
dataList
.
feature
.
feeInclude
);
}
if
(
this
.
dataList
.
feature
.
feeNonInclude
)
{
this
.
dataList
.
feature
.
feeNonInclude
=
parseHtml
(
this
.
dataList
.
feature
.
feeNonInclude
);
}
if
(
this
.
dataList
.
feature
.
importantTip
)
{
this
.
dataList
.
feature
.
importantTip
=
parseHtml
(
this
.
dataList
.
feature
.
importantTip
);
}
if
(
this
.
dataList
.
feature
.
warmTip
)
{
this
.
dataList
.
feature
.
warmTip
=
parseHtml
(
this
.
dataList
.
feature
.
warmTip
);
}
if
(
this
.
dataList
.
feature
.
visaRemark
)
{
this
.
dataList
.
feature
.
visaRemark
=
parseHtml
(
this
.
dataList
.
feature
.
visaRemark
);
}
// #endif
}
catch
(
e
){
//TODO handle the exception
uni
.
showToast
({
icon
:
"none"
,
title
:
'团队信息不完善,无法完成显示'
})
}
// #endif
}
else
{
}
},
...
...
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