KfBox.vue 3.11 KB
<template>
  <uni-popup
    ref="popup"
    type="bottom"
    border-radius="16px"
  >
    <view class="kf-box">
      <view
        class="close flex"
        @click="close"
      >
        <uni-icons
          type="closeempty"
          :size="18"
          color="#1A1A1A"
        ></uni-icons>
      </view>

      <view class="title flex">
        <view class="sprite-icon icon-qw"></view>
        嘀加智慧云
      </view>
      <view class="info flex">
        <view class="text">
          <view class="name flex">
            云小白 <view class="duty">产品经理</view>
          </view>
          <view class="content">嘀加智慧云|产品中心</view>
          <view class="tool">
            <template v-for="(i,index) in tool">
              <view
                class="tool-item flex"
                :key="index"
              >
                <view :class="['sprite-icon',`icon-kf-${index}`]"></view>
                {{i}}
              </view>
            </template>
          </view>
        </view>
        <view class="qr-box flex">
          <image
            class="qr"
            :src="qr"
          />
          使用企业微信扫码
        </view>
      </view>
    </view>
  </uni-popup>

</template>

<script type='text/ecmascript-6'>
export default {
  name: '',
  data () {
    return {
      tool: ['使用反馈', '功能建议', '心得分享', '吐槽拍砖'],
      qr: require('@/assets/images/common/qr.webp')
    }
  },
  mounted () {
  },
  methods: {
    open () {
      this.$refs.popup.open("center");
    },
    close () {
      this.$refs.popup.close()
    }
  }
}
</script>

<style scoped lang='scss'>
.kf-box {
  position: relative;
  width: 864rpx;
  height: 478rpx;
  background: #ffffff;
  border-radius: 32rpx;
  padding: 0 48rpx;
  box-sizing: border-box;
  .close {
    position: absolute;
    width: 120rpx;
    height: 120rpx;
    top: 0;
    right: 0;
    justify-content: center;
  }
  .title {
    font-weight: 500;
    font-size: 32rpx;
    padding: 46rpx 0;
    .sprite-icon {
      margin-right: 16rpx;
    }
  }
  .info {
    .name {
      position: relative;
      width: 480rpx;
      font-weight: 600;
      font-size: 48rpx;
      align-items: baseline;
      padding-bottom: 24rpx;
      border-bottom: 2rpx solid #e6e6e6;
      .duty {
        font-weight: 400;
        font-size: 28rpx;
        margin-left: 16rpx;
      }
      &::after {
        position: absolute;
        left: 0;
        bottom: -2rpx;
        width: 280rpx;
        height: 4rpx;
        background: #2c66f7;
        content: "";
      }
    }
    .content {
      padding: 28rpx 0;
      font-weight: 500;
      font-size: 28rpx;
    }
    .tool {
      display: flex;
      flex-wrap: wrap;
      &-item {
        flex: 50%;
        font-size: 28rpx;
        color: #666666;
        margin-bottom: 20rpx;
        .sprite-icon {
          margin-right: 8rpx;
        }
      }
    }
  }
  .qr-box {
    margin-left: 48rpx;
    flex-shrink: 0;

    flex-direction: column;
    font-weight: 500;
    font-size: 28rpx;
    .qr {
      width: 240rpx;
      height: 240rpx;
      margin-bottom: 8rpx;
    }
  }
}
</style>