From 4ebf91d13113539f3e186574b7349c0cc36b940b Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Mon, 18 Jan 2021 10:36:52 +0800 Subject: [PATCH] no message --- pages/article/publish/index.js | 9 +++++---- pages/mall/detail/index.wxml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/article/publish/index.js b/pages/article/publish/index.js index cbaf61e..d4b781b 100644 --- a/pages/article/publish/index.js +++ b/pages/article/publish/index.js @@ -38,11 +38,12 @@ Page({ wx.showLoading({ title: '加载中', mask: true }) getMomentDetail(options.id).then(result => { var fileList = [] - if (result.data.imgUrlList && result.data.imgUrlList.length) { - result.data.imgUrlList.forEach(element => { + if (result.data.imageUrlList && result.data.imageUrlList.length) { + result.data.imageUrlList.forEach(element => { fileList.push({ url: element, status: 8 }) }) } + result.data.imageUrls = result.data.imageUrlList this.setData({ form: result.data, fileList: fileList }) wx.hideLoading() }).catch(err => { @@ -79,7 +80,7 @@ Page({ wx.showLoading({ title: '处理中', mask: true }) this.data.requesting = true if(util.isEmpty(this.data.form.id)){ - updateMoment(this.data.form).then(result => { + postMoment(this.data.form).then(result => { wx.hideLoading() var what = 570 if(Number(this.data.form.categoryId) > 0){ @@ -93,7 +94,7 @@ Page({ util.showToast(err) }) } else { - postMoment(this.data.form.id, this.data.form).then(result => { + updateMoment(this.data.form.id, this.data.form).then(result => { wx.hideLoading() event.emit('EventMessage', { what: 501, desc: 'PostChange' }) util.showBackToast('编辑成功') diff --git a/pages/mall/detail/index.wxml b/pages/mall/detail/index.wxml index 3edca63..81d2eeb 100644 --- a/pages/mall/detail/index.wxml +++ b/pages/mall/detail/index.wxml @@ -71,7 +71,7 @@ - {{item.mobile}} + {{item.mobile || ''}} {{item.updateTime || ''}} ¥{{formate.formatePrice2(item.biddingUnitPrice, kg)}}