You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
7.3 KiB

1 week ago
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const common_assets = require("../../../common/assets.js");
  4. var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
  5. if (!Array) {
  6. const _easycom_up_navbar2 = common_vendor.resolveComponent("up-navbar");
  7. const _easycom_moreRight2 = common_vendor.resolveComponent("moreRight");
  8. const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
  9. (_easycom_up_navbar2 + _easycom_moreRight2 + _easycom_up_popup2)();
  10. }
  11. const _easycom_up_navbar = () => "../../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
  12. const _easycom_moreRight = () => "../../../components/moreRight/moreRight.js";
  13. const _easycom_up_popup = () => "../../../uni_modules/uview-plus/components/u-popup/u-popup.js";
  14. if (!Math) {
  15. (_easycom_up_navbar + _easycom_moreRight + commentItem + _easycom_up_popup)();
  16. }
  17. const commentItem = () => "./comp/commentItem.js";
  18. const _sfc_main = {
  19. __name: "vipEntry",
  20. setup(__props) {
  21. const tabData = common_vendor.ref([
  22. { name: "精选试题", icon: new URL("@/static/images/vip/vipicon2.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" },
  23. { name: "仿真考试", icon: new URL("@/static/images/vip/vipicon3.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" },
  24. { name: "考前密卷", icon: new URL("@/static/images/vip/vipicon4.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" },
  25. { name: "高频错题", icon: new URL("@/static/images/vip/vipicon5.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" },
  26. { name: "语音讲解", icon: new URL("@/static/images/vip/vipicon1.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" }
  27. ]);
  28. const stepData = common_vendor.ref([
  29. { name: "精选试题", num: "一", oneTxt: "练", txt: "提炼易错、易考试题,减少相似题目练习,缩短备考时间", icon: new URL("@/static/images/vip/coveb.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" },
  30. { name: "还原真实考场", num: "二", oneTxt: "考", txt: "100%还原考试界面,磨练考试技巧、增强心理素质、提高考试成绩", icon: new URL("@/static/images/vip/covec.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" },
  31. { name: "考前秘卷", num: "三", oneTxt: "冲", txt: "考前精选 高频难题 直击考点 稳上高分", icon: new URL("@/static/images/vip/coved.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" },
  32. { name: "温故高频错题", num: "四", oneTxt: "复", txt: "汇总您的专属高频错题,全力攻破最后的难关", icon: new URL("@/static/images/vip/covea.png", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.src || new URL("pages/vip/vipEntry/vipEntry.js", document.baseURI).href).href, id: "1" }
  33. ]);
  34. const curVipItem = common_vendor.ref({ name: "全科VIP", price: 15, day: 180 });
  35. const vipItemData = common_vendor.ref([
  36. { name: "全科VIP", price: 15, day: 180 },
  37. { name: "科目一VIP", price: 10, day: 180 },
  38. { name: "科目四VIP", price: 10, day: 180 }
  39. ]);
  40. let show = common_vendor.ref(false);
  41. function lookMore() {
  42. console.log("我是一个h5");
  43. }
  44. function chooseVip(item) {
  45. curVipItem.value = item;
  46. }
  47. return (_ctx, _cache) => {
  48. return common_vendor.e({
  49. a: common_vendor.p({
  50. leftText: " ",
  51. leftIconColor: "#fff",
  52. safeAreaInsetTop: true,
  53. autoBack: true,
  54. title: " ",
  55. fixed: true,
  56. bgColor: "transparent"
  57. }),
  58. b: common_vendor.o(($event) => _ctx.$goPage("/pages/vip/vipQuestions/vipQuestions")),
  59. c: curVipItem.value.name == "全科VIP"
  60. }, curVipItem.value.name == "全科VIP" ? {
  61. d: common_assets._imports_0$2,
  62. e: common_assets._imports_1,
  63. f: common_assets._imports_2,
  64. g: common_assets._imports_3,
  65. h: common_assets._imports_4
  66. } : {}, {
  67. i: curVipItem.value.name == "全科VIP" ? 1 : "",
  68. j: common_vendor.f(vipItemData.value, (item, index, i0) => {
  69. return {
  70. a: common_vendor.t(item.name),
  71. b: common_vendor.t(item.price),
  72. c: common_vendor.t(item.day),
  73. d: index,
  74. e: curVipItem.value.name == item.name ? 1 : "",
  75. f: common_vendor.o(($event) => chooseVip(item), index)
  76. };
  77. }),
  78. k: common_vendor.t(curVipItem.value.price),
  79. l: common_vendor.t(curVipItem.value.day),
  80. m: common_vendor.p({
  81. text: "查看全部"
  82. }),
  83. n: common_assets._imports_5,
  84. o: common_assets._imports_6,
  85. p: common_vendor.f(tabData.value, (item, index, i0) => {
  86. return {
  87. a: item.icon,
  88. b: common_vendor.t(item.name),
  89. c: index
  90. };
  91. }),
  92. q: common_vendor.f(stepData.value, (item, index, i0) => {
  93. return {
  94. a: common_vendor.t(item.num),
  95. b: common_vendor.t(item.oneTxt),
  96. c: item.icon,
  97. d: index
  98. };
  99. }),
  100. r: common_vendor.p({
  101. text: "查看全部"
  102. }),
  103. s: common_vendor.o(lookMore),
  104. t: common_vendor.f(6, (item, index, i0) => {
  105. return {
  106. a: "5f0ca787-3-" + i0,
  107. b: index
  108. };
  109. }),
  110. v: common_vendor.f(10, (item, index, i0) => {
  111. return {
  112. a: index,
  113. b: "5f0ca787-5-" + i0 + ",5f0ca787-4"
  114. };
  115. }),
  116. w: common_vendor.o(($event) => common_vendor.isRef(show) ? show.value = false : show = false),
  117. x: common_vendor.o(($event) => common_vendor.isRef(show) ? show.value = $event : show = $event),
  118. y: common_vendor.p({
  119. mode: "bottom",
  120. round: "20rpx",
  121. closeable: true,
  122. show: common_vendor.unref(show)
  123. })
  124. });
  125. };
  126. }
  127. };
  128. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-5f0ca787"]]);
  129. wx.createPage(MiniProgramPage);