const JDLinkTpl = `<div class="cd-link-wrapper">
        <div class="link-content">
            
        </div>
        {{if addLink}}
            <a href="javascript:;" class="cd-add-link-btn J_add_link">
                <p class="cd-add-icon">+</p>
                <p class="cd-add-link-txt">添加导航</p>
            </a>
        {{/if}}
</div>`;
const JDLinkItemTpl = `<div class="link-item {{ if operation != true }}only-one{{/if}}">
    {{ if operation == true }}
    <div class="cd-operations">
        <p class="cd-link-mock-name J_lint_title">导航{{index}}</p>
        <div class="cd-operations-btns">
            {{if sorting == true}}
            <i class="cd-icons cd-icons-link-up icon J_up"></i>
            <i class="cd-icons cd-icons-link-down icon J_down"></i>
            {{/if}}
            <i class="cd-icons cd-icons-link-del icon J_del"></i>
        </div>
    </div>
    {{/if}}
    {{if hasPicUpload == true}}
    <div class="cd_link-pic-upload J_picUpload"></div>
    {{/if}}
    <div class="cd-link-info-wrapper">
        {{if linkName}}
        <input class="cd-link-name J_link_name" placeholder="导航名称" value="{{title}}" defValue="{{title}}">
        {{/if}}
        <div class="cd-link-info J_link_info">
            <input class="cd-link-value J_link_value" placeholder="链接地址" readonly value="{{if linkInfo.link}}{{linkInfo.link}}{{else}}{{if linkInfo. linkType==22}}pages/index/index.html{{/if}}{{if linkInfo.originalData && linkInfo.originalData.sceneType == 1}}价格促销{{/if}}{{if linkInfo.originalData && linkInfo.originalData.sceneType == 2}}时令节日{{/if}}{{if linkInfo.originalData && linkInfo.originalData.sceneType == 3}}内容营销{{/if}}{{if linkInfo.originalData && linkInfo.originalData.sceneType == 4}}人群定向{{/if}}{{/if}}">
            <div class="cd-link-icon J_tool">
                <i class="cd-icons cd-icons-link-icon"></i>
            </div>
            {{if linkInfo && linkInfo.originalData && linkInfo.originalData.projectId}}
             <a target="_blank" class="J_editScene" href="/editor/shop/m?mobileProjectId={{linkInfo.originalData.projectId}}">编辑导购页</a> 
            {{/if}}
        </div>
           
    </div>
    <div class="J_link_extends_node"></div>   
</div>`;
export {JDLinkTpl, JDLinkItemTpl};