From cae18e9d823f9b07b22af8804790ec30b45cf27b Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Thu, 07 Nov 2024 10:51:33 +0800
Subject: [PATCH] 1

---
 src/assets/img/wsapp.png      |    0 
 src/locales/en.json           |    2 
 src/page/home/new_service.vue |   64 +++++++++++++++++++++++++------
 .gitignore                    |    1 
 src/page/home/home.vue        |    7 +++
 5 files changed, 59 insertions(+), 15 deletions(-)

diff --git a/.gitignore b/.gitignore
index c6bc270..b4fd0e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@
 *.zip
 cc_wap.rar
 dist.rar
+*.rar
diff --git a/src/assets/img/wsapp.png b/src/assets/img/wsapp.png
new file mode 100644
index 0000000..a05e3af
--- /dev/null
+++ b/src/assets/img/wsapp.png
Binary files differ
diff --git a/src/locales/en.json b/src/locales/en.json
index 61cc338..9238f46 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -136,7 +136,7 @@
   "hj13": "Other login methods",
   "hj14": "No account",
   "hj15": "Register",
-  "hj16": "E-mail",
+  "hj16": "Online",
   "hj17": "This service is not yet available in your area.",
   "hj18": "Register your phone",
   "hj19": "The password is 6~12 digits, letters or symbols.",
diff --git a/src/page/home/home.vue b/src/page/home/home.vue
index 4d354b5..b62ca26 100644
--- a/src/page/home/home.vue
+++ b/src/page/home/home.vue
@@ -321,7 +321,12 @@
     },
     aRouter1() {
         // window.open('https://chatlink.wchatlink.com/widget/standalone.html?eid=139eb5679d5a9aea0650dbb3c96ca1a2&language=en');
-      window.open(this.onlineService);
+      // window.open(this.onlineService);
+
+      this.$router.push({
+        path: "/new_service",
+
+      });
     },
 
     getdialog() {
diff --git a/src/page/home/new_service.vue b/src/page/home/new_service.vue
index c7c643c..50b8516 100644
--- a/src/page/home/new_service.vue
+++ b/src/page/home/new_service.vue
@@ -7,36 +7,57 @@
 		</div>
 		<div class="top_box_right">{{$t('top_s')}}</div>
 	</div>
-	<div class="bot_box">
+	<div class="bot_box" @click="gotoservice(onlineService)">
 		<div class="bot_box_img">
 			<img class="bot_box_img_img" src="../../assets/img/duanxin.png"/>
 		</div>
 		<div class="bot_box_txt">
 			<div class="bot_box_txt_top">{{$t('hj16')}}</div>
-			<div class="bot_box_txt_bottom">zhuq0911@gmail.com</div>
+			<textarea class="bot_box_txt_bottom" style="    border: none;
+    overflow: hidden;">{{onlineService}}</textarea>
 		</div>
 	</div>
-	<div class="bot_box" @click="gotoservice()">
+	<div class="bot_box" @click="gotoservice('https://wa.me/916390067988')">
 		<div class="bot_box_img">
-			<img class="bot_box_img_img" style="width: 50px;height: 50px;" src="../../assets/img/phone.png"/>
+			<img class="bot_box_img_img"  src="../../assets/img/wsapp.png"/>
 		</div>
 		<div class="bot_box_txt">
-			<div  class="bot_box_txt_top">Telegram</div>
-			<div class="bot_box_txt_bottom">{{$t('tips_sb')}}</div>
+			<div  class="bot_box_txt_top">WhatsApp</div>
+			<div class="bot_box_txt_bottom">https://wa.me/916390067988</div>
 		</div>
 	</div>
+  <div class="bot_box" @click="gotoservice('https://wa.me/918981249425')">
+  	<div class="bot_box_img">
+  		<img class="bot_box_img_img"  src="../../assets/img/wsapp.png"/>
+  	</div>
+  	<div class="bot_box_txt">
+  		<div  class="bot_box_txt_top">WhatsApp</div>
+  		<div class="bot_box_txt_bottom">https://wa.me/918981249425</div>
+  	</div>
+  </div>
+  <div class="bot_box" @click="gotoservice('https://wa.me/919547892243')">
+  	<div class="bot_box_img">
+  		<img class="bot_box_img_img"  src="../../assets/img/wsapp.png"/>
+  	</div>
+  	<div class="bot_box_txt">
+  		<div  class="bot_box_txt_top">WhatsApp</div>
+  		<div class="bot_box_txt_bottom">https://wa.me/919547892243</div>
+  	</div>
+  </div>
 	<div style="margin-bottom: 150px;"></div>
   </div>
 </template>
- 
+
 <script>
+  import * as api from "@/axios/api";
 import headers from "../login/components/header.vue";
 export default {
   data() {
     return {
+      onlineService:'',
 	  loginWay:this.$t('zc'),
       policyContent: ''
-	  
+
     };
   },
   components: {
@@ -44,21 +65,37 @@
   },
   mounted() {
     this.loadPolicy();
+    this.getInfoSite()
   },
   methods: {
     loadPolicy() {
       // 假设你有一个方法来加载隐私政策内容
       this.policyContent = '';
     },
-	gotoservice(){
+    async getInfoSite() {
+      let data = await api.getInfoSite();
+      if (data.status === 0) {
+        this.onlineService = data.data.onlineService;
+        console.log(this.onlineService, 'this.onlineService');
+      } else {
+        this.$store.commit("elAlertShow", {
+          elAlertShow: true,
+          elAlertText: data.msg,
+        });
+      }
+    },
+	gotoservice(e){
 		// this.$router.push('/service')
-		window.location.href = 'https://t.me/FidelitySecuritiesGrou'
+		window.location.href = e
 	}
   }
 };
 </script>
- 
+
 <style scoped>
+  .bot_box_txt_bottom{
+    margin-right: 20px;
+  }
 	.bot_box_txt_top{
 		font-weight: 600;
 		font-size: 24px;
@@ -66,6 +103,7 @@
 	}
 	.bot_box_txt{
 		display: flex;
+    width: 80%;
 		justify-content: center;
 		flex-direction: column;
 		margin-left: 20px;
@@ -79,7 +117,7 @@
 		height: 80px;
 	}
 	.bot_box{
-		width: 94%;
+		/* width: 94%; */
 		margin-left: 3%;
 		background-color: #fff;
 		margin-top: 30px;
@@ -133,4 +171,4 @@
   margin: 0 auto;
   padding: 20px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3