修改场馆没有项目信息显示直接到场按钮
This commit is contained in:
parent
cc28c968d9
commit
40cd44b118
@ -13,7 +13,8 @@ Page({
|
||||
venuesDetail:{},
|
||||
venuesProjectList: [],
|
||||
swiperImg:[],
|
||||
venueCharge: ''
|
||||
venueCharge: '',
|
||||
hasProject:''
|
||||
},
|
||||
|
||||
//场馆详情接口
|
||||
@ -23,6 +24,7 @@ Page({
|
||||
{
|
||||
resultLocation: 'TX'
|
||||
}, null, function(code, data){
|
||||
console.log(data)
|
||||
var src = 'img src="' + app.venueUrl + '/'
|
||||
if(data.venueDescription.indexOf('src="') != -1){
|
||||
data.venueDescription = data.venueDescription.replace(/src="/g, src)
|
||||
@ -37,7 +39,8 @@ Page({
|
||||
self.setData({
|
||||
venuesDetail: data,
|
||||
swiperImg: swiperImg,
|
||||
venueCharge: data.venueCharge
|
||||
venueCharge: data.venueCharge,
|
||||
hasProject : data.hasProject
|
||||
});
|
||||
}, function(code,data){
|
||||
app.dialog.msg(data.msg);
|
||||
|
@ -37,13 +37,13 @@
|
||||
<!-- <view class="intro-content"></view> -->
|
||||
<rich-text nodes="{{venuesDetail.venueDescription}}"></rich-text>
|
||||
</view>
|
||||
<view class="book-btn" wx:if="{{venueCharge == 'arrive'}}">
|
||||
<view class="book-btn" wx:if="{{venueCharge == 'arrive' || hasProject == '0'}}">
|
||||
<view class="btn" bindtap="showMap" data-latitude="{{venuesDetail.latitude}}" data-longitude="{{venuesDetail.longitude}}"
|
||||
data-venuename="{{venuesDetail.venueName}}" data-venueposition="{{venuesDetail.venuePosition}}">直接到场</view>
|
||||
</view>
|
||||
<view class="book-btn" wx:if="{{venueCharge == 'booking'}}">
|
||||
<view class="book-btn" wx:if="{{venueCharge == 'booking' && hasProject == '1'}}">
|
||||
<view class="btn" bindtap="goBooking">场次预订</view>
|
||||
</view>
|
||||
<view class="book-btn" wx:if="{{venueCharge == 'ticket'}}">
|
||||
<view class="book-btn" wx:if="{{venueCharge == 'ticket' && hasProject == '1'}}">
|
||||
<view class="btn" bindtap="goBooking">门票预订</view>
|
||||
</view>
|
Loading…
Reference in New Issue
Block a user