<view class="box">
    <view class="label"><text>*</text>跟进时间：</view>
    <view class="time">{{time}}</view>
    <view class="label"><text>*</text>本次跟进方式：</view>
    <view class="selector" bindtap="selectWay">
        <view>{{content.followupmode?content.followupmode:'请选择'}}</view>
        <van-icon name="arrow-down" />
    </view>

    <view class="label"><text>*</text>本次跟进结果：</view>
    <view class="results" bindtap="changeType">
        <view class="{{content.logtype=='继续跟进'?'op':''}}" data-name="继续跟进">继续跟进</view>
        <view class="{{content.logtype=='预约到店'?'op':''}}" data-name="预约到店">预约到店</view>
        <view class="{{content.logtype=='互加微信'?'op':''}}" data-name="互加微信">互加微信</view>
    </view>
    <view class="label"><text>*</text>本次跟进内容</view>
    <textarea value='{{content.content}}' class="textarea selector" data-label="content" bind:input="inputChange" placeholder="请描述跟进情况及内容" />
</view>


<view style="height: 140rpx;" />
<view class="footer-but">
    <van-button custom-class='button' disabled='{{disabled}}' bindtap="submit" loading='{{loading}}' loading-text="保存中...">确定</van-button>
</view>

<van-action-sheet show="{{ actionShow }}" actions="{{ actions }}" cancel-text="取消" bind:close="selectWay" bind:cancel='selectWay' bind:select="onSelect" />

<wxs module="text">
    module.exports.type = function (str) {
        var text = '';
        switch (str) {
            case "跟进":
                text = '本次跟进内容：'
                break;
            case "成交":
                text = '添加备注：'
                break;
            case "丢单":
                text = '丢单原因：'
                break;
            case "无效":
                text = '无效原因：'
                break;
        }
        return text
    }
    module.exports.typeNote = function (str) {
        var text = '';
        switch (str) {
            case "跟进":
                text = '请描述跟进情况及内容'
                break;
            case "成交":
                text = '请填写备注'
                break;
            case "丢单":
                text = '请填写丢单原因'
                break;
            case "无效":
                text = '请填写无效原因'
                break;
        }
        return text
    }
</wxs>