小程序 小程序列表模板

女爷i 2022-12-15 02:19 290阅读 0赞

小程序列表模板

今天做小程序列表页面 百度搜了一圈也没有一个模板 今天花了两个小时自己做了一个
放图 ! 中间的隔离线在手机显示的时候颜色比较浅 截图上面显示的比较深
在这里插入图片描述
数据是死的 弄成活的写for就可以了
WXML代码

  1. <image class="imgs" src="http://pic.616pic.com/bg_w1180/00/03/32/ZMmnErVcVd.jpg!/fw/1120"></image>
  2. <!--账号-->
  3. <view class="inputView">
  4. <image class="nameImage" src="../imgs/sosuo.png"></image>
  5. <label class="loginLab">搜索</label>
  6. <input class="inputText" placeholder="请输入申请人" bindinput="phoneInput" />
  7. </view>
  8. <view class="view">
  9. <!-- 隔离线 -->
  10. <view class="divLine1"></view>
  11. <text>\n</text>
  12. <view>
  13. <text class="text1"> 申请人</text>
  14. <text class="applicant"> 马云</text>
  15. </view>
  16. <view>
  17. <text class="text3"> 执行人</text>
  18. <text class="executor"> 马化腾</text>
  19. </view>
  20. <!-- 分割线 -->
  21. <view class="divLine"></view>
  22. <view></view>
  23. <view>
  24. <text class="text2"> 结束时间 </text>
  25. <text class="endtime">2020-10-14 10:09:33</text>
  26. </view>
  27. <!-- 隔离线 -->
  28. <view class="divLine1"></view>
  29. </view>
  30. <view class="view">
  31. <!-- 隔离线 -->
  32. <view class="divLine1"></view>
  33. <text>\n</text>
  34. <view>
  35. <text class="text1"> 申请人</text>
  36. <text class="applicant"> 马云</text>
  37. </view>
  38. <view>
  39. <text class="text3"> 执行人</text>
  40. <text class="executor"> 马化腾</text>
  41. </view>
  42. <!-- 分割线 -->
  43. <view class="divLine"></view>
  44. <view></view>
  45. <view>
  46. <text class="text2"> 结束时间 </text>
  47. <text class="endtime">2020-10-14 10:09:33</text>
  48. </view>
  49. <!-- 隔离线 -->
  50. <view class="divLine1"></view>
  51. </view>
  52. <view class="view">
  53. <!-- 隔离线 -->
  54. <view class="divLine1"></view>
  55. <text>\n</text>
  56. <view>
  57. <text class="text1"> 申请人</text>
  58. <text class="applicant"> 马云</text>
  59. </view>
  60. <view>
  61. <text class="text3"> 执行人</text>
  62. <text class="executor"> 马化腾</text>
  63. </view>
  64. <!-- 分割线 -->
  65. <view class="divLine"></view>
  66. <view></view>
  67. <view>
  68. <text class="text2"> 结束时间 </text>
  69. <text class="endtime">2020-10-14 10:09:33</text>
  70. </view>
  71. <!-- 隔离线 -->
  72. <view class="divLine1"></view>
  73. </view>
  74. <view class="view">
  75. <!-- 隔离线 -->
  76. <view class="divLine1"></view>
  77. <text>\n</text>
  78. <view>
  79. <text class="text1"> 申请人</text>
  80. <text class="applicant"> 马云</text>
  81. </view>
  82. <view>
  83. <text class="text3"> 执行人</text>
  84. <text class="executor"> 马化腾</text>
  85. </view>
  86. <!-- 分割线 -->
  87. <view class="divLine"></view>
  88. <view></view>
  89. <view>
  90. <text class="text2"> 结束时间 </text>
  91. <text class="endtime">2020-10-14 10:09:33</text>
  92. </view>
  93. <!-- 隔离线 -->
  94. <view class="divLine1"></view>
  95. </view>
  96. <view class="view">
  97. <!-- 隔离线 -->
  98. <view class="divLine1"></view>
  99. <text>\n</text>
  100. <view>
  101. <text class="text1"> 申请人</text>
  102. <text class="applicant"> 马云</text>
  103. </view>
  104. <view>
  105. <text class="text3"> 执行人</text>
  106. <text class="executor"> 马化腾</text>
  107. </view>
  108. <!-- 分割线 -->
  109. <view class="divLine"></view>
  110. <view></view>
  111. <view>
  112. <text class="text2"> 结束时间 </text>
  113. <text class="endtime">2020-10-14 10:09:33</text>
  114. </view>
  115. <!-- 隔离线 -->
  116. <view class="divLine1"></view>
  117. </view>

WXSS

  1. .imgs{
  2. width: 803rpx;
  3. height: 390rpx;
  4. }
  5. /*分割线样式*/
  6. .divLine{
  7. background: #E0E3DA;
  8. width: 100%;
  9. height: 5rpx;
  10. position: relative;
  11. top: -13rpx;
  12. left: -1rpx;
  13. }
  14. /*隔离线样式*/
  15. .divLine1{
  16. /* background: rgb(193, 190, 190); */
  17. background: #edeeec;
  18. width: 99%;
  19. height: 14rpx;
  20. }
  21. .view{
  22. position: relative;
  23. top: -85rpx;
  24. left: 4rpx;
  25. }
  26. .text1{
  27. font-family:Microsoft YaHei;
  28. position: relative;
  29. top: -44rpx;
  30. left: 51rpx;
  31. font-size: 30rpx;
  32. }
  33. .text3{
  34. font-family:Microsoft YaHei;
  35. position: relative;
  36. top: -27rpx;
  37. left: 51rpx;
  38. font-size: 30rpx;
  39. }
  40. .text2{
  41. font-family:Microsoft YaHei;
  42. position: relative;
  43. top: -8rpx;
  44. left: 36rpx;
  45. font-size: 30rpx;
  46. }
  47. .applicant{
  48. font-family: Microsoft YaHei;
  49. position: relative;
  50. top: -46rpx;
  51. left: 405rpx;
  52. font-size: 30rpx;
  53. }
  54. .executor{
  55. font-family:Microsoft YaHei;
  56. position: relative;
  57. top: -27rpx;
  58. left: 393rpx;
  59. font-size: 30rpx;
  60. }
  61. .endtime{
  62. font-family:Microsoft YaHei;
  63. position: relative;
  64. top: -3rpx;
  65. left: 230rpx;
  66. font-size: 30rpx;
  67. }
  68. /* 输入框 11*/
  69. .inputView {
  70. background-color: #fff;
  71. line-height: 41px;
  72. position: relative;
  73. top: -141rpx;
  74. left: 88rpx;
  75. width: 557rpx;
  76. border-radius: 12rpx;
  77. }
  78. .nameImage, .keyImage {
  79. margin-left: 22px;
  80. width: 32px;
  81. height: 28px;
  82. position: relative;
  83. top: 16rpx;
  84. left: -31rpx;
  85. }
  86. .loginLab {
  87. margin: 15px 15px 15px 10px;
  88. color: #545454;
  89. font-size: 14px;
  90. position: relative;
  91. top: -2rpx;
  92. left: -31rpx;
  93. }
  94. .inputText {
  95. flex: block;
  96. float: right;
  97. text-align: right;
  98. margin-right: 42px;
  99. margin-top: -32px;
  100. color: #cccccc;
  101. font-size: 14px;
  102. }

发表评论

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

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

相关阅读

    相关 程序 程序列表模板

    小程序列表模板 今天做小程序列表页面 百度搜了一圈也没有一个模板 今天花了两个小时自己做了一个 放图 ! 中间的隔离线在手机显示的时候颜色比较浅 截图上面显示的比较深