Chore(首页):代码注释&去掉多余代码
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
/>
|
||||
<image
|
||||
v-if="item.isOldBrand"
|
||||
:src="webUrl + '/home/old-mark'"
|
||||
:src="webUrl + '/home/old-mark.png'"
|
||||
class="mark-img"
|
||||
/>
|
||||
<image
|
||||
|
||||
+5
-12
@@ -150,7 +150,7 @@
|
||||
@click="hotelItemClickHandle(hotelItem)"
|
||||
>
|
||||
<image :src="webUrl + '/home/home-number' + (hotelIndex + 1) + '.png'" class="mark" />
|
||||
<image :src="webUrl + '/home/icon-hotel-btn'" class="btn" />
|
||||
<image :src="webUrl + '/home/icon-hotel-btn.png'" class="btn" />
|
||||
<image :src="hotelItem.logo" class="logo" />
|
||||
<view class="info">
|
||||
<view class="name one-t">{{ hotelItem.name }}</view>
|
||||
@@ -245,7 +245,6 @@
|
||||
<script>
|
||||
import XddTabbar from '@/components/xdd-tabbar'
|
||||
import XddProductItem from '@/components/xdd-product-item'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { getCouponReceive } from '@/api/user'
|
||||
import { getHomeData, getShareImage } from '@/api/public'
|
||||
import { sharpBannar } from '@/api/goods'
|
||||
@@ -290,15 +289,15 @@ export default {
|
||||
// 老用户弹窗
|
||||
isOldUser: true,
|
||||
oldUserPopup: {},
|
||||
// 民宿专题轮播
|
||||
contentHomestay: [],
|
||||
// 节日专题
|
||||
contentFestival: {},
|
||||
seasonalFood: {},
|
||||
pageKeyId: Object.freeze('appIndex'),
|
||||
scrollTop: 0
|
||||
}
|
||||
},
|
||||
computed: mapGetters(['userInfo', 'isLogin']),
|
||||
onLoad(options) {
|
||||
onLoad() {
|
||||
uni.hideTabBar()
|
||||
const _this = this
|
||||
_this.init()
|
||||
@@ -315,11 +314,6 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
const today = new Date()
|
||||
this.month = today.getMonth() + 1
|
||||
this.date = today.getDate()
|
||||
},
|
||||
onHide() {
|
||||
this.pageToHideHandle()
|
||||
},
|
||||
@@ -343,6 +337,7 @@ export default {
|
||||
})
|
||||
this.getLocationData()
|
||||
},
|
||||
// 定位失败,重新唤起定位授权
|
||||
reLocateHandle() {
|
||||
if (this.cityName) return
|
||||
getLocationSetting(() => openLocationSettting().then(() => {
|
||||
@@ -525,8 +520,6 @@ export default {
|
||||
.slider-banner {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: auto !important;
|
||||
-webkit-transform: rotate(0);
|
||||
}
|
||||
.subject-box {
|
||||
padding: 12rpx;
|
||||
|
||||
Reference in New Issue
Block a user