首页数据

  1. {
  2. "config": {
  3. "searchUrl": "https://m.ctrip.com/restapi/h5api/globalsearch/search?source=mobileweb&action=mobileweb&keyword="
  4. },
  5. "bannerList": [
  6. {
  7. "icon": "https://www.devio.org/io/flutter_app/img/banner/100h10000000q7ght9352.jpg",
  8. "url": "https://gs.ctrip.com/html5/you/travels/1422/3771516.html?from=https%3A%2F%2Fm.ctrip.com%2Fhtml5%2F"
  9. },
  10. {
  11. "icon": "https://dimg04.c-ctrip.com/images/300h0u000000j05rnD96B_C_500_280.jpg",
  12. "url": "https://m.ctrip.com/webapp/vacations/tour/detail?productid=3168213&departcityid=2&salecityid=2&from=https%3A%2F%2Fm.ctrip.com%2Fhtml5%2F"
  13. },
  14. {
  15. "icon": "http://pages.ctrip.com/hotel/201811/jdsc_640es_tab1.jpg",
  16. "url": "https://m.ctrip.com/events/jiudianshangchenghuodong.html?disable_webview_cache_key=1"
  17. },
  18. {
  19. "icon": "https://dimg03.c-ctrip.com/images/fd/tg/g1/M03/7E/19/CghzfVWw6OaACaJXABqNWv6ecpw824_C_500_280_Q90.jpg",
  20. "url": "https://m.ctrip.com/webapp/vacations/tour/detail?productid=53720&departcityid=2&salecityid=2&from=https%3A%2F%2Fm.ctrip.com%2Fhtml5%2F"
  21. }
  22. ],
  23. "localNavList": [
  24. {
  25. "icon": "https://www.devio.org/io/flutter_app/img/ln_ticket.png",
  26. "title": "攻略·景点",
  27. "url": "https://m.ctrip.com/webapp/you/place/2.html?ishideheader=true&secondwakeup=true&dpclickjump=true&allianceid=66672&sid=1693366&from=https%3A%2F%2Fm.ctrip.com%2Fhtml5%2F",
  28. "statusBarColor": "1070b8",
  29. "hideAppBar": true
  30. },
  31. {
  32. "icon": "https://www.devio.org/io/flutter_app/img/ln_weekend.png",
  33. "title": "周边游",
  34. "url": "https://m.ctrip.com/webapp/vacations/tour/around?&from=https%3A%2F%2Fm.ctrip.com%2Fhtml5%2F",
  35. "statusBarColor": "52149f",
  36. "hideAppBar": true
  37. },
  38. {
  39. "icon": "https://www.devio.org/io/flutter_app/img/ln_food.png",
  40. "title": "美食林",
  41. "url": "https://m.ctrip.com/webapp/you/foods/address.html?new=1&ishideheader=true",
  42. "statusBarColor": "19A0F0",
  43. "hideAppBar": true
  44. },
  45. {
  46. "icon": "https://www.devio.org/io/flutter_app/img/ln_oneday.png",
  47. "title": "一日游",
  48. "url": "https://dp.ctrip.com/webapp/activity/daytour",
  49. "hideAppBar": true
  50. },
  51. {
  52. "icon": "https://www.devio.org/io/flutter_app/img/ln_guide.png",
  53. "title": "当地攻略",
  54. "url": "https://m.ctrip.com/webapp/you/",
  55. "statusBarColor": "19A0F0",
  56. "hideAppBar": true
  57. }
  58. ],
  59. "gridNav": {
  60. "hotel": {
  61. "startColor": "fa5956",
  62. "endColor": "fa9b4d",
  63. "mainItem": {
  64. "title": "酒店",
  65. "icon": "https://pic.c-ctrip.com/platform/h5/home/grid-nav-items-hotel.png",
  66. "url": "https://m.ctrip.com/webapp/hotel/",
  67. "statusBarColor": "4289ff"
  68. },
  69. "item1": {
  70. "title": "海外酒店",
  71. "url": "https://m.ctrip.com/webapp/hotel/oversea/?otype=1",
  72. "statusBarColor": "4289ff"
  73. },
  74. "item2": {
  75. "title": "特价酒店",
  76. "url": "https://m.ctrip.com/webapp/hotel/hotsale"
  77. },
  78. "item3": {
  79. "title": "团购",
  80. "url": "https://m.ctrip.com/webapp/tuan/?secondwakeup=true&dpclickjump=true",
  81. "hideAppBar": true
  82. },
  83. "item4": {
  84. "title": "民宿 客栈",
  85. "url": "https://m.ctrip.com/webapp/inn/index",
  86. "hideAppBar": true
  87. }
  88. },
  89. "flight": {
  90. "startColor": "4b8fed",
  91. "endColor": "53bced",
  92. "mainItem": {
  93. "title": "机票",
  94. "icon": "https://pic.c-ctrip.com/platform/h5/home/grid-nav-items-flight.png",
  95. "url": "https://m.ctrip.com/html5/flight/swift/index"
  96. },
  97. "item1": {
  98. "title": "火车票",
  99. "url": "https://m.ctrip.com/webapp/train/?secondwakeup=true&dpclickjump=true&from=https%3A%2F%2Fm.ctrip.com%2Fhtml5%2F#/index?VNK=4e431539",
  100. "hideAppBar": true
  101. },
  102. "item2": {
  103. "title": "特价机票",
  104. "url": "https://m.ctrip.com/html5/flight/swift/index"
  105. },
  106. "item3": {
  107. "title": "汽车票·船票",
  108. "url": "https://m.ctrip.com/html5/Trains/bus/",
  109. "hideAppBar": true
  110. },
  111. "item4": {
  112. "title": "专车·租车",
  113. "url": "https://m.ctrip.com/webapp/car/index?s=ctrip&from=https%3A%2F%2Fm.ctrip.com%2Fhtml5%2F",
  114. "hideAppBar": true
  115. }
  116. },
  117. "travel": {
  118. "startColor": "34c2aa",
  119. "endColor": "6cd557",
  120. "mainItem": {
  121. "title": "旅游",
  122. "icon": "https://pic.c-ctrip.com/platform/h5/home/grid-nav-items-travel.png",
  123. "url": "https://m.ctrip.com/webapp/vacations/tour/vacations",
  124. "hideAppBar": true,
  125. "statusBarColor": "19A0F0"
  126. },
  127. "item1": {
  128. "title": "门票",
  129. "url": "https://m.ctrip.com/webapp/ticket/ticket",
  130. "statusBarColor": "19A0F0",
  131. "hideAppBar": true
  132. },
  133. "item2": {
  134. "title": "目的地攻略",
  135. "url": "https://m.ctrip.com/html5/you/",
  136. "statusBarColor": "19A0F0",
  137. "hideAppBar": true
  138. },
  139. "item3": {
  140. "title": "邮轮旅行",
  141. "url": "https://m.ctrip.com/webapp/cruise/index",
  142. "hideAppBar": true
  143. },
  144. "item4": {
  145. "title": "定制旅行",
  146. "url": "https://m.ctrip.com/webapp/dingzhi",
  147. "hideAppBar": true
  148. }
  149. }
  150. },
  151. "subNavList": [
  152. {
  153. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_wifi.png",
  154. "title": "WiFi电话卡",
  155. "url": "https://m.ctrip.com/webapp/activity/wifi",
  156. "hideAppBar": true
  157. },
  158. {
  159. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_visa.png",
  160. "title": "保险·签证",
  161. "url": "https://m.ctrip.com/webapp/tourvisa/entry",
  162. "hideAppBar": true
  163. },
  164. {
  165. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_exchange.png",
  166. "title": "外币兑换",
  167. "url": "https://dp.ctrip.com/webapp/forex/index?bid=2&1=1",
  168. "hideAppBar": true
  169. },
  170. {
  171. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_shopping.png",
  172. "title": "购物",
  173. "url": "https://m.ctrip.com/webapp/gshop/?ctm_ref=M_ps_2home_sl&bid=2&cid=3&pid=1",
  174. "hideAppBar": true
  175. },
  176. {
  177. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_guide.png",
  178. "title": "当地向导",
  179. "url": "https://m.ctrip.com/webapp/vacations/pguider/homepage?secondwakeup=true&dpclickjump=true&from=https%3A%2F%2Fm.ctrip.com%2Fhtml5%2F",
  180. "hideAppBar": true
  181. },
  182. {
  183. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_freetravel.png",
  184. "title": "自由行",
  185. "url": "https://dp.ctrip.com/webapp/vacations/idiytour/diyindex?navBarStyle=white",
  186. "hideAppBar": true
  187. },
  188. {
  189. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_play.png",
  190. "title": "境外玩乐",
  191. "url": "https://dp.ctrip.com/webapp/activity/overseasindex",
  192. "hideAppBar": true
  193. },
  194. {
  195. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_lipin.png",
  196. "title": "礼品卡",
  197. "url": "https://dp.ctrip.com/webapp/lipin/money",
  198. "hideAppBar": true
  199. },
  200. {
  201. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_credit.png",
  202. "title": "信用卡",
  203. "url": "https://dp.ctrip.com/webapp/cc/index?bid=8&cid=1&pid=4"
  204. },
  205. {
  206. "icon": "https://www.devio.org/io/flutter_app/img/sub_nav_more.png",
  207. "title": "更多",
  208. "url": "https://dp.ctrip.com/webapp/more/",
  209. "hideAppBar": true
  210. }
  211. ],
  212. "salesBox": {
  213. "icon": "https://www.devio.org/io/flutter_app/img/sales_box_huodong.png",
  214. "moreUrl": "https://contents.ctrip.com/activitysetupapp/mkt/index/moreact",
  215. "bigCard1": {
  216. "icon": "https://dimg04.c-ctrip.com/images/700t0y000000m71h523FE_375_260_342.png",
  217. "url": "https://contents.ctrip.com/buildingblocksweb/special/membershipcard/index.html?sceneid=1&productid=14912&ishidenavbar=yes&pushcode=act_svip_hm31",
  218. "title": "活动"
  219. },
  220. "bigCard2": {
  221. "icon": "https://dimg04.c-ctrip.com/images/700a10000000portu2BAD_375_260_342.jpg",
  222. "url": "https://m.ctrip.com/webapp/you/livestream/plan/crhHotelList.html?liveAwaken=true&isHideHeader=true&isHideNavBar=YES&mktcrhcode=hotevent",
  223. "title": "活动"
  224. },
  225. "smallCard1": {
  226. "icon": "https://dimg04.c-ctrip.com/images/700b0z000000neoth8688_375_160_345.jpg",
  227. "url": "https://contents.ctrip.com/activitysetupapp/mkt/index/nbaafs?pushcode=IP_nbaafs004",
  228. "title": "活动"
  229. },
  230. "smallCard2": {
  231. "icon": "https://dimg04.c-ctrip.com/images/700w0z000000mogkyEF78_375_160_345.jpg",
  232. "url": "https://smarket.ctrip.com/webapp/promocode/add?source=5",
  233. "title": "活动"
  234. },
  235. "smallCard3": {
  236. "icon": "https://dimg04.c-ctrip.com/images/700a0t000000im512AB2C_375_160_345.jpg",
  237. "url": "https://smarket.ctrip.com/webapp/promocode/add?source=5",
  238. "title": "活动"
  239. },
  240. "smallCard4": {
  241. "icon": "https://dimg04.c-ctrip.com/images/700d0s000000htvwo16C4_375_160_345.jpg",
  242. "url": "https://smarket.ctrip.com/webapp/promocode/add?source=5",
  243. "title": "活动"
  244. }
  245. }
  246. }

https://www.devio.org/io/flutter_app/json/home_page.json

jsonToDart工具

https://javiercbk.github.io/json_to_dart/
idea插件 JsonToDart

image.png