更换 asp.net 对接接口 ,调整医生 列表 bug

main
yanzai 1 year ago
parent f922fb634a
commit 285565d1d7

@ -44,7 +44,8 @@ class AspNetZhuanController extends Controller
//二线预约 //二线预约
public static function ErXian($data,$nonce) public static function ErXian($data,$nonce)
{ {
$res= self::Post(self::$BaseUrl . '/erxianzhongzhuan.aspx?str='.$nonce,$data,'二线号源'); // $res= self::Post(self::$BaseUrl . '/erxianzhongzhuan.aspx?str='.$nonce,$data,'二线号源');
$res= self::Post(self::$BaseUrl . '/erxian.aspx?str='.$nonce,$data,'二线号源');
if($data['action']==2) return $res['gid']??false; if($data['action']==2) return $res['gid']??false;
return $res['data']??true; return $res['data']??true;
} }
@ -70,7 +71,8 @@ class AspNetZhuanController extends Controller
public static function YouHuiQuan($data) public static function YouHuiQuan($data)
{ {
$nonce=uniqid(); $nonce=uniqid();
$res= self::Post(self::$BaseUrl . '/zhongzhuan.aspx?str='.$nonce,$data,'获取优惠卷类型'); //$res= self::Post(self::$BaseUrl . '/zhongzhuan.aspx?str='.$nonce,$data,'获取优惠卷类型');
$res= self::Post(self::$BaseUrl . '/youhuijuan.aspx?str='.$nonce,$data,'获取优惠卷类型');
return $res['data']??true; return $res['data']??true;
} }

@ -12,7 +12,7 @@ import { useStore } from "@/store";
const $store = useStore(); const $store = useStore();
let dqDate = ref(""); let dqDate = ref("");
let yytjInfo = ref({}); // let yytjInfo = ref({}); //
let buy_info=ref({}); let user_person=ref({});
const $props = defineProps({ const $props = defineProps({
date: { date: {
type: String, type: String,
@ -29,7 +29,7 @@ const mountedAction = () => {
uni.showLoading({ uni.showLoading({
title: "加载中", title: "加载中",
}); });
buy_info.value= $store.getBuyInfo(); user_person.value= $store.getUser();
yytjInfo.value = $store.getYytjInfo(); yytjInfo.value = $store.getYytjInfo();
yytjInfo.value = { yytjInfo.value = {
doctor_date: "", doctor_date: "",
@ -51,7 +51,7 @@ const getdoctorList = async () => {
hospital: $store.save.hospital, hospital: $store.save.hospital,
date: dqDate.value, date: dqDate.value,
month:$props.month, month:$props.month,
person_id:buy_info.value.person_id person_id:user_person.value.person_id
}; };
const response = await $api("DoctorGetList", obj); const response = await $api("DoctorGetList", obj);
$response(response, () => { $response(response, () => {

@ -30,6 +30,8 @@
let status = ref(0); // 1 2 let status = ref(0); // 1 2
let calendarShow = ref(false); // let calendarShow = ref(false); //
const rl_list = ref(false); // const rl_list = ref(false); //
let user_person=ref({});
user_person.value= $store.getUser();
const setDefaultInfo = () => { const setDefaultInfo = () => {
yytjInfo.value = $store.getYytjInfo(); yytjInfo.value = $store.getYytjInfo();
buyInfo.value = $store.getBuyInfo(); buyInfo.value = $store.getBuyInfo();
@ -165,7 +167,7 @@
hospital: $store.save.hospital, hospital: $store.save.hospital,
month:month, month:month,
doctor_id:yytjInfo.value.doctor_id?yytjInfo.value.doctor_id:null, doctor_id:yytjInfo.value.doctor_id?yytjInfo.value.doctor_id:null,
person_id:buyInfo.value.person_id person_id:user_person.value.person_id
}; };
uni.showLoading({ uni.showLoading({
title: "加载中", title: "加载中",

Loading…
Cancel
Save