|
@@ -1,15 +1,12 @@
|
1
|
|
-import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
|
2
|
1
|
import Taro from "@tarojs/taro";
|
3
|
2
|
import { Button, Textarea, View } from "@tarojs/components";
|
4
|
3
|
import formatPrice from "@/utils/formatPrice";
|
5
|
|
-import formatTime from "@/utils/formatTime";
|
6
|
4
|
import { useState, useEffect } from "react";
|
7
|
5
|
import OrderCard from '@/components/CompoentsOrder/OrderCard'
|
8
|
6
|
import withLayout from "@/layouts";
|
9
|
7
|
import { getOrderSub, refund } from "@/services/payOrder";
|
10
|
|
-import food from "@/assets/icons/ProCard/food.png";
|
11
|
|
-import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
|
12
|
8
|
import CustomNav from "@/components/CustomNav";
|
|
9
|
+import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
|
13
|
10
|
import "./style.less";
|
14
|
11
|
|
15
|
12
|
const options = [
|
|
@@ -115,104 +112,106 @@ export default withLayout((props) => {
|
115
|
112
|
<view className='index-navbar'>
|
116
|
113
|
<CustomNav title='售后退款' />
|
117
|
114
|
</view>
|
118
|
|
- <scroll-view scroll-y style='height: calc(100vh - 65px);' >
|
119
|
|
- <View className='index-container box-content'>
|
120
|
|
- <view className='Refund-Content-box'>
|
121
|
|
- <view className='title-image'>
|
122
|
|
- <image
|
123
|
|
- mode='scaleToFill'
|
124
|
|
- className='title-image-cup'
|
125
|
|
- src={BlackSpot}
|
126
|
|
- />
|
127
|
|
- <text className='title-title-boss'>商品信息</text>
|
|
115
|
+ <View className='index-container'>
|
|
116
|
+ <View className='box-content'>
|
|
117
|
+ <scroll-view scroll-y style='height: calc(100vh - 65px);' >
|
|
118
|
+ <view className='Refund-Content-box'>
|
|
119
|
+ <view className='title-image'>
|
|
120
|
+ <image
|
|
121
|
+ mode='scaleToFill'
|
|
122
|
+ className='title-image-cup'
|
|
123
|
+ src={BlackSpot}
|
|
124
|
+ />
|
|
125
|
+ <text className='title-title-boss'>商品信息</text>
|
|
126
|
+ </view>
|
128
|
127
|
</view>
|
129
|
|
- </view>
|
130
|
|
- {/* 商品信息结束 */}
|
131
|
|
- <view>
|
132
|
|
- {(list || []).map((item) => {
|
133
|
|
- return (
|
134
|
|
- <OrderCard item={item} key={item.orderId} kkp='1' />
|
135
|
|
- );
|
136
|
|
- })}
|
137
|
|
- </view>
|
138
|
|
- {/* 卡片结束 */}
|
139
|
|
- <view className='Refund-Content-box'>
|
140
|
|
- <view className='title-image'>
|
141
|
|
- <image
|
142
|
|
- mode='scaleToFill'
|
143
|
|
- className='title-image-cup'
|
144
|
|
- src={BlackSpot}
|
145
|
|
- />
|
146
|
|
- <text className='title-title-boss'>退款原因</text>
|
|
128
|
+ {/* 商品信息结束 */}
|
|
129
|
+ <view>
|
|
130
|
+ {(list || []).map((item) => {
|
|
131
|
+ return (
|
|
132
|
+ <OrderCard item={item} key={item.orderId} kkp='1' />
|
|
133
|
+ );
|
|
134
|
+ })}
|
|
135
|
+ </view>
|
|
136
|
+ {/* 卡片结束 */}
|
|
137
|
+ <view className='Refund-Content-box'>
|
|
138
|
+ <view className='title-image'>
|
|
139
|
+ <image
|
|
140
|
+ mode='scaleToFill'
|
|
141
|
+ className='title-image-cup'
|
|
142
|
+ src={BlackSpot}
|
|
143
|
+ />
|
|
144
|
+ <text className='title-title-boss'>退款原因</text>
|
|
145
|
+ </view>
|
|
146
|
+ {/* 退款结束 */}
|
|
147
|
+ </view>
|
|
148
|
+ <view className='Refund-content'>
|
|
149
|
+ {options.map((x) => {
|
|
150
|
+ return (
|
|
151
|
+ <text
|
|
152
|
+ className={`Refund-star-view1 ${checkeds.indexOf(x.key) > -1
|
|
153
|
+ ? "bg2"
|
|
154
|
+ : `Refund-star-view2`
|
|
155
|
+ }`}
|
|
156
|
+ key={x.key}
|
|
157
|
+ onClick={() => viewOK(x)}
|
|
158
|
+ >
|
|
159
|
+ {x.title}
|
|
160
|
+ </text>
|
|
161
|
+ );
|
|
162
|
+ })}
|
|
163
|
+ </view>
|
|
164
|
+ <view className='Refund-Content-box'>
|
|
165
|
+ <view className='title-image'>
|
|
166
|
+ <image
|
|
167
|
+ mode='scaleToFill'
|
|
168
|
+ className='title-image-cup'
|
|
169
|
+ src={BlackSpot}
|
|
170
|
+ />
|
|
171
|
+ <text className='title-title-boss'>退款说明</text>
|
|
172
|
+ </view>
|
147
|
173
|
</view>
|
148
|
|
- {/* 退款结束 */}
|
149
|
|
- </view>
|
150
|
|
- <view className='Refund-content'>
|
151
|
|
- {options.map((x) => {
|
152
|
|
- return (
|
153
|
|
- <text
|
154
|
|
- className={`Refund-star-view1 ${checkeds.indexOf(x.key) > -1
|
155
|
|
- ? "bg2"
|
156
|
|
- : `Refund-star-view2`
|
157
|
|
- }`}
|
158
|
|
- key={x.key}
|
159
|
|
- onClick={() => viewOK(x)}
|
160
|
|
- >
|
161
|
|
- {x.title}
|
162
|
|
- </text>
|
163
|
|
- );
|
164
|
|
- })}
|
165
|
|
- </view>
|
166
|
|
- <view className='Refund-Content-box'>
|
167
|
|
- <view className='title-image'>
|
168
|
|
- <image
|
169
|
|
- mode='scaleToFill'
|
170
|
|
- className='title-image-cup'
|
171
|
|
- src={BlackSpot}
|
|
174
|
+ <view class='section'>
|
|
175
|
+ <Textarea
|
|
176
|
+ placeholder='请补充退款说明(选填)!'
|
|
177
|
+ onInput={(e) => setExplain(e.detail.value)}
|
|
178
|
+ confirm-type='done'
|
172
|
179
|
/>
|
173
|
|
- <text className='title-title-boss'>退款说明</text>
|
174
|
180
|
</view>
|
175
|
|
- </view>
|
176
|
|
- <view class='section'>
|
177
|
|
- <Textarea
|
178
|
|
- placeholder='请补充退款说明(选填)!'
|
179
|
|
- onInput={(e) => setExplain(e.detail.value)}
|
180
|
|
- confirm-type='done'
|
181
|
|
- />
|
182
|
|
- </view>
|
183
|
|
- <view className='money-title'>
|
184
|
|
- 实付金额:{" "}
|
185
|
|
- <text className='money-name'>{formatPrice(totalPrice.charges)}元</text>
|
186
|
|
- </view>
|
187
|
|
- <view className='money-title'>
|
188
|
|
- 已获返现:{" "}
|
189
|
|
- <text className='money-name'>{formatPrice(totalPrice.cashback)}元</text>
|
190
|
|
- </view>
|
191
|
|
- <view className='money-title'>
|
192
|
|
- 退款金额:{" "}
|
193
|
|
- <text className='money-name'>{formatPrice(totalPrice.refundPrice)}元</text>
|
194
|
|
- </view>
|
195
|
|
- <view className='ul-li-text'>
|
196
|
|
- <view className='ul-li-view'></view>
|
197
|
|
- <text className='ul-li-textname'>退款金额不可修改</text>
|
198
|
|
- </view>
|
199
|
|
- <view className='ul-li-text'>
|
200
|
|
- <view className='ul-li-view'></view>
|
201
|
|
- <text className='ul-li-textname'>
|
202
|
|
- 下单获得返现金额,会在退款时被扣除;
|
203
|
|
- </text>
|
204
|
|
- </view>
|
205
|
|
- <view className='ul-li-text'>
|
206
|
|
- <view className='ul-li-view'></view>
|
207
|
|
- <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
|
208
|
|
- </view>
|
209
|
|
- <view className='button-info'>
|
210
|
|
- <Button className='button-box' onClick={() => onRefund()}>
|
211
|
|
- 提交申请
|
212
|
|
- </Button>
|
213
|
|
- </view>
|
|
181
|
+ <view className='money-title'>
|
|
182
|
+ 实付金额:{" "}
|
|
183
|
+ <text className='money-name'>{formatPrice(totalPrice.charges)}元</text>
|
|
184
|
+ </view>
|
|
185
|
+ <view className='money-title'>
|
|
186
|
+ 已获返现:{" "}
|
|
187
|
+ <text className='money-name'>{formatPrice(totalPrice.cashback)}元</text>
|
|
188
|
+ </view>
|
|
189
|
+ <view className='money-title'>
|
|
190
|
+ 退款金额:{" "}
|
|
191
|
+ <text className='money-name'>{formatPrice(totalPrice.refundPrice)}元</text>
|
|
192
|
+ </view>
|
|
193
|
+ <view className='ul-li-text'>
|
|
194
|
+ <view className='ul-li-view'></view>
|
|
195
|
+ <text className='ul-li-textname'>退款金额不可修改</text>
|
|
196
|
+ </view>
|
|
197
|
+ <view className='ul-li-text'>
|
|
198
|
+ <view className='ul-li-view'></view>
|
|
199
|
+ <text className='ul-li-textname'>
|
|
200
|
+ 下单获得返现金额,会在退款时被扣除;
|
|
201
|
+ </text>
|
|
202
|
+ </view>
|
|
203
|
+ <view className='ul-li-text'>
|
|
204
|
+ <view className='ul-li-view'></view>
|
|
205
|
+ <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
|
|
206
|
+ </view>
|
|
207
|
+ <view className='button-info'>
|
|
208
|
+ <Button className='button-box' onClick={() => onRefund()}>
|
|
209
|
+ 提交申请
|
|
210
|
+ </Button>
|
|
211
|
+ </view>
|
|
212
|
+ </scroll-view>
|
214
|
213
|
</View>
|
215
|
|
- </scroll-view>
|
|
214
|
+ </View>
|
216
|
215
|
</view >
|
217
|
216
|
);
|
218
|
217
|
});
|