123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <template name="refund">
- <view class="record-template" v-if="isEmpty">
- <!-- 支付凭证 -->
- <view class="record-content">
- <view class="record-title">线下支付凭证</view>
- <view class="record-list" v-for="(item,index) in list">
- <view class="record-list-time">{{ item.addtime }}</view>
- <scroll-view scroll-x>
- <view class="tui-goods__list">
- <view class="tui-goods__item" @click.stop="previewImg(image.img)" v-for="image in item.imgs">
- <view class="tui-goods__imgbox">
- <image :src="image.img" mode="" class="tui-goods__img"></image>
- </view>
- </view>
- </view>
- </scroll-view>
- <view class="record-list-tmk">
- 备注:{{ item.remarks }}
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default{
- name:"refund",
- props:{
- list:{
- type:Array
- },
- },
- data() {
- return{
- isEmpty:true,
- list:[
- {
- time:'2023-05-15 16:13:34',
- imgs:[
- {
- img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
- },
- {
- img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
- },
- {
- img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
- },
- {
- img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
- },
- {
- img:'https://img0.baidu.com/it/u=1944692716,1047751661&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
- }
- ],
- content:'备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注备注'
- }
- ]
- }
- },
- created(){
- // this.initData(this.returnedPurchaseList)
- },
- computed: {
-
- },
- methods:{
- initData(res) {
- if(res!=''){
- this.isEmpty = true
- }else{
- this.isEmpty = false
- this.refundData = res;
- }
- },
- previewImg (image) {//顶部商品图片预览
- this.isPreviewImage = true
- let urls = []
- urls.push(image)
- uni.previewImage({
- urls: urls,
- current: 0
- })
- },
- }
- }
- </script>
- <style lang="scss">
- .record-template{
- width: 100%;
- height: auto;
- background: #FFFFFF;
- float: left;
- margin-top: 24rpx;
- padding-bottom: 40rpx;
- .record-content{
- width: 100%;
- padding: 24rpx 0;
- box-sizing: border-box;
- height: auto;
- .record-title{
- width: 100%;
- font-size: $font-size-28;
- color: $text-color;
- text-align: left;
- line-height: 40rpx;
- margin-bottom: 12rpx;
- float: left;
- font-weight: bold;
- padding: 24rpx 0;
- box-sizing: border-box;
- }
- .record-list{
- width: 100%;
- padding: 0 24rpx 24rpx;
- box-sizing: border-box;
- overflow: hidden;
- .record-list-time{
- width: 100%;
- line-height: 37rpx;
- text-align: left;
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #666666;
- font-size: $font-size-26;
- margin-bottom: 20rpx;
- }
- .record-list-tmk{
- width: 100%;
- line-height: 37rpx;
- text-align: justify;
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #999999;
- font-size: $font-size-26;
- margin-top: 20rpx;
- }
- }
- }
- }
- .tui-goods__list {
- display: flex;
- align-items: center;
- }
- .tui-goods__item {
- background-color: #fff;
- width: 210rpx;
- height: 210rpx;
- border-radius: 6rpx;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- flex-shrink: 0;
- margin-right: 18rpx;
- border:1px solid #B8BFCA;
- }
- .tui-goods__imgbox {
- width: 210rpx;
- height: 210rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- border-radius: 8rpx;
- }
-
- .tui-goods__img {
- width: 210rpx;
- height: 210rpx;
- display: block;
- }
- </style>
|