| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const common_assets = require("../../common/assets.js");
- const _sfc_main = {
- data() {
- return {
- version: "1.0.0"
- };
- },
- methods: {
- // 复制文本
- copyText(text) {
- common_vendor.index.setClipboardData({
- data: text,
- success: () => {
- common_vendor.index.showToast({
- title: "已复制到剪贴板",
- icon: "none"
- });
- }
- });
- },
- // 拨打电话
- makePhoneCall() {
- common_vendor.index.makePhoneCall({
- phoneNumber: "400-xxx-xxxx",
- fail: () => {
- this.copyText("400-xxx-xxxx");
- }
- });
- }
- }
- };
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return {
- a: common_assets._imports_0$4,
- b: common_vendor.t($data.version),
- c: common_vendor.o(($event) => $options.copyText("www.nongxiaoyu.com")),
- d: common_vendor.o((...args) => $options.makePhoneCall && $options.makePhoneCall(...args)),
- e: common_vendor.o(($event) => $options.copyText("service@nongxiaoyu.com"))
- };
- }
- const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
- wx.createPage(MiniProgramPage);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/about/index.js.map
|