riku
2022-10-10 437144f41c74505d362a5214a18cec3d01b3ce4b
pages/m_promise/promisehome/promise.wxml
@@ -1,4 +1,6 @@
<!--pages/promise/promise.wxml-->
<import src="/template/nodata.wxml"></import>
<view class="page">
  <!-- <view class="banner-bg"></view> -->
@@ -18,13 +20,16 @@
      <view class="fyui-cell__bd">历史承诺</view>
      <view class="fyui-cell__ft">查看更多</view>
    </view>
    <view wx:for="{{promise}}" wx:key="index">
      <view class="p-cell fyui-panel">
        <view class="p-title">| 守法承诺</view>
        <view class="p-content">{{item.period}}</view>
        <view class="p-tag">{{item.time}}</view>
        <view class="p-btn" bindtap="gotoDetail" data-index="{{index}}">去看看</view>
    <block wx:if="{{promise.length > 0}}">
      <view wx:for="{{promise}}" wx:key="index">
        <view class="p-cell fyui-panel">
          <view class="p-title">| 守法承诺</view>
          <view class="p-content">{{item.period}}</view>
          <view class="p-tag">{{item.time}}</view>
          <view class="p-btn" bindtap="gotoDetail" data-index="{{index}}">去看看</view>
        </view>
      </view>
    </view>
    </block>
    <template wx:else is="nodataPage"></template>
  </view>
</view>