This commit is contained in:
pengxiaolong
2025-06-23 22:00:46 +08:00
parent acc81963e9
commit 36a240f854
79 changed files with 426 additions and 154 deletions

View File

@@ -226,6 +226,14 @@ export default {
ConfirmStatus: false, //确认弹窗状态
};
},
onShareAppMessage(res) {
if (res.from === "menu") {
return {
title: "分享",
path: getCurrentPages()[getCurrentPages().length - 1].route,
};
}
},
onShow() {
// 页面显示时请求数据
this.page = 0;
@@ -234,6 +242,9 @@ export default {
this.RealTimePklist = [];
this.pkList({ type: 2 });
this.pkList({ type: 1 });
// uni.showShareMenu({
// withShareTicket: true,
// });
},
onLoad() {
uni.getStorage({
@@ -266,7 +277,7 @@ export default {
this.$refs.popup.close();
},
//格式化日期
dateformat(date) {
dateformat(date) {
const isoString = date.replace(" ", "T");
const timestamp = Date.parse(isoString);
if (isNaN(timestamp)) {
@@ -491,7 +502,6 @@ export default {
formatDate: formatDate,
async pkList(condition) {
console.log("`````````````````````````````",condition);
//获取list
const res = await request({
url: "pk/pkList",
@@ -506,7 +516,6 @@ export default {
userInfo: false,
});
if (res.code === 200) {
console.log("````````````````````````````````",res.data);
this.triggered = false;
if (condition.type === 1) {
this.MakeAppointmentPKlist.push(...res.data);