jufubao-forms 1.0.4-beta4 → 1.0.4-beta5
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
|
@@ -102,12 +102,14 @@
|
|
|
102
102
|
:src="getServiceUrl(videoSrc)"
|
|
103
103
|
:controls="false"
|
|
104
104
|
:show-center-play-btn="false"
|
|
105
|
+
:autoplay="false"
|
|
106
|
+
:loop="false"
|
|
105
107
|
@pause="handleVideoPause(item)"
|
|
106
108
|
@ended="handleVideoPause(item)"
|
|
107
109
|
@click="handleVideoPlay(item)"
|
|
108
110
|
></video>
|
|
109
111
|
<view v-if="!formPaly[item.field_value + '_play']" class="video_cover">
|
|
110
|
-
<image :src="formPaly[item.field_value + '_cover']" style="width: 100%;height: 100%;" mode="
|
|
112
|
+
<image :src="formPaly[item.field_value + '_cover']" style="width: 100%;height: 100%;" mode="aspectFill"></image>
|
|
111
113
|
<view class="video_play" @click="handleVideoPlay(item)">
|
|
112
114
|
<xd-font-icon icon="iconplayright" color="#fff" size="60"></xd-font-icon>
|
|
113
115
|
</view>
|
|
@@ -244,6 +246,7 @@
|
|
|
244
246
|
emptyImage: getServiceUrl('/common/empty/qa.png'),
|
|
245
247
|
uploadImgList: [],
|
|
246
248
|
uploadVideoList: [],
|
|
249
|
+
imgHost: "",
|
|
247
250
|
|
|
248
251
|
//面板
|
|
249
252
|
submitPagePath: "",
|
|
@@ -291,6 +294,9 @@
|
|
|
291
294
|
methods: {
|
|
292
295
|
getServiceUrl,
|
|
293
296
|
onJfbLoad(options) {
|
|
297
|
+
let imgHost = this.projectAttr['img_host'] || this.$settings.cdnUrl;
|
|
298
|
+
this.imgHost = imgHost;
|
|
299
|
+
|
|
294
300
|
if (!this.isPreview){
|
|
295
301
|
if(!options.form_id) {
|
|
296
302
|
return uni.showToast({
|
|
@@ -539,7 +545,7 @@
|
|
|
539
545
|
let video = await this.uploadImage(file);
|
|
540
546
|
let videoUrl = getVideoUrl(video);
|
|
541
547
|
console.log("videoUrl", videoUrl);
|
|
542
|
-
this.form[item.field_value].push(
|
|
548
|
+
this.form[item.field_value].push(videoUrl.url);
|
|
543
549
|
this.formPaly[item.field_value + '_cover'] = videoUrl.url_cover;
|
|
544
550
|
this.handleClearError(item);
|
|
545
551
|
this.$xdHideLoading();
|
|
@@ -644,7 +650,8 @@
|
|
|
644
650
|
contents,
|
|
645
651
|
form_id: this.form_id,
|
|
646
652
|
bucket: this.bucket,
|
|
647
|
-
foreign_id: this.foreign_id
|
|
653
|
+
foreign_id: this.foreign_id,
|
|
654
|
+
domain: this.imgHost
|
|
648
655
|
}
|
|
649
656
|
}).then(res => {
|
|
650
657
|
this.$xdHideLoading();
|