home.wxml 7.6 KB
<!--pages/main/addtionalreduce/home.wxml-->
<view class='page'>

  <view wx:if="{{additionlist.length>0}}" style='margin-bottom:30rpx;background:#fff'>
    <view  wx:for="{{additionlist}}" wx:key="" style='display:flex;flex-direction:column' wx:for-index="idx01" wx:for-item="item">
      <view style='margin:30rpx 44rpx;float:left;display:flex;flex-direction:column'>
        <text class=' text_333_40  float_left'>{{item.legal_entity}}</text>
        <view wx:if="{{item.status=='init'&&item.addition_items.length<1}}" class='view_godeclare_wrap' bindtap='godeclare' id='{{idx01}}'>
          <!-- <view wx:if="{{item.status=='to_declare'}}" class='view_godeclare_wrap' bindtap='godeclare' id='{{idx01}}'> -->
          立即申报
        </view>
      </view>
      <view wx:if="{{item.addition_items&&item.addition_items.length>0}}">
        <block wx:for="{{item.addition_items}}" wx:key="" wx:for-item="itemData" wx:for-index="idx02">
          <view wx:if="{{itemData.addition_category!='medical_fund'}}">
            <view style='margin:0 50rpx;background:#e5e5e5;height:2rpx;'></view>
            <view style='padding:30rpx 40rpx;display:flex;flex-direction:column '  bindtap='lookandadd' id='{{idx01}}-{{idx02}}'>
              <view style='height:40rpx'>
                <text class='text_333_32 float_left'>{{additiontitle[itemData.addition_category]}}</text>
                <text class='text_333_32 float_left' hidden="{{(itemData.addition_category=='continuing_education'||itemData.addition_category=='house_fund')||itemData.count<2}}">({{itemData.count}})</text>
                <image class='arrow_img_wrap float_right' src="/images/arrow_right.png"></image>
                <text class='text_999_28' style='margin-bottom:8rpx;float:right'>查看</text>
              </view>
              <view wx:if="{{itemData.addition_category=='continuing_education'&&itemData.detail_items.length>0}}" style='padding:20rpx'>
                <view wx:for="{{itemData.majors}}" wx:key="" wx:for-item="major">
                  <view wx:if="{{index==0}}">
                    <text wx:if='{{itemData.majors.length>1}}' style='font-size:28rpx;color:#666'>学历(学位)继续教育 ({{itemData.majors.length}})</text>
                    <text wx:else style='font-size:28rpx;color:#666'>学历(学位)继续教育</text>
                    <view style='width:100%;display:flex;flex-direction:row '>
                      <view class='float_left' style='flex:1'>
                        <text class='text_999_24 '>扣除方式</text>
                        <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[major.deduction_type]}}度</text>
                      </view>
                      <view class='float_right' style='flex:1'>
                        <text class='text_999_24 '>可扣除金额</text>
                        <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{major.deduction_amount}}/{{reducetype[major.deduction_type]}}</text>
                      </view>
                    </view>
                  </view>
                </view>
                <view wx:for="{{itemData.professions}}" wx:key="" wx:for-item="profession">  
                  <view wx:if="{{index==0}}">
                    <text wx:if='{{itemData.professions.length>1}}' style='font-size:28rpx;color:#666'>职业资格继续教育 ({{itemData.professions.length}})</text>
                    <text wx:else style='font-size:28rpx;color:#666'>职业资格继续教育</text>
                    <text style='font-size:28rpx;color:#666' hidden='{{profession.detail_count<2}}'>({{profession.detail_count}})</text>
                    <view style='width:100%;display:flex;flex-direction:row '>
                      <view class='float_left' style='flex:1'>
                        <text class='text_999_24 '>扣除方式</text>
                        <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[profession.deduction_type]}}度</text>
                      </view>
                      <view class='float_right' style='flex:1'>
                        <text class='text_999_24 '>可扣除金额</text>
                        <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{profession.deduction_amount}}/{{reducetype[profession.deduction_type]}}</text>
                      </view>
                    </view>
                  </view>
                </view>
                <!-- <view wx:for="{{itemData.detail_items}}" wx:key="" wx:for-item="itemtypedetail">
                  <view wx:if="{{itemtypedetail.continue_education_type=='major'}}">
                    <text style='font-size:28rpx;color:#666'>学历教育</text>
                    <view style='width:100%;display:flex;flex-direction:row '>
                      <view class='float_left' style='flex:1'>
                        <text class='text_999_24 '>扣除方式</text>
                        <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[itemtypedetail.deduction_type]}}度</text>
                      </view>
                      <view class='float_right' style='flex:1'>
                        <text class='text_999_24 '>可扣除金额</text>
                        <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{itemtypedetail.deduction_amount}}/{{reducetype[itemtypedetail.deduction_type]}}</text>
                      </view>
                    </view>
                  </view>
                  <view wx:else>
                    <text style='font-size:28rpx;color:#666'>非学历教育</text>
                    <text style='font-size:28rpx;color:#666' hidden='{{itemtypedetail.detail_count<2}}'>({{itemtypedetail.detail_count}})</text>
                    <view style='width:100%;display:flex;flex-direction:row '>
                      <view class='float_left' style='flex:1'>
                        <text class='text_999_24 '>扣除方式</text>
                        <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[itemtypedetail.deduction_type]}}度</text>
                      </view>
                      <view class='float_right' style='flex:1'>
                        <text class='text_999_24 '>可扣除金额</text>
                        <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{itemtypedetail.deduction_amount}}/{{reducetype[itemtypedetail.deduction_type]}}</text>
                      </view>
                    </view>
                  </view>
                </view> -->

              </view>
              <view wx:else style='width:100%;padding:20rpx 20rpx;display:flex;flex-direction:row '>
                <view class='float_left' style='flex:1'>
                  <text class='text_999_24 '>扣除方式</text>
                  <text class='text_gray_28' style='margin-left:20rpx'>{{reducetype[itemData.deduction_type]}}度</text>
                </view>
                <view class='float_right' style='flex:1'>
                  <text class='text_999_24 '>可扣除金额</text>
                  <text class='text_orange_28 ' style='margin-left:20rpx'>¥{{itemData.deduction_amount}}/{{reducetype[itemData.deduction_type]}}</text>
                </view>
              </view>
            </view>
          </view>
        </block>
      </view>
      <view style='height:20rpx;background:#F5F5F5'></view>
    </view>
    <!-- <view wx:else>
      <image style='width:55%;height:254rpx;margin:166rpx;' src='/images/noreduce_img.png'></image>
    </view> -->
   
  </view>
   <view wx:if="{{hascompleted&&additionlist.length<1}}" style='background:#fff;'>
    <image style='width:55%;height:254rpx;margin:400rpx 166rpx 0 166rpx;' src='/images/nodeclare_img.png'></image>
    </view>
</view>