voucherRecord.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template name="refund">
  2. <view class="record-template" v-if="isEmpty">
  3. <!-- 支付凭证 -->
  4. <view class="record-content">
  5. <view class="record-title">线下支付凭证</view>
  6. <view class="record-list" v-for="(item,index) in voucherList">
  7. <view class="record-list-time">{{ item.addtime }}</view>
  8. <scroll-view scroll-x>
  9. <view class="tui-goods__list">
  10. <view class="tui-goods__item" @click.stop="previewImg(image.img)" v-for="image in item.imgs">
  11. <view class="tui-goods__imgbox">
  12. <image :src="image.img" mode="" class="tui-goods__img"></image>
  13. </view>
  14. </view>
  15. </view>
  16. </scroll-view>
  17. <view class="record-list-tmk" v-if="item.remarks">
  18. 备注:{{ item.remarks }}
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default{
  26. name:"refund",
  27. props:{
  28. list:{
  29. type:Array
  30. },
  31. },
  32. data() {
  33. return{
  34. isEmpty:true,
  35. voucherList:[]
  36. }
  37. },
  38. created(){
  39. this.initData(this.list)
  40. },
  41. computed: {
  42. },
  43. methods:{
  44. initData(data) {
  45. this.voucherList = data
  46. },
  47. previewImg (image) {//顶部商品图片预览
  48. this.isPreviewImage = true
  49. let urls = []
  50. urls.push(image)
  51. uni.previewImage({
  52. urls: urls,
  53. current: 0
  54. })
  55. },
  56. }
  57. }
  58. </script>
  59. <style lang="scss">
  60. .record-template{
  61. width: 100%;
  62. height: auto;
  63. background: #FFFFFF;
  64. float: left;
  65. margin-top: 24rpx;
  66. padding-bottom: 40rpx;
  67. .record-content{
  68. width: 100%;
  69. padding: 24rpx;
  70. box-sizing: border-box;
  71. height: auto;
  72. .record-title{
  73. width: 100%;
  74. font-size: $font-size-28;
  75. color: $text-color;
  76. text-align: left;
  77. line-height: 40rpx;
  78. margin-bottom: 12rpx;
  79. float: left;
  80. font-weight: bold;
  81. padding: 24rpx 0;
  82. box-sizing: border-box;
  83. }
  84. .record-list{
  85. width: 100%;
  86. padding: 0 24rpx 24rpx;
  87. box-sizing: border-box;
  88. overflow: hidden;
  89. .record-list-time{
  90. width: 100%;
  91. line-height: 37rpx;
  92. text-align: left;
  93. display: flex;
  94. align-items: center;
  95. justify-content: space-between;
  96. color: #666666;
  97. font-size: $font-size-26;
  98. margin-bottom: 20rpx;
  99. }
  100. .record-list-tmk{
  101. width: 100%;
  102. line-height: 37rpx;
  103. text-align: justify;
  104. display: flex;
  105. align-items: center;
  106. justify-content: space-between;
  107. color: #999999;
  108. font-size: $font-size-26;
  109. margin-top: 20rpx;
  110. }
  111. }
  112. }
  113. }
  114. .tui-goods__list {
  115. display: flex;
  116. align-items: center;
  117. }
  118. .tui-goods__item {
  119. background-color: #fff;
  120. width: 210rpx;
  121. height: 210rpx;
  122. border-radius: 6rpx;
  123. box-sizing: border-box;
  124. display: flex;
  125. align-items: center;
  126. justify-content: center;
  127. flex-direction: column;
  128. flex-shrink: 0;
  129. margin-right: 18rpx;
  130. border:1px solid #B8BFCA;
  131. }
  132. .tui-goods__imgbox {
  133. width: 210rpx;
  134. height: 210rpx;
  135. display: flex;
  136. align-items: center;
  137. justify-content: center;
  138. box-sizing: border-box;
  139. border-radius: 8rpx;
  140. }
  141. .tui-goods__img {
  142. width: 210rpx;
  143. height: 210rpx;
  144. display: block;
  145. }
  146. </style>