Commit 769f9e80 authored by 罗超's avatar 罗超

1

parent 3f67a01d
...@@ -215,7 +215,6 @@ ...@@ -215,7 +215,6 @@
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
// options = {user_id:123978,SmallShopId:0,Up:0,JumpType:14}
uni.getSystemInfo({ uni.getSystemInfo({
success(res) { success(res) {
that.titleStyle = { that.titleStyle = {
...@@ -825,9 +824,9 @@ ...@@ -825,9 +824,9 @@
}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){//门票详情 }else if(that.JumpType == 15){//门票详情
uni.navigateTo({ url: "/pages/ticketCoupons/detail?id"+that.GoodsId}); uni.navigateTo({ url: "/pages/ticketCoupons/detail?id="+that.GoodsId});
}else if(that.JumpType == 16){//餐食详情 }else if(that.JumpType == 16){//餐食详情
uni.navigateTo({ url: "/pages/restaurant/detail?id"+that.GoodsId}); uni.navigateTo({ url: "/pages/restaurant/detail?id="+that.GoodsId});
}else if(that.JumpType == 17){//景点专车 }else if(that.JumpType == 17){//景点专车
uni.navigateTo({ url: '/pages/guidecar/bookaCarList?carMsg='+that.carMsg}) uni.navigateTo({ url: '/pages/guidecar/bookaCarList?carMsg='+that.carMsg})
}else if(that.JumpType == 18){ //酒店详情 }else if(that.JumpType == 18){ //酒店详情
......
<template> <template>
<view class="restaurant-detail"> <view class="restaurant-detail" v-if="details.Name">
<scroll-view scroll-y="true" style="width: 100%;height: 100%;" @scroll="scroll"> <scroll-view scroll-y="true" style="width: 100%;height: 100%;" @scroll="scroll">
<view class="media" :style="{'opacity':(100-boxOption)+'%'}"> <view class="media" :style="{'opacity':(100-boxOption)+'%'}">
<u-swiper :list="imgsList" :effect3d="false" :height="407" :interval="5000" :border-radius="0" <u-swiper :list="imgsList" :effect3d="false" :height="407" :interval="5000" :border-radius="0"
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
info: '' info: ''
}], }],
Date: "", Date: "",
up:"", Up:0,
nearbyType:0, nearbyType:0,
foodArr: [], //推荐景点 foodArr: [], //推荐景点
} }
...@@ -241,6 +241,7 @@ ...@@ -241,6 +241,7 @@
this.Date = tomorrow this.Date = tomorrow
console.log(this.calendar,this.Date) console.log(this.calendar,this.Date)
this.Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
}, },
onShareTimeline() { onShareTimeline() {
// setTimeout(() => { // setTimeout(() => {
...@@ -282,6 +283,7 @@ ...@@ -282,6 +283,7 @@
if(SmallShopId == 0){//如果微店id为0 去找所属微店id if(SmallShopId == 0){//如果微店id为0 去找所属微店id
SmallShopId = u.UserSmallShopId? u.UserSmallShopId:0 SmallShopId = u.UserSmallShopId? u.UserSmallShopId:0
} }
console.log("/pages/index/index?id=" + this.ID + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + this.Up+'&JumpType=16')
return { return {
title:this.details.Name?this.details.Name:'美食', title:this.details.Name?this.details.Name:'美食',
path: "/pages/index/index?id=" + this.ID + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + this.Up+'&JumpType=16', path: "/pages/index/index?id=" + this.ID + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + this.Up+'&JumpType=16',
...@@ -289,6 +291,7 @@ ...@@ -289,6 +291,7 @@
}; };
}, },
onLoad(options) { onLoad(options) {
console.log(options)
if (options && options.id) { if (options && options.id) {
this.ID = options.id this.ID = options.id
this.getDetail() this.getDetail()
......
<template> <template>
<view style="height: 100vh; overflow: hidden;width:100vw;"> <view style="height: 100vh; overflow: hidden;width:100vw;" v-if="details.Name">
<scroll-view scroll-y="true" style="width: 100%;height: 100%;" @scroll="scroll"> <scroll-view scroll-y="true" style="width: 100%;height: 100%;" @scroll="scroll">
<view style="height: 500rpx;position: relative;z-index: 1;background-color: #E7E7E7;" <view style="height: 500rpx;position: relative;z-index: 1;background-color: #E7E7E7;"
:style="{'opacity':(100-boxOption)+'%'}"> :style="{'opacity':(100-boxOption)+'%'}">
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
TicketName: "", TicketName: "",
otherDate: "其他日期", otherDate: "其他日期",
msgPath: "", msgPath: "",
up: "", Up: 0,
nearbyType: 0, nearbyType: 0,
scenicArr: [], //推荐景点 scenicArr: [], //推荐景点
} }
...@@ -308,6 +308,7 @@ ...@@ -308,6 +308,7 @@
let imageUrl = this.details.AllPicList[0].TagPicList[0].Path ? this.details.AllPicList[0].TagPicList[0].Path : let imageUrl = this.details.AllPicList[0].TagPicList[0].Path ? this.details.AllPicList[0].TagPicList[0].Path :
''; '';
let id = this.ID; let id = this.ID;
this.Up = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserPageType:0;
return { return {
title: title, title: title,
query: "id=" + this.id + "&user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + this.Up, query: "id=" + this.id + "&user_id=" + uid + "&SmallShopId=" + SmallShopId + "&Up=" + this.Up,
......
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