|
@ -11,7 +11,7 @@ |
|
|
<view class="msg-box-time">开始时间:{{activityDetails.startTime}}</view> |
|
|
<view class="msg-box-time">开始时间:{{activityDetails.startTime}}</view> |
|
|
<view class="msg-box-address"> |
|
|
<view class="msg-box-address"> |
|
|
<view class="msg-box-address-text">活动地址:{{activityDetails.address}}</view> |
|
|
<view class="msg-box-address-text">活动地址:{{activityDetails.address}}</view> |
|
|
<view class="address-icon"> |
|
|
|
|
|
|
|
|
<view class="address-icon" @click="daohang"> |
|
|
<image src="@/static/image/home/address-icon-2.png" mode=""></image> |
|
|
<image src="@/static/image/home/address-icon-2.png" mode=""></image> |
|
|
<view>导航</view> |
|
|
<view>导航</view> |
|
|
</view> |
|
|
</view> |
|
@ -24,10 +24,10 @@ |
|
|
<view class="name-tip">主理人</view> |
|
|
<view class="name-tip">主理人</view> |
|
|
</view> |
|
|
</view> |
|
|
<view> |
|
|
<view> |
|
|
<uv-rate :count="count" v-model="value" size="23" activeColor="#FFA200"></uv-rate> |
|
|
|
|
|
|
|
|
<uv-rate :count="count" v-model="numValue" size="23" activeColor="#FFA200"></uv-rate> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="add-wx">添加微信</view> |
|
|
|
|
|
|
|
|
<view class="add-wx" @click="$refs.ewmpopup.open();">添加微信</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -60,12 +60,14 @@ |
|
|
<view class="caozuo-box"> |
|
|
<view class="caozuo-box"> |
|
|
<view class="caozuo-item border-r"> |
|
|
<view class="caozuo-item border-r"> |
|
|
<image src="@/static/image/home/shoucang-icon.png" mode=""></image> |
|
|
<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> |
|
|
|
|
|
|
|
|
<text>收藏</text> |
|
|
</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> |
|
|
<view class="btn-box" @click="toBaoming">立即报名</view> |
|
|
<view class="btn-box" @click="toBaoming">立即报名</view> |
|
|
<!-- <view class="btn-box end-btn">已结束</view> --> |
|
|
<!-- <view class="btn-box end-btn">已结束</view> --> |
|
@ -92,10 +94,18 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</uv-popup> |
|
|
</uv-popup> |
|
|
|
|
|
|
|
|
|
|
|
<uv-popup ref="ewmpopup" mode="center" round="30rpx"> |
|
|
|
|
|
<view class="pop-cont"> |
|
|
|
|
|
<uv-image :src="ewmImg" width="380rpx" height="380rpx"></uv-image> |
|
|
|
|
|
</view> |
|
|
|
|
|
</uv-popup> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { error } from '../uni_modules/uv-ui-tools/libs/function' |
|
|
|
|
|
|
|
|
export default{ |
|
|
export default{ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -107,7 +117,8 @@ |
|
|
chooseIndex:0, |
|
|
chooseIndex:0, |
|
|
bgColor:'transparent', |
|
|
bgColor:'transparent', |
|
|
count:5, |
|
|
count:5, |
|
|
value:3, |
|
|
|
|
|
|
|
|
numValue:0, |
|
|
|
|
|
ewmImg:'', |
|
|
typeList:[ |
|
|
typeList:[ |
|
|
{ |
|
|
{ |
|
|
name:'早鸟票', |
|
|
name:'早鸟票', |
|
@ -121,7 +132,8 @@ |
|
|
name:'尊享票', |
|
|
name:'尊享票', |
|
|
price:268 |
|
|
price:268 |
|
|
} |
|
|
} |
|
|
] |
|
|
|
|
|
|
|
|
], |
|
|
|
|
|
activityId:'' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed:{ |
|
|
computed:{ |
|
@ -129,6 +141,41 @@ |
|
|
return this.activityDetails.image.split(',') |
|
|
return this.activityDetails.image.split(',') |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
onShareAppMessage(res) { |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
if (res.from === 'button') { |
|
|
|
|
|
// 来自详情页页面内分享按 |
|
|
|
|
|
return { |
|
|
|
|
|
title:this.activityDetails.title, |
|
|
|
|
|
path: `/pages_order/huodong-detail?activityId=${this.activityId}`, |
|
|
|
|
|
imageUrl: this.imageArr[0], |
|
|
|
|
|
success: function(res) { |
|
|
|
|
|
// 转发成功 |
|
|
|
|
|
console.log('转发成功') |
|
|
|
|
|
}, |
|
|
|
|
|
fail: function(res) { |
|
|
|
|
|
// 转发失败 |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
// 设置转发的参数 |
|
|
|
|
|
return { |
|
|
|
|
|
title:this.activityDetails.title, |
|
|
|
|
|
path: `/pages_order/huodong-detail?activityId=${this.activityId}`, |
|
|
|
|
|
imageUrl: this.imageArr[0], |
|
|
|
|
|
success: function(res) { |
|
|
|
|
|
console.log(res, '发生过是'); |
|
|
|
|
|
if (res.errMsg == 'shareAppMessage:ok') { |
|
|
|
|
|
console.log("成功", res) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
fail: function(res) { |
|
|
|
|
|
|
|
|
|
|
|
console.log("失败", res) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
onPageScroll(e) { |
|
|
onPageScroll(e) { |
|
|
if(e.scrollTop > 50) { |
|
|
if(e.scrollTop > 50) { |
|
|
this.bgColor = '#49070c' |
|
|
this.bgColor = '#49070c' |
|
@ -137,13 +184,28 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad({activityId}) { |
|
|
onLoad({activityId}) { |
|
|
|
|
|
this.activityId = activityId |
|
|
this.activityInfo(activityId) |
|
|
this.activityInfo(activityId) |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
|
|
|
daohang() { |
|
|
|
|
|
uni.openLocation({ |
|
|
|
|
|
latitude: Number(this.activityDetails.latitude), |
|
|
|
|
|
longitude: Number(this.activityDetails.longitude), |
|
|
|
|
|
success: function () { |
|
|
|
|
|
console.log('success'); |
|
|
|
|
|
}, |
|
|
|
|
|
fail:(error)=> { |
|
|
|
|
|
console.log('error',error); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
activityInfo(activityId) { |
|
|
activityInfo(activityId) { |
|
|
this.$api('activityInfo',{activityId},res=> { |
|
|
this.$api('activityInfo',{activityId},res=> { |
|
|
if(res.code==200) { |
|
|
if(res.code==200) { |
|
|
this.activityDetails = res.result.activityInfo |
|
|
this.activityDetails = res.result.activityInfo |
|
|
|
|
|
this.numValue = res.result.adminUser.num |
|
|
|
|
|
this.ewmImg = res.result.adminUser.img |
|
|
this.adminUserInfo = res.result.adminUserInfo |
|
|
this.adminUserInfo = res.result.adminUserInfo |
|
|
this.typeList[0].price = res.result.activityInfo.birdPrice; |
|
|
this.typeList[0].price = res.result.activityInfo.birdPrice; |
|
|
this.typeList[1].price = res.result.activityInfo.personPrice; |
|
|
this.typeList[1].price = res.result.activityInfo.personPrice; |
|
@ -158,7 +220,7 @@ |
|
|
this.chooseIndex = i |
|
|
this.chooseIndex = i |
|
|
}, |
|
|
}, |
|
|
confirmClick(typePrice) { |
|
|
confirmClick(typePrice) { |
|
|
this.$api('createOrder',{id:this.activityDetails.id,typePrice:typePrice},res=>{ |
|
|
|
|
|
|
|
|
this.$api('createOrder',{id:this.activityId,typePrice:typePrice},res=>{ |
|
|
if(res.code === 200) { |
|
|
if(res.code === 200) { |
|
|
uni.requestPaymentWxPay(res) |
|
|
uni.requestPaymentWxPay(res) |
|
|
.then(res => { |
|
|
.then(res => { |
|
@ -183,6 +245,10 @@ |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
|
|
|
.pop-cont { |
|
|
|
|
|
border-radius: 30rpx; |
|
|
|
|
|
padding: 10rpx; |
|
|
|
|
|
} |
|
|
.head-box { |
|
|
.head-box { |
|
|
background: url('@/static/image/nav-bg.png') no-repeat; |
|
|
background: url('@/static/image/nav-bg.png') no-repeat; |
|
|
background-size: 100% 100%; |
|
|
background-size: 100% 100%; |
|
@ -193,7 +259,7 @@ |
|
|
} |
|
|
} |
|
|
.content { |
|
|
.content { |
|
|
padding: 0 30rpx 170rpx; |
|
|
padding: 0 30rpx 170rpx; |
|
|
padding-top: calc(var(--status-bar-height) + 110rpx); |
|
|
|
|
|
|
|
|
padding-top: calc(var(--status-bar-height) + 130rpx); |
|
|
.content-head { |
|
|
.content-head { |
|
|
position: relative; |
|
|
position: relative; |
|
|
.image-box { |
|
|
.image-box { |
|
@ -257,6 +323,7 @@ |
|
|
.use-img { |
|
|
.use-img { |
|
|
width: 86rpx; |
|
|
width: 86rpx; |
|
|
height: 86rpx; |
|
|
height: 86rpx; |
|
|
|
|
|
border-radius: 50%; |
|
|
} |
|
|
} |
|
|
.lingdui-msg { |
|
|
.lingdui-msg { |
|
|
flex: 1; |
|
|
flex: 1; |
|
@ -367,6 +434,10 @@ |
|
|
color: #999999; |
|
|
color: #999999; |
|
|
padding: 0 35rpx; |
|
|
padding: 0 35rpx; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
|
|
|
height: 100rpx; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
align-items: center; |
|
|
image { |
|
|
image { |
|
|
width: 48rpx; |
|
|
width: 48rpx; |
|
|
height: 48rpx; |
|
|
height: 48rpx; |
|
|