duanshenglang 2 weeks ago
parent
commit
4b38ef4446
1 changed files with 9 additions and 2 deletions
  1. 9 2
      lottery/index.html

+ 9 - 2
lottery/index.html

@@ -499,7 +499,7 @@
 				<el-button type="primary" @click="handleSave">确 定</el-button>
 			</div>
 		</el-dialog>
-		<el-dialog title="请问您是否已购五菱/宝骏车型?" :visible.sync="showTipDialog" :show-close="false" :close-on-click-modal="false">
+		<el-dialog :title="dialogTitle" :visible.sync="showTipDialog" :show-close="false" :close-on-click-modal="false">
 			<el-form :model="getInfoForm" class="prize_form"label-position="top">
 				<div v-if="preFormType">
 					<el-form-item label="手机号:">
@@ -605,6 +605,7 @@
 						preFormType: null,
 						showError: false,
 						errorMsg: '',
+						dialogTitle: ""
           }
         },
         created() {
@@ -809,7 +810,13 @@
 									this.shareDes = data.description
 									this.shareCover = data.cover
 									this.preFormType = data.preFormType
-									if (data.preForm && !data.isSubmit) {
+									if (data.preForm && !data.isSubmit && this.getInfoForm.buyCar !== 0) {
+										if (this.preFormType) {
+											this.dialogTitle = '五菱试驾体验报名'	
+										} else {
+											this.dialogTitle = '请问您是否已购五菱/宝骏车型?'	
+										}
+										// 此处加上this.getInfoForm.buyCar !== 0的条件是当用户点击过否的时候,不再弹出此框,除非用户重新进入页面,可再次弹出此框
 										this.showTipDialog = true
 									}
 								} else {