mockData.js 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. const mockData = {
  2. // 医院数据
  3. hospitals: [
  4. {
  5. id: 1,
  6. name: "北京协和医院",
  7. address: "北京市东城区帅府园1号",
  8. distance: "3.5km",
  9. rating: 4.8,
  10. image: "/images/hospital.png",
  11. cases: [
  12. {
  13. id: 1,
  14. date: "2024-01-15",
  15. doctor: "张医生",
  16. department: "内科",
  17. diagnosis: "上呼吸道感染",
  18. medicines: [
  19. { id: 1, name: "阿莫西林胶囊", price: 25.5, stock: true },
  20. { id: 2, name: "布洛芬缓释胶囊", price: 18.0, stock: true }
  21. ]
  22. },
  23. {
  24. id: 2,
  25. date: "2024-02-20",
  26. doctor: "李医生",
  27. department: "皮肤科",
  28. diagnosis: "过敏性皮炎",
  29. medicines: [
  30. { id: 3, name: "氯雷他定片", price: 32.0, stock: true },
  31. { id: 4, name: "氢化可的松乳膏", price: 28.5, stock: true }
  32. ]
  33. }
  34. ]
  35. },
  36. {
  37. id: 2,
  38. name: "上海瑞金医院",
  39. address: "上海市黄浦区瑞金二路197号",
  40. distance: "5.2km",
  41. rating: 4.7,
  42. image: "/images/hospital.png",
  43. cases: [
  44. {
  45. id: 3,
  46. date: "2024-01-10",
  47. doctor: "王医生",
  48. department: "消化科",
  49. diagnosis: "急性胃炎",
  50. medicines: [
  51. { id: 5, name: "奥美拉唑肠溶胶囊", price: 45.0, stock: true },
  52. { id: 6, name: "铝碳酸镁咀嚼片", price: 22.5, stock: true }
  53. ]
  54. }
  55. ]
  56. },
  57. {
  58. id: 3,
  59. name: "广州中山医院",
  60. address: "广州市越秀区中山二路58号",
  61. distance: "7.8km",
  62. rating: 4.6,
  63. image: "/images/hospital.png",
  64. cases: [
  65. {
  66. id: 4,
  67. date: "2024-03-01",
  68. doctor: "陈医生",
  69. department: "骨科",
  70. diagnosis: "软组织损伤",
  71. medicines: [
  72. { id: 7, name: "云南白药气雾剂", price: 38.0, stock: true },
  73. { id: 8, name: "双氯芬酸钠凝胶", price: 26.5, stock: true }
  74. ]
  75. }
  76. ]
  77. }
  78. ],
  79. // 药品比价数据
  80. medicinePrices: {
  81. "阿莫西林胶囊": [
  82. { hospital: "北京协和医院", price: 25.5 },
  83. { hospital: "上海瑞金医院", price: 26.0 },
  84. { hospital: "广州中山医院", price: 24.8 }
  85. ],
  86. "布洛芬缓释胶囊": [
  87. { hospital: "北京协和医院", price: 18.0 },
  88. { hospital: "上海瑞金医院", price: 17.5 },
  89. { hospital: "广州中山医院", price: 19.0 }
  90. ],
  91. "氯雷他定片": [
  92. { hospital: "北京协和医院", price: 32.0 },
  93. { hospital: "上海瑞金医院", price: 30.5 },
  94. { hospital: "广州中山医院", price: 33.0 }
  95. ]
  96. },
  97. // AI诊断数据
  98. aiDiagnosis: {
  99. "感冒": {
  100. symptoms: ["流鼻涕", "咳嗽", "发烧", "头痛"],
  101. diagnosis: "上呼吸道感染",
  102. suggestion: "建议多休息,多喝水,可服用感冒药",
  103. recommendedMedicines: ["阿莫西林胶囊", "布洛芬缓释胶囊"]
  104. },
  105. "胃痛": {
  106. symptoms: ["胃部不适", "恶心", "食欲不振"],
  107. diagnosis: "急性胃炎",
  108. suggestion: "建议清淡饮食,避免辛辣刺激食物",
  109. recommendedMedicines: ["奥美拉唑肠溶胶囊", "铝碳酸镁咀嚼片"]
  110. },
  111. "皮肤过敏": {
  112. symptoms: ["皮肤瘙痒", "红疹", "皮肤干燥"],
  113. diagnosis: "过敏性皮炎",
  114. suggestion: "建议避免接触过敏原,保持皮肤清洁",
  115. recommendedMedicines: ["氯雷他定片", "氢化可的松乳膏"]
  116. }
  117. },
  118. // 用户数据
  119. userInfo: {
  120. name: "张三",
  121. phone: "138****1234",
  122. avatar: "/images/default-avatar.png",
  123. fingerprintRegistered: false,
  124. faceRegistered: false,
  125. medicalRecordsShared: false
  126. },
  127. // 病历记录数据
  128. medicalRecords: [
  129. {
  130. id: 1,
  131. date: "2024-01-15",
  132. hospital: "北京协和医院",
  133. doctor: "张医生",
  134. department: "内科",
  135. diagnosis: "上呼吸道感染",
  136. symptoms: ["流鼻涕", "咳嗽", "发烧", "头痛"],
  137. medicines: [
  138. { id: 1, name: "阿莫西林胶囊", price: 25.5, quantity: 2 },
  139. { id: 2, name: "布洛芬缓释胶囊", price: 18.0, quantity: 1 }
  140. ],
  141. notes: "建议多休息,多喝水,注意保暖",
  142. shared: false
  143. },
  144. {
  145. id: 2,
  146. date: "2024-02-20",
  147. hospital: "北京协和医院",
  148. doctor: "李医生",
  149. department: "皮肤科",
  150. diagnosis: "过敏性皮炎",
  151. symptoms: ["皮肤瘙痒", "红疹", "皮肤干燥"],
  152. medicines: [
  153. { id: 3, name: "氯雷他定片", price: 32.0, quantity: 1 },
  154. { id: 4, name: "氢化可的松乳膏", price: 28.5, quantity: 1 }
  155. ],
  156. notes: "建议避免接触过敏原,保持皮肤清洁",
  157. shared: true
  158. },
  159. {
  160. id: 3,
  161. date: "2024-01-10",
  162. hospital: "上海瑞金医院",
  163. doctor: "王医生",
  164. department: "消化科",
  165. diagnosis: "急性胃炎",
  166. symptoms: ["胃部不适", "恶心", "食欲不振"],
  167. medicines: [
  168. { id: 5, name: "奥美拉唑肠溶胶囊", price: 45.0, quantity: 1 },
  169. { id: 6, name: "铝碳酸镁咀嚼片", price: 22.5, quantity: 2 }
  170. ],
  171. notes: "建议清淡饮食,避免辛辣刺激食物",
  172. shared: false
  173. },
  174. {
  175. id: 4,
  176. date: "2024-03-01",
  177. hospital: "广州中山医院",
  178. doctor: "陈医生",
  179. department: "骨科",
  180. diagnosis: "软组织损伤",
  181. symptoms: ["关节疼痛", "活动受限", "肿胀"],
  182. medicines: [
  183. { id: 7, name: "云南白药气雾剂", price: 38.0, quantity: 1 },
  184. { id: 8, name: "双氯芬酸钠凝胶", price: 26.5, quantity: 1 }
  185. ],
  186. notes: "建议休息,避免剧烈运动",
  187. shared: false
  188. }
  189. ],
  190. // 订单数据
  191. orders: [
  192. {
  193. id: 1,
  194. hospital: "北京协和医院",
  195. medicines: ["阿莫西林胶囊", "布洛芬缓释胶囊"],
  196. totalPrice: 43.5,
  197. status: "completed",
  198. date: "2024-03-01",
  199. droneTracking: {
  200. status: "已送达",
  201. steps: ["订单确认", "药品准备", "无人机起飞", "配送中", "已送达"]
  202. },
  203. mapTracking: {
  204. polyline: [
  205. {
  206. points: [
  207. { latitude: 39.9139, longitude: 116.3917 },
  208. { latitude: 39.9150, longitude: 116.3930 },
  209. { latitude: 39.9160, longitude: 116.3950 },
  210. { latitude: 39.9170, longitude: 116.3970 },
  211. { latitude: 39.9180, longitude: 116.3990 }
  212. ],
  213. color: "#007AFF",
  214. width: 4,
  215. dottedLine: false
  216. }
  217. ],
  218. markers: [
  219. {
  220. id: 1,
  221. latitude: 39.9139,
  222. longitude: 116.3917,
  223. iconPath: "/images/hospital-marker.png",
  224. width: 30,
  225. height: 30,
  226. title: "北京协和医院"
  227. },
  228. {
  229. id: 2,
  230. latitude: 39.9180,
  231. longitude: 116.3990,
  232. iconPath: "/images/drone-marker.png",
  233. width: 30,
  234. height: 30,
  235. title: "配送位置"
  236. }
  237. ]
  238. }
  239. },
  240. {
  241. id: 2,
  242. hospital: "上海瑞金医院",
  243. medicines: ["奥美拉唑肠溶胶囊"],
  244. totalPrice: 45.0,
  245. status: "delivering",
  246. date: "2024-03-05",
  247. droneTracking: {
  248. status: "配送中",
  249. steps: ["订单确认", "药品准备", "无人机起飞", "配送中", "待送达"]
  250. },
  251. mapTracking: {
  252. polyline: [
  253. {
  254. points: [
  255. { latitude: 31.2304, longitude: 121.4737 },
  256. { latitude: 31.2320, longitude: 121.4750 },
  257. { latitude: 31.2330, longitude: 121.4770 },
  258. { latitude: 31.2340, longitude: 121.4790 }
  259. ],
  260. color: "#007AFF",
  261. width: 4,
  262. dottedLine: false
  263. }
  264. ],
  265. markers: [
  266. {
  267. id: 1,
  268. latitude: 31.2304,
  269. longitude: 121.4737,
  270. iconPath: "/images/hospital-marker.png",
  271. width: 30,
  272. height: 30,
  273. title: "上海瑞金医院"
  274. },
  275. {
  276. id: 2,
  277. latitude: 31.2340,
  278. longitude: 121.4790,
  279. iconPath: "/images/drone-marker.png",
  280. width: 30,
  281. height: 30,
  282. title: "无人机位置"
  283. }
  284. ]
  285. }
  286. }
  287. ],
  288. // 首页轮播图数据
  289. banners: [
  290. {
  291. id: 1,
  292. title: "无人机药品配送服务",
  293. description: "快速、安全、便捷的药品配送",
  294. image: "/images/banner1.png",
  295. video: "/videos/delivery.mp4"
  296. },
  297. {
  298. id: 2,
  299. title: "AI智能诊断",
  300. description: "专业AI医生为您提供初步诊断",
  301. image: "/images/banner2.png",
  302. video: "/videos/ai_diagnosis.mp4"
  303. },
  304. {
  305. id: 3,
  306. title: "药品比价服务",
  307. description: "多家医院药品价格对比",
  308. image: "/images/banner3.png",
  309. video: "/videos/price_comparison.mp4"
  310. }
  311. ]
  312. };
  313. module.exports = mockData;