微信小程序开发指南

基于ColorUI的组件化页面开发


案例类卡片

<h1>案例类卡片</h1> <ul> <li>样式图例</li> </ul> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=e0791d8bf6480a29041ec06017559778&amp;file=file.png" alt="" /></p> <ul> <li>示例代码</li> </ul> <pre><code class="language-html">&lt;view class="cu-card case {{isCard?'no-card':''}}"&gt; &lt;view class="cu-item shadow"&gt; &lt;view class="image"&gt; &lt;image src="https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg" mode="widthFix"&gt;&lt;/image&gt; &lt;view class="cu-tag bg-blue"&gt;史诗&lt;/view&gt; &lt;view class="cu-bar bg-shadeBottom"&gt; &lt;text class="text-cut"&gt;我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。&lt;/text&gt; &lt;/view&gt; &lt;/view&gt; &lt;view class="cu-list menu-avatar"&gt; &lt;view class="cu-item"&gt; &lt;view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg);"&gt;&lt;/view&gt; &lt;view class="content flex-sub"&gt; &lt;view class="text-grey"&gt;正义天使 凯尔&lt;/view&gt; &lt;view class="text-gray text-sm flex justify-between"&gt; 十天前 &lt;view class="text-gray text-sm"&gt; &lt;text class="cuIcon-attentionfill margin-lr-xs"&gt;&lt;/text&gt; 10 &lt;text class="cuIcon-appreciatefill margin-lr-xs"&gt;&lt;/text&gt; 20 &lt;text class="cuIcon-messagefill margin-lr-xs"&gt;&lt;/text&gt; 30 &lt;/view&gt; &lt;/view&gt; &lt;/view&gt; &lt;/view&gt; &lt;/view&gt; &lt;/view&gt; &lt;/view&gt;</code></pre>

页面列表

ITEM_HTML