<view class="item" url="#">
    <view class="title">
        <view class="name">
            {{detail.workname}}
        </view>
        <view wx:if="{{detail.finished==1}}" style="color: #3874F6;">已完成</view>
        <view wx:else style="color:{{isFollow?'#52C41A':'#999999'}};">{{isFollow?'跟进中':'未开始'}}</view>
    </view>
    <view class="remarks">
        任务：{{detail.remarks}}
    </view>
</view>


<view class="box">
    <view class="title">任务内容</view>
    <view class="content">
        <view class="upload">
            <My_upload accept='media' binduploadCallback="insertImgEdit">
                <navigator url="#">
                    <text class="iconfont icon-a-tonggaofujian" />
                </navigator>
            </My_upload>
            <My_upload accept='file' binduploadCallback="insertImgEdit">
                <navigator url="#">
                    <text class="iconfont icon-a-biaoqianlanzhiku" />
                </navigator>
            </My_upload>
        </view>

        <textarea class="textarea" placeholder='请填写' value="{{detail.notes}}" bindinput='onInput' />

    </view>
    <Files files='{{files}}' binddeleteFile='deleteFile' />
</view>

<view style="height: 130rpx;" />
<view class="footer">
    <van-button custom-class='but' disabled='{{isSubmit || detail.finished==1}}' bind:click="submit">提交</van-button>
    <van-button custom-class='but' disabled='{{!detail.notes || !isFollow}}' bind:click="save">保存</van-button>
</view>