闫增涛
2024-02-23 fdfb3ca757ecd6c396632ed276ff354671d3a7e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<wr-loading-content position="fixed" type="spinner" wx:if="{{pageLoading}}" />
<view class="page-container">
  <t-pull-down-refresh id="t-pull-down-refresh" bind:refresh="onPullDownRefresh_" t-class-indicator="t-class-indicator">
    <!-- 页面内容 -->
    <view class="service-detail safe-bottom">
      <!-- 状态及描述 -->
      <view class="service-detail__header">
        <view class="title">
          <t-icon prefix="wr" name="{{service.statusIcon}}" size="30px" />
          {{service.statusName}}
        </view>
        <view class="desc"> {{service.statusDesc}} </view>
      </view>
      <!-- 退款金额 -->
      <view class="service-section__pay pay-result" wx:if="{{service.isRefunded}}">
        <t-cell
          t-class-title="title"
          t-class-note="right"
          t-class="t-class-wrapper-first-child"
          title="{{service.isRefunded ? '退款金额' : '预计退款金额'}}"
          bordered="{{false}}"
        >
          <wr-price slot="note" price="{{service.refundRequestAmount}}" fill />
        </t-cell>
        <t-cell
          wx:for="{{service.refundMethodList}}"
          wx:key="name"
          wx:for-index="index"
          wx:for-item="item"
          t-class-title="t-cell-title"
          t-class-note="t-cell-title"
          t-class="t-class-wrapper"
          title="{{item.name}}"
          bordered="{{service.refundMethodList.length - 1 === index ? true : false}}"
        >
          <wr-price slot="note" price="{{item.amount}}" fill />
        </t-cell>
        <block wx:if="{{service.isRefunded}}">
          <t-cell
            title=""
            t-class="t-class-wrapper-first-child"
            t-class-description="label"
            description="说明:微信退款后,可以在微信支付账单查询,实际退款到时间可能受到银行处理时间的影响有一定延时,可以稍后查看"
          />
        </block>
      </view>
      <!-- 物流 -->
      <view class="service-section logistics" wx:if="{{service.logisticsNo}}">
        <view class="service-section__title">
          <t-cell
            align="top"
            title="{{service.logisticsCompanyName + ' ' + service.logisticsNo}}"
            bordered="{{false}}"
            description="买家已寄出"
            arrow
          >
            <t-icon prefix="wr" color="#333333" name="deliver" size="40rpx" slot="left-icon" />
          </t-cell>
          <view style="padding: 0 32rpx">
            <wr-after-service-button-bar service="{{service}}" />
          </view>
        </view>
      </view>
      <!-- 收货地址 -->
      <view class="service-section goods-refund-address" wx:if="{{service.receiverName}}">
        <t-cell-group>
          <t-cell align="top" title="退货地址" bordered="{{false}}">
            <t-icon prefix="wr" color="#333333" name="location" size="40rpx" slot="left-icon" />
            <view
              slot="note"
              class="right text-btn goods-refund-address-copy-btn"
              hover-class="text-btn--active"
              bindtap="onAddressCopy"
              >复制
            </view>
            <view slot="description">
              <view> {{service.receiverAddress}} </view>
              <view>收货人:{{service.receiverName}}</view>
              <view>收货人手机:{{service.receiverName}}</view>
            </view>
          </t-cell>
        </t-cell-group>
      </view>
      <!-- 商品卡片 -->
      <view
        class="service-section service-goods-card-wrap"
        wx:if="{{service.goodsList && service.goodsList.length > 0}}"
      >
        <wr-service-goods-card
          wx:for="{{service.goodsList}}"
          wx:key="id"
          wx:for-item="goods"
          goods="{{goods}}"
          no-top-line
          bindtap="onGoodsCardTap"
          data-index="{{index}}"
        >
          <view slot="footer" class="order-goods-card-footer">
            <wr-price
              price="{{goods.itemRefundAmount}}"
              fill
              wr-class="order-goods-card-footer-price-class"
              symbol-class="order-goods-card-footer-price-symbol"
              decimal-class="order-goods-card-footer-price-decimal"
            />
            <view class="order-goods-card-footer-num">x {{goods.rightsQuantity}}</view>
          </view>
        </wr-service-goods-card>
      </view>
      <!-- 退款信息 -->
      <view class="service-section__pay">
        <t-cell bordered="{{false}}" title="退款信息" t-class="t-refund-wrapper" t-class-title="t-refund-title" />
        <t-cell
          bordered="{{false}}"
          t-class="t-refund-wrapper"
          t-class-title="t-refund-info"
          t-class-note="t-refund-note"
          title="订单编号"
          note="{{service.orderNo}}"
        />
        <t-cell
          bordered="{{false}}"
          t-class="t-refund-wrapper"
          t-class-title="t-refund-info"
          t-class-note="t-refund-note"
          title="服务单号"
          note="{{service.rightsNo}}"
        >
          <view slot="right-icon" class="text-btn" hover-class="text-btn--active" bindtap="onServiceNoCopy">复制 </view>
        </t-cell>
        <t-cell
          bordered="{{false}}"
          t-class="t-refund-wrapper"
          t-class-title="t-refund-info"
          t-class-note="t-refund-note"
          title="退款原因"
          note="{{service.rightsReasonDesc}}"
        />
        <t-cell
          bordered="{{false}}"
          t-class="t-refund-wrapper"
          t-class-title="t-refund-info"
          t-class-note="t-refund-note"
          title="退款金额"
        >
          <wr-price slot="note" price="{{service.refundRequestAmount}}" fill />
        </t-cell>
        <t-cell
          bordered="{{false}}"
          t-class="t-refund-wrapper"
          t-class-title="t-refund-info"
          t-class-note="t-refund-note"
          title="申请时间"
          note="{{service.createTime}}"
        />
      </view>
      <!-- 凭证/说明 -->
      <view class="service-section__pay" wx:if="{{showProofs}}">
        <t-cell
          bordered="{{false}}"
          title="凭证/说明"
          t-class="t-refund-wrapper"
          t-class-title="t-refund-info"
          description="{{service.applyRemark}}"
        />
        <t-grid border="{{false}}" column="{{3}}">
          <t-grid-item
            t-class-image="t-refund-grid-image"
            wx:for="{{gallery.proofs}}"
            wx:key="index"
            image="{{item}}"
            bindclick="onProofTap"
            data-index="{{index}}"
          />
        </t-grid>
      </view>
      <t-swiper
        wx:if="{{gallery.show}}"
        current="{{gallery.current}}"
        img-srcs="{{gallery.proofs}}"
        full-screen
        circular="{{false}}"
        bindtap="onProofTap"
      />
    </view>
  </t-pull-down-refresh>
</view>
<t-toast id="t-toast" />
<!-- 退款说明填写 -->
<t-dialog id="input-dialog" visible="{{inputDialogVisible}}">
  <view class="input-dialog__content" slot="content">
    <view style="color: #333333; padding-left: 32rpx">物流单号</view>
    <t-input class="input" placeholder="请输入物流单号" />
    <view class="tips">{{amountTip}}</view>
  </view>
</t-dialog>
<t-dialog id="t-dialog" />