materialAttachments.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!-- 材料附件 -->
  2. <template>
  3. <view class="materialAttachments">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="list">
  6. <view class="list-li" v-for="(item,index) in newData.data1">
  7. <img src="@/pages_safetyCheck/images/icon_djc_wj.png">
  8. <view>{{item}}</view>
  9. <view>查看</view>
  10. </view>
  11. </view>
  12. </scroll-view>
  13. </view>
  14. </template>
  15. <script>
  16. import { config } from '@/api/request/config.js'
  17. import {chemicalAppletGetStockDetail} from '@/pages/api/index.js'
  18. export default {
  19. name: "materialAttachments",
  20. components: {
  21. },
  22. data() {
  23. return {
  24. baseUrl:config.base_url,
  25. pageType:0,
  26. newData:{
  27. data1:['文件标题文件标题文件标题文件标题文件标题文件标题文件标题文件标题','文件标题文件标题文件标题文件标题',],
  28. },
  29. }
  30. },
  31. onLoad(option) {
  32. },
  33. onShow() {
  34. },
  35. mounted(){
  36. },
  37. methods: {
  38. //滚动事件
  39. scrollGet(){},
  40. }
  41. }
  42. </script>
  43. <style lang="stylus" scoped>
  44. .materialAttachments{
  45. height:100%;
  46. display flex;
  47. box-sizing: border-box;
  48. padding: 0 30rpx;
  49. box-sizing: border-box;
  50. .list{
  51. width: 690rpx;
  52. background: #FFFFFF;
  53. border-radius: 20rpx 20rpx 20rpx 20rpx;
  54. padding: 0 30rpx;
  55. box-sizing: border-box;
  56. margin-bottom: 20rpx;
  57. margin-top: 20rpx;
  58. .list-li{
  59. height: 100rpx;
  60. border-bottom: 1rpx solid #E0E0E0;
  61. display: flex;
  62. justify-content: space-between;
  63. align-items: center;
  64. >img{
  65. width: 30rpx;
  66. height: 30rpx;
  67. margin-right: 16rpx;
  68. }
  69. >view:nth-of-type(1){
  70. flex: 1;
  71. font-size: 28rpx;
  72. color: #333333;
  73. line-height: 39rpx;
  74. text-align: left;
  75. overflow: hidden;
  76. text-overflow: ellipsis;
  77. white-space: nowrap;
  78. margin-right: 56rpx;
  79. }
  80. >view:nth-of-type(2){
  81. font-size: 28rpx;
  82. color: #0183FA;
  83. line-height: 39rpx;
  84. text-align: left;
  85. }
  86. }
  87. .list-li:last-of-type{
  88. border: none;
  89. }
  90. }
  91. }
  92. </style>