<template>
	<view class="service">
		<image class="icon" src="../../static/service.png" mode=""></image>

		<view class="notice">
			接入移动客户坐席
		</view>
		<button class="btn" type="default" @click="handleCall">呼叫客服</button>
	</view>
</template>

<script>
	export default {
		methods: {
			handleCall() {
				wx.openCustomerServiceChat({
				  extInfo: {url: 'https://work.weixin.qq.com/kfid/kfc74a883d1951d0083'},
				  corpId: 'wwdb2609656282875f',
				  success(res) {
					  console.log(res);
				  },
				  complete(r){
					  console.log(r);
				  }
				})
				// uni.makePhoneCall({
				// 	phoneNumber: '10086' //仅为示例
				// });
			}
		},
		onShow() {
			
		},
		onLoad() {
		}
	}
</script>

<style lang="scss" scoped>
	.service {
		display: flex;
		flex-direction: column;
		align-items: center;
		.icon {
			width: 460rpx;
			height: 410rpx;
			margin-top: 290rpx;
		}

		.notice {
			font-size: 32rpx;
			color: #0F0F0F;
			font-weight: 400;
			margin-top: 50rpx;
		}
		.btn{
			margin-top: 110rpx;
			width: 560rpx;
			height: 96rpx;
			line-height: 96rpx;
			border-radius: 48rpx;
			color: #fff;
			font-size: 32rpx;
			font-weight: bold;
			background: $uni-color-primary;
		}
	}
</style>