first commit

This commit is contained in:
2025-12-29 14:59:44 +08:00
commit 10c3fbb0d7
5315 changed files with 795443 additions and 0 deletions

View File

@@ -0,0 +1,82 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_up_calendar2 = common_vendor.resolveComponent("up-calendar");
_easycom_up_calendar2();
}
const _easycom_up_calendar = () => "../../uni_modules/uview-plus/components/u-calendar/u-calendar.js";
if (!Math) {
_easycom_up_calendar();
}
const _sfc_main = {
__name: "edit",
setup(__props) {
const showDatePicker = common_vendor.ref(false);
const userInfo = common_vendor.reactive({
avatar: "https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg",
nickname: "希缝弗斯",
username: "17374339800",
signature: "",
gender: 1,
// 1-男 2-女
birthday: "2025-10-09"
});
const chooseAvatar = () => {
common_vendor.index.chooseImage({
count: 1,
sizeType: ["compressed"],
sourceType: ["album", "camera"],
success: (res) => {
userInfo.avatar = res.tempFilePaths[0];
}
});
};
const confirmDate = (e) => {
userInfo.birthday = e[0];
showDatePicker.value = false;
};
const handleSave = () => {
common_vendor.index.showToast({ title: "保存成功", icon: "success" });
};
const handleLogout = () => {
common_vendor.index.showModal({
title: "提示",
content: "确定要退出登录吗?",
success: (res) => {
if (res.confirm) {
common_vendor.index.reLaunch({ url: "/pages/login/login" });
}
}
});
};
return (_ctx, _cache) => {
return {
a: userInfo.avatar,
b: common_vendor.o(chooseAvatar),
c: userInfo.nickname,
d: common_vendor.o(($event) => userInfo.nickname = $event.detail.value),
e: common_vendor.t(userInfo.username),
f: userInfo.signature,
g: common_vendor.o(($event) => userInfo.signature = $event.detail.value),
h: userInfo.gender === 1 ? 1 : "",
i: userInfo.gender === 1 ? 1 : "",
j: common_vendor.o(($event) => userInfo.gender = 1),
k: userInfo.gender === 2 ? 1 : "",
l: userInfo.gender === 2 ? 1 : "",
m: common_vendor.o(($event) => userInfo.gender = 2),
n: common_vendor.t(userInfo.birthday || "请选择日期"),
o: common_vendor.o(($event) => showDatePicker.value = true),
p: common_vendor.o(confirmDate),
q: common_vendor.o(($event) => showDatePicker.value = false),
r: common_vendor.p({
show: showDatePicker.value,
mode: "single"
}),
s: common_vendor.o(handleSave),
t: common_vendor.o(handleLogout)
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-249675c2"]]);
wx.createPage(MiniProgramPage);