Commit cd20e439 by ext.wangyuman1

朋友圈模块

1 parent 795c27b5
...@@ -124,7 +124,11 @@ export default { ...@@ -124,7 +124,11 @@ export default {
methods: { methods: {
// 开始 // 开始
getCodeCategoryListFn() { getCodeCategoryListFn() {
getCodeCategoryList({ mediaType: this.type }).then((res) => { let obj = { mediaType: this.type }
if (this.isFriends) {
obj.scene = 1
}
getCodeCategoryList(obj).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.groupList = res.data this.groupList = res.data
this.query.categoryId = this.groupList[0].id this.query.categoryId = this.groupList[0].id
......
...@@ -431,7 +431,7 @@ export default { ...@@ -431,7 +431,7 @@ export default {
// }) // })
// .join(',') // .join(',')
// } // }
if (this.form.executeTime) { if (this.form.executeTime && typeof this.form.executeTime !== 'string' ) {
let time = this.form.executeTime.getTime() let time = this.form.executeTime.getTime()
let time2 = Date.now() let time2 = Date.now()
if (time2 > time) { if (time2 > time) {
...@@ -439,10 +439,8 @@ export default { ...@@ -439,10 +439,8 @@ export default {
return false return false
} }
this.form.executeTime = moment(this.form.executeTime).format('YYYY-MM-DD HH:mm') this.form.executeTime = moment(this.form.executeTime).format('YYYY-MM-DD HH:mm')
} else {
this.form.executeTime = ''
} }
if (this.form.executeEndTime) { if (this.form.executeEndTime && typeof this.form.executeEndTime !== 'string') {
let time = this.form.executeEndTime.getTime() let time = this.form.executeEndTime.getTime()
let time2 = Date.now() let time2 = Date.now()
if (time2 > time) { if (time2 > time) {
...@@ -450,10 +448,7 @@ export default { ...@@ -450,10 +448,7 @@ export default {
return false return false
} }
this.form.executeEndTime = moment(this.form.executeEndTime).format('YYYY-MM-DD HH:mm') this.form.executeEndTime = moment(this.form.executeEndTime).format('YYYY-MM-DD HH:mm')
} else {
this.form.executeEndTime = ''
} }
// console.log(304, this.form)
addMoments(this.form).then((res) => { addMoments(this.form).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.msgSuccess('操作成功') this.msgSuccess('操作成功')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!