Bring their own icon
<view class="container">
<view class="icon-box">
<icon class="icon-box-img" type="success" size="93"></icon>
<view class="icon-box-ctn">
<view class="icon-box-title">successful</view>
<view class="icon-box-desc">Indicates that the operation is successfully completed</view>
</view>
</view>
<view class="icon-box">
<icon class="icon-box-img" type="info" size="93"></icon>
<view class="icon-box-ctn">
<view class="icon-box-title">prompt</view>
<view class="icon-box-desc">Used to indicate information prompt; It is also used to intercept operations that lack conditions to prompt the user for the information they need</view>
</view>
</view>
<view class="icon-box">
<icon class="icon-box-img" type="warn" size="93" color="#C9C9C9"></icon>
<view class="icon-box-ctn">
<view class="icon-box-title">Common warning</view>
<view class="icon-box-desc">Used to indicate that the operation will cause some consequences; Also used to indicate a negative result due to system reasons</view>
</view>
</view>
<view class="icon-box">
<icon class="icon-box-img" type="warn" size="93"></icon>
<view class="icon-box-ctn">
<view class="icon-box-title">Strong warnings</view>
<view class="icon-box-desc">Used to indicate negative results due to user reasons; It is also used when an operation would result in irretrievably serious consequences</view>
</view>
</view>
<view class="icon-box">
<icon class="icon-box-img" type="waiting" size="93"></icon>
<view class="icon-box-ctn">
<view class="icon-box-title">Waiting for the</view>
<view class="icon-box-desc">Used to indicate waiting and inform the user that the result is waiting</view>
</view>
</view>
<view class="icon-box">
<view class="icon-small-wrp">
<icon class="icon-small" type="success_no_circle" size="23"></icon>
</view>
<view class="icon-box-ctn">
<view class="icon-box-title">Multiple selection control icon _ Selected</view>
<view class="icon-box-desc">Used in multiple selection controls to indicate that the item has been selected</view>
</view>
</view>
<view class="icon-box">
<view class="icon-small-wrp">
<icon class="icon-small" type="circle" size="23"></icon>
</view>
<view class="icon-box-ctn">
<view class="icon-box-title">Multi-select control icon _ Not selected</view>
<view class="icon-box-desc">Used in a multiple selection control to indicate that the item is available for selection but not yet selected</view>
</view>
</view>
<view class="icon-box">
<view class="icon-small-wrp">
<icon class="icon-small" type="warn" size="23"></icon>
</view>
<view class="icon-box-ctn">
<view class="icon-box-title">Error message</view>
<view class="icon-box-desc">Used to indicate an error in a form</view>
</view>
</view>
<view class="icon-box">
<view class="icon-small-wrp">
<icon class="icon-small" type="success" size="23"></icon>
</view>
<view class="icon-box-ctn">
<view class="icon-box-title">Radio control icon _ selected</view>
<view class="icon-box-desc">Used in a radio control to indicate that the item is selected</view>
</view>
</view>
<view class="icon-box">
<view class="icon-small-wrp">
<icon class="icon-small" type="download" size="23"></icon>
</view>
<view class="icon-box-ctn">
<view class="icon-box-title">download</view>
<view class="icon-box-desc">Used to indicate downloadability</view>
</view>
</view>
<view class="icon-box">
<view class="icon-small-wrp">
<icon class="icon-small" type="info_circle" size="23"></icon>
</view>
<view class="icon-box-ctn">
<view class="icon-box-title">prompt</view>
<view class="icon-box-desc">Used to indicate an informational prompt in a form</view>
</view>
</view>
<view class="icon-box">
<view class="icon-small-wrp">
<icon class="icon-small" type="cancel" size="23"></icon>
</view>
<view class="icon-box-ctn">
<view class="icon-box-title">To stop or close.</view>
<view class="icon-box-desc">Used in forms to close or stop</view>
</view>
</view>
<view class="icon-box">
<view class="icon-small-wrp">
<icon class="icon-small" type="search" size="14"></icon>
</view>
<view class="icon-box-ctn">
<view class="icon-box-title">search</view>
<view class="icon-box-desc">Used in a search control to indicate that it is searchable</view>
</view>
</view>
</view>
Copy the code
Ali icon library to download the use of local, decompressed out of a folder, there is a file name iconfont. CSS, edit and copy the content
@font-face {font-family: "iconfont";
src: url('iconfont.eot? t=1537179845858'); /* IE9*/
src: url('iconfont.eot? t=1537179845858#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff; charset=utf-8; base64,d09GRgABAAAAAArkAAsAAAAAD/gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8d0ofY 21hcAAAAYAAAACqAAACPBvG7INnbHlmAAACLAAABkIAAAiQZVCaKmhlYWQAAAhwAAAAMQAAADYT3IeGaGhlYQAACKQAAAAeAAAAJAkRBMBobXR4AAAIxAAAA C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FNT/c4UBAvTPX FO6stJ5Ok+BPV8bUnV0K27LnpQ0kV7NSRKyQl7WtlRC6gE2ZVeOEXpc0Yk/KGdI/wAJWm7IAAAAeJxtykEOgjAQheGZioW2eBQ27lx7ktGSdhLtSC0BPL0lb v0XL3nJBwp+WfhfjwoP2OARNbbYoUGLDns8gaOcZRkyh1jU+dLdo6TwiezCTGmbF3mOSRdemZKR7Mc8kPdaXoUl2d08eKvbThXcSMxaz45Dc6V3BPgCxaIiz g==') format('woff'),
url('iconfont.ttf? t=1537179845858') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('iconfont.svg? t=1537179845858#iconfont') format('svg'); / * iOS 4.1 - * /
}
.iconfont {
font-family:"iconfont"! important; font-size:16px; font-style:normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .icon-arrow-right:before {content: "\e601"; }
.icon-29:before { content: "\e61a"; }
.icon-chongzhi:before { content: "\e614"; }
.icon-guanyuwomen:before { content: "\e61f"; }
.icon-tixian:before { content: "\e649"; }
.icon-order-add:before { content: "\e747"; }
.icon-option:before { content: "\e60b"; }
.icon-guanliyuan:before { content: "\e600"; }
.icon-qianbao:before { content: "\e64a"; }
.icon-xuanxiang:before { content: "\e7ea"; }
.icon-Cash:before { content: "\e611"; }
Copy the code
Open wechat developer tools, find app.wxss, paste the content just copied into the following reference icon icon in WXML, for example, reference icon-guanliyuan:before this is an administrator icon
<icon class="icon-guanliyuan:before"></icon>
Copy the code