<?xml version="1.0" encoding="UTF-8"?> <!-- $Date: 2018/9/2 微件-商业伙伴收藏夹 WIDGET-BP-FAV --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure/> <a:view template="default" package="leaf.ui.std"> <style> html,body{ width:360px; height:360px; margin: 0; padding: 0; color:#000; } .widget_bp_fav{ box-sizing:border-box; width:360px; height:360px; background-color:#fff; position:relative; border:1px solid #F0F0F3; user-select:none; cursor:default; } .widget_bp_fav .widget_label{ position:absolute; width:40px; height:4px; top:0; left:16px; background-color:#5A7FFF; } .widget_bp_fav .row1{ position:relative; height:20px; line-height:20px; margin:16px 0 9px 16px; font-family: PingFangSC-Medium; font-size: 14px; color: rgba(75,80,90,0.85); letter-spacing: 0; border-bottom:1px solid #F0F0F3; } .widget_bp_fav .hls-pagging-grid{ width:100%; height:312px; -webkit-box-shadow:none; box-shadow:none; } .widget_bp_fav .hls-pagging-grid .grid-title{ display:none; } .widget_bp_fav .hls-pagging-grid .grid-body{ padding:0; } .widget_bp_fav .hls-pagging-grid .hls-table>tr:first-child{ display:none; } .widget_bp_fav .hls-pagging-grid .hls-table tbody tr:first-child{ height:48px; border-top:1px solid #F0F0F3; } .widget_bp_fav .hls-pagging-grid .hls-table tr{ height:48px; font-family: PingFangSC-Medium; font-size: 12px; color: rgba(93,97,103,0.85); letter-spacing: 0; border-bottom:1px solid #F0F0F3; } .widget_bp_fav .hls-pagging-grid .hls-table tr:hover{ background: rgba(90,127,255,0.08); } .widget_bp_fav .hls-pagging-grid .hls-table-active{ background: rgba(90,127,255,0.08); } .widget_bp_fav .hls-pagging-grid .grid-foot{ height: 36px; margin-top:0; line-height:36px; } </style> <script><![CDATA[ function bp_cancel_fav_renderer(record,index){ return 'kkk' } ]]></script> <a:dataSets> <a:dataSet id="widget_bp_fav_ds" autoQuery="true" pageSize="5" model="bp.bp_new_add" > <a:fields> <a:field name="bp_name"/> <a:field name="name"/> <a:field name="legal_person"/> <a:field name="status"/> </a:fields> <a:events> <a:event name="load" handler="myContLoader"/> </a:events> </a:dataSet> </a:dataSets> <div class="widget_bp_fav"> <span class="widget_label"> </span> <div class="row1">收藏夹</div> <a:hapGrid id="widget_bp_fav_grid" bindTarget="widget_bp_fav_ds" canWheel="true"> <a:columns> <a:column name="bp_name" prompt="商业伙伴名称"/> <a:column name="bp_category_n" prompt="类型"/> <a:column template="bp_cancel_fav_renderer" prompt="取消收藏"/> </a:columns> </a:hapGrid> </div> <a:screenBody style="display:none"> </a:screenBody> </a:view> </a:screen>