Browse Source

修改发布需求时禁用按钮的组件问题。

hotfix/210830_二组需求分支
王饶冀 3 years ago
parent
commit
72c5d3b3a8
2 changed files with 13 additions and 1 deletions
  1. 4
    1
      pages/releaseModule/index.wxml
  2. 9
    0
      pages/releaseModule/index.wxss

+ 4
- 1
pages/releaseModule/index.wxml View File

@@ -20,9 +20,12 @@
</view>
</view>
<view class="submit-btn">
<van-button block color="#5e73e5" round disabled="{{ !(!!detailValue && selectedTag.length > 0) }}" bind:click="releaseDemands" loading="{{ saveLoading }}">
<van-button block color="#5e73e5" round wx:if="{{ (!!detailValue && selectedTag.length > 0) }}" bind:click="releaseDemands" loading="{{ saveLoading }}">
{{ businessCommunicationDemandId ? '确认修改':'发布需求'}}
</van-button>
<view wx:else class="btn-span">
{{ businessCommunicationDemandId ? '确认修改':'发布需求'}}
</view>
</view>
</view>
<tabBar currentIndex="{{currentIndex}}"></tabBar>

+ 9
- 0
pages/releaseModule/index.wxss View File

@@ -68,4 +68,13 @@
margin-top: 40rpx;
box-sizing: border-box;
padding: 0 40rpx;
}

.submit-btn .btn-span{
background: #999;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border-radius: 40rpx;
color: #fff;
}

Loading…
Cancel
Save