<template>
  <view class="container">
    <view class="item-content">
      <view class="item-box" @click="handlerUpdate(0)">
        <view class="item-l"> 手机号 </view>
        <view class="item-r">
          <p>{{ phone.substring(0, 5) + '****' + phone.substring(10) }}</p><u-icon name="arrow-right" color="#C0C0C0" :size="icon_size"></u-icon>
        </view>
      </view>
      <view class="item-box" @click="handlerUpdate(1)">
        <view class="item-l"> 邮箱 </view>
        <view class="item-r">
          <p>未绑定</p><u-icon name="arrow-right" color="#C0C0C0" :size="icon_size"></u-icon>
        </view>
      </view>
      <view class="item-box">
        <view class="item-l"> 注销账号 </view>
        <view class="item-r">
          <u-icon name="arrow-right" color="#C0C0C0" :size="icon_size"></u-icon>
        </view>
      </view>
    </view>

  </view>
</template>

<script>
  export default {
    data() {
      return {
        phone:'+8618226537738'
      }
    },
    methods:{
      //跳转到 修改手机号 修改邮箱
      handlerUpdate(e){
        uni.navigateTo({
          url:`/pages/tabBar/mine/setting/phoneAndEmail?type=${e}`
        })
      }
    }
  }
</script>

<style lang="scss" scoped>
  .container {
    background-color: #F5F5F5;
    min-height: calc(100vh - 40rpx);
    padding-top: 40rpx;

    .item-content {
      margin-bottom: 40rpx;

      .item-box {
        display: flex;
        justify-content: space-between;
        background-color: #fff;
        padding: 20rpx 40rpx;
        font-size: 30rpx;

        .item-r {
          display: flex;
          font-size: 26rpx;
          color: #B0B0B0;
        }
      }
    }
  }

</style>
