cert.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. "use strict";
  2. var common_vendor = require("../common/vendor.js");
  3. var api_common = require("../api/common.js");
  4. require("../common/request.js");
  5. const _sfc_main = {
  6. data() {
  7. return {
  8. certs: []
  9. };
  10. },
  11. onLoad(val) {
  12. this.getConfigByKey();
  13. },
  14. methods: {
  15. getConfigByKey() {
  16. var data = { key: "his.certs" };
  17. api_common.getConfigByKey(data).then((res) => {
  18. if (res.code == 200) {
  19. this.certs = JSON.parse(res.data).certs.split(",");
  20. }
  21. }, (rej) => {
  22. });
  23. },
  24. showImg(item) {
  25. var urls = [];
  26. urls.push(item);
  27. common_vendor.index.previewImage({
  28. urls,
  29. current: 0
  30. });
  31. }
  32. }
  33. };
  34. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  35. return {
  36. a: common_vendor.f($data.certs, (item, k0, i0) => {
  37. return {
  38. a: common_vendor.o(($event) => $options.showImg(item)),
  39. b: item
  40. };
  41. })
  42. };
  43. }
  44. var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-059af8e2"], ["__file", "E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/cert.vue"]]);
  45. wx.createPage(MiniProgramPage);