Browse Source

新增合作与咨询组件并各个页面引入

htc 5 months ago
parent
commit
ea43f75761
5 changed files with 118 additions and 1 deletions
  1. 111 0
      components/common/uForm.vue
  2. 3 0
      main.js
  3. 2 1
      pages/solution/fmcs.vue
  4. 2 0
      pages/solution/smartVideo.vue
  5. BIN
      static/imgs/hzzx_bg.png

+ 111 - 0
components/common/uForm.vue

@@ -0,0 +1,111 @@
+<template>
+	<view class="form">
+		<view class="title">合作与咨询</view>
+		<view class="tip">立即预约,我们将为您量身定制解决方案</view>
+		<view class="items">
+			<view class="item">
+				<input type="text" placeholder="*您的称呼" v-model="info.name">
+			</view>
+			<view class="item">
+				<input type="tel" placeholder="*您的电话" v-model="info.phone">
+			</view>
+			<view class="item">
+				<input type="tel" placeholder="您遇到的问题" v-model="info.question">
+			</view>
+		</view>
+		<view class="submit" @click="submit">立即提交</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data(){
+			return {
+				info:{
+					name:'',
+					phone:'',
+					question:''
+				}
+			}
+		},
+		methods:{
+			submit(){
+				if(!this.info.name) return this.$showToast('请输入您的称呼');
+				if(!this.$reg.mobile(this.info.phone)) return this.$showToast('请输入正确的联系电话');
+				
+				this.$emit('submitSuccess');
+			}
+		}
+	}
+</script>
+
+<style scoped lang="less">
+	.form{
+		width: 100%;
+		height: 812rpx;
+		padding: 72rpx 30rpx 0;
+		box-sizing: border-box;
+		background: url(../../static/imgs/hzzx_bg.png) no-repeat;
+		background-size: 100% 100%;
+		margin-top: 64rpx;
+		
+		.title{
+			font-family: PingFang-SC, PingFang-SC;
+			font-weight: bold;
+			font-size: 48rpx;
+			color: #FFFFFF;
+			line-height: 44rpx;
+		}
+		
+		.tip{
+			font-family: PingFangSC, PingFang SC;
+			font-weight: 400;
+			font-size: 28rpx;
+			color: #FFFFFF;
+			line-height: 44rpx;
+			margin-top: 20rpx;
+		}
+		
+		.items{
+			margin-top: 12rpx;
+			.item{
+				width: 100%;
+				height: 88rpx;
+				background: #FFFFFF;
+				border-radius: 12rpx;
+				padding: 22rpx 24rpx;
+				box-sizing: border-box;
+				margin-top: 28rpx;
+				input{
+					width: 100%;
+					height: 100%;
+					border: none;
+					outline: none;
+					font-family: PingFangSC, PingFang SC;
+					font-weight: 400;
+					font-size: 28rpx;
+					color: #111111;
+					line-height: 44rpx;
+					&::placeholder{
+						color: #999999;
+					}
+				}
+			}
+		}
+		
+		.submit{
+			width: 240rpx;
+			height: 88rpx;
+			background: #FFB362;
+			border-radius: 12rpx;
+			margin-top: 48rpx;
+			font-family: PingFang-SC, PingFang-SC;
+			font-weight: bold;
+			font-size: 30rpx;
+			color: #041158;
+			line-height: 88rpx;
+			text-align: center;
+			letter-spacing: 2rpx;
+		}
+	}
+</style>

+ 3 - 0
main.js

@@ -47,6 +47,9 @@ Vue.component('uDesc',uDesc);
 //uFunction
 import uFunction from '@/components/common/uFunction'
 Vue.component('uFunction',uFunction);
+//uForm
+import uForm from '@/components/common/uForm'
+Vue.component('uForm',uForm);
 
 // #endif
 

+ 2 - 1
pages/solution/fmcs.vue

@@ -4,7 +4,6 @@
 		<uTop></uTop>
 		<!-- 标题和介绍 -->
 		<uDesc :title="dTitle" :description="dMemo"></uDesc>
-		
 		<view class="boxs">
 			<!-- 方案特征 -->
 			<view class="fatz box">
@@ -40,6 +39,8 @@
 					<uFunction :title="item.title" :list="item.list" v-for="(item,index) in functionList" :key="index"></uFunction>
 				</block>
 			</view>
+			<!-- 合作与咨询 -->
+			<uForm></uForm>
 		</view>
 	</view>
 </template>

+ 2 - 0
pages/solution/smartVideo.vue

@@ -28,6 +28,8 @@
 					</view>
 				</view>
 			</view>
+			<!-- 合作与咨询 -->
+			<uForm></uForm>
 		</view>
 	</view>
 </template>

BIN
static/imgs/hzzx_bg.png