完善功能
This commit is contained in:
@ -7,11 +7,15 @@
|
||||
</view>
|
||||
</view>
|
||||
<view :style="'background: url(https://xh.stnav.com/uploads/sport/ground2.png) no-repeat; background-size:100% auto;'">
|
||||
<view v-if="thisindex == 0"><diy style="position: relative;" :diyItems="items"></diy></view>
|
||||
<!-- <view v-if="thisindex == 0"><diy style="position: relative;" :diyItems="items"></diy></view> -->
|
||||
<view class="banner">
|
||||
<banner :itemData="bannerData"></banner>
|
||||
</view>
|
||||
|
||||
<view class="notice">
|
||||
|
||||
<view class="notice" v-if="setting.notice">
|
||||
<image style="width: 40rpx;height: 40rpx;" src="@/static/icon/notice.png" mode=""></image>
|
||||
<view class="notice-txt">{{ notice.notice_title }}</view>
|
||||
<view class="notice-txt">{{ setting.notice }}</view>
|
||||
</view>
|
||||
|
||||
<!-- 预约球馆 -->
|
||||
@ -65,12 +69,12 @@
|
||||
<view class="">
|
||||
<view class="d-f">
|
||||
<image style="width: 24rpx;height: 24rpx;margin-top: 4rpx;" src="@/static/icon/address.png" mode=""></image>
|
||||
<view class="address-time">{{ company.name }}</view>
|
||||
<view class="address-time">{{ setting.company.address }}</view>
|
||||
</view>
|
||||
|
||||
<view class="d-f" style="margin-top: 8rpx;">
|
||||
<image style="width: 24rpx;height: 24rpx;margin-top: 2rpx" src="@/static/icon/time.png" mode=""></image>
|
||||
<view class="address-time" style="height: 32rpx;">营业时间:{{ company.start_time }}-{{ company.end_time }}</view>
|
||||
<view class="address-time" style="height: 32rpx;">营业时间:{{ setting.company.day_time }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="d-f">
|
||||
@ -126,6 +130,8 @@ import navBar from '@/components/navBar/navBar.vue';
|
||||
import uniLoadMore from '@/components/uni-load-more.vue';
|
||||
import searchProduct from '@/components/searchProduct.vue';
|
||||
import { BallType } from '@/common/ball.js';
|
||||
import banner from '@/components/diy/banner/banner.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
diy,
|
||||
@ -133,7 +139,8 @@ export default {
|
||||
navBar,
|
||||
uniLoadMore,
|
||||
searchProduct,
|
||||
Popup
|
||||
Popup,
|
||||
banner
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -184,7 +191,15 @@ export default {
|
||||
tipsPopup: false,
|
||||
venueList: [], // 场馆列表
|
||||
notice: '',
|
||||
company: {}
|
||||
company: {},
|
||||
setting: {
|
||||
carousel: {},
|
||||
company: {}
|
||||
},
|
||||
bannerData: {
|
||||
data: [],
|
||||
style: {btnColor: "#ffffff", background: "#ffffff", btnShape: "round", imgShape: "round", height: "330"}
|
||||
},
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@ -265,6 +280,23 @@ export default {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// 获取配置
|
||||
self._post(
|
||||
'ground.ground/groundSetting',
|
||||
{
|
||||
app_id: self.getAppId()
|
||||
},
|
||||
function(res) {
|
||||
if (res.code) {
|
||||
self.setting = res.data.lists;
|
||||
res.data.lists.carousel.map(items => {
|
||||
console.log("🚀 ~ items:", items)
|
||||
self.bannerData.data.push({imgUrl: items.file_path, height: '400px'})
|
||||
})
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
if (this.thisindex == 0) {
|
||||
@ -587,19 +619,21 @@ export default {
|
||||
|
||||
// 处理导航
|
||||
handleLocation() {
|
||||
console.log(123)
|
||||
console.log(this.setting.company)
|
||||
uni.openLocation({
|
||||
latitude: this.company.latitude,
|
||||
longitude: this.company.longitude,
|
||||
name: this.company.name,
|
||||
address: this.company.address,
|
||||
scale: 18
|
||||
});
|
||||
latitude: Number(this.setting.company.latitude),
|
||||
longitude: Number(this.setting.company.longitude),
|
||||
name: this.setting.company.address,
|
||||
address: this.setting.company.address,
|
||||
scale: 18,
|
||||
})
|
||||
},
|
||||
|
||||
// 处理拨打电话
|
||||
handleCall() {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: this.company.phone
|
||||
phoneNumber: this.setting.company.contact
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user