index.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. "use strict";
  2. var common_vendor = require("../../common/vendor.js");
  3. const CustomCamera = () => "../../components/CustomCamera/WeChat/index.js";
  4. const _sfc_main = {
  5. components: {
  6. CustomCamera
  7. },
  8. data() {
  9. return {
  10. coverImageType: "side"
  11. };
  12. },
  13. onLoad(options) {
  14. this.coverImageType = options.coverImageType;
  15. },
  16. onShareAppMessage(res) {
  17. return {
  18. title: "AI\u820C\u8BCA"
  19. };
  20. },
  21. onShareTimeline(res) {
  22. return {
  23. title: "AI\u820C\u8BCA"
  24. };
  25. },
  26. methods: {
  27. back() {
  28. common_vendor.index.switchTab({
  29. url: "/pages/index/index"
  30. });
  31. },
  32. takePhoto() {
  33. var url = common_vendor.index.getStorageSync("tongueUrl");
  34. console.log(url);
  35. common_vendor.index.navigateTo({
  36. url: "/pages_user/tongue/photoPreview?url=" + url
  37. });
  38. },
  39. getImage(res) {
  40. var url = common_vendor.index.getStorageSync("tongueUrl");
  41. console.log(url);
  42. common_vendor.index.navigateTo({
  43. url: "/pages_user/tongue/photoPreview?url=" + url
  44. });
  45. }
  46. }
  47. };
  48. if (!Array) {
  49. const _component_CustomCamera = common_vendor.resolveComponent("CustomCamera");
  50. _component_CustomCamera();
  51. }
  52. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  53. return {
  54. a: common_vendor.sr("CustomCamera", "1032c388-0"),
  55. b: common_vendor.o($options.takePhoto),
  56. c: common_vendor.o($options.getImage)
  57. };
  58. }
  59. var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/tongue/index.vue"]]);
  60. _sfc_main.__runtimeHooks = 6;
  61. wx.createPage(MiniProgramPage);