export const tpl = `
    
    <div class="cd-coupon-content J_couponCotent">
        <form class="cd-top J_searchFrom">
            <!--sdkm中要屏蔽这部分ui-->
            {{ if !${window.page_data.isSDKM} }}
            <!--<input class="cd-text-input J_roleId" type="text" placeholder="请输入优惠券的roleId进行搜索">-->
            <input class="cd-text-input J_roleId" type="text" placeholder="请输入优惠券的putKey进行搜索">
            <div class="cd-search J_search cd-ok">搜索</div> 
            <div class="cd-restore J_restore cd-cancel">重置</div>
            <!--<a class="cd-link" href="//conecli.com/article/773.html" target="_blank">点击查看怎么获取roleId>></a>-->
            <a class="cd-link" href="//conecli.com/article/773.html" target="_blank">点击查看怎么获取putKey>></a>
            {{ /if }}
        </form>
        <div class="cd-table J_table">
        
        </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 = `
    {{ if selected }}
    <tr class="cd-disabled">
    {{else}}
    <tr>
    {{/if}}
        <td>
            <input {{ if selected }} disabled="disabled" {{/if}} {{if current}}checked="checked"{{/if}} class="cd-radio cd-simulink-radio" type="radio" data-link="{{link}}" data-original-data="{{putKey}}" name="couponLink">
            <span>{{putKey}}</span>
        </td>
        <td>{{name}}</td>
        <td>{{label}}</td>
        {{ if couponType == 2 }}
            <td>粉丝券</td>
        {{ else if couponType == 1 }}
            {{if bindType}}
                {{if bindType==1}}
                <td>店铺券</td>
                {{else}}
                <td>商品券</td>
                {{/if}}
            {{else}}
                <td>&nbsp&nbsp--</td>
            {{/if}}
        {{ /if }}
    </tr>
`