修复 医生预约日期和体检日期对不上的 bug

main
刘佳宇 1 year ago
parent d3b038c363
commit ccd387f5da

@ -1,8 +1,8 @@
const app_type = 'gzh' const app_type = 'gzh'
const base_url="https://api.hainan2024.sa0.online" //开发环境 const base_url = "https://api.hainan2024.sa0.online" //开发环境
//const base_url="https://tj-h5.hnxdfe.com" //正式环境 // const base_url="https://tj-h5.hnxdfe.com" //正式环境
const config = { const config = {
api_map_url: base_url+'/api/ApiMap/h5', api_map_url: base_url + '/api/ApiMap/h5',
base_assets_url: base_url, base_assets_url: base_url,
} }
uni.$config = JSON.parse(JSON.stringify(config)) uni.$config = JSON.parse(JSON.stringify(config))

@ -384,7 +384,7 @@ const toRouter = (url, status, index) => {
console.log(yytjInfo.value); console.log(yytjInfo.value);
uni.setStorageSync("yytjInfoS", yytjInfo.value); uni.setStorageSync("yytjInfoS", yytjInfo.value);
$store.setYytjInfo(yytjInfo.value); $store.setYytjInfo(yytjInfo.value);
if (yytjInfo.value.doctor_date && i == -1) { if (yytjInfo.value.doctor_name && i == -1) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/main/selectDoctor/selectDoctor?date=${yytjInfo.value.doctor_date}`, url: `/pages/main/selectDoctor/selectDoctor?date=${yytjInfo.value.doctor_date}`,
}); });

@ -93,6 +93,16 @@ const getnmrList = async () => {
const moreTime = async (m, status) => { const moreTime = async (m, status) => {
uni.showLoading({ title: "加载中" }); uni.showLoading({ title: "加载中" });
isClickDoctor.value = status; isClickDoctor.value = status;
if (status) {
if (yytjInfo.value.nmr_list[yytjInfo.value.nmr_list.length - 1].time) {
currentDate.value =
yytjInfo.value.nmr_list[yytjInfo.value.nmr_list.length - 1].time.split(
" "
)[0];
} else {
currentDate.value = getToday();
}
}
// //
const [year, month, day] = currentDate.value.split("-"); const [year, month, day] = currentDate.value.split("-");
let dqmonth = m || `${year}-${month}`; // let dqmonth = m || `${year}-${month}`; //

Loading…
Cancel
Save