MainPage.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. * @flow
  7. */
  8. import React, { Component } from "react";
  9. import {
  10. Platform,
  11. StyleSheet,
  12. Text,
  13. View,
  14. Image,
  15. FlatList,
  16. TouchableOpacity,
  17. ImageBackground,
  18. TextInput,
  19. Button,
  20. ViewPagerAndroid,
  21. DeviceEventEmitter,
  22. SectionList,
  23. Animated,
  24. TouchableHighlight
  25. } from "react-native";
  26. import Swiper from "react-native-swiper";
  27. import AndroidUtil from "../../util/AndroidUtil";
  28. import BasePage from "../BasePage";
  29. import Header from "./Header";
  30. import MySwiper from "./Swiper";
  31. import Dimensions from '../utils/dimensions';
  32. import TopicTitle from './TopicTitle';
  33. import ScrollRow from "./ScrollRow";
  34. import LibraryUrl from '../services/library'
  35. import { ScrollView } from "react-native-gesture-handler";
  36. export default class MainPage extends BasePage {
  37. constructor(props) {
  38. super(props);
  39. }
  40. componentDidMount() {
  41. LibraryUrl.getIndex('PRESCHOOL').success(res => {
  42. console.log(res)
  43. const monthTopicTitle = res.data.monthTopic.zone.title;
  44. const monthTopicScroll = res.data.monthTopic.zoneCourseVOList;
  45. const schedule = res.data.schedule;
  46. const hotCourse = res.data.hotCourse;
  47. const recommend = res.data.recommend; //全部课程
  48. const banner = res.data.banner; //轮播图
  49. // const listData = [];
  50. // for(let item in res.data){
  51. // console.log(item)
  52. // listData.push(1)
  53. // }
  54. // console.log(typeof listData)
  55. // console.log(listData)
  56. // console.log(listData.length)
  57. this.setState({
  58. // listData: listData.length? listData : [],
  59. hotCourse,
  60. monthTopicTitle,
  61. monthTopicScroll,
  62. schedule,
  63. recommend,
  64. banner
  65. })
  66. console.log(this.state.banner)
  67. })
  68. }
  69. state = {
  70. grade: '大学',
  71. text: '小伙子',
  72. ifGradeMenuShow: false,
  73. fadeAnim: new Animated.Value(0),
  74. schedule: [],
  75. recommend: [],
  76. listData: [],
  77. banner:[]
  78. }
  79. render() {
  80. // const abc =Object.keys(this.state.data).map((k)=>this.state.data[k])
  81. return (
  82. <View style={{ flex: 1 }} onPress={this.hideGradeMenu}>
  83. {/* <SectionList sectionList组件 性能好 但是针对当前布局是否有要用的必要,以后可能迭代
  84. sections={this.state.listData}
  85. renderItem={({ item }) => {
  86. return this.loadFlatItem(item);
  87. }}
  88. keyExtractor={(item, index) => item.key.toString()}
  89. ListHeaderComponent={() => this.headerorfooterComponent()}
  90. renderSectionHeader={this.sectionTitle}
  91. onScroll={this.hideGradeMenu}
  92. /> */}
  93. <ScrollView style={{ height: Dimensions.height }} >
  94. {this.headerorfooterComponent()}
  95. {this.getSwiperElement()}
  96. {this.getScheduleElement()}
  97. {this.getMonthTopic()}
  98. {this.getHotCourse()}
  99. {this.getAllCourses()}
  100. </ScrollView>
  101. {
  102. this.state.ifGradeMenuShow ? (
  103. <Animated.View
  104. style={{
  105. ...styles.callUpGrade,
  106. opacity: this.state.fadeAnim
  107. }}>
  108. <View style={styles.gradeItem}>
  109. <Text style={styles.gradeText}>小学</Text>
  110. </View>
  111. <View style={styles.gradeItemMid}>
  112. <Text style={styles.gradeText}>学前</Text>
  113. </View>
  114. <View style={styles.gradeItem}>
  115. <Text style={styles.gradeText}>中学</Text>
  116. </View>
  117. </Animated.View>
  118. ) : (
  119. null
  120. )
  121. }
  122. </View>
  123. );
  124. }
  125. // 头部组件
  126. headerorfooterComponent() {
  127. return (
  128. <View>
  129. <Header
  130. uri="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1295208965,3056573814&amp;fm=26&amp;gp=0.jpg"
  131. width={400}
  132. height={150}
  133. username="卡通笨笨熊"
  134. flowerNumber="123234"
  135. onPress={() => this.toNextPage("userCenter")}
  136. />
  137. {/* 搜索区域 */}
  138. <View style={styles.searchSection}>
  139. <TextInput
  140. style={styles.searchBox}
  141. onChangeText={(text) => this.setState({ text })}
  142. value={this.state.text}
  143. />
  144. <TouchableOpacity onPress={this.tabCallOutHandler}>
  145. <View
  146. style={styles.rightBtn}
  147. >
  148. <Image
  149. source={{ uri: 'https://facebook.github.io/react-native/docs/assets/favicon.png' }}
  150. style={styles.rightBtnIcon}
  151. />
  152. <Text
  153. style={styles.rightBtnText}
  154. >
  155. {this.state.grade}
  156. </Text>
  157. </View>
  158. </TouchableOpacity>
  159. </View>
  160. </View>
  161. );
  162. }
  163. // 渲染轮播图
  164. getSwiperElement() {
  165. return (
  166. <View
  167. style={{
  168. height: Dimensions.getDp(163),
  169. flex: 1,
  170. justifyContent: "center",
  171. alignItems: "center",
  172. flexDirection: "row",
  173. }}
  174. >
  175. <View
  176. style={{
  177. width: Dimensions.getWidth(358),
  178. height: Dimensions.getDp(153),
  179. justifyContent: "center",
  180. overflow: 'hidden'
  181. }}
  182. >
  183. <MySwiper
  184. autoplay={true}
  185. loop={true}
  186. ifShowMiddle={true}
  187. data={this.state.banner}
  188. />
  189. </View>
  190. </View>
  191. );
  192. }
  193. // 渲染课程表
  194. getScheduleElement() {
  195. let renderScheduleItem = (item, index) => {
  196. return (
  197. <TouchableOpacity
  198. style={{ width: 172, height: 86, marginRight: 12 }}
  199. onPress={() => {
  200. alert(Dimensions.width.toString());
  201. }}
  202. key={index}
  203. activeOpacity={1}
  204. >
  205. <Image
  206. source={{
  207. uri: item.boothContent
  208. }}
  209. key={index}
  210. style={{
  211. flex: 1,
  212. justifyContent: "center",
  213. alignItems: "center",
  214. borderRadius: 10
  215. }}
  216. />
  217. </TouchableOpacity>
  218. )
  219. }
  220. return (
  221. <View
  222. style={{
  223. flex: 1,
  224. flexDirection: "column",
  225. height: 160,
  226. }}
  227. >
  228. <TopicTitle title={'课程表:第一周'} ifTubeShow={true} />
  229. <View
  230. style={{
  231. flex: 2,
  232. flexDirection: "row",
  233. alignItems: 'center',
  234. paddingLeft: 10
  235. }}
  236. >
  237. {this.state.schedule.map((item, index) => renderScheduleItem(item, index))}
  238. </View>
  239. </View>
  240. );
  241. }
  242. // 渲染月主题
  243. getMonthTopic() {
  244. return (
  245. <View style={{
  246. flex: 1,
  247. height: 225,
  248. }}>
  249. <TopicTitle title={this.state.monthTopicTitle} summary={'每天30分钟'} ifTubeShow={true} />
  250. <ScrollRow itemWidth={352} itemHeight={153} data={this.state.monthTopicScroll} />
  251. </View>
  252. );
  253. }
  254. // 渲染热门课程
  255. getHotCourse() {
  256. return (
  257. <View style={{
  258. flex: 1,
  259. height: 220,
  260. }}>
  261. <TopicTitle title={'热门课程'} ifTubeShow={true} />
  262. <ScrollRow itemWidth={106} itemHeight={150} data={this.state.hotCourse} />
  263. </View>
  264. )
  265. }
  266. // 渲染全部课程
  267. getAllCourses() {
  268. return (
  269. <View>
  270. {this.state.recommend.map((item, index) => {
  271. return (
  272. <View
  273. style={{
  274. flex: 1,
  275. height: 240,
  276. }}
  277. key={index}
  278. >
  279. {index === 0
  280. ?
  281. null
  282. :
  283. <View style={{ width: Dimensions.width, height: 4, backgroundColor: '#f0f1f5' }}></View>
  284. }
  285. <TopicTitle title={item.zone.title} />
  286. <ScrollRow itemWidth={106} itemHeight={150} data={item.zoneCourseVOList} />
  287. </View>
  288. )
  289. })}
  290. </View>
  291. )
  292. }
  293. // 渲染每一个块儿 sectionList组件的data,没有用到,以后可能会用
  294. loadFlatItem(data) {
  295. switch (data.title) {
  296. // 轮播图
  297. case 'banner':
  298. return this.getSwiperElement();
  299. break;
  300. // 课程表
  301. case 'schedule':
  302. return this.getScheduleElement();
  303. break;
  304. // 大图主题
  305. case 'monthTopic':
  306. return this.getMonthTopic();
  307. break;
  308. // 热门课程
  309. case 'hotCourse':
  310. return this.getHotCourse();
  311. break;
  312. case 'recommend':
  313. return this.getAllCourses();
  314. break;
  315. default:
  316. break;
  317. }
  318. }
  319. // 渲染每一个section的title sectionList组件的data,没有用到,以后可能会用
  320. sectionTitle = (info) => {
  321. switch (info.section.title) {
  322. case 'operation':
  323. return (
  324. <View
  325. style={{
  326. width: Dimensions.width,
  327. height: 10,
  328. backgroundColor: '#f0f1f5'
  329. }}
  330. />
  331. );
  332. break;
  333. case 'courses':
  334. return <TopicTitle title={'全部课程'} tubeColor={'#7d9fff'} background={'#f0f1f5'} ifTubeShow={true} />
  335. break;
  336. default:
  337. break;
  338. }
  339. }
  340. // 点击呼出学龄菜单
  341. tabCallOutHandler = () => {
  342. this.setState({
  343. ifGradeMenuShow: !this.state.ifGradeMenuShow
  344. }, () => {
  345. Animated.timing(
  346. this.state.fadeAnim,
  347. {
  348. toValue: this.state.ifGradeMenuShow ? 1 : 0,
  349. duration: 300,
  350. }
  351. ).start();
  352. })
  353. }
  354. // 如果切换学龄在显示状态,那么在它失去焦点时将它隐藏
  355. hideGradeMenu = () => {
  356. if (this.state.ifGradeMenuShow) {
  357. this.setState({
  358. ifGradeMenuShow: false
  359. })
  360. }
  361. }
  362. }
  363. const styles = StyleSheet.create({
  364. title_text: {
  365. justifyContent: "center",
  366. alignItems: "center",
  367. color: "red",
  368. fontSize: 30,
  369. textAlign: "center",
  370. marginTop: 30,
  371. marginBottom: 50
  372. },
  373. /* 搜索区域 */
  374. searchSection: {
  375. flex: 1,
  376. width: Dimensions.width,
  377. height: 60,
  378. flexDirection: 'row',
  379. alignItems: 'center',
  380. backgroundColor: '#f0f1f5',
  381. justifyContent: 'space-around',
  382. position: 'relative',
  383. },
  384. searchBox: {
  385. width: 232,
  386. height: 40,
  387. backgroundColor: '#fff',
  388. borderRadius: 20
  389. },
  390. rightBtn: {
  391. width: 113,
  392. height: 40,
  393. backgroundColor: '#fff',
  394. borderRadius: 20,
  395. alignItems: 'center',
  396. justifyContent: 'center',
  397. justifyContent: 'space-around',
  398. flexDirection: 'row',
  399. paddingLeft: 20,
  400. paddingRight: 10,
  401. },
  402. rightBtnIcon: {
  403. width: 14,
  404. height: 14
  405. },
  406. rightBtnText: {
  407. color: '#151515',
  408. fontSize: 18,
  409. },
  410. callUpGrade: {
  411. width: 113,
  412. height: 120,
  413. borderRadius: 20,
  414. position: 'absolute',
  415. right: 9,
  416. top: 125,
  417. zIndex: 999,
  418. elevation: 999,
  419. backgroundColor: '#fff',
  420. flexDirection: 'column'
  421. },
  422. gradeItem: {
  423. zIndex: 999,
  424. flex: 1,
  425. alignItems: 'center',
  426. justifyContent: 'center',
  427. },
  428. gradeItemMid: {
  429. zIndex: 999,
  430. flex: 1,
  431. alignItems: 'center',
  432. justifyContent: 'center',
  433. borderTopWidth: 1,
  434. borderBottomWidth: 1,
  435. borderColor: '#f0f1f5'
  436. },
  437. gradeText: {
  438. color: '#151515',
  439. fontSize: 18,
  440. }
  441. });
  442. const sectionData = [
  443. {
  444. title: 'swiper',
  445. data: [{
  446. //轮播
  447. key: 111,
  448. typea: 1,
  449. text: "第一种类型"
  450. },
  451. {
  452. //只有一个标题下面两个图片
  453. key: 222,
  454. typea: 2,
  455. item: {
  456. item_type: 1,
  457. title: "课程表:第一周",
  458. icon_item: [
  459. {
  460. icon:
  461. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  462. name: "第一张图片文字"
  463. },
  464. {
  465. icon:
  466. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  467. name: "第二张图片文字"
  468. }
  469. ]
  470. }
  471. },]
  472. },
  473. {
  474. title: 'operation',
  475. data: [{
  476. //一个标题,大长图
  477. key: 444,
  478. typea: 3,
  479. title: "五月主题:五一启程,去看看不同世界",
  480. text: "每天30分钟,玩学两不误",
  481. icon_item: [
  482. {
  483. icon:
  484. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  485. name: "第一张图片文字"
  486. },
  487. {
  488. icon:
  489. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  490. name: "第二张图片文字"
  491. },
  492. {
  493. icon:
  494. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  495. name: "第三张图片文字"
  496. },
  497. {
  498. icon:
  499. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  500. name: "第四张图片文字"
  501. },
  502. {
  503. icon:
  504. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  505. name: "第五张图片文字"
  506. }
  507. ]
  508. },
  509. {
  510. key: 555,
  511. typea: 4,
  512. title: "热门课程",
  513. text: "text",
  514. mask: false,
  515. icon_item: [
  516. {
  517. icon:
  518. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  519. name: "第一张图片文字"
  520. },
  521. {
  522. icon:
  523. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  524. name: "第二张图片文字"
  525. },
  526. {
  527. icon:
  528. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  529. name: "第三张图片文字"
  530. },
  531. {
  532. icon:
  533. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  534. name: "第四张图片文字"
  535. },
  536. {
  537. icon:
  538. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  539. name: "第五张图片文字"
  540. }
  541. ]
  542. },]
  543. },
  544. {
  545. title: 'courses',
  546. data: [{
  547. //一个标题,大长图
  548. key: 444,
  549. typea: 5,
  550. title: "五月主题:五一启程,去看看不同世界",
  551. text: "每天30分钟,玩学两不误",
  552. icon_item: [
  553. {
  554. icon:
  555. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  556. name: "第一张图片文字"
  557. },
  558. {
  559. icon:
  560. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  561. name: "第二张图片文字"
  562. },
  563. {
  564. icon:
  565. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  566. name: "第三张图片文字"
  567. },
  568. {
  569. icon:
  570. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  571. name: "第四张图片文字"
  572. },
  573. {
  574. icon:
  575. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  576. name: "第五张图片文字"
  577. }
  578. ]
  579. },
  580. {
  581. key: 555,
  582. typea: 5,
  583. title: "热门课程",
  584. text: "text",
  585. mask: false,
  586. icon_item: [
  587. {
  588. icon:
  589. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  590. name: "第一张图片文字"
  591. },
  592. {
  593. icon:
  594. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  595. name: "第二张图片文字"
  596. },
  597. {
  598. icon:
  599. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  600. name: "第三张图片文字"
  601. },
  602. {
  603. icon:
  604. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  605. name: "第四张图片文字"
  606. },
  607. {
  608. icon:
  609. "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1556277324856&di=dc1548a0c5ba10481af922e174912937&imgtype=0&src=http%3A%2F%2Fwww.51pptmoban.com%2Fd%2Ffile%2F2012%2F05%2F12%2F82c4568a90055adcf8fbb896f0841c69.jpg",
  610. name: "第五张图片文字"
  611. }
  612. ]
  613. },]
  614. }
  615. ]