|
@@ -851,11 +851,10 @@ export default {
|
|
|
if(this.livePlay){
|
|
|
this.liveDuration = this.liveDuration +1 //每隔1秒
|
|
|
if(this.liveDuration==2){ //直播第2秒拍照
|
|
|
- if(this.goodsPhotographConfig){
|
|
|
- if(this.goodsPhotographConfig.livephotograph==1){
|
|
|
- //开启直播拍照
|
|
|
- this.openPhoto();
|
|
|
- }
|
|
|
+ if(this.goodsPhotographConfig.livephotograph==1 && this.channelItem.learning != 1){
|
|
|
+ //开启直播拍照
|
|
|
+
|
|
|
+ this.openPhoto();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1438,7 +1437,10 @@ export default {
|
|
|
//拍照
|
|
|
openPhoto() {
|
|
|
var polyvPlayerContext = this.selectComponent('#playerVideo');
|
|
|
- polyvPlayerContext.exitFullScreen();
|
|
|
+ if(polyvPlayerContext) {
|
|
|
+ polyvPlayerContext.exitFullScreen();
|
|
|
+ }
|
|
|
+
|
|
|
this.enableAutoRotation = false;
|
|
|
this.photoPopup = true;
|
|
|
this.isTaking = true;
|