main
鹿和sa0ChunLuyu 3 days ago
parent 608445836a
commit 1b5be41f2d

@ -99,6 +99,34 @@
} catch (e) { } catch (e) {
uni.navigateTo({ url: info.jump }) uni.navigateTo({ url: info.jump })
} }
} else if (info.jump.indexOf('/pages/main/combo/combo') !== -1) {
try {
const response = await $api('CheckChildCare', { person_id: $store.user.person_id }, { loading: true, loading_text: ' ' })
$response(response, () => {
const { check, path } = response.data
if (!path) {
uni.navigateTo({ url: info.jump })
} else {
if (check == 1) {
uni.showModal({
title: '提示',
content: '即将跳转到儿保科,是否确认?',
success: (res) => {
if (res.confirm) {
wx.miniProgram.navigateTo({ url: path.startsWith('/') ? path : '/' + path })
}
}
})
} else {
wx.miniProgram.navigateTo({ url: path.startsWith('/') ? path : '/' + path })
}
}
}, {}, () => {
uni.navigateTo({ url: info.jump })
})
} catch (e) {
uni.navigateTo({ url: info.jump })
}
} else if (switch_arr.includes(info.jump)) { } else if (switch_arr.includes(info.jump)) {
uni.switchTab({ uni.switchTab({
url: info.jump url: info.jump
@ -207,8 +235,31 @@
url: "/pages/main/order/order"+canshu url: "/pages/main/order/order"+canshu
}) })
}else if(!!$props.path && $props.path=='combo'){ }else if(!!$props.path && $props.path=='combo'){
uni.navigateTo({ $api('CheckChildCare', { person_id: $store.user.person_id }, { loading: true, loading_text: ' ' }).then(response => {
url: "/pages/main/combo/combo" $response(response, () => {
const { check, path } = response.data
if (!path) {
uni.navigateTo({ url: "/pages/main/combo/combo" })
} else {
if (check == 1) {
uni.showModal({
title: '提示',
content: '即将跳转到儿保科,是否确认?',
success: (res) => {
if (res.confirm) {
wx.miniProgram.navigateTo({ url: path.startsWith('/') ? path : '/' + path })
}
}
})
} else {
wx.miniProgram.navigateTo({ url: path.startsWith('/') ? path : '/' + path })
}
}
}, {}, () => {
uni.navigateTo({ url: "/pages/main/combo/combo" })
})
}).catch(e => {
uni.navigateTo({ url: "/pages/main/combo/combo" })
}) })
} }
}); });

@ -218,7 +218,7 @@
// //
const toPlan=async (id)=>{ const toPlan=async (id)=>{
try { try {
const person_id = order_info.person_id || $store.user.person_id const person_id = order_info.value.person_id || $store.user.person_id
const response = await $api('CheckChildCare', { person_id }, { loading: true, loading_text: ' ' }) const response = await $api('CheckChildCare', { person_id }, { loading: true, loading_text: ' ' })
$response(response, () => { $response(response, () => {
const { check, path } = response.data const { check, path } = response.data

@ -374,30 +374,30 @@
<view class="more_wrapper mt-20rpx" v-if="i.more === fenzhen_active && !!fenzhen_info"> <view class="more_wrapper mt-20rpx" v-if="i.more === fenzhen_active && !!fenzhen_info">
<template v-for="(item, index) in fenzhen_info.list" :key="index"> <template v-for="(item, index) in fenzhen_info.list" :key="index">
<view class="between h-90rpx b-0 b-b-1 b-solid b-#EAEAEA" <view class="between min-h-90rpx py-10rpx b-0 b-b-1 b-solid b-#EAEAEA"
v-if="item.status == 1 || item.status == 2"> v-if="item.status == 1 || item.status == 2">
<view class="text-#000000 text-30rpx">{{ item.name }}</view> <view class="flex-1 text-#000000 text-30rpx break-all">{{ item.name }}</view>
<view class="center"> <view class="center shrink-0">
<text @click="qijian(item)" <text @click="qijian(item)"
class="rounded-full text-28rpx center w-105rpx h-48rpx text-#E95515 bg-#FAECE6">弃检</text> class="rounded-full text-28rpx center w-105rpx h-48rpx text-#E95515 bg-#FAECE6">弃检</text>
</view> </view>
</view> </view>
<view class="between h-90rpx b-0 b-b-1 b-solid b-#EAEAEA" v-if="item.status == 4"> <view class="between min-h-90rpx py-10rpx b-0 b-b-1 b-solid b-#EAEAEA" v-if="item.status == 4">
<view class="text-#000000 text-30rpx"> <view class="flex-1 text-#000000 text-30rpx break-all">
<view>{{ item.name }}</view> <view>{{ item.name }}</view>
<view class="text-#141414 text-28rpx">{{ item.time }}</view> <view class="text-#141414 text-28rpx">{{ item.time }}</view>
</view> </view>
<view class="center"> <view class="center shrink-0">
<text <text
class="rounded-full text-28rpx center w-105rpx h-48rpx mr-30rpx text-#239EA3 bg-#E5F3F2">完成</text> class="rounded-full text-28rpx center w-105rpx h-48rpx mr-30rpx text-#239EA3 bg-#E5F3F2">完成</text>
</view> </view>
</view> </view>
<view class="between b-0 b-b-1 b-solid b-#EAEAEA" v-if="item.status == 5"> <view class="between min-h-90rpx py-10rpx b-0 b-b-1 b-solid b-#EAEAEA" v-if="item.status == 5">
<view class="text-#000000 text-30rpx"> <view class="flex-1 text-#000000 text-30rpx break-all">
<view>{{ item.name }}</view> <view>{{ item.name }}</view>
<view class="text-#141414 text-28rpx">{{ item.time }}</view> <view class="text-#141414 text-28rpx">{{ item.time }}</view>
</view> </view>
<view class="center"> <view class="center shrink-0">
<text class="rounded-full text-28rpx center w-105rpx h-48rpx text-#6d89a3 bg-#E5F3F2">已弃检</text> <text class="rounded-full text-28rpx center w-105rpx h-48rpx text-#6d89a3 bg-#E5F3F2">已弃检</text>
</view> </view>
</view> </view>

Loading…
Cancel
Save