Commit a2e01511 authored by 朱璇's avatar 朱璇

商议低价接口调试“

parent 98afbb2a
...@@ -2,12 +2,11 @@ ...@@ -2,12 +2,11 @@
* @Author: zx * @Author: zx
* @Date: 2020-07-03 20:54:59 * @Date: 2020-07-03 20:54:59
* @Last Modified by: zx * @Last Modified by: zx
* @Last Modified time: 2020-07-04 10:36:22 * @Last Modified time: 2020-07-04 11:38:20
*/ */
import 'package:flutter_common/commonModel/live/BaseModel.dart'; import 'package:flutter_common/commonModel/live/BaseModel.dart';
import 'package:flutter_common/commonModel/live/LiveData.dart'; import 'package:flutter_common/commonModel/live/LiveData.dart';
import 'package:gm_flutter/ClueModel/server/api/ClueApi.serv.dart'; import 'package:gm_flutter/ClueModel/server/api/ClueApi.serv.dart';
import 'package:gm_flutter/ClueModel/server/entity/PlanCompareDetail.dart';
import 'package:gm_flutter/commonModel/GMBase.dart'; import 'package:gm_flutter/commonModel/GMBase.dart';
import 'package:gm_flutter/commonModel/rx/RxDispose.dart'; import 'package:gm_flutter/commonModel/rx/RxDispose.dart';
import 'package:flutter_common/commonModel/toast/NativeToast.dart'; import 'package:flutter_common/commonModel/toast/NativeToast.dart';
...@@ -18,10 +17,10 @@ class DiscussLowPriceModel extends BaseModel { ...@@ -18,10 +17,10 @@ class DiscussLowPriceModel extends BaseModel {
LiveData<Pair<int, DiscussLowPriceModelBean>> popViewLive = LiveData(); LiveData<Pair<int, DiscussLowPriceModelBean>> popViewLive = LiveData();
RxDispose rxDispose = RxDispose(); RxDispose rxDispose = RxDispose();
fetchPopviewData(String plan_id, String hospital_id, String doctor_id) { fetchPopviewData(String planId, String hospitalId, String doctorId) {
ClueApiImpl.getInstance() ClueApiImpl.getInstance()
.getPopviewData( .getPopviewData(
DioUtil.getInstance().getDio(), plan_id, hospital_id, doctor_id) DioUtil.getInstance().getDio(), planId, hospitalId, doctorId)
.listen((event) { .listen((event) {
if (event.error == 0) { if (event.error == 0) {
if (event.data == null) { if (event.data == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment