修改预约核磁时间

main
刘佳宇 1 year ago
parent db1c214b1e
commit 948041cf93

@ -509,7 +509,11 @@ const toRouter = (url, status) => {
:key="index"
v-if="yytjInfo?.nmr_list?.length"
>
<text>{{ val.name }}</text>
<view class="flex-col flex">
<text v-for="(v, i) in val.name?.split('/')" :key="i">{{
v
}}</text>
</view>
<text class="ml-20rpx mr-auto text-#239EA3">{{ val.time }}</text>
<text class="text-30rpx">{{
val.time ? "重新预约" : "预约时间"

@ -632,10 +632,12 @@ onShow(() => {
:class="nmrIndex == index ? 'acitvetc' : ''"
class="flex flex-justify-around p-20rpx pl-10rpx pr-10rpx rounded-15rpx"
>
<view class="flex-1 line-clamp-1">
{{ item.name }}
<view class="flex-col flex flex-1 line-clamp-1">
<text v-for="(v, i) in item.name?.split('/')" :key="i">{{
v
}}</text>
</view>
<view>
<view class="center">
{{ item.time }}
</view>
</view>

@ -67,14 +67,14 @@ export const useStore = defineStore('counter', {
uni.setStorageSync('USER', JSON.stringify(user));
},
getUser() {
return JSON.parse(uni.getStorageSync('USER')) || this.user;
return JSON.parse(uni.getStorageSync('USER') || '{}') || this.user;
},
setGroupInfo(info) {
this.groupInfo = info;
uni.setStorageSync('GROUP_INFO', JSON.stringify(info));
},
getGroupInfo() {
return JSON.parse(uni.getStorageSync('GROUP_INFO')) || this.groupInfo;
return JSON.parse(uni.getStorageSync('GROUP_INFO') || '{}') || this.groupInfo;
},
resetSaveInfo() {
this.save = {

Loading…
Cancel
Save