<template>
  <view>
    <uv-popup ref="popup" mode="center" bgColor="none" >
      <view class="popup__view">
        <view class="header">温馨提示</view>
        <view class="content">
				  <uv-parse :content="content"></uv-parse>
        </view>
        <view class="footer">
          <button class="flex btn" @click="onConfirm">我知道了</button>
        </view>
      </view>
		</uv-popup>
  </view>
</template>

<script>
import { mapState } from 'vuex'

export default {
  data() {
    return {
      content : '',
    }
  },
  computed : {
    ...mapState(['configList'])
  },
  methods: {
    open() {
      this.content = this.configList.tips_cross_border

      this.$refs.popup.open()
    },
    onConfirm() {
      this.$refs.popup.close()

      this.$emit('confirm')
    },
  },
}
</script>

<style lang="scss" scoped>

.popup__view {
  width: 550rpx;
  display: flex;
  flex-direction: column;
  padding: 32rpx;
  box-sizing: border-box;
  background-image: linear-gradient(#F2EDFF, #FCFEFE);
  border-radius: 64rpx;
}

.header {
  text-align: center;
  font-family: PingFang SC;
  font-weight: 500;
  font-size: 40rpx;
  line-height: 1.4;
  color: #181818;
}

.content {
  padding: 40rpx 0;
  text-align: left;
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 28rpx;
  line-height: 1.4;
  color: #5B5B5B;
}

.footer {
  .btn {
    width: 100%;
    padding: 16rpx 0;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 36rpx;
    line-height: 1.4;
    color: #FFFFFF;
    background-image: linear-gradient(to right, #4B348F, #845CFA);
    border-radius: 41rpx;
  }
}
</style>