<template>
	<!-- 客服 -->
	<u-popup v-model="showPop" mode="bottom" border-radius="14" closeable height="75%">
		<view class="son-wrap">
			<view class="title">
				客服电话
			</view>
			<view class="middle">
				<view class="list"  v-for="(item,index) in scenicList" :key='index' @click="makePhone(item.phone)">
					<text>
						{{item.name}}:
					</text>
					<text>
						{{item.phone}}
					</text>
				</view>
			</view>
		</view>
	</u-popup>
</template>

<script>
export default{
  props:['scenicList'],
  data(){
    return{
      showPop:false,//控制弹窗显示隐藏
    }
  },
  methods:{
    //---拨打电话
    makePhone(phoneNumber){
      uni.makePhoneCall({
        phoneNumber
      })
    }
  }
}
	
</script>

<style scoped lang="scss">
	.son-wrap{
		position: relative;
	}
	.title{
		text-align: center;
		font-size: 32rpx;
		font-weight: bold;
		padding: 30rpx 0;
		position:fixed;
		top: 0;
		width: 100%;
		background: #fff;
		z-index: 1;
	}
	.middle{
		padding-top: 100rpx;
	}
	.list{
		height:100rpx;
		border-bottom: 1px solid #E6E6E6;
		padding: 0 24rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	
</style>