MainPage.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  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={()=>this.toNextPage('SchedulePage')}
  200. key={index}
  201. activeOpacity={1}
  202. >
  203. <Image
  204. source={{
  205. uri: item.boothContent
  206. }}
  207. key={index}
  208. style={{
  209. flex: 1,
  210. justifyContent: "center",
  211. alignItems: "center",
  212. borderRadius: 10
  213. }}
  214. />
  215. </TouchableOpacity>
  216. )
  217. }
  218. return (
  219. <View
  220. style={{
  221. flex: 1,
  222. flexDirection: "column",
  223. height: 160,
  224. }}
  225. >
  226. <TopicTitle title={'课程表:第一周'} ifTubeShow={true} />
  227. <View
  228. style={{
  229. flex: 2,
  230. flexDirection: "row",
  231. alignItems: 'center',
  232. paddingLeft: 10
  233. }}
  234. >
  235. {this.state.schedule.map((item, index) => renderScheduleItem(item, index))}
  236. </View>
  237. </View>
  238. );
  239. }
  240. // 渲染月主题
  241. getMonthTopic() {
  242. return (
  243. <View style={{
  244. flex: 1,
  245. height: 225,
  246. }}>
  247. <TopicTitle title={this.state.monthTopicTitle} summary={'每天30分钟'} ifTubeShow={true} />
  248. <ScrollRow itemWidth={352} itemHeight={153} data={this.state.monthTopicScroll} />
  249. </View>
  250. );
  251. }
  252. // 渲染热门课程
  253. getHotCourse() {
  254. return (
  255. <View style={{
  256. flex: 1,
  257. height: 220,
  258. }}>
  259. <TopicTitle title={'热门课程'} ifTubeShow={true} />
  260. <ScrollRow itemWidth={106} itemHeight={150} data={this.state.hotCourse} />
  261. </View>
  262. )
  263. }
  264. // 渲染全部课程
  265. getAllCourses() {
  266. return (
  267. <View>
  268. {this.state.recommend.map((item, index) => {
  269. return (
  270. <View
  271. style={{
  272. flex: 1,
  273. height: 240,
  274. }}
  275. key={index}
  276. >
  277. {index === 0
  278. ?
  279. null
  280. :
  281. <View style={{ width: Dimensions.width, height: 4, backgroundColor: '#f0f1f5' }}></View>
  282. }
  283. <TopicTitle title={item.zone.title} />
  284. <ScrollRow itemWidth={106} itemHeight={150} data={item.zoneCourseVOList} />
  285. </View>
  286. )
  287. })}
  288. </View>
  289. )
  290. }
  291. // 渲染每一个块儿 sectionList组件的data,没有用到,以后可能会用
  292. loadFlatItem(data) {
  293. switch (data.title) {
  294. // 轮播图
  295. case 'banner':
  296. return this.getSwiperElement();
  297. break;
  298. // 课程表
  299. case 'schedule':
  300. return this.getScheduleElement();
  301. break;
  302. // 大图主题
  303. case 'monthTopic':
  304. return this.getMonthTopic();
  305. break;
  306. // 热门课程
  307. case 'hotCourse':
  308. return this.getHotCourse();
  309. break;
  310. case 'recommend':
  311. return this.getAllCourses();
  312. break;
  313. default:
  314. break;
  315. }
  316. }
  317. // 渲染每一个section的title sectionList组件的data,没有用到,以后可能会用
  318. sectionTitle = (info) => {
  319. switch (info.section.title) {
  320. case 'operation':
  321. return (
  322. <View
  323. style={{
  324. width: Dimensions.width,
  325. height: 10,
  326. backgroundColor: '#f0f1f5'
  327. }}
  328. />
  329. );
  330. break;
  331. case 'courses':
  332. return <TopicTitle title={'全部课程'} tubeColor={'#7d9fff'} background={'#f0f1f5'} ifTubeShow={true} />
  333. break;
  334. default:
  335. break;
  336. }
  337. }
  338. // 点击呼出学龄菜单
  339. tabCallOutHandler = () => {
  340. this.setState({
  341. ifGradeMenuShow: !this.state.ifGradeMenuShow
  342. }, () => {
  343. Animated.timing(
  344. this.state.fadeAnim,
  345. {
  346. toValue: this.state.ifGradeMenuShow ? 1 : 0,
  347. duration: 300,
  348. }
  349. ).start();
  350. })
  351. }
  352. // 如果切换学龄在显示状态,那么在它失去焦点时将它隐藏
  353. hideGradeMenu = () => {
  354. if (this.state.ifGradeMenuShow) {
  355. this.setState({
  356. ifGradeMenuShow: false
  357. })
  358. }
  359. }
  360. }
  361. const styles = StyleSheet.create({
  362. title_text: {
  363. justifyContent: "center",
  364. alignItems: "center",
  365. color: "red",
  366. fontSize: 30,
  367. textAlign: "center",
  368. marginTop: 30,
  369. marginBottom: 50
  370. },
  371. /* 搜索区域 */
  372. searchSection: {
  373. flex: 1,
  374. width: Dimensions.width,
  375. height: 60,
  376. flexDirection: 'row',
  377. alignItems: 'center',
  378. backgroundColor: '#f0f1f5',
  379. justifyContent: 'space-around',
  380. position: 'relative',
  381. },
  382. searchBox: {
  383. width: 232,
  384. height: 40,
  385. backgroundColor: '#fff',
  386. borderRadius: 20
  387. },
  388. rightBtn: {
  389. width: 113,
  390. height: 40,
  391. backgroundColor: '#fff',
  392. borderRadius: 20,
  393. alignItems: 'center',
  394. justifyContent: 'center',
  395. justifyContent: 'space-around',
  396. flexDirection: 'row',
  397. paddingLeft: 20,
  398. paddingRight: 10,
  399. },
  400. rightBtnIcon: {
  401. width: 14,
  402. height: 14
  403. },
  404. rightBtnText: {
  405. color: '#151515',
  406. fontSize: 18,
  407. },
  408. callUpGrade: {
  409. width: 113,
  410. height: 120,
  411. borderRadius: 20,
  412. position: 'absolute',
  413. right: 9,
  414. top: 125,
  415. zIndex: 999,
  416. elevation: 999,
  417. backgroundColor: '#fff',
  418. flexDirection: 'column'
  419. },
  420. gradeItem: {
  421. zIndex: 999,
  422. flex: 1,
  423. alignItems: 'center',
  424. justifyContent: 'center',
  425. },
  426. gradeItemMid: {
  427. zIndex: 999,
  428. flex: 1,
  429. alignItems: 'center',
  430. justifyContent: 'center',
  431. borderTopWidth: 1,
  432. borderBottomWidth: 1,
  433. borderColor: '#f0f1f5'
  434. },
  435. gradeText: {
  436. color: '#151515',
  437. fontSize: 18,
  438. }
  439. });
  440. const sectionData = [
  441. {
  442. title: 'swiper',
  443. data: [{
  444. //轮播
  445. key: 111,
  446. typea: 1,
  447. text: "第一种类型"
  448. },
  449. {
  450. //只有一个标题下面两个图片
  451. key: 222,
  452. typea: 2,
  453. item: {
  454. item_type: 1,
  455. title: "课程表:第一周",
  456. icon_item: [
  457. {
  458. icon:
  459. "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",
  460. name: "第一张图片文字"
  461. },
  462. {
  463. icon:
  464. "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",
  465. name: "第二张图片文字"
  466. }
  467. ]
  468. }
  469. },]
  470. },
  471. {
  472. title: 'operation',
  473. data: [{
  474. //一个标题,大长图
  475. key: 444,
  476. typea: 3,
  477. title: "五月主题:五一启程,去看看不同世界",
  478. text: "每天30分钟,玩学两不误",
  479. icon_item: [
  480. {
  481. icon:
  482. "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",
  483. name: "第一张图片文字"
  484. },
  485. {
  486. icon:
  487. "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",
  488. name: "第二张图片文字"
  489. },
  490. {
  491. icon:
  492. "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",
  493. name: "第三张图片文字"
  494. },
  495. {
  496. icon:
  497. "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",
  498. name: "第四张图片文字"
  499. },
  500. {
  501. icon:
  502. "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",
  503. name: "第五张图片文字"
  504. }
  505. ]
  506. },
  507. {
  508. key: 555,
  509. typea: 4,
  510. title: "热门课程",
  511. text: "text",
  512. mask: false,
  513. icon_item: [
  514. {
  515. icon:
  516. "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",
  517. name: "第一张图片文字"
  518. },
  519. {
  520. icon:
  521. "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",
  522. name: "第二张图片文字"
  523. },
  524. {
  525. icon:
  526. "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",
  527. name: "第三张图片文字"
  528. },
  529. {
  530. icon:
  531. "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",
  532. name: "第四张图片文字"
  533. },
  534. {
  535. icon:
  536. "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",
  537. name: "第五张图片文字"
  538. }
  539. ]
  540. },]
  541. },
  542. {
  543. title: 'courses',
  544. data: [{
  545. //一个标题,大长图
  546. key: 444,
  547. typea: 5,
  548. title: "五月主题:五一启程,去看看不同世界",
  549. text: "每天30分钟,玩学两不误",
  550. icon_item: [
  551. {
  552. icon:
  553. "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",
  554. name: "第一张图片文字"
  555. },
  556. {
  557. icon:
  558. "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",
  559. name: "第二张图片文字"
  560. },
  561. {
  562. icon:
  563. "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",
  564. name: "第三张图片文字"
  565. },
  566. {
  567. icon:
  568. "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",
  569. name: "第四张图片文字"
  570. },
  571. {
  572. icon:
  573. "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",
  574. name: "第五张图片文字"
  575. }
  576. ]
  577. },
  578. {
  579. key: 555,
  580. typea: 5,
  581. title: "热门课程",
  582. text: "text",
  583. mask: false,
  584. icon_item: [
  585. {
  586. icon:
  587. "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",
  588. name: "第一张图片文字"
  589. },
  590. {
  591. icon:
  592. "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",
  593. name: "第二张图片文字"
  594. },
  595. {
  596. icon:
  597. "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",
  598. name: "第三张图片文字"
  599. },
  600. {
  601. icon:
  602. "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",
  603. name: "第四张图片文字"
  604. },
  605. {
  606. icon:
  607. "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",
  608. name: "第五张图片文字"
  609. }
  610. ]
  611. },]
  612. }
  613. ]