"use strict";
const common_vendor = require("../../common/vendor.js");
const components_formatDate = require("../../components/formatDate.js");
const components_VerifyLogin = require("../../components/VerifyLogin.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
  data() {
    return {
      item: {}
    };
  },
  onLoad(options) {
    const eventChannel = this.getOpenerEventChannel();
    eventChannel.on("itemDetail", (data) => {
      this.item = data.item;
      common_vendor.index.__f__("log", "at pages/pkDetail/pkDetail.vue:64", "接收到的数据:", this.item);
    });
  },
  methods: {
    formatDate: components_formatDate.formatDate,
    Returnfunc() {
      common_vendor.index.navigateBack({
        delta: 1
      });
    },
    open() {
      this.$refs.popup.open("center");
    },
    invite() {
    },
    close() {
      this.$refs.popup.close();
    },
    openChat() {
      components_VerifyLogin.VerifyLogin().then(() => {
        const conversationID = `C2C${this.item.senderId}`;
        common_vendor.index.redirectTo({
          url: `/TUIKit/components/TUIChat/index?conversationID=${conversationID}`
        });
      });
    }
  }
};
if (!Array) {
  const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
  _easycom_uni_popup2();
}
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
  _easycom_uni_popup();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return {
    a: common_assets._imports_0,
    b: common_vendor.o$1((...args) => $options.Returnfunc && $options.Returnfunc(...args)),
    c: common_assets._imports_1,
    d: common_vendor.t($data.item.anchorId),
    e: common_vendor.t($data.item.sex === 1 ? "男" : "女"),
    f: common_vendor.t($data.item.country),
    g: common_vendor.t($data.item.coin),
    h: common_vendor.t($options.formatDate($data.item.pkTime)),
    i: common_vendor.t($data.item.remark),
    j: common_vendor.o$1(($event) => $options.openChat()),
    k: common_vendor.o$1(($event) => $options.open()),
    l: common_vendor.o$1(($event) => $options.invite()),
    m: common_vendor.o$1(($event) => $options.close()),
    n: common_vendor.sr("popup", "9639f721-0"),
    o: common_vendor.p({
      type: "center",
      ["border-radius"]: "10px 10px 0 0"
    })
  };
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9639f721"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/pkDetail/pkDetail.js.map
