whitefang 1 год назад
Родитель
Сommit
01ced4e569
1 измененных файлов с 26 добавлено и 9 удалено
  1. 26 9
      public/agent/company_h5/index.html

+ 26 - 9
public/agent/company_h5/index.html

@@ -4,7 +4,7 @@
 		<meta charset="utf-8" />
 		<title></title>
 		<meta name="viewport" content="width=device-width, initial-scale=1.0">
-		<script src="js/axios.min.js"></script>
+		<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
 		<script src="js/v3.2.8/vue.global.prod.js" type="text/javascript" charset="utf-8"></script>
 	</head>
 	<body>
@@ -48,6 +48,15 @@
 					<div class="btn" @click="sure">确认</div>
 				</div>
 			</div>
+			<div class="over_model" v-if="show1">
+				<div class="over_model_inner">
+					<p>是否确认提交,提交后工程师会在10分钟内与您联系</p>
+					<div style="display: flex;">
+						<div class="btn" @click="sure1" style="margin-right: 8px;">确认</div>
+						<div class="btn" @click="cancel" style="background-color: #c8c9cc;">取消</div>
+					</div>
+				</div>
+			</div>
 		</div>
 		<script>
 			const App = {
@@ -64,6 +73,7 @@
 						name: '',
 						param1: {},
 						show: false,
+						show1: false,
 						content: '请完善填写信息'
 					}
 				},
@@ -71,17 +81,13 @@
 					this.getQueryString()
 				},
 				methods: {
+					cancel() {
+						this.show1 = false
+					},
 					sure() {
 						this.show = false
 					},
-					submit() {
-						if (!this.param.householder_name || !this.param.householder_mobile || !this.param.address || !this
-							.param.remark) {
-							this.content = '请完善填写信息'
-							this.show = true
-							return
-						}
-						this.param.property_head_id = this.param1.id
+					sure1() {
 						axios({
 							method: 'post',
 							url: 'https://weixiu.zhongdunzhizhao.com/api/property/orderByQrcode',
@@ -94,10 +100,21 @@
 								householder_mobile: '',
 								address: ''
 							}
+							this.show1 = false
 							this.content = '提交成功'
 							this.show = true
 						})
 					},
+					submit() {
+						if (!this.param.householder_name || !this.param.householder_mobile || !this.param.address || !this
+							.param.remark) {
+							this.content = '请完善填写信息'
+							this.show = true
+							return
+						}
+						this.param.property_head_id = this.param1.id
+						this.show1 = true
+					},
 					getQueryString(name) {
 						const paramsStr = window.location.search || 'https://www.baidu.com?property_name=融侨华府&id=1'
 						// const paramsStr = 'https://www.baidu.com?property_name=融侨华府&id=1'