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
24cb3d88
Commit
24cb3d88
authored
Jun 04, 2021
by
ZJG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
景点专车分享
parent
77ce9168
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
10 deletions
+69
-10
bookaCarList.vue
pages/guidecar/bookaCarList.vue
+58
-6
index.vue
pages/index/index.vue
+7
-0
allorderList.vue
pages/jiuzhai/allorderList.vue
+2
-2
allorderdetails.vue
pages/jiuzhai/allorderdetails.vue
+2
-2
No files found.
pages/guidecar/bookaCarList.vue
View file @
24cb3d88
...
...
@@ -571,8 +571,9 @@
StartDate
:
''
,
EndDate
:
''
,
},
scrollleft
:
0
scrollleft
:
0
,
carMsgobj
:
''
,
Up
:
0
}
...
...
@@ -582,15 +583,27 @@
if
(
options
&&
options
.
carMsg
)
{
//对象解码
this
.
carMsg
=
JSON
.
parse
(
decodeURIComponent
(
options
.
carMsg
))
this
.
carMsgobj
=
options
.
carMsg
;
//保存原始的用于分享
console
.
log
(
this
.
carMsg
)
this
.
msg
.
StartCityId
=
this
.
carMsg
.
StartCityId
;
this
.
msg
.
StartCityType
=
this
.
carMsg
.
StartCityType
;
this
.
msg
.
ArriveCityId
=
this
.
carMsg
.
ArriveCityId
;
this
.
msg
.
ArriveCityType
=
this
.
carMsg
.
ArriveCityType
;
if
(
new
Date
()
>
new
Date
(
this
.
carMsg
.
Q_Date
)){
//判断分享的时间是否过期过期了 就给与今天的日期
var
date1
=
new
Date
();
let
carMonth
=
(
date1
.
getMonth
()
+
1
)
<
10
?
'0'
+
(
date1
.
getMonth
()
+
1
):(
date1
.
getMonth
()
+
1
);
let
carDays
=
(
date1
.
getDate
()
)
<
10
?
'0'
+
(
date1
.
getDate
()
):(
date1
.
getDate
());
let
nowtime
=
date1
.
getFullYear
()
+
"-"
+
carMonth
+
"-"
+
carDays
;
this
.
msg
.
Q_Date
=
nowtime
}
else
{
this
.
msg
.
Q_Date
=
this
.
carMsg
.
Q_Date
;
}
}
this
.
$nextTick
(
function
()
{
this
.
scrollleft
=
0
});
console
.
log
(
options
)
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
gettimeList
()
this
.
init
();
...
...
@@ -598,7 +611,46 @@
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
this
.
Up
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserPageType
:
0
;
},
onShareTimeline
()
{
//朋友圈
let
uid
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserId
:
0
;
if
(
uid
==
0
){
uid
=
uni
.
getStorageSync
(
"pid"
)?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
}
let
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
UserSmallShopId
:
0
;
}
return
{
title
:
this
.
carMsg
.
StartCityName
+
'-'
+
this
.
carMsg
.
ArriveCityName
,
query
:
"user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&carMsg='
+
this
.
carMsgobj
,
imageUrl
:
''
,
};
},
onShareAppMessage
(
res
)
{
//朋友圈
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
let
uid
=
u
.
UserId
?
u
.
UserId
:
0
;
if
(
uid
==
0
){
uid
=
uni
.
getStorageSync
(
"pid"
)?
uni
.
getStorageSync
(
"pid"
).
pid
:
0
}
let
SmallShopId
=
u
.
SmallShopId
?
u
.
SmallShopId
:
0
;
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
}
return
{
title
:
this
.
carMsg
.
StartCityName
+
'-'
+
this
.
carMsg
.
ArriveCityName
,
path
:
"/pages/index/index?user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&carMsg='
+
this
.
carMsgobj
+
'&JumpType=17'
,
imageUrl
:
''
,
};
},
methods
:
{
getscroll
(
e
){
...
...
pages/index/index.vue
View file @
24cb3d88
...
...
@@ -168,6 +168,7 @@
cardsmoney
:
0
,
//储值卡带过来的金额
orderPopupdata
:{},
//离线收益的弹窗
showorder
:
false
,
//显示弹出
carMsg
:
''
,
//景点专车分享带过来的字段
};
},
components
:
{
...
...
@@ -302,6 +303,9 @@
if
(
options
&&
options
.
storeId
)
{
this
.
fxstoreId
=
options
.
storeId
;
}
if
(
options
&&
options
.
carMsg
)
{
this
.
carMsg
=
options
.
carMsg
;
}
// #ifdef MP-WEIXIN
wx
.
showShareMenu
({
withShareTicket
:
true
,
...
...
@@ -352,6 +356,7 @@
if
(
options
&&
options
.
OrderId
)
{
//代付订单id
this
.
OrderId
=
options
.
OrderId
;
}
that
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
that
.
u
)
{
that
.
u
=
{
...
...
@@ -796,6 +801,8 @@
uni
.
navigateTo
({
url
:
"/pages/ticketCoupons/details?id"
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
16
){
//餐食详情
uni
.
navigateTo
({
url
:
"/pages/restaurant/details?id"
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
17
){
//景点专车
uni
.
navigateTo
({
url
:
'/pages/guidecar/bookaCarList?carMsg='
+
that
.
carMsg
})
}
},
500
);
},
...
...
pages/jiuzhai/allorderList.vue
View file @
24cb3d88
...
...
@@ -534,11 +534,11 @@
})
}
else
if
(
data
.
OrderType
==
2
){
//餐厅
uni
.
navigateTo
({
url
:
'/pages/restaurant/list?Name='
+
data
.
DiningList
[
0
].
Meal
Name
,
url
:
'/pages/restaurant/list?Name='
+
data
.
DiningList
[
0
].
Dining
Name
,
})
}
else
if
(
data
.
OrderType
==
3
){
//门票
uni
.
navigateTo
({
url
:
'/pages/ticketCoupons/list?Name='
+
data
.
TicketList
[
0
].
Ti
cket
Name
,
url
:
'/pages/ticketCoupons/list?Name='
+
data
.
TicketList
[
0
].
Ti
tekCounpon
Name
,
})
}
else
if
(
data
.
OrderType
==
4
){
//车
let
obj
=
{
...
...
pages/jiuzhai/allorderdetails.vue
View file @
24cb3d88
...
...
@@ -575,11 +575,11 @@
})
}
else
if
(
data
.
OrderType
==
2
){
//餐厅
uni
.
navigateTo
({
url
:
'/pages/restaurant/list?Name='
+
data
.
DiningList
[
0
].
Meal
Name
,
url
:
'/pages/restaurant/list?Name='
+
data
.
DiningList
[
0
].
Dining
Name
,
})
}
else
if
(
data
.
OrderType
==
3
){
//门票
uni
.
navigateTo
({
url
:
'/pages/ticketCoupons/list?Name='
+
data
.
TicketList
[
0
].
Ti
cket
Name
,
url
:
'/pages/ticketCoupons/list?Name='
+
data
.
TicketList
[
0
].
Ti
tekCounpon
Name
,
})
}
else
if
(
data
.
OrderType
==
4
){
//车
let
obj
=
{
...
...
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