1.打开解压下载的图标资源文件
image.png
2.cmd 进入该目录
npm install -g iconfont-tools
执行完成执行
iconfont-tools
3.一直选默认 生成 iconfont-weapp文件
image.png
4.在app.vue中导入 (/static/iconfont :是我自己的目录 )
<style lang="scss">
@import "/static/iconfont/iconfont-weapp-icon.css";
</style>
5.页面内使用 //t-icon-shenpizhongxin 名字需要自己打开自己资源文件对照用 默认生成一般前面加 t-
<view class="t-icon t-icon-shenpizhongxin"></view>