gifts_list.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view style="padding: 30rpx;">
  3. <view class="box" v-for="(item,index) in list" :key="index">
  4. <view class="box_left">
  5. <image :src="item.imgurl"></image>
  6. </view>
  7. <view class="box_right">
  8. <view class="name">
  9. {{item.name}}
  10. </view>
  11. <view class="num">
  12. 数量:{{item.nums}}
  13. </view>
  14. </view>
  15. </view>
  16. <view class="beizhu" v-if="remark">
  17. <view class="beizhu_title">备注内容:</view>
  18. <view class="beizhu_cont">{{remark}}</view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. remark: '',
  27. list: []
  28. }
  29. },
  30. onLoad(option) {
  31. this.list = JSON.parse(decodeURIComponent(option.item))
  32. this.remark = option.remark
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .beizhu {
  40. padding: 30rpx 35rpx;
  41. margin-bottom: 120rpx;
  42. background-color: #fff;
  43. color: #333;
  44. font-size: 28rpx;
  45. &_title {
  46. font-size: 32rpx;
  47. font-weight: bold;
  48. color: #333333;
  49. margin-bottom: 20rpx;
  50. }
  51. &_cont {
  52. background: #F8F8F8;
  53. border-radius: 24rpx;
  54. padding: 30rpx;
  55. }
  56. }
  57. .box {
  58. width: 100%;
  59. height: 204rpx;
  60. margin-bottom: 30rpx;
  61. background-color: #fff;
  62. padding: 30rpx;
  63. display: flex;
  64. align-items: center;
  65. &_left {
  66. width: 180rpx;
  67. height: 144rpx;
  68. border-radius: 16rpx;
  69. overflow: hidden;
  70. image {
  71. width: 180rpx;
  72. height: 144rpx;
  73. }
  74. }
  75. &_right {
  76. display: flex;
  77. flex-direction: column;
  78. justify-content: space-between;
  79. margin-left: 20rpx;
  80. height: 144rpx;
  81. padding: 20rpx 0;
  82. .name {
  83. font-size: 32rpx;
  84. font-weight: bold;
  85. color: #333333;
  86. }
  87. .num {
  88. font-size: 28rpx;
  89. color: #999999;
  90. }
  91. }
  92. }
  93. </style>