mock.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. const bannerApi = {
  2. "errno": 0,
  3. "data": {
  4. "banner": [
  5. {
  6. "id": 3,
  7. "ad_position_id": 1,
  8. "media_type": 1,
  9. "name": "新用户注册",
  10. "link": "/pages/auth/newuser/newuser",
  11. "image_url": "https://img95.699pic.com/photo/40174/2226.jpg_wh300.jpg!/fh/300/quality/90",
  12. "content": "新用户注册",
  13. "end_time": 1504792114000,
  14. "enabled": 1
  15. },
  16. {
  17. "id": 1,
  18. "ad_position_id": 1,
  19. "media_type": 1,
  20. "name": "合作 谁是你的菜",
  21. "link": "",
  22. "image_url": "https://bpic.588ku.com/back_list_pic/21/07/09/c6ce02b46a2a479d0f2f3207cef85902.jpg!/fw/480/quality/90/unsharp/true/compress/true",
  23. "content": "合作 谁是你的菜",
  24. "end_time": 1504792114000,
  25. "enabled": 1
  26. }
  27. ]
  28. },
  29. "errmsg": "执行成功"
  30. }
  31. const newGoodsApi= {
  32. "errno": 0,
  33. "data": {
  34. "newGoodsList": [
  35. {
  36. "id": 'a4c1283f79fddcc93c3cb00a09df7170',
  37. "category_id": null,
  38. "goods_sn": null,
  39. "name": "MUJIET浴室置物架",
  40. "brand_id": null,
  41. "goods_number": null,
  42. "keywords": null,
  43. "goods_brief": null,
  44. "goods_desc": null,
  45. "is_on_sale": null,
  46. "add_time": null,
  47. "sort_order": null,
  48. "is_delete": null,
  49. "attribute_category": null,
  50. "counter_price": null,
  51. "extra_price": null,
  52. "is_new": null,
  53. "goods_unit": null,
  54. "primary_pic_url": null,
  55. "list_pic_url": "http://yanxuan.nosdn.127.net/1f67b1970ee20fd572b7202da0ff705d.png",
  56. "market_price": null,
  57. "retail_price": 2598.00,
  58. "sell_volume": null,
  59. "primary_product_id": null,
  60. "unit_price": null,
  61. "promotion_desc": null,
  62. "promotion_tag": null,
  63. "app_exclusive_price": null,
  64. "is_app_exclusive": null,
  65. "is_limited": null,
  66. "is_hot": null,
  67. "cart_num": 0,
  68. "product_id": null
  69. },
  70. {
  71. "id": 1166008,
  72. "category_id": null,
  73. "goods_sn": null,
  74. "name": "Carat钻石 不粘厨具组合",
  75. "brand_id": null,
  76. "goods_number": null,
  77. "keywords": null,
  78. "goods_brief": null,
  79. "goods_desc": null,
  80. "is_on_sale": null,
  81. "add_time": null,
  82. "sort_order": null,
  83. "is_delete": null,
  84. "attribute_category": null,
  85. "counter_price": null,
  86. "extra_price": null,
  87. "is_new": null,
  88. "goods_unit": null,
  89. "primary_pic_url": null,
  90. "list_pic_url": "http://yanxuan.nosdn.127.net/615a16e899e01efb780c488df4233f48.png",
  91. "market_price": null,
  92. "retail_price": 459.00,
  93. "sell_volume": null,
  94. "primary_product_id": null,
  95. "unit_price": null,
  96. "promotion_desc": null,
  97. "promotion_tag": null,
  98. "app_exclusive_price": null,
  99. "is_app_exclusive": null,
  100. "is_limited": null,
  101. "is_hot": null,
  102. "cart_num": 0,
  103. "product_id": null
  104. },
  105. {
  106. "id": 1155015,
  107. "category_id": null,
  108. "goods_sn": null,
  109. "name": "绿豆糕 80克(4枚入)",
  110. "brand_id": null,
  111. "goods_number": null,
  112. "keywords": null,
  113. "goods_brief": null,
  114. "goods_desc": null,
  115. "is_on_sale": null,
  116. "add_time": null,
  117. "sort_order": null,
  118. "is_delete": null,
  119. "attribute_category": null,
  120. "counter_price": null,
  121. "extra_price": null,
  122. "is_new": null,
  123. "goods_unit": null,
  124. "primary_pic_url": null,
  125. "list_pic_url": "http://yanxuan.nosdn.127.net/66b9f1638c0517d179262f14ed1345f9.png",
  126. "market_price": null,
  127. "retail_price": 12.90,
  128. "sell_volume": null,
  129. "primary_product_id": null,
  130. "unit_price": null,
  131. "promotion_desc": null,
  132. "promotion_tag": null,
  133. "app_exclusive_price": null,
  134. "is_app_exclusive": null,
  135. "is_limited": null,
  136. "is_hot": null,
  137. "cart_num": 0,
  138. "product_id": null
  139. },
  140. {
  141. "id": 1152161,
  142. "category_id": null,
  143. "goods_sn": null,
  144. "name": "竹语丝麻印花四件套",
  145. "brand_id": null,
  146. "goods_number": null,
  147. "keywords": null,
  148. "goods_brief": null,
  149. "goods_desc": null,
  150. "is_on_sale": null,
  151. "add_time": null,
  152. "sort_order": null,
  153. "is_delete": null,
  154. "attribute_category": null,
  155. "counter_price": null,
  156. "extra_price": null,
  157. "is_new": null,
  158. "goods_unit": null,
  159. "primary_pic_url": null,
  160. "list_pic_url": "http://yanxuan.nosdn.127.net/977401e75113f7c8334c4fb5b4bf6215.png",
  161. "market_price": null,
  162. "retail_price": 459.00,
  163. "sell_volume": null,
  164. "primary_product_id": null,
  165. "unit_price": null,
  166. "promotion_desc": null,
  167. "promotion_tag": null,
  168. "app_exclusive_price": null,
  169. "is_app_exclusive": null,
  170. "is_limited": null,
  171. "is_hot": null,
  172. "cart_num": 0,
  173. "product_id": null
  174. },
  175. {
  176. "id": 1135073,
  177. "category_id": null,
  178. "goods_sn": null,
  179. "name": "海魂纹哈衣水手服(婴童)",
  180. "brand_id": null,
  181. "goods_number": null,
  182. "keywords": null,
  183. "goods_brief": null,
  184. "goods_desc": null,
  185. "is_on_sale": null,
  186. "add_time": null,
  187. "sort_order": null,
  188. "is_delete": null,
  189. "attribute_category": null,
  190. "counter_price": null,
  191. "extra_price": null,
  192. "is_new": null,
  193. "goods_unit": null,
  194. "primary_pic_url": null,
  195. "list_pic_url": "http://yanxuan.nosdn.127.net/53052b04ae001d289c040e09ea92231c.png",
  196. "market_price": null,
  197. "retail_price": 69.00,
  198. "sell_volume": null,
  199. "primary_product_id": null,
  200. "unit_price": null,
  201. "promotion_desc": null,
  202. "promotion_tag": null,
  203. "app_exclusive_price": null,
  204. "is_app_exclusive": null,
  205. "is_limited": null,
  206. "is_hot": null,
  207. "cart_num": 0,
  208. "product_id": null
  209. },
  210. {
  211. "id": 1135072,
  212. "category_id": null,
  213. "goods_sn": null,
  214. "name": "经典海魂纹水手裙(婴童)",
  215. "brand_id": null,
  216. "goods_number": null,
  217. "keywords": null,
  218. "goods_brief": null,
  219. "goods_desc": null,
  220. "is_on_sale": null,
  221. "add_time": null,
  222. "sort_order": null,
  223. "is_delete": null,
  224. "attribute_category": null,
  225. "counter_price": null,
  226. "extra_price": null,
  227. "is_new": null,
  228. "goods_unit": null,
  229. "primary_pic_url": null,
  230. "list_pic_url": "http://yanxuan.nosdn.127.net/43e57d4208cdc78ac9c088f9b3e798f5.png",
  231. "market_price": null,
  232. "retail_price": 69.00,
  233. "sell_volume": null,
  234. "primary_product_id": null,
  235. "unit_price": null,
  236. "promotion_desc": null,
  237. "promotion_tag": null,
  238. "app_exclusive_price": null,
  239. "is_app_exclusive": null,
  240. "is_limited": null,
  241. "is_hot": null,
  242. "cart_num": 0,
  243. "product_id": null
  244. },
  245. {
  246. "id": 1135002,
  247. "category_id": null,
  248. "goods_sn": null,
  249. "name": "宫廷奢华真丝四件套",
  250. "brand_id": null,
  251. "goods_number": null,
  252. "keywords": null,
  253. "goods_brief": null,
  254. "goods_desc": null,
  255. "is_on_sale": null,
  256. "add_time": null,
  257. "sort_order": null,
  258. "is_delete": null,
  259. "attribute_category": null,
  260. "counter_price": null,
  261. "extra_price": null,
  262. "is_new": null,
  263. "goods_unit": null,
  264. "primary_pic_url": null,
  265. "list_pic_url": "http://yanxuan.nosdn.127.net/45548f26cfd0c7c41e0afc3709d48286.png",
  266. "market_price": null,
  267. "retail_price": 2599.00,
  268. "sell_volume": null,
  269. "primary_product_id": null,
  270. "unit_price": null,
  271. "promotion_desc": null,
  272. "promotion_tag": null,
  273. "app_exclusive_price": null,
  274. "is_app_exclusive": null,
  275. "is_limited": null,
  276. "is_hot": null,
  277. "cart_num": 0,
  278. "product_id": null
  279. },
  280. {
  281. "id": 1134032,
  282. "category_id": null,
  283. "goods_sn": null,
  284. "name": "趣味粉彩系列记忆棉坐垫",
  285. "brand_id": null,
  286. "goods_number": null,
  287. "keywords": null,
  288. "goods_brief": null,
  289. "goods_desc": null,
  290. "is_on_sale": null,
  291. "add_time": null,
  292. "sort_order": null,
  293. "is_delete": null,
  294. "attribute_category": null,
  295. "counter_price": null,
  296. "extra_price": null,
  297. "is_new": null,
  298. "goods_unit": null,
  299. "primary_pic_url": null,
  300. "list_pic_url": "http://yanxuan.nosdn.127.net/8b30eeb17c831eba08b97bdcb4c46a8e.png",
  301. "market_price": null,
  302. "retail_price": 49.00,
  303. "sell_volume": null,
  304. "primary_product_id": null,
  305. "unit_price": null,
  306. "promotion_desc": null,
  307. "promotion_tag": null,
  308. "app_exclusive_price": null,
  309. "is_app_exclusive": null,
  310. "is_limited": null,
  311. "is_hot": null,
  312. "cart_num": 0,
  313. "product_id": null
  314. },
  315. {
  316. "id": 1134030,
  317. "category_id": null,
  318. "goods_sn": null,
  319. "name": "简约知性记忆棉坐垫",
  320. "brand_id": null,
  321. "goods_number": null,
  322. "keywords": null,
  323. "goods_brief": null,
  324. "goods_desc": null,
  325. "is_on_sale": null,
  326. "add_time": null,
  327. "sort_order": null,
  328. "is_delete": null,
  329. "attribute_category": null,
  330. "counter_price": null,
  331. "extra_price": null,
  332. "is_new": null,
  333. "goods_unit": null,
  334. "primary_pic_url": null,
  335. "list_pic_url": "http://yanxuan.nosdn.127.net/aa49dfe878becf768eddc4c1636643a6.png",
  336. "market_price": null,
  337. "retail_price": 46.00,
  338. "sell_volume": null,
  339. "primary_product_id": null,
  340. "unit_price": null,
  341. "promotion_desc": null,
  342. "promotion_tag": null,
  343. "app_exclusive_price": null,
  344. "is_app_exclusive": null,
  345. "is_limited": null,
  346. "is_hot": null,
  347. "cart_num": 0,
  348. "product_id": null
  349. },
  350. {
  351. "id": 1127047,
  352. "category_id": null,
  353. "goods_sn": null,
  354. "name": "趣味粉彩系列笔记本",
  355. "brand_id": null,
  356. "goods_number": null,
  357. "keywords": null,
  358. "goods_brief": null,
  359. "goods_desc": null,
  360. "is_on_sale": null,
  361. "add_time": null,
  362. "sort_order": null,
  363. "is_delete": null,
  364. "attribute_category": null,
  365. "counter_price": null,
  366. "extra_price": null,
  367. "is_new": null,
  368. "goods_unit": null,
  369. "primary_pic_url": null,
  370. "list_pic_url": "http://yanxuan.nosdn.127.net/6c03ca93d8fe404faa266ea86f3f1e43.png",
  371. "market_price": null,
  372. "retail_price": 29.00,
  373. "sell_volume": null,
  374. "primary_product_id": null,
  375. "unit_price": null,
  376. "promotion_desc": null,
  377. "promotion_tag": null,
  378. "app_exclusive_price": null,
  379. "is_app_exclusive": null,
  380. "is_limited": null,
  381. "is_hot": null,
  382. "cart_num": 0,
  383. "product_id": null
  384. },
  385. {
  386. "id": 1116011,
  387. "category_id": null,
  388. "goods_sn": null,
  389. "name": "蔓越莓曲奇 200克",
  390. "brand_id": null,
  391. "goods_number": null,
  392. "keywords": null,
  393. "goods_brief": null,
  394. "goods_desc": null,
  395. "is_on_sale": null,
  396. "add_time": null,
  397. "sort_order": null,
  398. "is_delete": null,
  399. "attribute_category": null,
  400. "counter_price": null,
  401. "extra_price": null,
  402. "is_new": null,
  403. "goods_unit": null,
  404. "primary_pic_url": null,
  405. "list_pic_url": "http://yanxuan.nosdn.127.net/767b370d07f3973500db54900bcbd2a7.png",
  406. "market_price": null,
  407. "retail_price": 36.00,
  408. "sell_volume": null,
  409. "primary_product_id": null,
  410. "unit_price": null,
  411. "promotion_desc": null,
  412. "promotion_tag": null,
  413. "app_exclusive_price": null,
  414. "is_app_exclusive": null,
  415. "is_limited": null,
  416. "is_hot": null,
  417. "cart_num": 0,
  418. "product_id": null
  419. }
  420. ]
  421. },
  422. "errmsg": "执行成功"
  423. }
  424. export {
  425. bannerApi,
  426. newGoodsApi,
  427. }