msgdetail.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. __name: "msgdetail",
  5. setup(__props) {
  6. const msgData = common_vendor.ref({
  7. title: "",
  8. position: "",
  9. company: "",
  10. status: "",
  11. desc: ""
  12. });
  13. common_vendor.onLoad((options) => {
  14. if (options.data) {
  15. try {
  16. const decoded = decodeURIComponent(options.data);
  17. msgData.value = JSON.parse(decoded);
  18. } catch (e) {
  19. common_vendor.index.__f__("error", "at pages/message/msgdetail.vue:57", "Parse msg data error", e);
  20. }
  21. }
  22. });
  23. return (_ctx, _cache) => {
  24. return {
  25. a: common_vendor.t(msgData.value.title || "消息详情"),
  26. b: common_vendor.t(msgData.value.position || "-"),
  27. c: common_vendor.t(msgData.value.company || "-"),
  28. d: common_vendor.t(msgData.value.status || "-"),
  29. e: common_vendor.t(msgData.value.time || "-"),
  30. f: common_vendor.t(msgData.value.desc || "暂无说明")
  31. };
  32. };
  33. }
  34. };
  35. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b13fcb8d"]]);
  36. wx.createPage(MiniProgramPage);
  37. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/message/msgdetail.js.map