Commit a7c65bd4103291de4928afe2a318b73a77f93ff2

Authored by vking
1 parent eb63e538

预订卡片调整

... ... @@ -22,7 +22,7 @@
<view class="left info Medium">
<view class="label">时间</view>
<view class="value" wx:if="{{hasOnlineReserve || detail.hasUpdateDate}}">
{{util.unixtoTime(detail.ddate,'MM月DD日')}} {{util.reserveTimeSpace(detail.ddate_solt||detail.section)}}
{{util.unixtoTime(detail.ddate||'','MM月DD日')}} {{util.reserveTimeSpace(detail.ddate_solt||detail.section)}}
</view>
<view class="value" wx:else="">{{rdateStr}}</view>
</view>
... ...
... ... @@ -12,7 +12,11 @@ Component({
hasAllowaAuthDeny:{//是否允许用户拒绝
type:Boolean,
value:true,
}
},
hasAllowLoading:{//包间查找中
type:Boolean,
value:true,
},
},
/**
... ... @@ -38,7 +42,7 @@ Component({
latitude: '',
longitude: '',
});
wx.hideLoading()
if(this.data.hasAllowLoading) wx.hideLoading()
return;
}
if(failCount>2){//定位失败
... ... @@ -55,7 +59,7 @@ Component({
latitude:'',
longitude:'',
});
wx.hideLoading()
if(this.data.hasAllowLoading) wx.hideLoading()
},
})
return;
... ... @@ -69,7 +73,7 @@ Component({
latitude: '',
longitude: '',
});
wx.hideLoading()
if(this.data.hasAllowLoading) wx.hideLoading()
return;
}
this.selectComponent('#showModal').options({
... ... @@ -88,9 +92,11 @@ Component({
_getPos(){
return new Promise((success, fail) => {
let rex={latitude:'',longitude:''};
wx.showLoading({
title: '包间查找中',
})
if(this.data.hasAllowLoading){
wx.showLoading({
title: '包间查找中',
})
}
let hasSuccess=false;
wx.getLocation({
type: 'gcj02',
... ... @@ -110,7 +116,7 @@ Component({
setTimeout(()=>{
if(!hasSuccess){
success(rex)
wx.hideLoading()
if(this.data.hasAllowLoading) wx.hideLoading()
}
},2000)
})
... ...
... ... @@ -149,4 +149,4 @@
</view>
<manager manager="{{detail}}" id="manager"></manager>
<as id="as" items="{{detail.seller.seller_tel}}" bindclick="callSellerPhone">拨打电话</as>
<getpos bindpos="onpos" id="getpos" hasAllowFail></getpos>
\ No newline at end of file
<getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos>
\ No newline at end of file
... ...
... ... @@ -45,4 +45,4 @@
</block>
</block>
</view>
<getpos bindpos="onpos" id="getpos" hasAllowFail></getpos>
\ No newline at end of file
<getpos bindpos="onpos" id="getpos" hasAllowFail hasAllowLoading="{{false}}"></getpos>
\ No newline at end of file
... ...