微信小程序weui在线入门教程-WeUi基础组件-panel面板

灰太狼 2024-02-19 15:49 79阅读 0赞

效果图

微信小程序交流群:111733917 | 微信小程序从0基础到就业的课程:https://edu.csdn.net/topic/huangjuhua
微信小程序weui在线入门教程-WeUi基础组件-panel面板
微信小程序weui在线入门教程-WeUi基础组件-panel面板
微信小程序weui在线入门教程-WeUi基础组件-panel面板

wxml代码

  1. <view class="page">
  2. <view class="page__hd">
  3. <view class="page__title">Panel</view>
  4. <view class="page__desc">面板</view>
  5. </view>
  6. <view class="page__bd">
  7. <view class="weui-panel weui-panel_access">
  8. <view class="weui-panel__hd">图文组合列表</view>
  9. <view class="weui-panel__bd">
  10. <navigator url="" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
  11. <view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
  12. <image class="weui-media-box__thumb" src="/images/pic_160.png" />
  13. </view>
  14. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  15. <view class="weui-media-box__title">标题一</view>
  16. <view class="weui-media-box__desc">由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。</view>
  17. </view>
  18. </navigator>
  19. <navigator url="" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
  20. <view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
  21. <image class="weui-media-box__thumb" src="/images/pic_160.png" />
  22. </view>
  23. <view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
  24. <view class="weui-media-box__title">标题二</view>
  25. <view class="weui-media-box__desc">由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。</view>
  26. </view>
  27. </navigator>
  28. </view>
  29. <view class="weui-panel__ft">
  30. <view class="weui-cell weui-cell_access weui-cell_link">
  31. <view class="weui-cell__bd">查看更多</view>
  32. <view class="weui-cell__ft weui-cell__ft_in-access"></view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="weui-panel weui-panel_access">
  37. <view class="weui-panel__hd">文字组合列表</view>
  38. <view class="weui-panel__bd">
  39. <view class="weui-media-box weui-media-box_text">
  40. <view class="weui-media-box__title weui-media-box__title_in-text">标题一</view>
  41. <view class="weui-media-box__desc">由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。</view>
  42. </view>
  43. <view class="weui-media-box weui-media-box_text">
  44. <view class="weui-media-box__title weui-media-box__title_in-text">标题二</view>
  45. <view class="weui-media-box__desc">由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。</view>
  46. </view>
  47. </view>
  48. <view class="weui-panel__ft">
  49. <view class="weui-cell weui-cell_access weui-cell_link">
  50. <view class="weui-cell__bd">查看更多</view>
  51. <view class="weui-cell__ft weui-cell__ft_in-access"></view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="weui-panel">
  56. <view class="weui-panel__hd">小图文组合列表</view>
  57. <view class="weui-panel__bd">
  58. <view class="weui-media-box weui-media-box_small-appmsg">
  59. <view class="weui-cells weui-cells_in-small-appmsg">
  60. <navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
  61. <view class="weui-cell__hd">
  62. <image src="/images/pic_160.png" style="width: 20px;height: 20px;margin-right: 5px" />
  63. </view>
  64. <view class="weui-cell__bd weui-cell_primary">
  65. <view>文字标题</view>
  66. </view>
  67. <view class="weui-cell__ft weui-cell__ft_in-access"></view>
  68. </navigator>
  69. <navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
  70. <view class="weui-cell__hd">
  71. <image src="/images/pic_160.png" style="width: 20px;height: 20px;margin-right: 5px" />
  72. </view>
  73. <view class="weui-cell__bd weui-cell_primary">
  74. <view>文字标题</view>
  75. </view>
  76. <view class="weui-cell__ft weui-cell__ft_in-access"></view>
  77. </navigator>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="weui-panel">
  83. <view class="weui-panel__hd">文字列表附来源</view>
  84. <view class="weui-panel__bd">
  85. <view class="weui-media-box weui-media-box_text">
  86. <view class="weui-media-box__title weui-media-box__title_in-text">标题一</view>
  87. <view class="weui-media-box__desc">由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。</view>
  88. <view class="weui-media-box__info">
  89. <view class="weui-media-box__info__meta">文字来源</view>
  90. <view class="weui-media-box__info__meta">时间</view>
  91. <view class="weui-media-box__info__meta weui-media-box__info__meta_extra">其它信息</view>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>

欢迎大家学习我的视频教程:微信小程序-WeUI界面布局设计入门到精通
微信小程序-WeUI界面布局设计入门到精通

发表评论

表情:
评论列表 (有 0 条评论,79人围观)

还没有评论,来说两句吧...

相关阅读