export const tpl = `
    <div class="cd-miniapp-link-content">
        <div class="cd-table ">
            <div class="cd-common-table">
                <div class="cd-table-thead J_table-thead">
                <table cellspacing="0" cellpadding="0">
                <thead>
                    <tr><th class="col1">选择小程序页面</th><th class="col2">小程序ID</th><th class="col-other">来源</th><th class="col-other">小程序Logo</th><th class="col-other">小程序二维码</th></tr>
                </thead>
                </table>
                </div>
                <div class="cd-table-body J_table cd-link-list">
                </div>
            </div>
        </div>
        <div class="cd-footer">
            <p class="cd-text">如配置了店铺二级页、自定义链接，仅支持松果站内的跳转，暂不支持微信松果购物小程序内的跳转，望悉知，谨慎配置。</p>
            <div class="cd-cancel J_cancel">取消</div>
            <div class="cd-ok J_ok">确定</div>
        </div>
    </div>
`
export const tbodyTpl = `
    <div class="cd-row-item J_rowItem" data-appId="{{appId}}">
        <div class="cd-fir-cate J_firCate">
            <span class="cd-cid col1 J_cid">
                <div class="cd-cid-content">
                    {{if !hasSubOptions}}<input class="cd-simulink-radio" type="radio" name="oftenLink" data-link='//conecli.com/apps/mpshare/index.html?category=jump&des=jdmp&vapptype=1&appId={{appId}}' data-original-data='{"appId":"{{appId}}","vappType":"1"}'>{{/if}}
                    <span class="cd-name">{{name}}</span>
                    {{if hasSubOptions}}
                    <i class="cd-arrow-icon J_arrow" data-appId="{{appId}}"></i>
                    {{/if}}
                </div>
            </span>
            <span class="cd-source col2"><span class="cd-appid-text">{{appId}}</span><a data-appid="{{appId}}" class="cd-copy-id J_copyId" href="javascript:;">复制</a></span>
            <span class="cd-source col-other">{{channelName}}</span>
            <span class="col-other"><img class="cd-logo" src="//img10.360buyimg.com/n1/{{appLogo}}"/></span>
            <span class="col-other"><img class="cd-qr-code" src="{{qrcode}}"/></span>
        </div>
    </div>
`
export const subOptionsTpl = `
<ul class="cd-sec-cates J_secCates">
    {{each data item}}
    <li class="cd-sec-cate J_secCate">
        <input class="cd-simulink-radio" type="radio" name="oftenLink" data-appId="{{item.appId}}" data-link='//conecli.com/apps/mpshare/index.html?category=jump&des=jdmp&vapptype=1&appId={{item.appId}}&path=pages/{{item.pageType == 1 ? "home":"other"}}/index.html&param={"projectId":"{{item.projectId}}","pageType":"{{item.pageType == 1 ? "home":"other"}}","vapptype":"1","dataType":"online"}'  data-original-data='{"appId":"{{item.appId}}","pageId":{{item.pageId}},"projectId":{{item.projectId}},"pageType":"{{item.pageType}}","vappType":"1"}'>
        <span class="cd-cid">{{item.pageId}} {{item.name}}</span>
    </li>
    {{/each}}
</ul>
`