首页 > 编程知识 正文

免费微信小程序模板库,微信模板

时间:2023-05-05 08:45:34 阅读:149439 作者:4187

1 .模板文件的地址pagespublicpublic.wxml

2 .模板文件的代码

template name=' staff name ' view first name/view/template3.导入和使用模板文件

! -index.wxml----! -导入模板文件--import src=' ./public/public.wxml '/view class=' container ' view class=' userinfo ' button wx 330 取得' open-type=' get userinfo ' bindgetuserinfo=' get userinfo '头像的昵称/buttonblockwx : elseimagebindtap=' bindviewtap ' class=' userinfo-avatar ' src=' { userinfo.avatar URL } ' mode imagetextclass=' userinfo-nickname ' { userinfo.nickname }/text/block/viewviewclass=' user motto ' text clask -使用模板文件--template is=' staff name ' data=' { . staffa } }/templatetemplateis=' staff name ' data={ . staff name } 使用的templatetemplateis=' staff name ' data=' { . staffc } '/template/viewimportsrc=' ./public/public.wxml '

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。