Browse Source

1.修改ScheduleFlatItem适用方法
2.修改SchedulePage左上角返回

zhangmengjie 5 years atrás
parent
commit
15bfc318d8
2 changed files with 7 additions and 9 deletions
  1. 5 7
      pages/components/ScheduleFlatItem.js
  2. 2 2
      pages/components/SchedulePage.js

+ 5 - 7
pages/components/ScheduleFlatItem.js

@@ -92,12 +92,10 @@ export default class ScheduleFlatItem extends Component<Props> {
 /**
 
       使用方法
-    <CourseTitle
-          width={150}
-          height={50}
-          title="学前"
-          backPress={() => this.goBack()}
-          sharedpress={() => alert("点击分享")}
-        />
+      <ScheduleFlatItem
+        width={this.getWindowWidth() * 0.95}
+        height={60}
+        data={data}
+      />
 
  */

+ 2 - 2
pages/components/SchedulePage.js

@@ -46,8 +46,8 @@ export default class SchedulePage extends BasePage {
           <CourseTitle
             width={this.getWindowWidth()}
             title="第12周 爱上幼儿园"
-            // backPress={() => this.goBack()}
-            backPress={() => alert("点击返回")}
+            backPress={() => this.goBack()}
+            // backPress={() => alert("点击返回")}
             sharedpress={() => alert("点击分享")}
           />
         </View>