|
@@ -27,6 +27,7 @@ import Orientation from "react-native-orientation";
|
|
import AndroidUtil from "../../util/AndroidUtil";
|
|
import AndroidUtil from "../../util/AndroidUtil";
|
|
import BasePage from "../BasePage";
|
|
import BasePage from "../BasePage";
|
|
import CourseTitle from "./CourseTitle";
|
|
import CourseTitle from "./CourseTitle";
|
|
|
|
+import SharedDialog from "./SharedDialog";
|
|
import ScheduleFlatItem from "./ScheduleFlatItem";
|
|
import ScheduleFlatItem from "./ScheduleFlatItem";
|
|
import CusVideo from "./CusVideo";
|
|
import CusVideo from "./CusVideo";
|
|
const instructions = Platform.select({
|
|
const instructions = Platform.select({
|
|
@@ -98,7 +99,7 @@ export default class SchedulePage extends BasePage {
|
|
textcolor={"#231F20"}
|
|
textcolor={"#231F20"}
|
|
backPress={() => this.goBack()}
|
|
backPress={() => this.goBack()}
|
|
// backPress={() => alert("左侧按钮")}
|
|
// backPress={() => alert("左侧按钮")}
|
|
- rightPress={() => alert("右侧按钮")}
|
|
|
|
|
|
+ rightPress={this.showSharedDialog.bind(this)}
|
|
/>
|
|
/>
|
|
</View>
|
|
</View>
|
|
<View
|
|
<View
|
|
@@ -234,6 +235,7 @@ export default class SchedulePage extends BasePage {
|
|
show={this.state.video_show}
|
|
show={this.state.video_show}
|
|
uri={this.state.video_uri}
|
|
uri={this.state.video_uri}
|
|
ref={view => (this.video = view)}
|
|
ref={view => (this.video = view)}
|
|
|
|
+ needback={false}
|
|
videofullScreenPlayer={this.fullScreenPlayer.bind(this)}
|
|
videofullScreenPlayer={this.fullScreenPlayer.bind(this)}
|
|
onError={this.onError.bind(this)}
|
|
onError={this.onError.bind(this)}
|
|
onEnd={this.onEnd.bind(this)}
|
|
onEnd={this.onEnd.bind(this)}
|
|
@@ -246,6 +248,7 @@ export default class SchedulePage extends BasePage {
|
|
position: "absolute"
|
|
position: "absolute"
|
|
}}
|
|
}}
|
|
/>
|
|
/>
|
|
|
|
+ <SharedDialog ref={view => (this.shareddialog = view)} />
|
|
</View>
|
|
</View>
|
|
);
|
|
);
|
|
}
|
|
}
|
|
@@ -272,6 +275,9 @@ export default class SchedulePage extends BasePage {
|
|
this.onBackAndroid.bind(this)
|
|
this.onBackAndroid.bind(this)
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
+ showSharedDialog() {
|
|
|
|
+ this.shareddialog.setModalVisible(true);
|
|
|
|
+ }
|
|
onBackAndroid() {
|
|
onBackAndroid() {
|
|
if (this.state.isFull) {
|
|
if (this.state.isFull) {
|
|
return true;
|
|
return true;
|