Forráskód Böngészése

修改品牌服务

zhengjinyi 4 éve
szülő
commit
101e22c423
3 módosított fájl, 124 hozzáadás és 0 törlés
  1. 1 0
      components/cm-module/homeIndex/navbars.vue
  2. 117 0
      h5/pages/other/brands.vue
  3. 6 0
      pages.json

+ 1 - 0
components/cm-module/homeIndex/navbars.vue

@@ -48,6 +48,7 @@
 					 const typeMap = {
 						1:`/pages/goods/goods-instrument?linkId=${pros.linkParam.id}&title=${pros.name}`,
 						3:`/h5/pages/article/path-live`,
+						4:`/h5/pages/other/brands`,
 						10:`/second/pages/product/product-list`,
 						14:`/h5/pages/other/brand`,
 						15:`/h5/pages/other/repair`,

+ 117 - 0
h5/pages/other/brands.vue

@@ -0,0 +1,117 @@
+<template>
+	<view class="container clearfix" >
+		<view class="banner">
+			<image :class="'banner-img'+index" :src="item" mode="" v-for="(item,index) in image1" :key="index"></image>
+		</view>	
+		<!-- 侧边 -->
+		<scroll-top :isScrollTop="isScrollTop" :bottom="300"></scroll-top>
+	</view>
+</template> 
+
+<script>
+	import { mapState,mapMutations} from 'vuex';
+	
+	export default{
+		data(){
+			return{
+				isIphoneX:this.$store.state.isIphoneX,
+				isBannerHome:true,
+				isBannerOems:false,
+				image1:[
+					'https://static.caimei365.com/www/ppzs/1.png',
+				],
+				image2:[
+					'https://www.caimei365.com/img/investment/h5_4.jpg',
+					'https://www.caimei365.com/img/investment/h5_5.jpg'
+				],
+				isScrollTop:false
+			} 
+		},
+		onLoad(option) {
+			
+		},
+		methods:{
+			NavToH5Page(index) {//跳转H5超皮秒防伪查询
+				switch(index){
+					case 1:
+						let path ='https://static.caimei365.com/app/caimei-activity-h5/html/2020/caimeih5_99.html'
+						this.$api.navigateTo(`/h5/pages/activity/activity?link=${path}&title=品牌OEM服务`)
+						break;
+					case 2:
+						this.isBannerHome = false
+						this.isBannerOems = true
+						break;
+					case 3:
+						this.isBannerHome = true
+						this.isBannerOems = false
+						break;
+				}
+			}
+		},
+		onPageScroll(e){//实时获取到滚动的值
+			if(e.scrollTop>400){
+				this.isScrollTop = true
+			}else{
+				this.isScrollTop = false
+			}	
+		},
+		onShow() {
+			
+		}
+	}
+</script>
+
+<style lang="scss">
+	page{
+		background-color: #FFFFFF;
+	}
+	.container{
+		width: 100%;
+		height: auto;
+		.container-btn{
+			width: 100%;
+			box-sizing: border-box;
+			padding: 7rpx 24rpx;
+			background-color: #FFFFFF;
+			position: fixed;
+			display: flex;
+			bottom: 0;
+			left: 0;
+			z-index: 999;
+			.btn{
+				flex: 1;
+				background-image: linear-gradient(270deg, #1045e1 0%, #2bb4ff 100%);
+				line-height: 84rpx;
+				border-radius: 42rpx;
+				text-align: center;
+				font-size: 26rpx;
+				color: #FFFFFF;
+				padding: 13rpx;
+				box-sizing:border-box;
+				margin: 0 10rpx;
+				.btn-text{
+					width: 100%;
+					height: 29rpx;
+					float: left;
+					line-height: 29rpx;
+					font-size: $font-size-24;
+					color: #FFFFFF;
+					text-align: center;
+					&.small{
+						font-size: 18rpx;
+					}
+				}
+			}
+		}
+		.banner{
+			width: 100%;
+			height: auto;
+			float: left;
+			.banner-img0{
+				width: 100%;
+				height: 2531rpx;
+				display: block;
+			}
+		}
+	}
+</style>

+ 6 - 0
pages.json

@@ -639,6 +639,12 @@
 					"style": {
 						"navigationBarTitleText": "品牌招商"
 					}
+				},
+				{
+					"path": "pages/other/brands",
+					"style": {
+						"navigationBarTitleText": "品牌招商"
+					}
 				}
 			]	
 		},{