voucherRecord.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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 list">
  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">
  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. list:[
  36. {
  37. time:'2023-05-15 16:13:34',
  38. imgs:[
  39. {
  40. img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
  41. },
  42. {
  43. img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
  44. },
  45. {
  46. img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
  47. },
  48. {
  49. img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
  50. },
  51. {
  52. img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
  53. }
  54. ],
  55. content:'备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注'
  56. }
  57. ]
  58. }
  59. },
  60. created(){
  61. // this.initData(this.returnedPurchaseList)
  62. },
  63. computed: {
  64. },
  65. methods:{
  66. initData(res) {
  67. if(res!=''){
  68. this.isEmpty = true
  69. }else{
  70. this.isEmpty = false
  71. this.refundData = res;
  72. }
  73. },
  74. previewImg (image) {//顶部商品图片预览
  75. this.isPreviewImage = true
  76. let urls = []
  77. urls.push(image)
  78. uni.previewImage({
  79. urls: urls,
  80. current: 0
  81. })
  82. },
  83. }
  84. }
  85. </script>
  86. <style lang="scss">
  87. .record-template{
  88. width: 100%;
  89. height: auto;
  90. background: #FFFFFF;
  91. float: left;
  92. margin-top: 24rpx;
  93. padding-bottom: 40rpx;
  94. .record-content{
  95. width: 100%;
  96. padding: 24rpx 0;
  97. box-sizing: border-box;
  98. height: auto;
  99. .record-title{
  100. width: 100%;
  101. font-size: $font-size-28;
  102. color: $text-color;
  103. text-align: left;
  104. line-height: 40rpx;
  105. margin-bottom: 12rpx;
  106. float: left;
  107. font-weight: bold;
  108. padding: 24rpx 0;
  109. box-sizing: border-box;
  110. }
  111. .record-list{
  112. width: 100%;
  113. padding: 0 24rpx 24rpx;
  114. box-sizing: border-box;
  115. overflow: hidden;
  116. .record-list-time{
  117. width: 100%;
  118. line-height: 37rpx;
  119. text-align: left;
  120. display: flex;
  121. align-items: center;
  122. justify-content: space-between;
  123. color: #666666;
  124. font-size: $font-size-26;
  125. margin-bottom: 20rpx;
  126. }
  127. .record-list-tmk{
  128. width: 100%;
  129. line-height: 37rpx;
  130. text-align: justify;
  131. display: flex;
  132. align-items: center;
  133. justify-content: space-between;
  134. color: #999999;
  135. font-size: $font-size-26;
  136. margin-top: 20rpx;
  137. }
  138. }
  139. }
  140. }
  141. .tui-goods__list {
  142. display: flex;
  143. align-items: center;
  144. }
  145. .tui-goods__item {
  146. background-color: #fff;
  147. width: 210rpx;
  148. height: 210rpx;
  149. border-radius: 6rpx;
  150. box-sizing: border-box;
  151. display: flex;
  152. align-items: center;
  153. justify-content: center;
  154. flex-direction: column;
  155. flex-shrink: 0;
  156. margin-right: 18rpx;
  157. border:1px solid #B8BFCA;
  158. }
  159. .tui-goods__imgbox {
  160. width: 210rpx;
  161. height: 210rpx;
  162. display: flex;
  163. align-items: center;
  164. justify-content: center;
  165. box-sizing: border-box;
  166. border-radius: 8rpx;
  167. }
  168. .tui-goods__img {
  169. width: 210rpx;
  170. height: 210rpx;
  171. display: block;
  172. }
  173. </style>