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
133dfa04
Commit
133dfa04
authored
May 18, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
35fd2c8b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
24 deletions
+98
-24
index.vue
pages/jiuzhai/components/sign/index.vue
+30
-7
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+46
-17
api.js
plugin/api.js
+22
-0
No files found.
pages/jiuzhai/components/sign/index.vue
View file @
133dfa04
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<view
class=
"content"
>
<view
class=
"content"
>
<scroll-view
<scroll-view
:scroll-y=
"true"
:scroll-y=
"true"
:scroll-top=
"scrollTop"
@
scroll=
"scroll"
style=
"height: 100%; flex: 1; box-sizing: border-box"
style=
"height: 100%; flex: 1; box-sizing: border-box"
>
>
<view
class=
"header"
>
<view
class=
"header"
>
...
@@ -54,7 +55,7 @@
...
@@ -54,7 +55,7 @@
</view>
</view>
</view>
</view>
<view
class=
"section"
>
<view
class=
"section"
>
<view
v-for=
"(res, line) in resDate"
class=
"item"
:key=
"line"
>
<view
v-for=
"(res, line) in resDate"
:id=
"`month$
{line}`"
class="item" :key="line">
<view
class=
"year"
>
{{
res
.
year
}}
年
{{
res
.
month
}}
月
</view>
<view
class=
"year"
>
{{
res
.
year
}}
年
{{
res
.
month
}}
月
</view>
<view
class=
"day"
>
<view
class=
"day"
>
<view
<view
...
@@ -147,6 +148,10 @@ import json from "./day.js";
...
@@ -147,6 +148,10 @@ import json from "./day.js";
export
default
{
export
default
{
props
:
{
props
:
{
showPop
:
{
type
:
Boolean
,
default
:
false
,
},
priceList
:
{
priceList
:
{
type
:
Array
,
type
:
Array
,
default
:
[],
default
:
[],
...
@@ -212,12 +217,17 @@ export default {
...
@@ -212,12 +217,17 @@ export default {
}
}
}
}
}
}
setTimeout
(()
=>
{
this
.
scrollTop
=
370
*
this
.
monthInto
+
this
.
dayInfo
*
20
},
500
)
return
this
.
date
;
return
this
.
date
;
},
},
},
},
data
()
{
data
()
{
return
{
return
{
oldScrollTop
:
0
,
scrollTop
:
0
,
monthInto
:
null
,
out
:
0
,
out
:
0
,
festival
:
json
,
//节假日
festival
:
json
,
//节假日
type
:
"-"
,
//日期分隔符
type
:
"-"
,
//日期分隔符
...
@@ -257,7 +267,9 @@ export default {
...
@@ -257,7 +267,9 @@ export default {
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
""
,
title
:
""
,
});
});
// #endif
// #endif
},
},
watch
:
{
watch
:
{
...
@@ -285,13 +297,11 @@ export default {
...
@@ -285,13 +297,11 @@ export default {
}
}
if
(
this
.
priceStauts
.
length
>
0
)
{
if
(
this
.
priceStauts
.
length
>
0
)
{
console
.
log
(
this
.
lastNot
);
for
(
var
i
=
newVal
[
0
];
i
<
this
.
priceStauts
.
length
;
i
++
)
{
for
(
var
i
=
newVal
[
0
];
i
<
this
.
priceStauts
.
length
;
i
++
)
{
if
(
i
==
newVal
[
0
])
{
if
(
i
==
newVal
[
0
])
{
for
(
var
j
=
newVal
[
1
];
j
<
this
.
priceStauts
[
i
].
length
;
j
++
)
{
for
(
var
j
=
newVal
[
1
];
j
<
this
.
priceStauts
[
i
].
length
;
j
++
)
{
if
(
this
.
priceStauts
[
i
][
j
]
==
-
1
)
{
if
(
this
.
priceStauts
[
i
][
j
]
==
-
1
)
{
this
.
lastNot
=
[
i
,
j
];
this
.
lastNot
=
[
i
,
j
];
console
.
log
(
this
.
lastNot
);
return
;
return
;
}
}
}
}
...
@@ -299,7 +309,6 @@ export default {
...
@@ -299,7 +309,6 @@ export default {
for
(
var
j
=
0
;
j
<
this
.
priceStauts
[
i
].
length
;
j
++
)
{
for
(
var
j
=
0
;
j
<
this
.
priceStauts
[
i
].
length
;
j
++
)
{
if
(
this
.
priceStauts
[
i
][
j
]
==
-
1
)
{
if
(
this
.
priceStauts
[
i
][
j
]
==
-
1
)
{
this
.
lastNot
=
[
i
,
j
];
this
.
lastNot
=
[
i
,
j
];
console
.
log
(
this
.
lastNot
);
return
;
return
;
}
}
}
}
...
@@ -311,10 +320,21 @@ export default {
...
@@ -311,10 +320,21 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
scroll
:
function
(
e
)
{
this
.
oldScrollTop
=
e
.
detail
.
scrollTop
;
// 必要
},
goTop
:
function
(
e
)
{
this
.
scrollTop
=
this
.
oldScrollTop
this
.
$nextTick
(
function
()
{
this
.
scrollTop
=
0
});
},
initPrice
()
{
initPrice
()
{
//年份
//年份
var
year
=
new
Date
().
getFullYear
();
var
year
=
new
Date
().
getFullYear
();
let
data
=
[];
let
data
=
[];
this
.
monthInto
=
null
this
.
scrollTop
=
0
//月份
//月份
var
month
=
new
Date
().
getMonth
();
var
month
=
new
Date
().
getMonth
();
for
(
let
i
=
0
;
i
<
this
.
count
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
count
;
i
++
)
{
...
@@ -326,6 +346,11 @@ export default {
...
@@ -326,6 +346,11 @@ export default {
let
m
=
month
+
1
>
9
?
month
+
1
:
"0"
+
(
month
+
1
);
let
m
=
month
+
1
>
9
?
month
+
1
:
"0"
+
(
month
+
1
);
let
d
=
j
+
1
>
9
?
j
+
1
:
"0"
+
(
j
+
1
);
let
d
=
j
+
1
>
9
?
j
+
1
:
"0"
+
(
j
+
1
);
if
(
x
.
startDate
==
`
${
year
}
-
${
m
}
-
${
d
}
`
)
{
if
(
x
.
startDate
==
`
${
year
}
-
${
m
}
-
${
d
}
`
)
{
// 记录第一个游价格的日期的位置
if
(
!
this
.
monthInto
)
{
this
.
monthInto
=
data
.
length
this
.
dayInfo
=
d
%
7
}
isexsit
=
true
;
isexsit
=
true
;
if
(
x
.
remainNum
>
0
)
{
if
(
x
.
remainNum
>
0
)
{
// days.push(this.$utils.getretailer() ? x.b2BPrice : x.b2CPrice);
// days.push(this.$utils.getretailer() ? x.b2BPrice : x.b2CPrice);
...
@@ -573,7 +598,6 @@ export default {
...
@@ -573,7 +598,6 @@ export default {
//月份
//月份
var
month
=
new
Date
().
getMonth
();
var
month
=
new
Date
().
getMonth
();
console
.
log
(
"执行了..."
);
for
(
let
i
=
0
;
i
<
this
.
count
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
count
;
i
++
)
{
var
day
=
[];
var
day
=
[];
var
week
=
0
;
var
week
=
0
;
...
@@ -629,7 +653,6 @@ export default {
...
@@ -629,7 +653,6 @@ export default {
};
};
let
tempPrice
=
{};
let
tempPrice
=
{};
this
.
priceList
.
forEach
((
x
,
i
)
=>
{
this
.
priceList
.
forEach
((
x
,
i
)
=>
{
console
.
log
(
x
.
startDate
,
obj
.
start
);
if
(
obj
.
start
==
x
.
startDate
)
{
if
(
obj
.
start
==
x
.
startDate
)
{
obj
.
priceObj
=
i
;
obj
.
priceObj
=
i
;
}
}
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
133dfa04
...
@@ -428,10 +428,10 @@
...
@@ -428,10 +428,10 @@
</view>
</view>
<view
<view
class=
"jz_TripDays"
class=
"jz_TripDays"
v-if=
"
v-if=
"
imgList.length ||
dataList.feature &&
(
dataList.feature &&
dataList.feature.tripImageList &&
dataList.feature.tripImageList &&
dataList.feature.tripImageList.length > 0
dataList.feature.tripImageList.length > 0
)
"
"
>
>
<span
<span
...
@@ -472,6 +472,14 @@
...
@@ -472,6 +472,14 @@
style=
"width: 100%"
style=
"width: 100%"
></image>
></image>
</view>
</view>
<view
class=
"jz_TripMain"
>
<image
v-for=
"x in imgList"
:src=
"x"
mode=
"widthFix"
style=
"width: 100%"
></image>
</view>
</view>
</view>
<view
<view
class=
"jz_TripDays"
class=
"jz_TripDays"
...
@@ -580,30 +588,32 @@
...
@@ -580,30 +588,32 @@
<view
class=
"jz_Place"
>
<view
class=
"jz_Place"
>
<view
class=
"jz_ComDian"
></view>
<view
class=
"jz_ComDian"
></view>
<text
class=
"jz_Canyin"
>
餐饮
</text>
<text
class=
"jz_Canyin"
>
餐饮
</text>
<
text
class=
"jz_CanInner"
>
<
view
class=
"jz_CanInner"
>
<
template
<
template
v-for=
"(subItem, sIndex2) in item.dayArray"
v-for=
"(subItem, sIndex2) in item.dayArray"
v-if=
"subItem.type == 4"
v-if=
"subItem.type == 4"
>
>
<text
<
view><
text
style=
"margin-right: 20px"
style=
"margin-right: 20px"
:key=
"sIndex2"
:key=
"sIndex2"
v-if=
"subItem.childItem.useDinnerType == '1'"
v-if=
"subItem.childItem.useDinnerType == '1'"
>
早餐:
{{
subItem
.
childItem
.
dinnerName
}}
</text
>
早餐:
{{
subItem
.
childItem
.
dinnerName
}}
</text
>
></view>
<view>
<text
<text
style=
"margin-right: 20px"
style=
"margin-right: 20px"
v-if=
"subItem.childItem.useDinnerType == '2'"
v-if=
"subItem.childItem.useDinnerType == '2'"
>
午餐:
{{
subItem
.
childItem
.
dinnerName
}}
</text
>
午餐:
{{
subItem
.
childItem
.
dinnerName
}}
</text
>
></view>
<view>
<text
v-if=
"subItem.childItem.useDinnerType == '3'"
<text
v-if=
"subItem.childItem.useDinnerType == '3'"
>
晚餐:
{{
subItem
.
childItem
.
dinnerName
}}
</text
>
晚餐:
{{
subItem
.
childItem
.
dinnerName
}}
</text
>
>
</view>
</
template
>
</
template
>
</
text
>
</
view
>
</view>
</view>
<view
class=
"jz_Place"
>
<view
class=
"jz_Place"
>
<view
class=
"jz_ComDian"
></view>
<view
v-if=
"item.type3"
class=
"jz_ComDian"
></view>
<text
v-if=
"item.type3"
class=
"jz_Canyin"
>
酒店
</text>
<text
v-if=
"item.type3"
class=
"jz_Canyin"
>
酒店
</text>
<text
class=
"jz_CanInner"
>
<text
class=
"jz_CanInner"
>
<
template
<
template
...
@@ -849,13 +859,14 @@
...
@@ -849,13 +859,14 @@
flex-direction: column;
flex-direction: column;
"
"
>
>
<view
style=
"flex: 1; width: 100%; height: 1rpx"
>
<view
style=
"flex: 1; width: 100%; height: 1rpx"
v-if=
"showOrderPreviwe"
>
<canlendar
<canlendar
@
finish=
"chosenDateResult"
@
finish=
"chosenDateResult"
:showPop=
"isSHowDate"
:immediately=
"true"
:immediately=
"true"
:defaultDate=
"currentPrice.startDate"
:defaultDate=
"currentPrice.startDate"
:priceList=
"dataList.priceList"
:priceList=
"dataList.priceList"
title=
"确定日期和人数"
title=
"确定日期和人数
22222
"
></canlendar>
></canlendar>
</view>
</view>
<view
style=
"background: #ecf1f4; padding: 20rpx 0"
>
<view
style=
"background: #ecf1f4; padding: 20rpx 0"
>
...
@@ -1053,9 +1064,11 @@ export default {
...
@@ -1053,9 +1064,11 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
imgList
:
[],
pageTitle
:
"线路详情"
,
pageTitle
:
"线路详情"
,
showDateChosen
:
false
,
showDateChosen
:
false
,
showOrderPreviwe
:
false
,
showOrderPreviwe
:
false
,
isSHowDate
:
false
,
crCount
:
1
,
crCount
:
1
,
etCount
:
0
,
etCount
:
0
,
yeCount
:
0
,
yeCount
:
0
,
...
@@ -1121,6 +1134,7 @@ export default {
...
@@ -1121,6 +1134,7 @@ export default {
this
.
U
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
U
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
this
.
U
)
{
if
(
this
.
U
)
{
this
.
getLXYProductSharf
()
this
.
getLXYProductSharf
()
this
.
getImgList
()
}
}
let
that
=
this
;
let
that
=
this
;
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
...
@@ -1209,6 +1223,9 @@ export default {
...
@@ -1209,6 +1223,9 @@ export default {
openOrderPreview
()
{
openOrderPreview
()
{
if
(
this
.
canCreateOrder
&&
this
.
finishFirstLoad
)
{
if
(
this
.
canCreateOrder
&&
this
.
finishFirstLoad
)
{
this
.
showOrderPreviwe
=
true
;
this
.
showOrderPreviwe
=
true
;
this
.
$nextTick
(()
=>
{
this
.
isSHowDate
=
true
})
}
}
},
},
chosenDateResult
(
result
)
{
chosenDateResult
(
result
)
{
...
@@ -1279,6 +1296,21 @@ export default {
...
@@ -1279,6 +1296,21 @@ export default {
},
},
(
err
)
=>
{
(
err
)
=>
{
}
);
},
getImgList
(){
//获取显示返佣金额
this
.
request4
(
{
url
:
"/Home/GetTripImage"
,
method
:
'Get'
,
data
:{
configId
:
this
.
delMsg
.
configId
},
},
(
res
)
=>
{
this
.
imgList
=
res
.
OtherFile
||
[];
},
(
err
)
=>
{
}
}
);
);
},
},
...
@@ -1297,7 +1329,6 @@ export default {
...
@@ -1297,7 +1329,6 @@ export default {
this
.
dataList
=
res
.
data
;
this
.
dataList
=
res
.
data
;
this
.
scenicNum
=
0
;
this
.
scenicNum
=
0
;
//this.dataList.productRecommend=this.dataList.productRecommend.split('\n').join('&hc')
//this.dataList.productRecommend=this.dataList.productRecommend.split('\n').join('&hc')
console
.
log
(
this
.
dataList
.
productRecommend
);
this
.
dataList
.
dayList
.
forEach
((
x
)
=>
{
this
.
dataList
.
dayList
.
forEach
((
x
)
=>
{
x
.
type6
=
false
x
.
type6
=
false
x
.
type4
=
false
x
.
type4
=
false
...
@@ -1331,8 +1362,6 @@ export default {
...
@@ -1331,8 +1362,6 @@ export default {
});
});
});
});
this
.
currentPrice
=
this
.
dataList
.
currentPriceInfo
;
this
.
currentPrice
=
this
.
dataList
.
currentPriceInfo
;
console
.
log
(
'this.dataList>>>'
,
this
.
dataList
);
if
(
this
.
currentPrice
.
remainNum
==
0
)
{
if
(
this
.
currentPrice
.
remainNum
==
0
)
{
let
temp
=
this
.
dataList
.
priceList
.
find
((
x
)
=>
x
.
remainNum
>
0
);
let
temp
=
this
.
dataList
.
priceList
.
find
((
x
)
=>
x
.
remainNum
>
0
);
if
(
temp
)
{
if
(
temp
)
{
...
@@ -1973,8 +2002,8 @@ export default {
...
@@ -1973,8 +2002,8 @@ export default {
background-color
:
#dfbe6e
;
background-color
:
#dfbe6e
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:
absolute
;
position
:
absolute
;
left
:
-
17.6
px
;
left
:
-
34
r
px
;
top
:
4
px
;
top
:
10
r
px
;
}
}
.jz_ImgDiv
{
.jz_ImgDiv
{
...
...
plugin/api.js
View file @
133dfa04
...
@@ -6,6 +6,7 @@ export default {
...
@@ -6,6 +6,7 @@ export default {
Vue
.
prototype
.
host2
=
"https://erpmallapi.oytour.com"
Vue
.
prototype
.
host2
=
"https://erpmallapi.oytour.com"
// Vue.prototype.host3 = "http://192.168.20.17:8015"
// Vue.prototype.host3 = "http://192.168.20.17:8015"
Vue
.
prototype
.
host3
=
"https://reborn.oytour.com"
Vue
.
prototype
.
host3
=
"https://reborn.oytour.com"
Vue
.
prototype
.
host4
=
"https://upload.oytour.com"
Vue
.
prototype
.
request
=
function
(
param
,
success
,
failed
)
{
Vue
.
prototype
.
request
=
function
(
param
,
success
,
failed
)
{
//网络请求
//网络请求
...
@@ -75,6 +76,27 @@ export default {
...
@@ -75,6 +76,27 @@ export default {
}
}
});
});
}
}
Vue
.
prototype
.
request4
=
function
(
param
,
success
,
failed
)
{
//网络请求
uni
.
request
({
url
:
this
.
host4
+
param
.
url
,
method
:
param
.
method
||
"Post"
,
header
:
param
.
header
||
{
'content-type'
:
"application/json"
},
data
:
param
.
data
,
success
:
res
=>
{
success
(
res
.
data
);
},
fail
:
(
e
)
=>
{
console
.
log
(
"网络请求fail:"
+
JSON
.
stringify
(
e
));
uni
.
showModal
({
content
:
""
+
res
.
errMsg
});
typeof
failed
==
"function"
&&
failed
(
res
.
data
);
}
});
}
//请求app接口
//请求app接口
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
success
,
failed
)
{
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
success
,
failed
)
{
var
postData
=
this
.
GetPostData
(
cmd
,
msg
,
""
);
var
postData
=
this
.
GetPostData
(
cmd
,
msg
,
""
);
...
...
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