customer.vue 1.15 KB
Newer Older
潘永坪's avatar
潘永坪 committed
1 2
<template>
	<!-- 客服 -->
潘永坪's avatar
潘永坪 committed
3
	<u-popup v-model="showPop" mode="bottom" border-radius="14" closeable height="75%">
潘永坪's avatar
潘永坪 committed
4
		<view class="son-wrap">
潘永坪's avatar
潘永坪 committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
			<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">
潘永坪's avatar
潘永坪 committed
43 44 45
	.son-wrap{
		position: relative;
	}
潘永坪's avatar
潘永坪 committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
	.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>