|
@@ -1,5 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view class="pages">
|
|
<view class="pages">
|
|
|
|
+ <view class="" :style="{height: navHeight+'px' }"></view>
|
|
<view class="page-bg">
|
|
<view class="page-bg">
|
|
<img class="img" :src="staticUrl+'/img/index-bg.png'" alt="">
|
|
<img class="img" :src="staticUrl+'/img/index-bg.png'" alt="">
|
|
</view>
|
|
</view>
|
|
@@ -113,6 +114,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import { systemInfo } from "@/mixin.js";
|
|
import tabbar from "../../components/tabbar.vue";
|
|
import tabbar from "../../components/tabbar.vue";
|
|
import cartfixed from "../../components/cartfixed.vue"
|
|
import cartfixed from "../../components/cartfixed.vue"
|
|
export default {
|
|
export default {
|
|
@@ -120,11 +122,12 @@
|
|
tabbar,
|
|
tabbar,
|
|
cartfixed
|
|
cartfixed
|
|
},
|
|
},
|
|
|
|
+ mixins:[systemInfo],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
goodsName:'',
|
|
goodsName:'',
|
|
staticUrl:this.$commonConfig.staticUrl,
|
|
staticUrl:this.$commonConfig.staticUrl,
|
|
- advantageSize:20,
|
|
|
|
|
|
+ advantageSize:14,
|
|
bannerList: [],
|
|
bannerList: [],
|
|
centerImg:[],
|
|
centerImg:[],
|
|
hotGoods:[]
|
|
hotGoods:[]
|
|
@@ -138,6 +141,11 @@
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
that.getCenterImg();
|
|
that.getCenterImg();
|
|
},200);
|
|
},200);
|
|
|
|
+ this.getSystemInfo();
|
|
|
|
+ // console.log('statusBarHeight',this.statusBarHeight);
|
|
|
|
+ // console.log('navigationBarHeight',this.navigationBarHeight);
|
|
|
|
+ // console.log('windowHeight',this.windowHeight);
|
|
|
|
+ // console.log('navHeight',this.navHeight);
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
this.$refs.cartfixed.getCartList();
|
|
this.$refs.cartfixed.getCartList();
|
|
@@ -205,7 +213,7 @@
|
|
<style>
|
|
<style>
|
|
page{
|
|
page{
|
|
background-color: #F9F9F9;
|
|
background-color: #F9F9F9;
|
|
- padding-top: 60px;
|
|
|
|
|
|
+ padding-top: 0;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -222,7 +230,7 @@ page{
|
|
.advantage{
|
|
.advantage{
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
margin-bottom: 50rpx;
|
|
margin-bottom: 50rpx;
|
|
- font-size: 20rpx;
|
|
|
|
|
|
+ font-size: 22rpx;
|
|
color: #ccc;
|
|
color: #ccc;
|
|
/deep/ .u-icon{
|
|
/deep/ .u-icon{
|
|
margin-right: 10rpx;
|
|
margin-right: 10rpx;
|