优化
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user