You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

108 lines
6.5 KiB

<!--pages/user/resourcesOrder/index.wxml-->
<view class="order-page">
<view class="tabs-box acea-row row-between">
<view class="tab {{tabActive == 1 ? 'tab-a' : ''}}" data-i="1" bindtap="tabClick">沟通中</view>
<view class="tab {{tabActive == 2 ? 'tab-a' : ''}}" data-i="2" bindtap="tabClick">进行中</view>
<view class="tab {{tabActive == 3 ? 'tab-a' : ''}}" data-i="3" bindtap="tabClick">已结束</view>
</view>
<view class="list">
<view class="no-list" wx:if="{{list.length == 0}}">
<image src="../../../images/no-needs.png"></image>
<view>暂无订单</view>
<view class="to-btn" bindtap="toDemandHall">去需求广场</view>
</view>
<view class="item" wx:if="{{ tabActive == 1 }}" wx:for="{{list}}" wx:key="index">
<view class="needs-info-box">
<view class="n-title-box acea-row row-between">
<view>{{item.resourceInfo.name}}</view>
<!-- <view class="status" wx:if="{{item.comminuteState == 3}}">项目已成立</view> -->
</view>
<view class="n-price">需求预算 <text class="colO">{{item.resourceInfo.budget}}</text></view>
<view class="n-desc">{{item.resourceInfo.content}}</view>
</view>
<view class="concat-list-box">
<view class="open-btn acea-row row-middle" bindtap="openClick" data-idx="{{index}}">
<text>{{!item.open ? '展开' : '收起'}}</text>
<image class="arrow-down {{!item.open ? '' : 'arrow-up'}}" src="../../../images/arrow-d.png"></image>
</view>
<view class="concat-list {{item.open ? 'list-open' : ''}}" >
<view class="info-item" wx:for="{{item.partnerInfos}}" wx:for-item="info" wx:key="index">
<view class=" acea-row row-middle">
<image src="{{info.logo}}"></image>
<view class="info2">
<view class="projectinfo-box acea-row-nowrap row-between">
<view class="acea-row row-middle line1" >
<view class="p-label">合作方:</view>
<view>{{info.name}}</view>
</view>
<view class="status" wx:if="{{info.comminuteState == 1}}">已申请</view>
<view class="status" wx:if="{{info.comminuteState == 2}}">等待立项</view>
<view class="status" wx:if="{{info.comminuteState == 3}}">项目成立中</view>
<view class="status" wx:if="{{info.comminuteState == 4}}">已取消立项</view>
</view>
<view class="tag-item" wx:if="{{info.comminuteState == 1}}">定金尾款</view>
</view>
</view>
<view class="btn-box acea-row row-between row-middle">
<view class="start-time">{{info.createTime}}项目开启</view>
<view class="btns acea-row">
<view class="btn-item" wx:if="{{info.comminuteState == 1 }}" bindtap="cancelCommunicate" data-info="{{info}}">取消沟通</view>
<view class="btn-item" wx:if="{{info.comminuteState == 2 || info.comminuteState == 3}}" bindtap="toCreateProject" data-item="{{info}}">查看立项书</view>
<view class="btn-item" wx:if="{{info.comminuteState == 2}}" bindtap="confirm" data-item="{{item}}" data-id="{{info.communicateId}}">确认立项</view>
<view class="btn-item default" wx:if="{{info.comminuteState == 2}}" bindtap="cancelProject" data-item="{{item}}" data-id="{{info.communicateId}}">取消立项</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="item" wx:if="{{tabActive != 1}}" wx:for="{{list}}" wx:key="index">
<view class="number acea-row row-between row-middle">
<text>项目编号 {{item.projectCode}}</text>
<!-- <view class="status">{{tabActive == 2 ? '进行中' : '已结束'}}</view> -->
<view class="status" wx:if="{{item.projectState != 5}}">{{tabActive == 1 ? '沟通中' : tabActive == 2 ? '进行中' : '已结束'}}</view>
<view class="status" wx:else>平台介入中</view>
</view>
<view class="info-box acea-row row-middle" >
<image src="{{item.projectResource.logo}}"></image>
<view class="info">
<view class="i-title line1">{{item.resourcesDto.title || item.projectResource.name}}</view>
<view class="tag-item">定金尾款</view>
<view class="i-desc" wx:if="{{tabActive == 1}}">{{item.resourcesDto.detailedDescription}}</view>
<view class="projectinfo-box">
<view class="acea-row row-middle" wx:if="{{tabActive != 1}}">
<view class="p-label">项目名称:</view>
<view>{{item.projectName}}</view>
</view>
<view class="acea-row row-middle line1" wx:if="{{tabActive != 1}}">
<view class="p-label">合作方:</view>
<view>{{item.partner}}</view>
</view>
</view>
</view>
</view>
<view class="progress-box" wx:if="{{ tabActive != 1 }}">
<view class="progress-item acea-row row-between row-middle" wx:for="{{item.stageResultsDtoList}}" wx:for-item="progress">
<view class="acea-row row-middle">
<image src="../../../images/home/progress.png"></image>
<text>{{progress.name}} ¥{{progress.money}}</text>
</view>
<view class="progress-status" wx:if="{{progress.state == 0 }}">未开始</view>
<view class="progress-status" wx:if="{{progress.state == 1 }}">申请开启</view>
<view class="progress-status" wx:if="{{progress.state == 2 }}">进行中</view>
<view class="progress-status colorO" wx:if="{{progress.state == 3 }}">已结束</view>
</view>
</view>
<view class="btn-box acea-row row-between row-bottom" wx:if="{{ tabActive != 1 }}">
<view class="start-time" wx:if="{{ tabActive == 2 }}">{{item.examineTime}}项目开启</view>
<view class="" wx:if="{{ tabActive == 3 }}">项目已圆满结束</view>
<view class="btns acea-row">
<view class="btn-item" wx:if="{{ tabActive == 2 && item.showBtn }}"bindtap="agreenOpen" data-item="{{item}}">同意开启</view>
<view class="btn-item" wx:if="{{ tabActive == 2 }}" bindtap="toPlatform" data-item="{{item}}">平台介入</view>
<view class="btn-item default" wx:if="{{ tabActive == 2 }}">同意交付</view>
<!-- <view class="btn-item" wx:if="{{ tabActive == 3 }}">合作反馈</view> -->
</view>
</view>
</view>
</view>
</view>