wangxl@jiinfo.cn 2 weeks ago
parent
commit
d3f77941dc
4 changed files with 16 additions and 5 deletions
  1. 1 0
      .gitignore
  2. BIN
      cn.zip
  3. BIN
      en.zip
  4. 15 5
      src/view/inquiry/index.vue

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 node_modules/
 dist/
 /.idea/
+*.zip

BIN
cn.zip


BIN
en.zip


+ 15 - 5
src/view/inquiry/index.vue

@@ -197,17 +197,22 @@
         </div>
       </div>
     </div>
+     <!-- 弹框 -->
+     <popUp :popUpShow="popUpShow" @closePopUp="closePopUp"></popUp>
   </div>
 </template>
 <script>
+import popUp from "@/components/popUp/index.vue";
 import banner from "@/components/banner";
 export default {
   components: {
-    banner
+    banner,
+    popUp
   },
   name: "inquiry",
   data() {
     return {
+      popUpShow: false, // 弹框
       from: {
         company: "",
         email: "",
@@ -243,6 +248,10 @@ export default {
     };
   },
   methods: {
+    // 弹框
+    closePopUp() {
+      this.popUpShow = false;
+    },
     // 删除数据
     deleteList(e) {
       console.log(e);
@@ -304,10 +313,11 @@ export default {
         this.$api.post("inquiry/submit", this.from).then(res => {
           if (res.code === 0) {
             window.gtag && window.gtag("event", "submit_free_sample");
-            this.$message({
-              message: this.$t("message.YourInformation"),
-              type: "success"
-            });
+            // this.$message({
+            //   message: this.$t("message.YourInformation"),
+            //   type: "success"
+            // });
+            this.popUpShow = true
             (this.from = {
               company: "",
               email: "",