"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$7
  } : {
    f: common_assets._imports_2$8
  }, {
    g: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    h: common_vendor.t($data.memberInfo.member_expire_date)
  } : {}, {
    i: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    j: common_assets._imports_3$6
  } : {
    k: common_assets._imports_4$4
  }, {
    l: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    m: common_assets._imports_5$3
  } : {
    n: common_assets._imports_6$1
  }, {
    o: common_vendor.n("impormant " + ($data.memberInfo.is_member ? "vip" : "")),
    p: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    q: common_assets._imports_7
  } : {
    r: common_assets._imports_8
  }, {
    s: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    t: common_assets._imports_9
  } : {
    v: common_assets._imports_10$1
  }, {
    w: common_vendor.n("impormant " + ($data.memberInfo.is_member ? "vip" : "")),
    x: common_vendor.n("impormant " + ($data.memberInfo.is_member ? "vip" : "")),
    y: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    z: common_assets._imports_11$1
  } : {
    A: common_assets._imports_12$1
  }, {
    B: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    C: common_assets._imports_13$2
  } : {
    D: common_assets._imports_14$1
  }, {
    E: common_assets._imports_15,
    F: common_vendor.f($data.questionList, (item, index, i0) => {
      return {
        a: common_vendor.t(item),
        b: index
      };
    }),
    G: common_vendor.n("item " + ($data.memberInfo.is_member ? "vip" : "")),
    H: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    I: common_assets._imports_3$6
  } : {
    J: common_assets._imports_4$4
  }, {
    K: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    L: common_assets._imports_5$3
  } : {
    M: common_assets._imports_6$1
  }, {
    N: common_assets._imports_16,
    O: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    P: common_assets._imports_3$6
  } : {
    Q: common_assets._imports_4$4
  }, {
    R: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    S: common_assets._imports_5$3
  } : {}, {
    T: common_assets._imports_6$1,
    U: common_assets._imports_17,
    V: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    W: common_assets._imports_3$6
  } : {
    X: common_assets._imports_4$4
  }, {
    Y: $data.memberInfo.is_member
  }, $data.memberInfo.is_member ? {
    Z: common_assets._imports_5$3
  } : {
    aa: common_assets._imports_6$1
  }, {
    ab: 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
      };
    }),
    ac: common_vendor.n("privilegeList flexWrap " + ($data.memberInfo.is_member ? "vip" : "")),
    ad: common_vendor.s("margin-top:" + $data.navH + "px;")
  }) : {}, {
    ae: 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
