增加号源已满显示

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

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

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

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

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

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

Loading…
Cancel
Save