<template>
  <view class="center">
    <image class="w600" show-menu-by-longpress mode="widthFix" :src="referCodeBase64"></image>
    <button type="primary" @click="getReferCode()" class="mt30">重新获取</button>
  </view>
</template>

<script>
import api from "@/api";
export default {
  data() {
    return {
      referCodeBase64:
        "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbgAAAG4CAYAAAA3yvKzAAAAAXNSR0IArs4c6QAAHztJREFUeF7t3TuX4ziSBlCtl2aaaZbZZv//X7Bmm2WWmWaa6e0eUAQLYlKvUD5CoVuzc3pmWpCAG9j+DkgC/J/X19f/2/lDgAABAgSKCfyPgCtWUcMhQIAAgUlAwJkIBAgQIFBSQMCVLKtBESBAgICAMwcIECBAoKSAgCtZVoMiQIAAAQFnDhAgQIBASQEBV7KsBkWAAAECAs4cIECAAIGSAgKuZFkNigABAgQEnDlAgAABAiUFBFzJshoUAQIECAg4c4AAAQIESgoIuJJlNSgCBAgQEHDmAAECBAiUFBBwJctqUAQIECAg4MwBAgQIECgpIOBKltWgCBAgQEDAmQMECBAgUFJAwJUsq0ERIECAgIAzBwgQIECgpICAK1lWgyJAgAABAWcOECBAgEBJAQFXsqwGRYAAAQICzhwgQIAAgZICAq5kWQ2KAAECBAScOUCAAAECJQUEXMmyGhQBAgQICDhzgAABAgRKCgi4kmU1KAIECBAQcOYAAQIECJQUEHAly2pQBAgQICDgzAECBAgQKCkg4EqW1aAIECBAQMCZAwQIECBQUkDAlSyrQREgQICAgDMHCBAgQKCkgIArWVaDIkCAAAEBZw4QIECAQEkBAVeyrAZFgAABAgLOHCBAgACBkgICrmRZDYoAAQIEBJw5QIAAAQIlBQRcybIaFAECBAgIOHOAAAECBEoKCLiSZTUoAgQIEBBw5gABAgQIlBQQcCXLalAECBAgIODMAQIECBAoKSDgSpbVoAgQIEBAwJkDBAgQIFBSQMCVLKtBESBAgICAMwcIECBAoKSAgCtZVoMiQIAAAQFnDhAgQIBASQEBV7KsBkWAAAECAs4cIECAAIGSAgKuZFkNigABAgQEnDlAgAABAi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YECBAgkFpAwKUuj84RIECAQFRAwEXltCNAgACB1AICLnV5dI4AAQIEogICLiqnHQECBAikFhBwqcujcwQIECAQFRBwUTntCBAgQCC1gIBLXR6dI0CAAIGogICLymlHgAABAqkFBFzq8ugcAQIECEQFBFxUTjsCBAgQSC0g4FKXR+cIECBAICog4KJy2hEgQIBAagEBl7o8OkeAAAECUQEBF5XTjgABAgRSCwi41OXROQIECBCICgi4qJx2BAgQIJBaQMClLo/OESBAgEBUQMBF5bQjQIAAgdQCAi51eXSOAAECBKICAi4qpx0BAgQIpBYQcKnLo3MECBAgEBUQcFE57QgQIEAgtYCAS10enSNAgACBqICAi8ppR4AAAQKpBQRc6vLoHAECBAhEBQRcVE47AgQIEEgtIOBSl0fnCBAgQCAqIOCictoRIECAQGoBAZe6PDpHgAABAlEBAReV044AAQIEUgsIuNTl0TkCBAgQiAoIuKicdgQIECCQWkDApS6PzhEgQIBAVEDAReW0I0CAAIHUAgIudXl0jgABAgSiAgIuKqcdAQIECKQWEHCpy6NzBAgQIBAVEHBROe0IECBAILWAgEtdHp0jQIAAgaiAgIvKaUeAAAECqQUEXOry6BwBAgQIRAUEXFROOwIECBBILSDgUpdH5wgQIEAgKiDgonLaESBAgEBqAQGXujw6R4AAAQJRAQEXldOOAAECBFILCLjU5dE5AgQIEIgKCLionHYECBAgkFpAwKUuj84RIECAQFRAwEXltCNAgACB1AICLnV5dI4AAQIEogICLiqnHQECBAikFhBwqcujcwQIECAQFRBwUTntCBAgQCC1gIBLXR6dI0CAAIGogICLymlHgAABAqkFBFzq8ugcAQIECEQFBFxUTjsCBAgQSC0g4FKXR+cIECBAICog4KJy2hEgQIBAagEBl7o8OkeAAAECUQEBF5XTjgABAgRSCwi41OXROQIECBCICgi4qJx2BAgQIJBaQMClLo/OESBAgEBUQMBF5bQjQIAAgdQCAi51eXSOAAECBKICAi4qpx0BAgQIpBYQcKnLo3MECBAgEBUQcFE57QgQIEAgtYCAS10enSNAgACBqICAi8ppR4AAAQKpBQRc6vLoHAECBAhEBQRcVE47AgQIEEgtIOBSl0fnCBAgQCAqIOCictoRIECAQGoBAZe6PDpHgAABAlEBAReV044AAQIEUgsIuNTl0TkCBAgQiAoIuKicdgQIECCQWkDApS6PzhEgQIBAVEDAReW0I0CAAIHUAgIudXl0jgABAgSiAgIuKqcdAQIECKQWEHCpy6NzBAgQIBAVEHBROe0IECBAILWAgEtdHp0jQIAAgaiAgIvKaUeAAAECqQUEXOry6BwBAgQIRAUEXFROOwIECBBILSDgUpdH5wgQIEAgKiDgonLaESBAgEBqAQGXujw6R4AAAQJRAQEXldOOAAECBFILCLjU5dE5AgQIEIgKCLionHYECBAgkFpAwKUuj84RIECAQFRAwEXltCNAgACB1AICLnV5dI4AAQIEogICLiqnHQECBAikFhBwqcujcwQIECAQFRBwUTntCBAgQCC1gIBLXR6dI0CAAIGogICLymlHgAABAqkFBFzq8ugcAQIECEQFBFxUTjsCBAgQSC0g4FKXR+cIECBAICog4KJy2hEgQIBAagEBl7o8OkeAAAECUQEBF5XTjgABAgRSCwi41OXROQIECBCICgi4qJx2BAgQIJBaQMClLo/OESBAgEBUQMBF5bQjQIAAgdQCAi51eXSOAAECBKICAi4qpx0BAgQIpBYQcKnLo3MECBAgEBUQcFE57QgQIEAgtYCAS10enSNAgACBqICAi8ppR4AAAQKpBQRc6vLoHAECBAhEBQRcVE47AgQIEEgtIOBSl0fnCBAgQCAqIOCictoRIECAQGoBAZe6PDpHgAABAlEBAReV044AAQIEUgsIuNTl0TkCBAgQiAoIuKicdgQIECCQWkDApS6PzhEgQIBAVEDAReW0I0CAAIHUAgIudXl0jgABAgSiAgIuKqcdAQIECKQWEHCpy6NzBAgQIBAV+H8N/o0TZZGx4gAAAABJRU5ErkJggg==",
    };
  },
  methods: {
    getReferCode() {
      api.user.userInfoGetWxacodeunLimit().then((res) => {
        let userInfo = uni.getStorageSync("userInfo");
        let unionId = userInfo.unionId;
        this.referCodeBase64 = "data:image/png;base64," + res.data;

        uni.setStorageSync(
          unionId + "_referCodeBase64",
          "data:image/png;base64," + res.data
        );
      });
    },
  },
  onLoad() {
    let userInfo = uni.getStorageSync("userInfo");
    let unionId = userInfo.unionId;
    if (uni.getStorageSync(unionId + "_referCodeBase64")) {
      this.referCodeBase64 = uni.getStorageSync(unionId + "_referCodeBase64");
      return;
    }
    this.getReferCode();
  },
};
</script>

<style lang="scss" scoped>
.center {
  width: 750rpx;
  display: flex;
  justify-content: center;
  padding-top: 30rpx;
  flex-wrap: wrap;
}
.mt30{
  margin-top: 30rpx;
}
.w600 {
  width: 600rpx;
}
</style>