修改预约核磁时间

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

@ -509,7 +509,11 @@ const toRouter = (url, status) => {
:key="index" :key="index"
v-if="yytjInfo?.nmr_list?.length" 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="ml-20rpx mr-auto text-#239EA3">{{ val.time }}</text>
<text class="text-30rpx">{{ <text class="text-30rpx">{{
val.time ? "重新预约" : "预约时间" val.time ? "重新预约" : "预约时间"

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

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

Loading…
Cancel
Save