Commit d5f8d30e authored by lvtz's avatar lvtz

fix

parent bdee9887
...@@ -1172,6 +1172,7 @@ Page({ ...@@ -1172,6 +1172,7 @@ Page({
'params.content': content, 'params.content': content,
}) })
} else if (editType == 2) { } else if (editType == 2) {
console.log(22222)
const content = calendarparams.content; const content = calendarparams.content;
content.push({ content.push({
type: 'voice', type: 'voice',
......
...@@ -253,12 +253,13 @@ Component({ ...@@ -253,12 +253,13 @@ Component({
// }) // })
let content = JSON.parse(JSON.stringify(this.data.content)); let content = JSON.parse(JSON.stringify(this.data.content));
let uploadingIndex = this.data.uploadingIndex + 1; let uploadingIndex = this.data.uploadingIndex + 1;
content.push({
this.triggerEvent('additem', {
type: 'img', type: 'img',
value: access.path value: access.path
}) });
this.setData({ this.setData({
content,
uploadingIndex, uploadingIndex,
}, () => { }, () => {
this.setData({ this.setData({
...@@ -393,19 +394,12 @@ Component({ ...@@ -393,19 +394,12 @@ Component({
wx.showToast({ wx.showToast({
title: '上传成功' title: '上传成功'
}) })
let content = JSON.parse(JSON.stringify(this.data.content)); this.triggerEvent('additem', {
content.push({
type: 'video', type: 'video',
value: access.path, value: access.path,
poster: access.path,
mode: 'm3u8' mode: 'm3u8'
}) });
this.setData({
content,
}, () => {
this.setData({
videoBoxLength: this.countCaculate('video', this.data.content)
})
})
} else { } else {
wx.hideLoading(); wx.hideLoading();
wx.showModal({ wx.showModal({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment