增加号源已满显示

增加号源已满显示
main
yanzai 1 year ago
parent 41578e49cb
commit b26d483715

@ -309,12 +309,18 @@ class AppointmentController extends Controller
$appointment->used_count = $appointment->max_count;
} else {
$list[$date]['info'] += max($appointment->max_count - $appointment->used_count, 0);
}
$list[$date]['data']['list'][] = $appointment;
}
$l = [];
foreach ($list as $item) {
if($item['info']==0){
$item['info']='已满';
}
$l[] = $item;
}
return Yo::echo([
'list' => $l,

@ -1,7 +1,7 @@
let url_ = "https://bjrrtj-api.sixinyun.com";
let report_url_ = "https://bjrrtj-api.sixinyun.com";
let h5_url_ = "https://bjrrtj-api.sixinyun.com";
const dev = 0;
const dev = 1;
if (dev === 1) {
url_ = "http://localbeijingrenren";
report_url_ = "http://192.168.31.106:5173";

@ -3,7 +3,7 @@ import {
} from '@/lu/axios.js'
import $api from './api.js'
let url_ = "https://bjrrtj-api.sixinyun.com";
const dev =0
const dev =1
if (dev === 1) {
url_ = "http://localbeijingrenren"
}

@ -15,9 +15,11 @@ export const $post = async ({
url,
data = {}
}) => {
let token = getToken() ? getToken() : '';
if (noLogin.indexOf(url) === -1 && token === '') {
uni.$lu.toast("请登录")
return false
}
let res = await uni.request({
@ -28,6 +30,7 @@ export const $post = async ({
Authorization: 'Bearer ' + token
}
});
if (!!res && res.data != '') {
return res.data
} else {

@ -94,9 +94,11 @@
value: 0
}])
const HospitalActivityPackageList = async () => {
const response = await HospitalActivityPackageListAction({
hospital: hospital_info.value.id
})
$response(response, () => {
package_list.value = [{
label: '全部',
@ -154,7 +156,6 @@
const max_count = ref(0)
const combo_list = ref([])
const ComboList = async () => {
console.log('--------------')
uni.showLoading()
const response = await ComboListAction({
hospital: hospital_info.value.id

Loading…
Cancel
Save