Browse Source

no message

feature/v1.4
xpz2018 4 years ago
parent
commit
a55ad74873
3 changed files with 5 additions and 7 deletions
  1. 2
      pages/agent/factory-detail/index.js
  2. 4
      pages/htmls/banner/index.js
  3. 6
      pages/htmls/banner/index.wxml

2
pages/agent/factory-detail/index.js

@ -134,7 +134,7 @@ Scene({
userPushFollowMill(model).then(res => { userPushFollowMill(model).then(res => {
this.setData({ hasFollowed: model.follow }) this.setData({ hasFollowed: model.follow })
wx.hideLoading() wx.hideLoading()
event.emit('EventMessage', { what: 1101, desc: 'factoryDetails' })
event.emit('EventMessage', { what: 110, desc: 'factoryDetails' })
}).catch(err => { }).catch(err => {
wx.hideLoading() wx.hideLoading()
util.showToast(err) util.showToast(err)

4
pages/htmls/banner/index.js

@ -20,7 +20,6 @@ Scene({
wx.navigateBack() wx.navigateBack()
return return
} }
wx.showLoading({ title: '处理中', mask: true })
this.setData({ this.setData({
fheight: app.globalData.fragmentHeight, fheight: app.globalData.fragmentHeight,
height: app.globalData.fragmentHeight, height: app.globalData.fragmentHeight,
@ -35,9 +34,8 @@ Scene({
var height = parseInt(math.divide(detail.height, radio)) var height = parseInt(math.divide(detail.height, radio))
this.setData({ height }) this.setData({ height })
} }
wx.hideLoading()
}, },
backPage() {
backPage: function() {
wx.navigateBack() wx.navigateBack()
} }
}) })

6
pages/htmls/banner/index.wxml

@ -1,14 +1,14 @@
<!--pages/message/detail/index.wxml--> <!--pages/message/detail/index.wxml-->
<view class="cu-bar fixed" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}rpx;border-bottom: 0rpx solid #eee">
<view class="cu-bar fixed" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}rpx;box-shadow:none">
<view class="action" bindtap="backPage"> <view class="action" bindtap="backPage">
<text class="weui_goback" style="color:white"></text> <text class="weui_goback" style="color:white"></text>
</view> </view>
</view> </view>
<wux-image width="750rpx" height="{{height}}rpx" src="{{src}}" fit="fill" bind:load="onImageLoad">
<van-image width="750rpx" height="{{height}}rpx" src="{{src}}" fit="fill" bind:load="onImageLoad">
<view class="flex flex-center" slot="loading" style="height:{{fheight}}rpx;width:750rpx"> <view class="flex flex-center" slot="loading" style="height:{{fheight}}rpx;width:750rpx">
<van-loading type="spinner" size="32" /> <van-loading type="spinner" size="32" />
</view> </view>
</wux-image>
</van-image>
<notification id="qn-notification"/> <notification id="qn-notification"/>
Loading…
Cancel
Save