123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <template>
- <view class="content">
- <view class="box">
- <view class="hflex acenter jbetween" style="padding-bottom: 28rpx;">
- <view class="left">退款金额</view>
- <view class="right">¥{{pageData.refund_money}}</view>
- </view>
- <view class="hflex acenter jbetween">
- <view class="left">退款状态</view>
- <view class="right" v-if="pageData.refund_status == 2">退款成功</view>
- <view class="right" v-if="pageData.refund_status == 3">退款关闭</view>
- <view class="right" v-if="pageData.refund_status == 1">申请中,等待商家审核</view>
- </view>
- </view>
- <view class="box" v-if="pageData.refund_status == 2 || pageData.refund_status == 3">
- <view class="user hflex acenter">
- <image :src="pageData.admin_headimag" class="avatar"></image>
- <view class="vflex">
- <view class="user_name text_hide">{{pageData.admin_name}}</view>
- <view class="user_date">{{pageData.refund_time}}</view>
- </view>
- </view>
- <view class="title" v-if="pageData.refund_status == 2">卖家同意了你的申请。退款成功</view>
- <view class="title" v-if="pageData.refund_status == 3">卖家拒绝了你的申请。拒绝原因:{{pageData.refuse_reason}}</view>
- <!-- <view class="imgs" v-for="(item2,index2) in item.imgs" :key="index2">
- <image :src="item2.url"></image>
- </view> -->
- </view>
- <view class="box">
- <view class="user hflex acenter">
- <image :src="pageData.user_info.headimg" class="avatar"></image>
- <view class="vflex">
- <view class="user_name text_hide">{{pageData.user_info.nickname}}</view>
- <view class="user_date">{{pageData.refund_time}}</view>
- </view>
- </view>
- <view class="title">发起了{{pageData.refund_type}}申请,申请原因:{{pageData.refund_reason}};金额:{{pageData.refund_money}}元</view>
- <!-- <view class="imgs" v-for="(item2,index2) in item.imgs" :key="index2">
- <image :src="item2.url"></image>
- </view> -->
- </view>
- </view>
- </template>
- <script>
- import $api from '@/static/js/api.js'
- var that = ""
- export default {
- data() {
- return {
- id: '',
- pageData: {
- }
- }
- },
- onLoad(options) {
- that = this
- that.id = options.id
- that.getData()
- },
- methods: {
- getData() {
- $api.req({
- url: '/data/api.Order/order_info',
- method: 'POST',
- data: {
- order_id: that.id
- }
- }, function(res) {
- if(res.code == 1) {
- that.pageData = res.data
- }
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .content {
- background: #F4F4F4;
- padding: 20rpx 30rpx;
- .box {
- margin-top: 20rpx;
- width: 100%;
- background: #FFFFFF;
- border-radius: 24rpx;
- box-sizing: border-box;
- padding: 24rpx 20rpx;
- .left {
- font-size: 28rpx;
- font-weight: 400;
- color: #222222;
- line-height: 40rpx;
- }
- .right {
- font-size: 28rpx;
- font-weight: 400;
- color: #222222;
- line-height: 40rpx;
- }
- .user {
- .avatar {
- width: 68rpx;
- height: 68rpx;
- border-radius: 12rpx;
- margin-right: 16rpx;
- }
- .user_name {
- max-width: 500rpx;
- font-size: 24rpx;
- font-weight: 400;
- color: #222222;
- line-height: 34rpx;
- }
- .user_date {
- font-size: 22rpx;
- font-weight: 400;
- color: #acacac;
- line-height: 32rpx;
- }
- }
- .title {
- padding: 20rpx 0 0;
- font-size: 28rpx;
- font-weight: 400;
- color: #222222;
- line-height: 40rpx;
- }
- }
- }
- </style>
|