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
3da730a1
Commit
3da730a1
authored
Jun 04, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b063be50
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
111 additions
and
36 deletions
+111
-36
index.vue
pages/index/index.vue
+5
-1
detail.vue
pages/restaurant/detail.vue
+46
-0
subscribeTicket.vue
pages/ticketCoupons/components/subscribeTicket.vue
+6
-23
detail.vue
pages/ticketCoupons/detail.vue
+54
-9
list.vue
pages/ticketCoupons/list.vue
+0
-3
No files found.
pages/index/index.vue
View file @
3da730a1
...
...
@@ -791,8 +791,12 @@
uni
.
navigateTo
({
url
:
"/pages/blindDate/persondetails?UserId="
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
14
){
//用户资料填写
uni
.
navigateTo
({
url
:
"/pages/blindDate/editData"
});
}
else
if
(
that
.
JumpType
==
15
){
//门票详情
console
.
log
(
that
.
GoodsId
)
uni
.
navigateTo
({
url
:
"/pages/ticketCoupons/details?id"
+
that
.
GoodsId
});
}
else
if
(
that
.
JumpType
==
16
){
//餐食详情
uni
.
navigateTo
({
url
:
"/pages/restaurant/details?id"
+
that
.
GoodsId
});
}
},
500
);
},
updateuserinfo
(
msg
)
{
...
...
pages/restaurant/detail.vue
View file @
3da730a1
...
...
@@ -228,6 +228,52 @@
this
.
Date
=
tomorrow
console
.
log
(
this
.
calendar
,
this
.
Date
)
},
onShareTimeline
()
{
// setTimeout(() => {
// console.log("分享朋友圈调用");
// }, 2500);
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
;
}
let
title
=
this
.
details
.
Name
?
this
.
details
.
Name
:
'美食'
;
let
imageUrl
=
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
?
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
:
''
;
let
id
=
this
.
ID
;
return
{
title
:
title
,
query
:
"id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
,
imageUrl
:
imageUrl
,
};
},
onShareAppMessage
(
res
)
{
// setTimeout(() => {
// console.log("分享好友调用");
// }, 2500);
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
.
details
.
Name
?
this
.
details
.
Name
:
'美食'
,
path
:
"/pages/index/index?id="
+
this
.
ID
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=16'
,
imageUrl
:
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
?
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
:
''
};
},
onLoad
(
options
)
{
if
(
options
&&
options
.
id
)
{
this
.
ID
=
options
.
id
...
...
pages/ticketCoupons/components/subscribeTicket.vue
View file @
3da730a1
...
...
@@ -78,6 +78,10 @@
type
:
String
,
default
:
""
},
msgPath
:
{
type
:
String
,
default
:
""
},
},
data
()
{
return
{
...
...
@@ -89,8 +93,6 @@
peopleNum
:
1
,
showAuth
:
false
,
u
:
{},
msgPath
:
""
,
}
},
watch
:
{
...
...
@@ -113,25 +115,7 @@
}
}
},
// 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
// }
// let Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
// return {
// title:'个人资料',
// path: "/pages/index/index?id=" + this.UserId + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + Up+'&JumpType=13',
// imageUrl:'',
// };
// },
mounted
()
{
this
.
msgPath
=
"/pages/ticketCoupons/detail?id="
+
options
.
id
+
'&TicketID'
+
this
.
TicketID
+
'&date'
+
this
.
defaultSelect
let
year
=
new
Date
().
getFullYear
();
//年
let
month
=
new
Date
().
getMonth
()
+
1
;
//月
if
(
month
<
10
)
{
...
...
@@ -177,8 +161,7 @@
},
changeDate
(
data
)
{
//选择日期事件 可以将data绑定到此页面以用来提交等操作
this
.
defaultSelect
=
data
.
date
;
this
.
price
=
data
.
price
;
this
.
msgPath
=
"/pages/ticketCoupons/detail?id="
+
options
.
id
+
'&TicketID'
+
this
.
TicketID
+
'&date'
+
this
.
defaultSelect
this
.
price
=
data
.
price
this
.
$forceUpdate
()
},
...
...
@@ -234,7 +217,7 @@
<
style
lang=
"scss"
scoped
>
.subscribeTicket
{
// height:
1020rpx
;
// height:
70vh
;
margin
:
45rpx
0
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;
...
...
pages/ticketCoupons/detail.vue
View file @
3da730a1
...
...
@@ -186,7 +186,7 @@
<!-- 填写订单弹出层 -->
<view>
<u-popup
v-model=
"showSubscribeTicketPop"
mode=
"bottom"
border-radius=
"40"
>
<subscribeTicket
:dateStr=
"Date"
:TicketID=
"TicketID"
:TitekCounponId=
"ID"
:TicketName=
"TicketName"
@
close=
"showSubscribeTicketPop=false"
:TicketImg=
"details.AllPicList[0].TagPicList[0].Path"
></subscribeTicket>
<subscribeTicket
:dateStr=
"Date"
:TicketID=
"TicketID"
:TitekCounponId=
"ID"
:TicketName=
"TicketName"
@
close=
"showSubscribeTicketPop=false"
:TicketImg=
"details.AllPicList[0].TagPicList[0].Path"
:msgPath=
"msgPath"
></subscribeTicket>
</u-popup>
</view>
</view>
...
...
@@ -227,16 +227,65 @@
showSubscribeTicketPop
:
false
,
//订单弹出层
TicketID
:
0
,
//门票id
TicketName
:
""
,
otherDate
:
"其他日期"
otherDate
:
"其他日期"
,
msgPath
:
""
}
},
onShareTimeline
()
{
// setTimeout(() => {
// console.log("分享朋友圈调用");
// this.getReceive();
// }, 2500);
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
;
}
let
title
=
this
.
details
.
Name
?
this
.
details
.
Name
:
'门票'
;
let
imageUrl
=
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
?
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
:
''
;
let
id
=
this
.
ID
;
return
{
title
:
title
,
query
:
"id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
,
imageUrl
:
imageUrl
,
};
},
onShareAppMessage
(
res
)
{
// setTimeout(() => {
// console.log("分享好友调用");
// this.getReceive();
// }, 2500);
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
.
details
.
Name
?
this
.
details
.
Name
:
'门票'
,
path
:
"/pages/index/index?id="
+
this
.
ID
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=15'
,
imageUrl
:
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
?
this
.
details
.
AllPicList
[
0
].
TagPicList
[
0
].
Path
:
''
};
},
onLoad
(
options
)
{
let
that
=
this
if
(
options
&&
options
.
id
)
{
this
.
ID
=
options
.
id
this
.
getDetail
()
}
this
.
msgPath
=
"/pages/ticketCoupons/detail?id="
+
options
.
id
uni
.
getSystemInfo
({
success
(
res
)
{
that
.
titleStyle
=
{
...
...
@@ -270,13 +319,9 @@
let
today
=
year
+
'-'
+
month
+
'-'
+
day
this
.
Date
=
today
this
.
calendar
.
date
=
today
if
(
options
.
TicketID
&&
options
.
date
){
this
.
TicketID
=
options
.
TicketID
this
.
Date
=
options
.
date
this
.
calendar
.
date
=
options
.
date
this
.
showSubscribeTicketPop
=
true
}
},
methods
:
{
//选择其他日期门票
confirm
(
e
)
{
...
...
pages/ticketCoupons/list.vue
View file @
3da730a1
...
...
@@ -163,9 +163,6 @@
});
this
.
getScenicType
();
// 获取景点类型
this
.
getList
();
// 获取景点门票类型
},
created
()
{
},
methods
:
{
searchList
(){
...
...
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