Commit 3da730a1 authored by 罗超's avatar 罗超

1

parent b063be50
...@@ -791,8 +791,12 @@ ...@@ -791,8 +791,12 @@
uni.navigateTo({ url: "/pages/blindDate/persondetails?UserId=" + that.GoodsId }); uni.navigateTo({ url: "/pages/blindDate/persondetails?UserId=" + that.GoodsId });
}else if(that.JumpType == 14){//用户资料填写 }else if(that.JumpType == 14){//用户资料填写
uni.navigateTo({ url: "/pages/blindDate/editData"}); 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); }, 500);
}, },
updateuserinfo(msg) { updateuserinfo(msg) {
......
...@@ -228,6 +228,52 @@ ...@@ -228,6 +228,52 @@
this.Date = tomorrow this.Date = tomorrow
console.log(this.calendar,this.Date) 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) { onLoad(options) {
if (options && options.id) { if (options && options.id) {
this.ID = options.id this.ID = options.id
......
...@@ -78,6 +78,10 @@ ...@@ -78,6 +78,10 @@
type: String, type: String,
default: "" default: ""
}, },
msgPath: {
type: String,
default: ""
},
}, },
data() { data() {
return { return {
...@@ -89,8 +93,6 @@ ...@@ -89,8 +93,6 @@
peopleNum: 1, peopleNum: 1,
showAuth: false, showAuth: false,
u: {}, u: {},
msgPath:"",
} }
}, },
watch: { watch: {
...@@ -113,25 +115,7 @@ ...@@ -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() { mounted() {
this.msgPath="/pages/ticketCoupons/detail?id="+options.id+'&TicketID'+this.TicketID+'&date'+this.defaultSelect
let year = new Date().getFullYear(); //年 let year = new Date().getFullYear(); //年
let month = new Date().getMonth() + 1; //月 let month = new Date().getMonth() + 1; //月
if (month < 10) { if (month < 10) {
...@@ -177,8 +161,7 @@ ...@@ -177,8 +161,7 @@
}, },
changeDate(data) { //选择日期事件 可以将data绑定到此页面以用来提交等操作 changeDate(data) { //选择日期事件 可以将data绑定到此页面以用来提交等操作
this.defaultSelect = data.date; this.defaultSelect = data.date;
this.price = data.price; this.price = data.price
this.msgPath="/pages/ticketCoupons/detail?id="+options.id+'&TicketID'+this.TicketID+'&date'+this.defaultSelect
this.$forceUpdate() this.$forceUpdate()
}, },
...@@ -234,7 +217,7 @@ ...@@ -234,7 +217,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.subscribeTicket { .subscribeTicket {
// height: 1020rpx; // height: 70vh;
margin: 45rpx 0; margin: 45rpx 0;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<!-- 填写订单弹出层 --> <!-- 填写订单弹出层 -->
<view> <view>
<u-popup v-model="showSubscribeTicketPop" mode="bottom" border-radius="40"> <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> </u-popup>
</view> </view>
</view> </view>
...@@ -227,16 +227,65 @@ ...@@ -227,16 +227,65 @@
showSubscribeTicketPop: false,//订单弹出层 showSubscribeTicketPop: false,//订单弹出层
TicketID:0,//门票id TicketID:0,//门票id
TicketName:"", 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) { onLoad(options) {
let that = this let that = this
if (options && options.id) { if (options && options.id) {
this.ID = options.id this.ID = options.id
this.getDetail() this.getDetail()
} }
this.msgPath="/pages/ticketCoupons/detail?id="+options.id
uni.getSystemInfo({ uni.getSystemInfo({
success(res) { success(res) {
that.titleStyle = { that.titleStyle = {
...@@ -270,13 +319,9 @@ ...@@ -270,13 +319,9 @@
let today = year+'-'+month+'-'+day let today = year+'-'+month+'-'+day
this.Date = today this.Date = today
this.calendar.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: { methods: {
//选择其他日期门票 //选择其他日期门票
confirm(e) { confirm(e) {
......
...@@ -163,9 +163,6 @@ ...@@ -163,9 +163,6 @@
}); });
this.getScenicType();// 获取景点类型 this.getScenicType();// 获取景点类型
this.getList();// 获取景点门票类型 this.getList();// 获取景点门票类型
},
created() {
}, },
methods: { methods: {
searchList(){ searchList(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment