Browse Source

拨打电话和申请跳转

htc 6 months ago
parent
commit
00009323b6
2 changed files with 15 additions and 16 deletions
  1. 3 1
      pages/consult/apply.vue
  2. 12 15
      pages/consult/index.vue

+ 3 - 1
pages/consult/apply.vue

@@ -50,7 +50,9 @@
 		},
 		methods:{
 			back(){
-				uni.navigateBack();
+				uni.redirectTo({
+					url:'/pages/consult/index'
+				})
 			},
 			apply(){
 				if(!this.canApply) return;

+ 12 - 15
pages/consult/index.vue

@@ -8,7 +8,7 @@
 			<view class="txt">
 				请于工作日的08:30至17:30期间来电咨询我们的产品和服务。
 			</view>
-			<view class="btn">
+			<view class="btn" @click="callPhone('0551-68992527')">
 				<img src="../../static/imgs/call.png" />0551-68992527
 			</view>
 		</view>
@@ -17,7 +17,7 @@
 			<view class="txt">
 				我们将适时与您取得联系,并为您量身打造适合企业需求的专项演示方案。
 			</view>
-			<view class="btn">
+			<view class="btn" @click="toApply">
 				立即申请
 			</view>
 		</view>
@@ -26,25 +26,22 @@
 </template>
 
 <script>
-	import * as echarts from "echarts";
-	import aqiData from '@/static/js/aqi-beijing.js'
 	export default {
 		data() {
 			return {
-				testData: [],
-				testOption: null,
-				kxData: [],
-				kxOption: null,
-				kxData2: [],
-				kxOption2: null
+				
 			}
 		},
-		mounted() {
-			this.init();
-		},
 		methods: {
-			init() {
-
+			callPhone(phoneNumber){
+				uni.makePhoneCall({
+					phoneNumber
+				})
+			},
+			toApply(){
+				uni.navigateTo({
+					url:'/pages/consult/apply'
+				})
 			},
 		}
 	}