index.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const common_assets = require("../../common/assets.js");
  4. const _sfc_main = {
  5. __name: "index",
  6. setup(__props) {
  7. const version = common_vendor.ref("1.0.0");
  8. const copyText = (text) => {
  9. common_vendor.index.setClipboardData({
  10. data: text,
  11. success: () => {
  12. common_vendor.index.showToast({
  13. title: "已复制到剪贴板",
  14. icon: "none"
  15. });
  16. }
  17. });
  18. };
  19. const makePhoneCall = () => {
  20. common_vendor.index.makePhoneCall({
  21. phoneNumber: "400-xxx-xxxx",
  22. fail: () => {
  23. copyText("400-xxx-xxxx");
  24. }
  25. });
  26. };
  27. return (_ctx, _cache) => {
  28. return {
  29. a: common_assets._imports_0$1,
  30. b: common_vendor.t(version.value),
  31. c: common_vendor.o(($event) => copyText("www.nongxiaoyu.com")),
  32. d: common_vendor.o(makePhoneCall),
  33. e: common_vendor.o(($event) => copyText("service@nongxiaoyu.com"))
  34. };
  35. };
  36. }
  37. };
  38. wx.createPage(_sfc_main);
  39. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/about/index.js.map