From 4a6bd15082d4edc6679919798bdd721b1cd41ffa Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Wed, 1 Feb 2023 09:47:13 +0800 Subject: [PATCH] 2023-2-1 --- common/config.js | 5 ++--- pages/detailNursing/detailNursing.vue | 29 +++++++++++++++------------ 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/common/config.js b/common/config.js index accdfd2..cea6495 100644 --- a/common/config.js +++ b/common/config.js @@ -3,9 +3,8 @@ const mode = process.env.NODE_ENV; let ROOTPATH = ''; //域名 switch (mode) { case 'development': - ROOTPATH = "http://sstt.ali251.langye.net" - //ROOTPATH = "https://sstt.115.langye.net" - + //ROOTPATH = "http://sstt.ali251.langye.net" + ROOTPATH = "https://sstt.115.langye.net" break; case 'production': ROOTPATH = "https://sstt.115.langye.net" diff --git a/pages/detailNursing/detailNursing.vue b/pages/detailNursing/detailNursing.vue index 10abb9f..84414f6 100644 --- a/pages/detailNursing/detailNursing.vue +++ b/pages/detailNursing/detailNursing.vue @@ -90,19 +90,19 @@ + @click="$u.throttle(clockIn,5000)"> 过程打卡 ({{detail.logs_count + 1}}) - + 签到 {{dateFormat(time,'HH:mm:ss')}} - + 签退 {{dateFormat(time,'HH:mm:ss')}} - + 更新定位 {{dateFormat(time,'HH:mm:ss')}} @@ -218,15 +218,18 @@ id }) this.detail = res - this.skuList = res.sku.map(item => { - return { - info: item.sku_info, - isSelect: item.time ? true : false, - form: { - id: item.id, - time: item.time || '', - sku_id: item.sku_id, - } + this.skuList = [] + res.sku.forEach(item => { + if (item.sku_id && item.sku_info) { + this.skuList.push({ + info: item.sku_info, + isSelect: item.time ? true : false, + form: { + id: item.id, + time: item.time || '', + sku_id: item.sku_id, + } + }) } }) this.form.schedule_list_id = this.id