index.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. "use strict";
  2. const common_vendor = require("../../../common/vendor.js");
  3. const _sfc_main = {
  4. __name: "index",
  5. setup(__props) {
  6. const list = common_vendor.ref([
  7. {
  8. icon: "iconfont icon-github",
  9. title: "若依问题",
  10. childList: [{
  11. title: "若依开源吗?",
  12. content: "开源"
  13. }, {
  14. title: "若依可以商用吗?",
  15. content: "可以"
  16. }, {
  17. title: "若依官网地址多少?",
  18. content: "http://ruoyi.vip"
  19. }, {
  20. title: "若依文档地址多少?",
  21. content: "http://doc.ruoyi.vip"
  22. }]
  23. },
  24. {
  25. icon: "iconfont icon-help",
  26. title: "其他问题",
  27. childList: [{
  28. title: "如何退出登录?",
  29. content: "请点击[我的] - [应用设置] - [退出登录]即可退出登录"
  30. }, {
  31. title: "如何修改用户头像?",
  32. content: "请点击[我的] - [选择头像] - [点击提交]即可更换用户头像"
  33. }, {
  34. title: "如何修改登录密码?",
  35. content: "请点击[我的] - [应用设置] - [修改密码]即可修改登录密码"
  36. }]
  37. }
  38. ]);
  39. function handleText(item) {
  40. common_vendor.index.navigateTo({
  41. url: `/pages/common/textview/index?title=${item.title}&content=${item.content}`
  42. });
  43. }
  44. return (_ctx, _cache) => {
  45. return {
  46. a: common_vendor.f(list.value, (item, findex, i0) => {
  47. return {
  48. a: common_vendor.n(item.icon),
  49. b: common_vendor.t(item.title),
  50. c: common_vendor.f(item.childList, (child, zindex, i1) => {
  51. return common_vendor.e({
  52. a: common_vendor.t(child.title),
  53. b: zindex !== item.childList.length - 1
  54. }, zindex !== item.childList.length - 1 ? {} : {}, {
  55. c: zindex,
  56. d: common_vendor.o(($event) => handleText(child), zindex)
  57. });
  58. }),
  59. d: findex,
  60. e: item.title
  61. };
  62. })
  63. };
  64. };
  65. }
  66. };
  67. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-313f4941"], ["__file", "C:/Users/Administrator/Desktop/srcaaa/pages_mine/pages/help/index.vue"]]);
  68. wx.createPage(MiniProgramPage);