This commit is contained in:
Gao xiaosong
2020-07-14 00:14:28 +08:00
parent e4535bf89f
commit 54eec53e79
4 changed files with 602 additions and 0 deletions

View File

@ -49,6 +49,7 @@
<view>{{ item.name }}</view>
</view>
</view>
<uni-notice-bar scrollable="true" single="true" speed="30" showIcon="true" :text="singNew.info"></uni-notice-bar>
<view class="wrapper hot" v-if="bastList.length > 0">
<image class="bg" src="../../static/images/index-bg.png" mode="widthFix"></image>
<view class="title no-border acea-row row-between-wrapper">
@ -136,6 +137,7 @@
import GoodList from '@/components/GoodList';
import PromotionGood from '@/components/PromotionGood';
import CouponWindow from '@/components/CouponWindow';
import uniNoticeBar from '@/components/uni-notice-bar/uni-notice-bar.vue'
import {
getHomeData,
getShare
@ -153,6 +155,7 @@
components: {
// swiper,
// swiperSlide,
uniNoticeBar,
GoodList,
PromotionGood,
CouponWindow
@ -234,6 +237,11 @@
}
};
},
computed:{
singNew() {
return this.roll.length > 0 ? this.roll[0] : "你还没添加通知哦!";
}
},
onShow: function() {
this.getLocation()
let that = this;