"use strict";
const common_vendor = require("../../common/vendor.js");
const request_api = require("../../request/api.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
  data() {
    return {
      navH: common_vendor.inject("navHeight"),
      memberInfo: null,
      //会员信息
      questionList: ["信息纷杂难辨真伪？", "信息纷杂难辨真伪？", "无法把握宏观趋势与行业动向？"],
      privilegeList: [
        {
          icon: "/pagesMine/static/icon/vip/depthReport.png",
          icon_v: "/pagesMine/static/icon/vip/depthReport_v.png",
          title: "深度研报",
          tips: "行业/公司独家分析"
        },
        {
          icon: "/pagesMine/static/icon/vip/strategicInsight.png",
          icon_v: "/pagesMine/static/icon/vip/strategicInsight_v.png",
          title: "策略洞察",
          tips: "赛道趋势+拐点信号"
        },
        {
          icon: "/pagesMine/static/icon/vip/dataTool.png",
          icon_v: "/pagesMine/static/icon/vip/dataTool_v.png",
          title: "数据工具",
          tips: "行业/公司独家分析"
        },
        {
          icon: "/pagesMine/static/icon/vip/dataTool.png",
          icon_v: "/pagesMine/static/icon/vip/intelligentScreening_v.png",
          title: "智能筛选",
          tips: "按需定制标的列表"
        },
        {
          icon: "/pagesMine/static/icon/vip/decisionSupport.png",
          icon_v: "/pagesMine/static/icon/vip/decisionSupport_v.png",
          title: "决策辅助",
          tips: "关键因子评分系统"
        },
        {
          icon: "/pagesMine/static/icon/vip/expertMeeting.png",
          icon_v: "/pagesMine/static/icon/vip/expertMeeting_v.png",
          title: "专家闭门会",
          tips: "深度交流机会"
        },
        {
          icon: "/pagesMine/static/icon/vip/dailyReport.png",
          icon_v: "/pagesMine/static/icon/vip/dailyReport_v.png",
          title: "日报周报",
          tips: "研判速递、节奏掌控"
        },
        {
          icon: "/pagesMine/static/icon/vip/specialColumn.png",
          icon_v: "/pagesMine/static/icon/vip/specialColumn_v.png",
          title: "专题专栏",
          tips: "核心团队观点集结"
        },
        {
          icon: "/pagesMine/static/icon/vip/continuouslyUnlock.png",
          icon_v: "/pagesMine/static/icon/vip/continuouslyUnlock_v.png",
          title: "持续解锁",
          tips: "不定期上线新功能"
        }
      ]
    };
  },
  onLoad() {
    this.getMemberStatus();
  },
  methods: {
    /**
     * 点击查看vip套餐
     */
    clickVipMeal() {
      common_vendor.index.navigateTo({
        url: "/pagesMine/vipMeal/vipMeal"
      });
    },
    /**
     * 获取会员状态
     */
    getMemberStatus() {
      request_api.membershipStatus().then((res) => {
        if (res.code == 200) {
          this.memberInfo = res.data;
        } else
          common_vendor.index.showToast({
            title: res.message,
            icon: "none"
          });
      }).catch((error) => {
      });
    }
  }
};
if (!Array) {
  const _easycom_navBar2 = common_vendor.resolveComponent("navBar");
  _easycom_navBar2();
}
const _easycom_navBar = () => "../../components/navBar/navBar.js";
if (!Math) {
  _easycom_navBar();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return common_vendor.e({
    a: common_vendor.p({
      leftText: "会员中心"
    }),
    b: common_assets._imports_0,
    c: $data.memberInfo
  }, $data.memberInfo ? common_vendor.e({
    d: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    e: common_assets._imports_1$9
  } : {
    f: common_assets._imports_2$8
  }, {
    g: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    h: common_vendor.t($data.memberInfo.subscription_type),
    i: common_vendor.t($data.memberInfo.member_expire_date)
  } : {}, {
    j: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    k: common_assets._imports_3$8
  } : {
    l: common_assets._imports_4$8
  }, {
    m: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    n: common_assets._imports_5$5
  } : {
    o: common_assets._imports_6
  }, {
    p: common_vendor.n("impormant " + ($data.memberInfo.is_member ? "vip" : "")),
    q: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    r: common_assets._imports_7
  } : {
    s: common_assets._imports_8$1
  }, {
    t: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    v: common_assets._imports_9$2
  } : {
    w: common_assets._imports_10$3
  }, {
    x: common_vendor.n("impormant " + ($data.memberInfo.is_member ? "vip" : "")),
    y: common_vendor.n("impormant " + ($data.memberInfo.is_member ? "vip" : "")),
    z: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    A: common_assets._imports_11$3
  } : {
    B: common_assets._imports_12$3
  }, {
    C: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    D: common_assets._imports_13$2
  } : {
    E: common_assets._imports_14$2
  }, {
    F: common_assets._imports_15$1,
    G: common_vendor.f($data.questionList, (item, index, i0) => {
      return {
        a: common_vendor.t(item),
        b: index
      };
    }),
    H: common_vendor.n("item " + ($data.memberInfo.is_member ? "vip" : "")),
    I: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    J: common_assets._imports_3$8
  } : {
    K: common_assets._imports_4$8
  }, {
    L: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    M: common_assets._imports_5$5
  } : {
    N: common_assets._imports_6
  }, {
    O: common_assets._imports_16$1,
    P: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    Q: common_assets._imports_3$8
  } : {
    R: common_assets._imports_4$8
  }, {
    S: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    T: common_assets._imports_5$5
  } : {}, {
    U: common_assets._imports_6,
    V: common_assets._imports_17$1,
    W: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    X: common_assets._imports_3$8
  } : {
    Y: common_assets._imports_4$8
  }, {
    Z: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    aa: common_assets._imports_5$5
  } : {
    ab: common_assets._imports_6
  }, {
    ac: common_vendor.f($data.privilegeList, (item, index, i0) => {
      return {
        a: $data.memberInfo.is_member ? item.icon_v : item.icon,
        b: common_vendor.t(item.title),
        c: common_vendor.t(item.tips),
        d: index
      };
    }),
    ad: common_vendor.n("privilegeList flexWrap " + ($data.memberInfo.is_member ? "vip" : "")),
    ae: common_vendor.s("margin-top:" + $data.navH + "px;")
  }) : {}, {
    af: common_vendor.o(($event) => $options.clickVipMeal())
  });
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesMine/vip/vip.js.map
