Browse Source

no message

featrue/v4.1
xpz2018 5 years ago
parent
commit
4ebf91d131
2 changed files with 6 additions and 5 deletions
  1. 9
      pages/article/publish/index.js
  2. 2
      pages/mall/detail/index.wxml

9
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('编辑成功')

2
pages/mall/detail/index.wxml

@ -71,7 +71,7 @@
<wux-image width="{{20}}" height="{{20}}" shape="circle" lazyLoad="true" src="{{item.avatarUrl || '/assets/image/ygImg.png'}}" mode="aspectFill">
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
</wux-image>
<view class="page-num">{{item.mobile}}</view>
<view class="page-num">{{item.mobile || ''}}</view>
</view>
<view class="page-num">{{item.updateTime || ''}}</view>
<view class="page-num" style="color:red">¥{{formate.formatePrice2(item.biddingUnitPrice, kg)}}</view>

Loading…
Cancel
Save