56 lines
1.5 KiB
JavaScript
56 lines
1.5 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
const _sfc_main = {
|
|
data() {
|
|
return {
|
|
title: "Hello",
|
|
content: "PK@TikTok0.xyz"
|
|
};
|
|
},
|
|
onLoad() {
|
|
},
|
|
onShareAppMessage(res) {
|
|
if (res.from === "menu") {
|
|
return {
|
|
title: "分享",
|
|
path: "/pages/Home/Home"
|
|
};
|
|
}
|
|
},
|
|
methods: {
|
|
//长按复制邮箱
|
|
handleCopy() {
|
|
common_vendor.index.setClipboardData({
|
|
data: this.content,
|
|
success: () => {
|
|
common_vendor.index.showToast({
|
|
title: "复制成功",
|
|
icon: "success",
|
|
duration: 1500
|
|
});
|
|
},
|
|
fail: (err) => {
|
|
common_vendor.index.__f__("error", "at pages/Mine/minecomponents/contact.vue:61", "复制失败:", err);
|
|
}
|
|
});
|
|
},
|
|
// 返回上一页
|
|
onBack() {
|
|
common_vendor.wx$1.navigateBack({
|
|
delta: 1
|
|
});
|
|
}
|
|
}
|
|
};
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_vendor.o$1((...args) => $options.onBack && $options.onBack(...args)),
|
|
b: common_vendor.t($data.content),
|
|
c: common_vendor.o$1((...args) => $options.handleCopy && $options.handleCopy(...args))
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2f1f017b"]]);
|
|
_sfc_main.__runtimeHooks = 2;
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Mine/minecomponents/contact.js.map
|