index.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. const _sfc_main = {
  5. data() {
  6. return {
  7. version: "1.0.0"
  8. };
  9. },
  10. methods: {
  11. // 复制文本
  12. copyText(text) {
  13. common_vendor.index.setClipboardData({
  14. data: text,
  15. success: () => {
  16. common_vendor.index.showToast({
  17. title: "已复制到剪贴板",
  18. icon: "none"
  19. });
  20. }
  21. });
  22. },
  23. // 拨打电话
  24. makePhoneCall() {
  25. common_vendor.index.makePhoneCall({
  26. phoneNumber: "400-xxx-xxxx",
  27. fail: () => {
  28. this.copyText("400-xxx-xxxx");
  29. }
  30. });
  31. }
  32. }
  33. };
  34. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  35. return {
  36. a: common_assets._imports_0$4,
  37. b: common_vendor.t($data.version),
  38. c: common_vendor.o(($event) => $options.copyText("www.nongxiaoyu.com")),
  39. d: common_vendor.o((...args) => $options.makePhoneCall && $options.makePhoneCall(...args)),
  40. e: common_vendor.o(($event) => $options.copyText("service@nongxiaoyu.com"))
  41. };
  42. }
  43. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
  44. wx.createPage(MiniProgramPage);
  45. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/about/index.js.map