|
@@ -92,14 +92,18 @@ export default withLayout((props) => {
|
92
|
92
|
refundReason: explain,
|
93
|
93
|
}).then((res) => {
|
94
|
94
|
Taro.hideLoading();
|
95
|
|
- Taro.navigateBack({
|
96
|
|
- delta: 1
|
97
|
|
- })
|
98
|
95
|
Taro.showToast({
|
99
|
|
- title: "退款成功",
|
100
|
|
- icon: "none",
|
101
|
|
- duration: 3000,
|
102
|
|
- });
|
|
96
|
+ title: '已提交',
|
|
97
|
+ icon: 'success',
|
|
98
|
+ duration: 3000
|
|
99
|
+ })
|
|
100
|
+ setTimeout(() => {
|
|
101
|
+ Taro.navigateBack({
|
|
102
|
+ delta: 1
|
|
103
|
+ })
|
|
104
|
+ }, 2000);
|
|
105
|
+
|
|
106
|
+
|
103
|
107
|
});
|
104
|
108
|
};
|
105
|
109
|
useEffect(() => {
|
|
@@ -124,100 +128,100 @@ export default withLayout((props) => {
|
124
|
128
|
<View className='index-container'>
|
125
|
129
|
<SpinBox loading={loading} className='box-content'>
|
126
|
130
|
<scroll-view scroll-y style={{ height: '100%' }} >
|
127
|
|
- <view className='Refund-Content-box'>
|
128
|
|
- <view className='title-image'>
|
129
|
|
- <image
|
130
|
|
- mode='scaleToFill'
|
131
|
|
- className='title-image-cup'
|
132
|
|
- src={BlackSpot}
|
133
|
|
- />
|
134
|
|
- <text className='title-title-boss'>商品信息</text>
|
135
|
|
- </view>
|
136
|
|
- </view>
|
137
|
|
- {/* 商品信息结束 */}
|
138
|
|
- <view>
|
139
|
|
- {(list || []).map((item) => {
|
140
|
|
- return (
|
141
|
|
- <OrderCard item={item} key={item.orderId} kkp='1' />
|
142
|
|
- );
|
143
|
|
- })}
|
144
|
|
- </view>
|
145
|
|
- {/* 卡片结束 */}
|
146
|
|
- <view className='Refund-Content-box'>
|
147
|
|
- <view className='title-image'>
|
148
|
|
- <image
|
149
|
|
- mode='scaleToFill'
|
150
|
|
- className='title-image-cup'
|
151
|
|
- src={BlackSpot}
|
152
|
|
- />
|
153
|
|
- <text className='title-title-boss'>退款原因</text>
|
154
|
|
- </view>
|
155
|
|
- {/* 退款结束 */}
|
156
|
|
- </view>
|
157
|
|
- <view className='Refund-content'>
|
158
|
|
- {options.map((x) => {
|
159
|
|
- return (
|
160
|
|
- <text
|
161
|
|
- className={`Refund-star-view1 ${checkeds.indexOf(x.key) > -1
|
162
|
|
- ? "bg2"
|
163
|
|
- : `Refund-star-view2`
|
164
|
|
- }`}
|
165
|
|
- key={x.key}
|
166
|
|
- onClick={() => viewOK(x)}
|
167
|
|
- >
|
168
|
|
- {x.title}
|
169
|
|
- </text>
|
170
|
|
- );
|
171
|
|
- })}
|
172
|
|
- </view>
|
173
|
|
- <view className='Refund-Content-box'>
|
174
|
|
- <view className='title-image'>
|
175
|
|
- <image
|
176
|
|
- mode='scaleToFill'
|
177
|
|
- className='title-image-cup'
|
178
|
|
- src={BlackSpot}
|
179
|
|
- />
|
180
|
|
- <text className='title-title-boss'>退款说明</text>
|
181
|
|
- </view>
|
182
|
|
- </view>
|
183
|
|
- <view class='section'>
|
184
|
|
- <Textarea
|
185
|
|
- placeholder='请补充退款说明(选填)!'
|
186
|
|
- onInput={(e) => setExplain(e.detail.value)}
|
187
|
|
- confirm-type='done'
|
|
131
|
+ <view className='Refund-Content-box'>
|
|
132
|
+ <view className='title-image'>
|
|
133
|
+ <image
|
|
134
|
+ mode='scaleToFill'
|
|
135
|
+ className='title-image-cup'
|
|
136
|
+ src={BlackSpot}
|
188
|
137
|
/>
|
|
138
|
+ <text className='title-title-boss'>商品信息</text>
|
189
|
139
|
</view>
|
190
|
|
- <view className='money-title'>
|
191
|
|
- 实付金额:{" "}
|
192
|
|
- <text className='money-name'>{formatPrice(totalPrice.charges)}元</text>
|
193
|
|
- </view>
|
194
|
|
- <view className='money-title'>
|
195
|
|
- 已获返现:{" "}
|
196
|
|
- <text className='money-name'>{formatPrice(totalPrice.cashback)}元</text>
|
197
|
|
- </view>
|
198
|
|
- <view className='money-title'>
|
199
|
|
- 退款金额:{" "}
|
200
|
|
- <text className='money-name'>{formatPrice(totalPrice.refundPrice)}元</text>
|
201
|
|
- </view>
|
202
|
|
- <view className='ul-li-text'>
|
203
|
|
- <view className='ul-li-view'></view>
|
204
|
|
- <text className='ul-li-textname'>退款金额不可修改</text>
|
205
|
|
- </view>
|
206
|
|
- <view className='ul-li-text'>
|
207
|
|
- <view className='ul-li-view'></view>
|
208
|
|
- <text className='ul-li-textname'>
|
209
|
|
- 下单获得返现金额,会在退款时被扣除;
|
210
|
|
- </text>
|
211
|
|
- </view>
|
212
|
|
- <view className='ul-li-text'>
|
213
|
|
- <view className='ul-li-view'></view>
|
214
|
|
- <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
|
|
140
|
+ </view>
|
|
141
|
+ {/* 商品信息结束 */}
|
|
142
|
+ <view>
|
|
143
|
+ {(list || []).map((item) => {
|
|
144
|
+ return (
|
|
145
|
+ <OrderCard item={item} key={item.orderId} kkp='1' />
|
|
146
|
+ );
|
|
147
|
+ })}
|
|
148
|
+ </view>
|
|
149
|
+ {/* 卡片结束 */}
|
|
150
|
+ <view className='Refund-Content-box'>
|
|
151
|
+ <view className='title-image'>
|
|
152
|
+ <image
|
|
153
|
+ mode='scaleToFill'
|
|
154
|
+ className='title-image-cup'
|
|
155
|
+ src={BlackSpot}
|
|
156
|
+ />
|
|
157
|
+ <text className='title-title-boss'>退款原因</text>
|
215
|
158
|
</view>
|
216
|
|
- <view className='button-info' >
|
217
|
|
- <Button className='button-box' onClick={() => onRefund()}>
|
218
|
|
- 提交申请
|
219
|
|
- </Button>
|
|
159
|
+ {/* 退款结束 */}
|
|
160
|
+ </view>
|
|
161
|
+ <view className='Refund-content'>
|
|
162
|
+ {options.map((x) => {
|
|
163
|
+ return (
|
|
164
|
+ <text
|
|
165
|
+ className={`Refund-star-view1 ${checkeds.indexOf(x.key) > -1
|
|
166
|
+ ? "bg2"
|
|
167
|
+ : `Refund-star-view2`
|
|
168
|
+ }`}
|
|
169
|
+ key={x.key}
|
|
170
|
+ onClick={() => viewOK(x)}
|
|
171
|
+ >
|
|
172
|
+ {x.title}
|
|
173
|
+ </text>
|
|
174
|
+ );
|
|
175
|
+ })}
|
|
176
|
+ </view>
|
|
177
|
+ <view className='Refund-Content-box'>
|
|
178
|
+ <view className='title-image'>
|
|
179
|
+ <image
|
|
180
|
+ mode='scaleToFill'
|
|
181
|
+ className='title-image-cup'
|
|
182
|
+ src={BlackSpot}
|
|
183
|
+ />
|
|
184
|
+ <text className='title-title-boss'>退款说明</text>
|
220
|
185
|
</view>
|
|
186
|
+ </view>
|
|
187
|
+ <view class='section'>
|
|
188
|
+ <Textarea
|
|
189
|
+ placeholder='请补充退款说明(选填)!'
|
|
190
|
+ onInput={(e) => setExplain(e.detail.value)}
|
|
191
|
+ confirm-type='done'
|
|
192
|
+ />
|
|
193
|
+ </view>
|
|
194
|
+ <view className='money-title'>
|
|
195
|
+ 实付金额:{" "}
|
|
196
|
+ <text className='money-name'>{formatPrice(totalPrice.charges)}元</text>
|
|
197
|
+ </view>
|
|
198
|
+ <view className='money-title'>
|
|
199
|
+ 已获返现:{" "}
|
|
200
|
+ <text className='money-name'>{formatPrice(totalPrice.cashback)}元</text>
|
|
201
|
+ </view>
|
|
202
|
+ <view className='money-title'>
|
|
203
|
+ 退款金额:{" "}
|
|
204
|
+ <text className='money-name'>{formatPrice(totalPrice.refundPrice)}元</text>
|
|
205
|
+ </view>
|
|
206
|
+ <view className='ul-li-text'>
|
|
207
|
+ <view className='ul-li-view'></view>
|
|
208
|
+ <text className='ul-li-textname'>退款金额不可修改</text>
|
|
209
|
+ </view>
|
|
210
|
+ <view className='ul-li-text'>
|
|
211
|
+ <view className='ul-li-view'></view>
|
|
212
|
+ <text className='ul-li-textname'>
|
|
213
|
+ 下单获得返现金额,会在退款时被扣除;
|
|
214
|
+ </text>
|
|
215
|
+ </view>
|
|
216
|
+ <view className='ul-li-text'>
|
|
217
|
+ <view className='ul-li-view'></view>
|
|
218
|
+ <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
|
|
219
|
+ </view>
|
|
220
|
+ <view className='button-info' >
|
|
221
|
+ <Button className='button-box' onClick={() => onRefund()}>
|
|
222
|
+ 提交申请
|
|
223
|
+ </Button>
|
|
224
|
+ </view>
|
221
|
225
|
</scroll-view>
|
222
|
226
|
</SpinBox>
|
223
|
227
|
</View>
|