| @@ -1,6 +1,5 @@ | |||
| <!-- index.wxml --> | |||
| <view class="home-page page-container"> | |||
| <!-- <official-account></official-account> --> | |||
| <!-- 搜索块 --> | |||
| <view class="search-view"> | |||
| <view class="serach-input-view"> | |||
| @@ -5,12 +5,13 @@ | |||
| </view> | |||
| <view wx:else class="body-view"> | |||
| <view class="top-view" wx:if="{{ topShow }}"> | |||
| <image class="msg-top-img fl" src="/images/home/msg-top-icon.png" /> | |||
| <!-- <image class="msg-top-img fl" src="/images/home/msg-top-icon.png" /> | |||
| <view class="msg-text fl">关注公众号可随时接收离线消息~</view> | |||
| <van-button color="#5e73e5" round class="msg-btn-go fl" size="small" bindtap="followApplets"> | |||
| 前往关注 | |||
| </van-button> | |||
| <image class="msg-colse-img fl" src="/images/home/close.png" bind:tap="closeTopShow" /> | |||
| </van-button> --> | |||
| <official-account></official-account> | |||
| <image class="msg-colse-img" src="/images/home/close.png" bind:tap="closeTopShow" /> | |||
| </view> | |||
| <view class="msg-box-view {{ topShow ? 'topShow' : '' }} not-msg-data" wx:if="{{ msgData.length < 1 }}"> | |||
| <image class="not-msg-data-img " src="/images/home/not-msg-data.png" /> | |||
| @@ -3,38 +3,24 @@ | |||
| min-height: calc(100vh - 150rpx); | |||
| } | |||
| .top-view { | |||
| background: #fff; | |||
| /* background: #fff; | |||
| box-sizing: border-box; | |||
| padding: 0 20rpx; | |||
| height: 88rpx; | |||
| line-height: 88rpx; | |||
| box-shadow: -1px 3px 12px 4px rgba(186, 186, 186, 0.1); | |||
| border-radius: 20rpx; | |||
| margin-bottom: 20rpx; | |||
| } | |||
| .top-view .msg-top-img { | |||
| width: 87rpx; | |||
| height: 67rpx; | |||
| margin-right: 26rpx; | |||
| margin-bottom: 20rpx; */ | |||
| position: relative; | |||
| top: 13rpx; | |||
| } | |||
| .top-view .msg-text{ | |||
| font-size: 24rpx; | |||
| color: #728dd4; | |||
| margin-right: 10rpx; | |||
| } | |||
| .top-view .msg-btn-go .van-button{ | |||
| width: 144rpx; | |||
| margin-right: 10rpx; | |||
| margin-bottom: 20rpx; | |||
| } | |||
| .top-view .msg-colse-img{ | |||
| position: absolute; | |||
| width: 30rpx; | |||
| height: 30rpx; | |||
| margin-left: 10rpx; | |||
| margin-top: 29rpx; | |||
| right: 20rpx; | |||
| top: 20rpx; | |||
| } | |||
| .msg-box-view { | |||
| @@ -146,20 +146,11 @@ Page({ | |||
| wx.showModal({ | |||
| title: '发布成功', | |||
| content: "请关注平台公众号,如有咨询,可及时接收消息通知!", | |||
| confirmText: "去关注", | |||
| cancelText: "关闭", | |||
| showCancel: false, | |||
| success(res1) { | |||
| if (res1.confirm) { | |||
| that.clearData(); | |||
| wx.navigateTo({ | |||
| url: "/pages/outLink/outLink?followApplets=true", //跳转页面的路径,可带参数 ?隔开,不同参数用 & 分隔;相对路径,不需要.wxml后缀 | |||
| success: function () { }, //成功后的回调; | |||
| fail: function () { }, //失败后的回调; | |||
| complete: function () { } //结束后的回调(成功,失败都会执行) | |||
| }) | |||
| } else if (res1.cancel) { | |||
| let listDetail = res.data; | |||
| that.clearData(); | |||
| wx.reLaunch({ | |||
| url: '/pages/index/components/listDetails/Details?businessCommunicationDemandId=' + listDetail.businessCommunicationDemandId, | |||
| }) | |||