xiebaomin 2 年 前
コミット
83ccfb257f
1 ファイル変更14 行追加2 行削除
  1. 14 2
      pages/seller/components/home.vue

+ 14 - 2
pages/seller/components/home.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="container home clearfix" :style="{paddingTop:CustomBar+'px'}">
-		<customer ref="customer" :navbar-data='nvabarData'></customer>
+		<customer ref="customer" :isScroll="isScroll" :navbar-data='nvabarData'></customer>
 		<!-- 主页内容 -->
 		<tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading	="true" :loadingType="5"></tui-skeleton>
 		<view class="container-home tui-skeleton">
@@ -8,6 +8,8 @@
 			<banner :list="bannerImageList" v-if="isNavRequest"></banner>
 			<!-- 金刚区菜单 -->
 			<navbars :list="navBarsList" v-if="isNavRequest"></navbars>
+            <!-- 快捷运营 -->
+            <quick-opera :list="quickOpreaList" v-if="isNavRequest && quickOpreaList.length > 0"/>
 			<!-- 轮播公告 -->
 			<notice :list="newsList" v-if="isNavRequest && newsList.length>0 "></notice>
 			<!-- 直播 -->
@@ -40,6 +42,7 @@
 	import Certificate from '@/components/cm-module/homeIndex/certificate.vue'
 	import pageSpecial from '@/components/cm-module/homeIndex/pageSpecial.vue'
 	import supplierList from '@/components/cm-module/homeIndex/supplierList.vue'
+    import quickOpera from '@/components/cm-module/homeIndex/quickOperation.vue'
 	import { mapState,mapMutations} from 'vuex'
 	export default {
 		components:{
@@ -51,7 +54,8 @@
 			pageFloor,
 			Certificate,
 			pageSpecial,
-			supplierList
+			supplierList,
+            quickOpera
 		},
 		data() {
 			return {
@@ -84,6 +88,8 @@
 				isRequest:false,
 				isNavRequest:false,
 				isLiveRequest:false,
+                quickOpreaList: [], // 快捷运营
+                isScroll: false
 			}
 		},
 		created() {
@@ -131,6 +137,7 @@
 					this.skeletonShow = false
 					this.navBarsList = data.topMenuList
 					this.newsList = data.annlist
+                    this.quickOpreaList = data.shortcutList || [] // 快捷运营
 					this.isNavRequest = true
 					this.GetHomeTopDataInfo()
 					this.GetHomeFloorInfo()
@@ -147,6 +154,11 @@
 			}
 		},
 		onPageScroll(e){//实时获取到滚动的值
+            if (e.scrollTop > 0) {
+                this.isScroll = true
+            } else {
+                this.isScroll = false
+            }
 			if(e.scrollTop>50){
 				this.inputActive = 'fixed'
 			}else{