|
|
@ -5,22 +5,22 @@ |
|
|
|
|
|
|
|
<view class="content"> |
|
|
|
<view class="content-head"> |
|
|
|
<image class="image-box" :src="travelDetails.image" mode=""></image> |
|
|
|
<image class="image-box" :src="travelDetails.travel.image" mode=""></image> |
|
|
|
<view class="msg-box"> |
|
|
|
<view class="msg-box-title">{{travelDetails.title}}</view> |
|
|
|
<view class="msg-box-time">开始时间:{{travelDetails.startTime}}</view> |
|
|
|
<view class="msg-box-title">{{travelDetails.travel.title}}</view> |
|
|
|
<view class="msg-box-time">开始时间:{{travelDetails.travel.startTime}}</view> |
|
|
|
<view class="lingdui-box"> |
|
|
|
<image class="use-img" src="@/static/image/center/3.png" mode=""></image> |
|
|
|
<image class="use-img" :src="travelDetails.adminUserInfo.headImage" mode=""></image> |
|
|
|
<view class="lingdui-msg"> |
|
|
|
<view class="lingdui-msg-name"> |
|
|
|
<view>VTrip微程</view> |
|
|
|
<view>{{travelDetails.adminUserInfo.nickName}}</view> |
|
|
|
<view class="name-tip">领队</view> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<uv-rate :count="count" v-model="value" size="23" activeColor="#FFA200"></uv-rate> |
|
|
|
<uv-rate :count="count" v-model="travelDetails.adminUser.num" size="23" activeColor="#FFA200"></uv-rate> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="add-wx">添加微信</view> |
|
|
|
<view class="add-wx" @click="$refs.ewmpopup.open()">添加微信</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -28,17 +28,17 @@ |
|
|
|
<view class="title-box">旅行描述</view> |
|
|
|
<view class="value-box"> |
|
|
|
<view class="tabs-box"> |
|
|
|
<uv-tabs :list="list" @click="click" lineColor="#FE5E5E" :activeStyle="{color:'#FE5E5E',fontSize:'29rpx',fontWeight: 'bold'}" :inactiveStyle="{color:'#D6D6D6',fontSize:'29rpx',fontWeight: 'bold'}"></uv-tabs> |
|
|
|
<uv-tabs :list="list" @click="tabsClick" lineColor="#FE5E5E" :activeStyle="{color:'#FE5E5E',fontSize:'29rpx',fontWeight: 'bold'}" :inactiveStyle="{color:'#D6D6D6',fontSize:'29rpx',fontWeight: 'bold'}"></uv-tabs> |
|
|
|
</view> |
|
|
|
<view class="lv-msg-box"> |
|
|
|
当金黄的落叶轻柔地铺满了小城的每个角落,我们知道,最温柔的季节已悄然而至。在这个收获的季节里,我们诚挚邀请您加入我们的秋日私旅 |
|
|
|
<uv-parse :content="content"></uv-parse> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="bottom-box"> |
|
|
|
<view class="price-box"> |
|
|
|
<view class="peice-val"><text>¥</text>{{travelDetails.price}}</view> |
|
|
|
<view class="peice-val"><text>¥</text>{{travelDetails.travel.price}}</view> |
|
|
|
<view>报名费用</view> |
|
|
|
</view> |
|
|
|
<view class="caozuo-box"> |
|
|
@ -46,13 +46,20 @@ |
|
|
|
<image src="@/static/image/home/shoucang-icon.png" mode=""></image> |
|
|
|
<view>收藏</view> |
|
|
|
</view> |
|
|
|
<view class="caozuo-item"> |
|
|
|
<image src="@/static/image/home/zhuanfa-icon.png" mode=""></image> |
|
|
|
<view>转发</view> |
|
|
|
</view> |
|
|
|
<button type="primary" style="background-color: transparent;height: 100rpx;font-size: 20rpx;padding: 0;" open-type="share" > |
|
|
|
<view class="caozuo-item"> |
|
|
|
<image src="@/static/image/home/zhuanfa-icon.png" mode=""></image> |
|
|
|
<text style="line-height: initial;">转发</text> |
|
|
|
</view> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
<view class="btn-box">立即报名</view> |
|
|
|
<view class="btn-box" @click="toBaoming">立即报名</view> |
|
|
|
</view> |
|
|
|
<uv-popup ref="ewmpopup" mode="center" round="30rpx"> |
|
|
|
<view class="pop-cont"> |
|
|
|
<uv-image :src="travelDetails.adminUser.img" width="380rpx" height="380rpx"></uv-image> |
|
|
|
</view> |
|
|
|
</uv-popup> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
@ -60,27 +67,70 @@ |
|
|
|
export default{ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
travelDetails: null, |
|
|
|
travelDetails: null, |
|
|
|
bgColor:'transparent', |
|
|
|
count:5, |
|
|
|
value:3, |
|
|
|
content:'', |
|
|
|
current:0, |
|
|
|
list:[ |
|
|
|
{ |
|
|
|
name:'介绍' |
|
|
|
name:'介绍', |
|
|
|
key:'js' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name:'路线' |
|
|
|
name:'路线', |
|
|
|
key:'lx' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name:'费用' |
|
|
|
name:'费用', |
|
|
|
key:'fy' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name:'须知' |
|
|
|
name:'须知', |
|
|
|
key:'xz' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name:'代理' |
|
|
|
name:'代理', |
|
|
|
key:'dl' |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
travelId:'', |
|
|
|
} |
|
|
|
}, |
|
|
|
onShareAppMessage(res) { |
|
|
|
console.log(res) |
|
|
|
if (res.from === 'button') { |
|
|
|
// 来自详情页页面内分享按 |
|
|
|
return { |
|
|
|
title:this.travelDetails.travel.title, |
|
|
|
path: `/pages_order/lvyou-detail?travelId=${this.travelId}`, |
|
|
|
imageUrl: this.travelDetails.travel.image, |
|
|
|
success: function(res) { |
|
|
|
// 转发成功 |
|
|
|
console.log('转发成功') |
|
|
|
}, |
|
|
|
fail: function(res) { |
|
|
|
// 转发失败 |
|
|
|
} |
|
|
|
}; |
|
|
|
} |
|
|
|
// 设置转发的参数 |
|
|
|
return { |
|
|
|
title:this.travelDetails.title, |
|
|
|
path: `/pages_order/lvyou-detail?travelId=${this.travelId}`, |
|
|
|
imageUrl: this.travelDetails.travel.image, |
|
|
|
success: function(res) { |
|
|
|
console.log(res, '发生过是'); |
|
|
|
if (res.errMsg == 'shareAppMessage:ok') { |
|
|
|
console.log("成功", res) |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: function(res) { |
|
|
|
|
|
|
|
console.log("失败", res) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onPageScroll(e) { |
|
|
@ -90,14 +140,36 @@ |
|
|
|
this.bgColor = 'transparent' |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad({travelId}) { |
|
|
|
this.travelInfo(travelId) |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
onLoad({travelId}) { |
|
|
|
this.travelId = travelId |
|
|
|
this.travelInfo(travelId) |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
toBaoming() { |
|
|
|
this.$api('createOrder',{id:this.travelId,typePrice:1},res=>{ |
|
|
|
if(res.code === 200) { |
|
|
|
uni.requestPaymentWxPay(res) |
|
|
|
.then(res => { |
|
|
|
uni.showToast({ |
|
|
|
title: '下单成功', |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
|
|
|
|
}).catch(n => { |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
tabsClick(val) { |
|
|
|
this.current = val.index |
|
|
|
this.content = this.travelDetails.travel[this.list[this.current].key] |
|
|
|
}, |
|
|
|
travelInfo(travelId) { |
|
|
|
this.$api('travelInfo',{travelId},res=> { |
|
|
|
if(res.code==200) { |
|
|
|
this.travelDetails = res.result |
|
|
|
this.content = res.result.travel[this.list[this.current].key] |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@ -111,6 +183,10 @@ |
|
|
|
} |
|
|
|
</style> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.pop-cont { |
|
|
|
border-radius: 30rpx; |
|
|
|
padding: 10rpx; |
|
|
|
} |
|
|
|
.head-box { |
|
|
|
background: url('@/static/image/nav-bg.png') no-repeat; |
|
|
|
background-size: 100% 100%; |
|
|
@ -126,6 +202,7 @@ |
|
|
|
position: relative; |
|
|
|
.image-box { |
|
|
|
width: 100%; |
|
|
|
border-radius: 20rpx 20rpx 0 0; |
|
|
|
height: 546rpx; |
|
|
|
} |
|
|
|
.msg-box { |
|
|
@ -160,6 +237,7 @@ |
|
|
|
.use-img { |
|
|
|
width: 86rpx; |
|
|
|
height: 86rpx; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
.lingdui-msg { |
|
|
|
flex: 1; |
|
|
@ -269,6 +347,10 @@ |
|
|
|
color: #999999; |
|
|
|
padding: 0 35rpx; |
|
|
|
text-align: center; |
|
|
|
height: 100rpx; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
image { |
|
|
|
width: 48rpx; |
|
|
|
height: 48rpx; |
|
|
|