|
@@ -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: "",
|