voucherRecord.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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" :key="index">
  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, i) in item.imgs" :key="i">
  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. console.log(this.list)
  40. this.initData(this.list)
  41. },
  42. computed: {
  43. },
  44. methods:{
  45. initData(data) {
  46. this.voucherList = data
  47. },
  48. previewImg (image) {//顶部商品图片预览
  49. this.isPreviewImage = true
  50. let urls = []
  51. urls.push(image)
  52. uni.previewImage({
  53. urls: urls,
  54. current: 0
  55. })
  56. },
  57. }
  58. }
  59. </script>
  60. <style lang="scss">
  61. .record-template{
  62. width: 100%;
  63. height: auto;
  64. background: #FFFFFF;
  65. float: left;
  66. margin-top: 24rpx;
  67. padding-bottom: 40rpx;
  68. .record-content{
  69. width: 100%;
  70. padding: 24rpx;
  71. box-sizing: border-box;
  72. height: auto;
  73. .record-title{
  74. width: 100%;
  75. font-size: $font-size-28;
  76. color: $text-color;
  77. text-align: left;
  78. line-height: 40rpx;
  79. margin-bottom: 12rpx;
  80. float: left;
  81. font-weight: bold;
  82. padding: 24rpx 0;
  83. box-sizing: border-box;
  84. }
  85. .record-list{
  86. width: 100%;
  87. padding: 0 24rpx 24rpx;
  88. box-sizing: border-box;
  89. overflow: hidden;
  90. .record-list-time{
  91. width: 100%;
  92. line-height: 37rpx;
  93. text-align: left;
  94. display: flex;
  95. align-items: center;
  96. justify-content: space-between;
  97. color: #666666;
  98. font-size: $font-size-26;
  99. margin-bottom: 20rpx;
  100. }
  101. .record-list-tmk{
  102. width: 100%;
  103. line-height: 37rpx;
  104. text-align: justify;
  105. display: flex;
  106. align-items: center;
  107. justify-content: space-between;
  108. color: #999999;
  109. font-size: $font-size-26;
  110. margin-top: 20rpx;
  111. }
  112. }
  113. }
  114. }
  115. .tui-goods__list {
  116. display: flex;
  117. align-items: center;
  118. }
  119. .tui-goods__item {
  120. background-color: #fff;
  121. width: 210rpx;
  122. height: 210rpx;
  123. border-radius: 6rpx;
  124. box-sizing: border-box;
  125. display: flex;
  126. align-items: center;
  127. justify-content: center;
  128. flex-direction: column;
  129. flex-shrink: 0;
  130. margin-right: 18rpx;
  131. border:1px solid #B8BFCA;
  132. }
  133. .tui-goods__imgbox {
  134. width: 210rpx;
  135. height: 210rpx;
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. box-sizing: border-box;
  140. border-radius: 8rpx;
  141. }
  142. .tui-goods__img {
  143. width: 210rpx;
  144. height: 210rpx;
  145. display: block;
  146. }
  147. </style>