Index.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. <?php
  2. /**
  3. * @api {post} index/getIndexInfo 得到首页展示信息
  4. * @apiVersion 1.0.0
  5. * @apiName getIndexInfo
  6. * @apiDescription 得到首页展示信息
  7. * @apiGroup Index
  8. *
  9. * @apiSuccess {String} notice1 banner下左边文字
  10. * @apiSuccess {String} notice2 banner下右边文字
  11. * @apiSuccess {Object[]} buttonBigList 首页大button配置信息
  12. * @apiSuccess {String} buttonBigList.imageUrl button图片
  13. * @apiSuccess {String} buttonBigList.link 点击跳转链接H5,如果为空则原生
  14. * @apiSuccess {String} buttonBigList.text 描述
  15. * @apiSuccess {String} buttonBigList.subText 二级描述
  16. * @apiSuccess {Object[]} bannerList banner
  17. * @apiSuccess {String} bannerList.title banner描述
  18. * @apiSuccess {String} bannerList.thumb 图片链接
  19. * @apiSuccess {String} bannerList.link 点击跳转
  20. * @apiSuccess {Object} subjectHot 热门产品(只一条),包含参数参考得到产品详细
  21. * @apiSuccess {Object[]} subjectRecommendList 推荐茶品(多条),包含参数参考得到产品列表
  22. * @apiSuccess {String} bottomIcon 首页底部图标
  23. * @apiSuccess {Object} stat 累计数据
  24. * @apiSuccess {String} stat.tradeTotal 累计交易额
  25. * @apiSuccess {String} stat.userMakeTotal 为用户赚钱总金额
  26. * @apiSuccess {String} stat.safeDayTotal 安全运营
  27. * @apiSuccess {String} stat.userTotal 累计用户
  28. * @apiSuccessExample {json} 返回json数据(举例):
  29. {
  30. "code": 1,
  31. "msg": "操作成功",
  32. "content": {
  33. "notice1":"12312312312312312321",
  34. "notice2":"12312312312312312321",
  35. "buttonBigList": [
  36. {
  37. "imageUrl": "http://slb.dahengdian.com/jiaqiancaifu/2017/12/25/OOH3JloaaV.png",
  38. "link": "http://www.baidu.com",
  39. "text": "",
  40. "subText": ""
  41. },
  42. {
  43. "imageUrl": "http://slb.dahengdian.com/jiaqiancaifu/2017/12/25/HFrBVdHVN9.png",
  44. "link": "http://www.baidu.com",
  45. "text": "",
  46. "subText": ""
  47. },
  48. {
  49. "imageUrl": "http://slb.dahengdian.com/jiaqiancaifu/2017/12/25/REP5LEB1Np.png",
  50. "link": "http://www.baidu.com",
  51. "text": "",
  52. "subText": ""
  53. }
  54. ],
  55. "bannerList": [
  56. {
  57. "title": "pcpcpcpcppc",
  58. "thumb": "http://slb.dahengdian.com/51zhangxi/2017/12/22/SlJW6XJGKl.jpg",
  59. "link": "asdfasdfadasdfasdf",
  60. "subText": ""
  61. }
  62. ],
  63. "subjectHot": {
  64. "subjectID": 17,
  65. "term": 30,
  66. "title": "多融宝31115期",
  67. "price": "70000.00",
  68. "year": "10.50",
  69. "basePrice": "100.00",
  70. "baseMaxPrice": "70000.00",
  71. "addTime": "2017-12-01 21:14:33",
  72. "status": 3,
  73. "alias": "20171201211433vxPG7p",
  74. "loanID": 0,
  75. "hongbao": 0,
  76. "overTime": "2017-12-31",
  77. "interestBeginTime": "购买日",
  78. "fullTime": 0,
  79. "statusLoan": 1,
  80. "subjectType": {
  81. "subjectTypeID": 1,
  82. "name": "新手理财",
  83. "icon": "http://www.baidu.com/jpg.jpg"
  84. },
  85. "interestType": {
  86. "interestTypeID": 1,
  87. "name": "一次性还本付息"
  88. },
  89. "interestTimeType": {
  90. "interestTimeTypeID": 1,
  91. "name": "满标计息",
  92. "text":"年化利率"
  93. },
  94. "subjectStat": {
  95. "moneyTotalInvest": "0.00",
  96. "timesInvest": 0
  97. },
  98. "statusText": "抢购中",
  99. "investDay": 6.8645833333333,
  100. "repayTime": "2017-12-31",
  101. "reachTime": "2018-01-01",
  102. "unit": "天"
  103. },
  104. "subjectRecommendList": [
  105. {
  106. "subjectID": 20,
  107. "term": 15,
  108. "title": "新手标1212期",
  109. "price": "105000.00",
  110. "year": "18.00",
  111. "basePrice": "100.00",
  112. "baseMaxPrice": "105000.00",
  113. "addTime": "2017-12-03 19:34:07",
  114. "status": 3,
  115. "alias": "20171203193407V5e9Fu",
  116. "loanID": 0,
  117. "hongbao": 0,
  118. "overTime": "2017-12-18",
  119. "fullTime": 0,
  120. "statusLoan": 1,
  121. "subjectType": {
  122. "subjectTypeID": 1,
  123. "name": "新手理财",
  124. "icon": "http://www.baidu.com/jpg.jpg"
  125. },
  126. "interestType": {
  127. "interestTypeID": 1,
  128. "name": "一次性还本付息"
  129. },
  130. "interestTimeType": {
  131. "interestTimeTypeID": 1,
  132. "name": "满标计息",
  133. "text":"年化利率"
  134. },
  135. "subjectStat": {
  136. "moneyTotalInvest": "0.00",
  137. "timesInvest": 0
  138. },
  139. "statusText": "抢购中",
  140. "investDay": -6.1881944444444,
  141. "repayTime": "2017-12-18",
  142. "reachTime": "2017-12-19",
  143. "unit": "天"
  144. },
  145. {
  146. "subjectID": 22,
  147. "term": 1,
  148. "title": "新手理财81899",
  149. "price": "100000.00",
  150. "year": "12.80",
  151. "basePrice": "100.00",
  152. "baseMaxPrice": "100000.00",
  153. "addTime": "2017-12-04 11:12:47",
  154. "status": 3,
  155. "alias": "20171204111247GuSFSa",
  156. "loanID": 0,
  157. "hongbao": 0,
  158. "overTime": "2017-12-05",
  159. "fullTime": 0,
  160. "statusLoan": 1,
  161. "subjectType": {
  162. "subjectTypeID": 1,
  163. "name": "新手理财",
  164. "icon": "http://www.baidu.com/jpg.jpg"
  165. },
  166. "interestType": {
  167. "interestTypeID": 1,
  168. "name": "一次性还本付息"
  169. },
  170. "interestTimeType": {
  171. "interestTimeTypeID": 3,
  172. "name": "T成交日 + 0",
  173. "text":"年化利率"
  174. },
  175. "subjectStat": {
  176. "moneyTotalInvest": "3000.00",
  177. "timesInvest": 3
  178. },
  179. "statusText": "抢购中",
  180. "investDay": -20,
  181. "repayTime": "2017-12-05",
  182. "reachTime": "2017-12-06",
  183. "unit": "天"
  184. },
  185. {
  186. "subjectID": 38,
  187. "term": 15,
  188. "title": "老手标2233",
  189. "price": "1000000.00",
  190. "year": "15.30",
  191. "basePrice": "100.00",
  192. "baseMaxPrice": "1000000.00",
  193. "addTime": "2017-12-21 14:43:21",
  194. "status": 3,
  195. "alias": "20171221144321HtfKhG",
  196. "loanID": 0,
  197. "hongbao": 0,
  198. "overTime": "2018-01-05",
  199. "interestBeginTime": "购买日",
  200. "fullTime": 0,
  201. "statusLoan": 1,
  202. "subjectType": {
  203. "subjectTypeID": 1,
  204. "name": "新手理财",
  205. "icon": "http://www.baidu.com/jpg.jpg"
  206. },
  207. "interestType": {
  208. "interestTypeID": 1,
  209. "name": "一次性还本付息"
  210. },
  211. "interestTimeType": {
  212. "interestTimeTypeID": 3,
  213. "name": "T成交日 + 0",
  214. "text":"年化利率"
  215. },
  216. "subjectStat": {
  217. "moneyTotalInvest": "0.00",
  218. "timesInvest": 0
  219. },
  220. "statusText": "抢购中",
  221. "investDay": 11,
  222. "repayTime": "2018-01-05",
  223. "reachTime": "2018-01-06",
  224. "unit": "天"
  225. }
  226. ],
  227. "bottomIcon":"http://www.baidu.com/sdfsdfsd.jpg",
  228. "stat":{
  229. "tradeTotal":"120000.03",
  230. "userMakeTotal":"12000.00",
  231. "safeDayTotal":"1232",
  232. "userTotal":"12313362"
  233. }
  234. }
  235. }
  236. * @apiUse CreateUserError
  237. */
  238. /**
  239. * @api {post} index/getIndexInfo 得到首页展示信息
  240. * @apiVersion 1.0.1
  241. * @apiName getIndexInfo
  242. * @apiDescription 得到首页展示信息
  243. * @apiGroup Index
  244. *
  245. * @apiSuccess {String} notice1 banner下左边文字,如果notice1和notice2同时为空字符串,则不显示该行(UI注意哦)
  246. * @apiSuccess {String} notice2 banner下右边文字,如果notice1和notice2同时为空字符串,则不显示该行(UI注意哦)
  247. * @apiSuccess {Array} noticeList 滚动信息
  248. * @apiSuccess {Object} noticeListConfig 滚动信息配置
  249. * @apiSuccess {Number} noticeListConfig.cycle 滚动周期,单位毫秒
  250. * @apiSuccess {Object[]} buttonBigList 首页大button配置信息
  251. * @apiSuccess {String} buttonBigList.imageUrl button图片
  252. * @apiSuccess {String} buttonBigList.link 点击跳转链接H5,如果为空则原生
  253. * @apiSuccess {String} buttonBigList.text 描述
  254. * @apiSuccess {String} buttonBigList.subText 二级描述
  255. * @apiSuccess {Object} buttonBigList.share 分享参数,如果没有分享功能,则该参数不返回
  256. * @apiSuccess {String} buttonBigList.share.headImgUrl 分享图标
  257. * @apiSuccess {String} buttonBigList.share.title 分享标题
  258. * @apiSuccess {String} buttonBigList.share.desc 分享描述
  259. * @apiSuccess {String} buttonBigList.share.link 分享链接
  260. * @apiSuccess {Object[]} bannerList banner
  261. * @apiSuccess {String} bannerList.title banner描述
  262. * @apiSuccess {String} bannerList.thumb 图片链接
  263. * @apiSuccess {String} bannerList.link 点击跳转
  264. * @apiSuccess {Object} subjectHot 热门产品(只一条),包含参数参考得到产品详细
  265. * @apiSuccess {Object[]} subjectRecommendList 推荐茶品(多条),包含参数参考得到产品列表
  266. * @apiSuccess {String} bottomIcon 首页底部图标
  267. * @apiSuccess {Object} stat 累计数据
  268. * @apiSuccess {String} stat.tradeTotal 累计交易额
  269. * @apiSuccess {String} stat.userMakeTotal 为用户赚钱总金额
  270. * @apiSuccess {String} stat.safeDayTotal 安全运营
  271. * @apiSuccess {String} stat.userTotal 累计用户
  272. * @apiSuccessExample {json} 返回json数据(举例):
  273. {
  274. "code": 1,
  275. "msg": "操作成功",
  276. "content": {
  277. "notice1":"12312312312312312321",
  278. "notice2":"12312312312312312321",
  279. "noticeList":{
  280. "config":{
  281. "cycle":1000
  282. },
  283. "list": ["1312****728投资了新手标1月25期 10000.00元","1317****708投资了新手标1月26期 1000.00元","1373****762 刚刚开通新账号","1598****479完成了一笔1888.00元的充值","1732****500投资了新手标1月26期 10000.00元","1306****169 刚刚开通新账号","1368****197投资了新手标1月25期 1000.00元","1860****571 刚刚开通新账号","1523****137投资了享车贷1月第30期 100.00元","1306****169完成了一笔1000.00元的充值","1731****863完成了一笔1000.00元的充值","1306****169投资了新手标3月第25期 100.00元","1598****479完成了一笔2000.00元的充值","1554****067投资了新手标1月27期 5000.00元","1833****165投资了新手标1月28期 10000.00元","1598****479完成了一笔2000.00元的充值","1598****479完成了一笔1500.00元的充值","1313****523 刚刚开通新账号","1598****479完成了一笔1000.00元的充值","1598****479投资了新手标1月第29期 2000.00元","1306****169完成了一笔100.00元的充值","1804****776投资了新手标1月25期 15000.00元","1598****479 刚刚开通新账号","1393****736投资了新手标1月25期 5000.00元","1598****479完成了一笔1000.00元的充值","1731****863投资了享车贷3月第13期 1000.00元","1598****479完成了一笔100.00元的充值","1598****479完成了一笔999999.00元的充值","1523****137完成了一笔100000.00元的充值","1304****676投资了新手标1月25期 10000.00元","1306****169完成了一笔100.00元的充值","1596****705 刚刚开通新账号","1598****479完成了一笔3000.00元的充值","1863****972投资了新手标1月27期 4000.00元","1523****137完成了一笔1.00元的充值","1837****677投资了新手标1月25期 5000.00元","1810****660投资了新手标1月26期 10000.00元","1595****435投资了新手标1月25期 10000.00元","1731****863 刚刚开通新账号","1348****417投资了新手标1月26期 100.00元","1598****479完成了一笔100.00元的充值","1598****479完成了一笔100000.00元的充值","1802****297投资了新手标1月28期 8500.00元","1351****371 刚刚开通新账号","1805****155 刚刚开通新账号","1598****479完成了一笔100.00元的充值","1731****863完成了一笔100000.00元的充值","1351****371投资了新手标1月第29期 2600.00元","1598****479完成了一笔500.00元的充值","1733****529 刚刚开通新账号"]
  284. },
  285. "buttonBigList": [
  286. {
  287. "imageUrl": "http://slb.dahengdian.com/jiaqiancaifu/2017/12/25/OOH3JloaaV.png",
  288. "link": "http://www.baidu.com",
  289. "text": "",
  290. "subText": "",
  291. "share": {
  292. "headImgUrl":"https://static.qimai.cn/static/img/newaso100@2x.png",
  293. "title":"11334466778899",
  294. "desc":"11334466778899",
  295. "link":"http://www.qq.com"
  296. }
  297. },
  298. {
  299. "imageUrl": "http://slb.dahengdian.com/jiaqiancaifu/2017/12/25/HFrBVdHVN9.png",
  300. "link": "http://www.baidu.com",
  301. "text": "",
  302. "subText": ""
  303. },
  304. {
  305. "imageUrl": "http://slb.dahengdian.com/jiaqiancaifu/2017/12/25/REP5LEB1Np.png",
  306. "link": "http://www.baidu.com",
  307. "text": "",
  308. "subText": ""
  309. }
  310. ],
  311. "bannerList": [
  312. {
  313. "title": "pcpcpcpcppc",
  314. "thumb": "http://slb.dahengdian.com/51zhangxi/2017/12/22/SlJW6XJGKl.jpg",
  315. "link": "asdfasdfadasdfasdf",
  316. "subText": ""
  317. }
  318. ],
  319. "subjectHot": {
  320. "subjectID": 17,
  321. "term": 30,
  322. "title": "多融宝31115期",
  323. "price": "70000.00",
  324. "year": "10.50",
  325. "basePrice": "100.00",
  326. "baseMaxPrice": "70000.00",
  327. "addTime": "2017-12-01 21:14:33",
  328. "status": 3,
  329. "alias": "20171201211433vxPG7p",
  330. "loanID": 0,
  331. "hongbao": 0,
  332. "overTime": "2017-12-31",
  333. "interestBeginTime": "购买日",
  334. "fullTime": 0,
  335. "statusLoan": 1,
  336. "subjectType": {
  337. "subjectTypeID": 1,
  338. "name": "新手理财",
  339. "icon": "http://www.baidu.com/jpg.jpg"
  340. },
  341. "interestType": {
  342. "interestTypeID": 1,
  343. "name": "一次性还本付息"
  344. },
  345. "interestTimeType": {
  346. "interestTimeTypeID": 1,
  347. "name": "满标计息",
  348. "text":"年化利率"
  349. },
  350. "subjectStat": {
  351. "moneyTotalInvest": "0.00",
  352. "timesInvest": 0
  353. },
  354. "statusText": "抢购中",
  355. "investDay": 6.8645833333333,
  356. "repayTime": "2017-12-31",
  357. "reachTime": "2018-01-01",
  358. "unit": "天"
  359. },
  360. "subjectRecommendList": [
  361. {
  362. "subjectID": 20,
  363. "term": 15,
  364. "title": "新手标1212期",
  365. "price": "105000.00",
  366. "year": "18.00",
  367. "basePrice": "100.00",
  368. "baseMaxPrice": "105000.00",
  369. "addTime": "2017-12-03 19:34:07",
  370. "status": 3,
  371. "alias": "20171203193407V5e9Fu",
  372. "loanID": 0,
  373. "hongbao": 0,
  374. "overTime": "2017-12-18",
  375. "fullTime": 0,
  376. "statusLoan": 1,
  377. "subjectType": {
  378. "subjectTypeID": 1,
  379. "name": "新手理财",
  380. "icon": "http://www.baidu.com/jpg.jpg"
  381. },
  382. "interestType": {
  383. "interestTypeID": 1,
  384. "name": "一次性还本付息"
  385. },
  386. "interestTimeType": {
  387. "interestTimeTypeID": 1,
  388. "name": "满标计息",
  389. "text":"年化利率"
  390. },
  391. "subjectStat": {
  392. "moneyTotalInvest": "0.00",
  393. "timesInvest": 0
  394. },
  395. "statusText": "抢购中",
  396. "investDay": -6.1881944444444,
  397. "repayTime": "2017-12-18",
  398. "reachTime": "2017-12-19",
  399. "unit": "天"
  400. },
  401. {
  402. "subjectID": 22,
  403. "term": 1,
  404. "title": "新手理财81899",
  405. "price": "100000.00",
  406. "year": "12.80",
  407. "basePrice": "100.00",
  408. "baseMaxPrice": "100000.00",
  409. "addTime": "2017-12-04 11:12:47",
  410. "status": 3,
  411. "alias": "20171204111247GuSFSa",
  412. "loanID": 0,
  413. "hongbao": 0,
  414. "overTime": "2017-12-05",
  415. "fullTime": 0,
  416. "statusLoan": 1,
  417. "subjectType": {
  418. "subjectTypeID": 1,
  419. "name": "新手理财",
  420. "icon": "http://www.baidu.com/jpg.jpg"
  421. },
  422. "interestType": {
  423. "interestTypeID": 1,
  424. "name": "一次性还本付息"
  425. },
  426. "interestTimeType": {
  427. "interestTimeTypeID": 3,
  428. "name": "T成交日 + 0",
  429. "text":"年化利率"
  430. },
  431. "subjectStat": {
  432. "moneyTotalInvest": "3000.00",
  433. "timesInvest": 3
  434. },
  435. "statusText": "抢购中",
  436. "investDay": -20,
  437. "repayTime": "2017-12-05",
  438. "reachTime": "2017-12-06",
  439. "unit": "天"
  440. },
  441. {
  442. "subjectID": 38,
  443. "term": 15,
  444. "title": "老手标2233",
  445. "price": "1000000.00",
  446. "year": "15.30",
  447. "basePrice": "100.00",
  448. "baseMaxPrice": "1000000.00",
  449. "addTime": "2017-12-21 14:43:21",
  450. "status": 3,
  451. "alias": "20171221144321HtfKhG",
  452. "loanID": 0,
  453. "hongbao": 0,
  454. "overTime": "2018-01-05",
  455. "interestBeginTime": "购买日",
  456. "fullTime": 0,
  457. "statusLoan": 1,
  458. "subjectType": {
  459. "subjectTypeID": 1,
  460. "name": "新手理财",
  461. "icon": "http://www.baidu.com/jpg.jpg"
  462. },
  463. "interestType": {
  464. "interestTypeID": 1,
  465. "name": "一次性还本付息"
  466. },
  467. "interestTimeType": {
  468. "interestTimeTypeID": 3,
  469. "name": "T成交日 + 0",
  470. "text":"年化利率"
  471. },
  472. "subjectStat": {
  473. "moneyTotalInvest": "0.00",
  474. "timesInvest": 0
  475. },
  476. "statusText": "抢购中",
  477. "investDay": 11,
  478. "repayTime": "2018-01-05",
  479. "reachTime": "2018-01-06",
  480. "unit": "天"
  481. }
  482. ],
  483. "bottomIcon":"http://www.baidu.com/sdfsdfsd.jpg",
  484. "stat":{
  485. "tradeTotal":"120000.03",
  486. "userMakeTotal":"12000.00",
  487. "safeDayTotal":"1232",
  488. "userTotal":"12313362"
  489. }
  490. }
  491. }
  492. * @apiUse CreateUserError
  493. */