上传代码

This commit is contained in:
pengxiaolong
2025-07-01 21:30:08 +08:00
parent 89c9f8f1df
commit dc1fab2f90
48 changed files with 516 additions and 103 deletions

View File

@@ -3,7 +3,8 @@ const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
data() {
return {
title: "Hello"
title: "Hello",
content: "PK@TikTok0.xyz"
};
},
onLoad() {
@@ -17,6 +18,23 @@ const _sfc_main = {
}
},
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
@@ -26,7 +44,9 @@ const _sfc_main = {
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.o$1((...args) => $options.onBack && $options.onBack(...args))
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"]]);