<gsb-h5page2>
  <gsb-h5nav ref="navref" slot="nav" title="需求信息" isback="true"></gsb-h5nav>
<div v-if="showList" style="margin-top:100px">
    <el-card shadow="never" style="border-left:none;border-right:none;border-radius:0px;background-color:#2c3e50;color:#eee;height:100%;"  v-for="chance in chancelist">
      <div style="line-height:20px" @click="showDetail(chance)">
        <span><b>名称：</b>{{chance.chanceTypeName}}</span><br/>
        <span><b>状态：</b>{{chance.chanceStatusName}}</span><br/>
        <span><b>发布时间：</b>{{new Date(chance.created_at).toLocaleString()}}</span><br/>
        <div style="clear:both"></div>
      </div>
    </el-card>
  <div  style="position:fixed;left:0px;margin:0px;bottom:2px;width:100%;">
     <div style="float:left;margin-left:25px"><gsb-backbtn2 circle><i class="el-icon-arrow-left"></i></gsb-backbtn2></div>
  </div>
</div>
<div v-else>
  <el-card  class="box-card" style="border:none;margin-top:50px;background-color:#2c3e50;color:#eee">
    <div>
      <el-form :model="chanceInfo" label-width="80px">
        <el-form-item label="名称">
          <el-input disabled v-model="chanceInfo.chanceTypeName"></el-input>
        </el-form-item>
        <el-form-item label="状态">
          <el-input disabled v-model="chanceInfo.chanceStatusName"></el-input>
        </el-form-item>
        <el-form-item label="发布人">
          <el-input disabled v-model="chanceInfo.publisherName"></el-input>
        </el-form-item>
        <el-form-item label="发布时间">
          <el-input disabled v-model="new Date(chanceInfo.created_at).toLocaleString()"></el-input>
        </el-form-item>
        <el-form-item label="跟进人">
          <el-input disabled v-model="chanceInfo.followManName"></el-input>
        </el-form-item>
        <el-form-item label="跟进电话">
          <el-input disabled v-model="chanceInfo.followManMobile"></el-input>
        </el-form-item>
        <el-form-item label="跟进时间">
          <el-input disabled v-if="chanceInfo.followTime" v-model="new Date(chanceInfo.followTime).toLocaleString()"></el-input>
          <el-input disabled v-else></el-input>
        </el-form-item>
        <el-form-item label="评价">
          <gsb-radiogroup v-model="chanceInfo.chanceEvaluation"    dicKey="service_evaluation"></gsb-radiogroup>
        </el-form-item>
      </el-form>
    </div>
    <div  style="position:fixed;left:0px;margin:0px;bottom:2px;width:100%;">
       <div style="float:left;margin-left:20px"><el-button circle @click="function(){showList=true;}"><i class="el-icon-arrow-left"></i></el-button></div>
       <div style="text-align:right" v-if="chanceInfo.chanceStatus!=\'8\' && chanceInfo.chanceStatus!=\'completed\'">
           <el-button circle @click="chanceSubmit"><i class="fa fa-floppy-o" aria-hidden="true"></i></el-button>
           <el-button circle @click="closeChance" icon="el-icon-circle-close-outline"></el-button>
           <el-button circle @click="function(){showList=true;}"><i class="fa fa-ban" aria-hidden="true"></i></el-button>
       </div>
    </div>
  </el-card>
</div>
</gsb-h5page2>
