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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-forms",
3
- "version": "1.0.4-beta5",
3
+ "version": "1.0.4-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -512,7 +512,13 @@
512
512
  this.form[item.field_value].push(image);
513
513
  },
514
514
  handleVideoPlay(item){
515
- let videoContext = uni.createVideoContext('video_' + item.field_value, this);
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)