const JDTabTpl = 
`<div class="cd-tab-container">
    <div class="cd-tab-modes J_tabCate"></div>
    <div class="cd-tab-modes cd-type-{{tabType}} J_tabType "></div>
    {{if(tabType==2 && platForm == 'M')}}<div style="margin-bottom:10px;" class="cd-tips">支持高度135px，宽度自定义，jpg或png格式图片</div>{{/if}}
    <div class="cd-tab-formset J_tab_formset">
        <div class="cd-type-{{tabType}} cd-isbi-{{configType}}" id="J_tab_content"></div>
        <div class="J_addTabBtn cd-add-tab-btn">
            <p class="cd-add-icon">+</p>
            <p class="cd-add-tab-txt">添加Tab<span class="cd-tab-num J_tab_num">{{tabItemList.length + 1}}</span>/<span class="J_max_tab_num">{{maxTabNum}}</span></p>
        </div>
    </div>
    <div class="tab-error-tips">请先完成编辑再进行此操作</div>
</div>`;
const JDTabItemTpl = `
{{each tabItemList item index}}
    <div class="J_tabItem cd-tab-item-container {{if addNewitem}}cd-show-detail{{/if}}" tab-item="{{item}}">
        <div class="cd-tab-panel">
            <div class="cd-tab-show-info">
                <div class="cd-tab-title">
                    Tab{{startIndex+index+1}}
                </div>
                <div class="cd-tab-main-des">
                    <div class="cd-tab-show-name J_show_name">{{item.title}}</div>
                    <div class="cd-tab-img"><img class="J_show_default_img" src="{{item.defaultImageUrl}}" current_img="{{item.selectedImageUrl}}"/></div>
                    <div class="cd-tab-time J_show_range">
                        <p class="cd-time-line {{if !item.startTime}}cd-hide{{/if}}">起 <span class="J_show_start_time">{{item.startTime | dateFormart 'YYYY-MM-DD HH:mm:ss'}}</span></p>
                        <p class="cd-time-line {{if !item.endTime}}cd-hide{{/if}}">止 <span class="J_show_end_time">{{item.endTime | dateFormart 'YYYY-MM-DD HH:mm:ss'}}</span></p>
                    </div>
                    <div class="cd-tab-bi J_biClass" {{if item.biConfig}}back-data="{{item.biConfig.biCategoryList}}"{{/if}}>
                        {{if item.biConfig && item.biConfig.biCategoryList}}
                        {{set biItem = item.biConfig.biCategoryList}}
                            {{if biItem[0]}}<div>BI分类：<span>{{biItem[0].firstName}}{{if biItem[0].secondName}}/{{biItem[0].secondName}}{{/if}}{{if biItem[0].thirdName}}/{{biItem[0].thirdName}}{{/if}}</span>{{if biItem.length > 1}}({{biItem.length}}){{/if}}</div>{{/if}}
                        {{/if}}
                    </div>
                    <p class="cd-tab-show-module J_show_moduleName" back-data="{{item.subModuleInfoList}}">
                        {{each item.subModuleInfoList subItem index}}
                            {{if index > 0}}、{{/if}}{{subItem.moduleName}}
                        {{/each}}
                    </p>
                    <a href="javascript:void(0);" class="cd-tab-edit J_tabEdit">编辑</a>
                </div>
            </div>
            <div class="cd-tab-operate">
                <a href="javascript:void(0);" class="J_tabGoUp"><span class="cd-icons cd-icons-link-up"></span></a>
                <a href="javascript:void(0);" class="J_tabGoDown"><span class="cd-icons cd-icons-link-down"></span></a>
                <a href="javascript:void(0);" class="J_tabRemove"><span class="cd-icons cd-icons-link-del"></span></a>
            </div>
        </div>
        <div class="J_tabItemDetail cd-tab-item-detail">
            <div class="cd-tab-content-title J_tab_content_title_val"></div>
            <div class="cd-tab-content-img">
                <p class="cd-content-label">默认图片<span>（必填）</span></p>
                <div class="cd-defimg J_defaultImg" originData="{{item.defaultImageUrl}}"></div>
                <p class="cd-content-label">选中图片<span>（必填）</span></p>
                <div class="cd-curimg J_currentImg" originData="{{item.selectedImageUrl}}"></div>
            </div>
            <div class="cd-tab-content-time J_rangeTime"></div>
            <div class="cd-tab-biinfo J_tabBIconfig"></div>
            <div class="cd-tab_modules J_tab_module_list"></div>
            <div class="cd-tab-control">
                <a href="javascript:void(0);" class="cd-tab-cancel J_cancel">放弃编辑</a>
                <a href="javascript:void(0);" class="cd-tab-done J_done">完成编辑</a>
            </div>
        </div>
    </div>
{{/each}}`;
export {JDTabTpl, JDTabItemTpl};