jufubao-forms 1.0.4-beta5 → 1.0.4-beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -512,7 +512,13 @@
|
|
|
512
512
|
this.form[item.field_value].push(image);
|
|
513
513
|
},
|
|
514
514
|
handleVideoPlay(item){
|
|
515
|
-
let videoContext
|
|
515
|
+
let videoContext;
|
|
516
|
+
if(this.formPaly[item.field_value + '_context']){
|
|
517
|
+
videoContext = this.formPaly[item.field_value + '_context'];
|
|
518
|
+
}else{
|
|
519
|
+
videoContext = uni.createVideoContext('video_' + item.field_value, this);
|
|
520
|
+
this.formPaly[item.field_value + '_context'] = videoContext;
|
|
521
|
+
}
|
|
516
522
|
if(videoContext){
|
|
517
523
|
if(!this.formPaly[item.field_value + '_play']){
|
|
518
524
|
this.$set(this.formPaly, item.field_value + '_play', true)
|