|
@@ -87,8 +87,8 @@ export default withLayout((props) => {
|
87
|
87
|
refundReason: explain,
|
88
|
88
|
}).then((res) => {
|
89
|
89
|
Taro.hideLoading();
|
90
|
|
- Taro.navigateTo({ url: '/pages/MineUserAll/AllOrder/index?tabJump=0' })
|
91
|
|
- Taro.showToast({
|
|
90
|
+ Taro.navigateTo({ url: '/pages/MineUserAll/AllOrder/index?tabJump=0' })
|
|
91
|
+ Taro.showToast({
|
92
|
92
|
title: "退款成功",
|
93
|
93
|
icon: "none",
|
94
|
94
|
duration: 3000,
|
|
@@ -110,151 +110,145 @@ export default withLayout((props) => {
|
110
|
110
|
}, [list]);
|
111
|
111
|
|
112
|
112
|
return (
|
113
|
|
- <view>
|
|
113
|
+ <view>
|
114
|
114
|
<view className='index-navbar'>
|
115
|
115
|
<CustomNav title='售后退款' />
|
116
|
116
|
</view>
|
117
|
|
- <View className='box-content'>
|
118
|
117
|
<scroll-view scroll-y style='height: calc(100vh - 65px);' >
|
119
|
|
-
|
120
|
|
- <view className='Refund-Content-box'>
|
121
|
|
-
|
122
|
|
- <view className='title-image'>
|
123
|
|
- <image
|
124
|
|
- mode='scaleToFill'
|
125
|
|
- className='title-image-cup'
|
126
|
|
- src={BlackSpot}
|
127
|
|
- />
|
128
|
|
- <text className='title-title-boss'>商品信息</text>
|
|
118
|
+ <View className='index-container box-content'>
|
|
119
|
+ <view className='Refund-Content-box'>
|
|
120
|
+ <view className='title-image'>
|
|
121
|
+ <image
|
|
122
|
+ mode='scaleToFill'
|
|
123
|
+ className='title-image-cup'
|
|
124
|
+ src={BlackSpot}
|
|
125
|
+ />
|
|
126
|
+ <text className='title-title-boss'>商品信息</text>
|
|
127
|
+ </view>
|
129
|
128
|
</view>
|
130
|
|
- </view>
|
131
|
|
- {/* 商品信息结束 */}
|
132
|
|
- <view>
|
133
|
|
- {(list || []).map((item) => {
|
134
|
|
- return (
|
135
|
|
- <view class='wrapper' key={item.orderId}>
|
136
|
|
- <view class='left-complete-one'>
|
137
|
|
- <image className='left-image-1' src={ProCard_hot}></image>
|
138
|
|
- <view className='left-viewText'>
|
139
|
|
- 返现¥{formatPrice(item.cashback)}
|
140
|
|
- </view>
|
141
|
|
- <view className='title-image'>
|
142
|
|
- <image
|
143
|
|
- className='image-1'
|
144
|
|
- mode='scaleToFill'
|
145
|
|
- src={item.poster}
|
146
|
|
- ></image>
|
147
|
|
- <image className='image-2' src={food}></image>
|
148
|
|
- </view>
|
149
|
|
- <view className='title-content'>
|
150
|
|
- <view className='Pro-title'>
|
151
|
|
- <view className='title-text'>
|
152
|
|
- {item.packageDescription}
|
|
129
|
+ {/* 商品信息结束 */}
|
|
130
|
+ <view>
|
|
131
|
+ {(list || []).map((item) => {
|
|
132
|
+ return (
|
|
133
|
+ <view class='wrapper' key={item.orderId}>
|
|
134
|
+ <view class='left-complete-one'>
|
|
135
|
+ <image className='left-image-1' src={ProCard_hot}></image>
|
|
136
|
+ <view className='left-viewText'>
|
|
137
|
+ 返现¥{formatPrice(item.cashback)}
|
|
138
|
+ </view>
|
|
139
|
+ <view className='title-image'>
|
|
140
|
+ <image
|
|
141
|
+ className='image-1'
|
|
142
|
+ mode='scaleToFill'
|
|
143
|
+ src={item.poster}
|
|
144
|
+ ></image>
|
|
145
|
+ <image className='image-2' src={food}></image>
|
|
146
|
+ </view>
|
|
147
|
+ <view className='title-content'>
|
|
148
|
+ <view className='Pro-title'>
|
|
149
|
+ <View className='cpn-card-text'>
|
|
150
|
+ <View style={{ flex: '1' }}>{(item.packageDescription).toString().length > 25 ? (item.packageDescription).substring(0, 25) + '...' : (item.packageDescription)}</View>
|
|
151
|
+ <text className='title-money-2'>
|
|
152
|
+ 数量:{item.amount}张
|
|
153
|
+ </text>
|
|
154
|
+ </View>
|
|
155
|
+ </view>
|
|
156
|
+ <text className='title-money'>
|
|
157
|
+ ¥{formatPrice(item.unitPrice)}元
|
153
|
158
|
<text className='title-money-2'>
|
154
|
|
- 数量:{item.amount}张
|
|
159
|
+ 门市价{formatPrice(item.standardPrice)}元
|
155
|
160
|
</text>
|
156
|
|
- </view>
|
157
|
|
- </view>
|
158
|
|
- <text className='title-money'>
|
159
|
|
- ¥{formatPrice(item.unitPrice)}元
|
160
|
|
- <text className='title-money-2'>
|
161
|
|
- 门市价{formatPrice(item.standardPrice)}元
|
162
|
161
|
</text>
|
163
|
|
- </text>
|
164
|
|
- <view className='title-time'>
|
165
|
|
- 有效期:{formatTime(item?.startTime, "yyyy/MM/dd")}-
|
166
|
|
- {formatTime(item.endTime, "yyyy/MM/dd")}
|
|
162
|
+ <view className='title-time'>
|
|
163
|
+ 有效期:{formatTime(item?.startTime, "yyyy/MM/dd")}-
|
|
164
|
+ {formatTime(item.endTime, "yyyy/MM/dd")}
|
|
165
|
+ </view>
|
167
|
166
|
</view>
|
168
|
167
|
</view>
|
|
168
|
+ <view class='right-complete-two'>
|
|
169
|
+ </view>
|
169
|
170
|
</view>
|
170
|
|
- <view class='right-complete-two'>
|
171
|
|
- <view className='right-content'></view>
|
172
|
|
- </view>
|
173
|
|
- </view>
|
174
|
|
- );
|
175
|
|
- })}
|
176
|
|
- </view>
|
177
|
|
-
|
178
|
|
- {/* 卡片结束 */}
|
179
|
|
- <view className='Refund-Content-box'>
|
180
|
|
- <view className='title-image'>
|
181
|
|
- <image
|
182
|
|
- mode='scaleToFill'
|
183
|
|
- className='title-image-cup'
|
184
|
|
- src={BlackSpot}
|
185
|
|
- />
|
186
|
|
- <text className='title-title-boss'>退款原因</text>
|
|
171
|
+ );
|
|
172
|
+ })}
|
187
|
173
|
</view>
|
188
|
|
- {/* 退款结束 */}
|
189
|
|
- </view>
|
190
|
|
- <view className='Refund-content'>
|
191
|
|
- {options.map((x) => {
|
192
|
|
- return (
|
193
|
|
- <text
|
194
|
|
- className={`Refund-star-view${x.key} ${checkeds.indexOf(x.key) > -1
|
195
|
|
- ? "bg2"
|
196
|
|
- : `Refund-star-view${x.key}`
|
197
|
|
- }`}
|
198
|
|
- key={x.key}
|
199
|
|
- onClick={() => viewOK(x)}
|
200
|
|
- >
|
201
|
|
- {x.title}
|
202
|
|
- </text>
|
203
|
|
- );
|
204
|
|
- })}
|
205
|
|
- </view>
|
206
|
|
-
|
207
|
|
- <view className='Refund-Content-box'>
|
208
|
|
- <view className='title-image'>
|
209
|
|
- <image
|
210
|
|
- mode='scaleToFill'
|
211
|
|
- className='title-image-cup'
|
212
|
|
- src={BlackSpot}
|
|
174
|
+ {/* 卡片结束 */}
|
|
175
|
+ <view className='Refund-Content-box'>
|
|
176
|
+ <view className='title-image'>
|
|
177
|
+ <image
|
|
178
|
+ mode='scaleToFill'
|
|
179
|
+ className='title-image-cup'
|
|
180
|
+ src={BlackSpot}
|
|
181
|
+ />
|
|
182
|
+ <text className='title-title-boss'>退款原因</text>
|
|
183
|
+ </view>
|
|
184
|
+ {/* 退款结束 */}
|
|
185
|
+ </view>
|
|
186
|
+ <view className='Refund-content'>
|
|
187
|
+ {options.map((x) => {
|
|
188
|
+ return (
|
|
189
|
+ <text
|
|
190
|
+ className={`Refund-star-view1 ${checkeds.indexOf(x.key) > -1
|
|
191
|
+ ? "bg2"
|
|
192
|
+ : `Refund-star-view2`
|
|
193
|
+ }`}
|
|
194
|
+ key={x.key}
|
|
195
|
+ onClick={() => viewOK(x)}
|
|
196
|
+ >
|
|
197
|
+ {x.title}
|
|
198
|
+ </text>
|
|
199
|
+ );
|
|
200
|
+ })}
|
|
201
|
+ </view>
|
|
202
|
+ <view className='Refund-Content-box'>
|
|
203
|
+ <view className='title-image'>
|
|
204
|
+ <image
|
|
205
|
+ mode='scaleToFill'
|
|
206
|
+ className='title-image-cup'
|
|
207
|
+ src={BlackSpot}
|
|
208
|
+ />
|
|
209
|
+ <text className='title-title-boss'>退款说明</text>
|
|
210
|
+ </view>
|
|
211
|
+ </view>
|
|
212
|
+ <view class='section'>
|
|
213
|
+ <Textarea
|
|
214
|
+ placeholder='请补充退款说明(选填)!'
|
|
215
|
+ onInput={(e) => setExplain(e.detail.value)}
|
|
216
|
+ confirm-type='done'
|
213
|
217
|
/>
|
214
|
|
- <text className='title-title-boss'>退款说明</text>
|
215
|
218
|
</view>
|
216
|
|
- </view>
|
217
|
|
- <view class='section'>
|
218
|
|
- <Textarea
|
219
|
|
- placeholder='请补充退款说明(选填)!'
|
220
|
|
- onInput={(e) => setExplain(e.detail.value)}
|
221
|
|
- confirm-type='done'
|
222
|
|
- />
|
223
|
|
- </view>
|
224
|
|
- <view className='money-title'>
|
225
|
|
- 实付金额:{" "}
|
226
|
|
- <text className='money-name'>{formatPrice(totalPrice.charges)}元</text>
|
227
|
|
- </view>
|
228
|
|
- <view className='money-title'>
|
229
|
|
- 已获返现:{" "}
|
230
|
|
- <text className='money-name'>{formatPrice(totalPrice.cashback)}元</text>
|
231
|
|
- </view>
|
232
|
|
- <view className='money-title'>
|
233
|
|
- 退款金额:{" "}
|
234
|
|
- <text className='money-name'>{formatPrice(totalPrice.refundPrice)}元</text>
|
235
|
|
- </view>
|
236
|
|
- <view className='ul-li-text'>
|
237
|
|
- <view className='ul-li-view'></view>
|
238
|
|
- <text className='ul-li-textname'>退款金额不可修改</text>
|
239
|
|
- </view>
|
240
|
|
- <view className='ul-li-text'>
|
241
|
|
- <view className='ul-li-view'></view>
|
242
|
|
- <text className='ul-li-textname'>
|
243
|
|
- 下单获得返现金额,会在退款时被扣除;
|
244
|
|
- </text>
|
245
|
|
- </view>
|
246
|
|
- <view className='ul-li-text'>
|
247
|
|
- <view className='ul-li-view'></view>
|
248
|
|
- <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
|
249
|
|
- </view>
|
250
|
|
-
|
251
|
|
- <view className='button-info'>
|
252
|
|
- <Button className='button-box' onClick={() => onRefund()}>
|
253
|
|
- 提交申请
|
254
|
|
- </Button>
|
255
|
|
- </view>
|
|
219
|
+ <view className='money-title'>
|
|
220
|
+ 实付金额:{" "}
|
|
221
|
+ <text className='money-name'>{formatPrice(totalPrice.charges)}元</text>
|
|
222
|
+ </view>
|
|
223
|
+ <view className='money-title'>
|
|
224
|
+ 已获返现:{" "}
|
|
225
|
+ <text className='money-name'>{formatPrice(totalPrice.cashback)}元</text>
|
|
226
|
+ </view>
|
|
227
|
+ <view className='money-title'>
|
|
228
|
+ 退款金额:{" "}
|
|
229
|
+ <text className='money-name'>{formatPrice(totalPrice.refundPrice)}元</text>
|
|
230
|
+ </view>
|
|
231
|
+ <view className='ul-li-text'>
|
|
232
|
+ <view className='ul-li-view'></view>
|
|
233
|
+ <text className='ul-li-textname'>退款金额不可修改</text>
|
|
234
|
+ </view>
|
|
235
|
+ <view className='ul-li-text'>
|
|
236
|
+ <view className='ul-li-view'></view>
|
|
237
|
+ <text className='ul-li-textname'>
|
|
238
|
+ 下单获得返现金额,会在退款时被扣除;
|
|
239
|
+ </text>
|
|
240
|
+ </view>
|
|
241
|
+ <view className='ul-li-text'>
|
|
242
|
+ <view className='ul-li-view'></view>
|
|
243
|
+ <text className='ul-li-textname'>退款将在七个工作日内原路退还。</text>
|
|
244
|
+ </view>
|
|
245
|
+ <view className='button-info'>
|
|
246
|
+ <Button className='button-box' onClick={() => onRefund()}>
|
|
247
|
+ 提交申请
|
|
248
|
+ </Button>
|
|
249
|
+ </view>
|
|
250
|
+ </View>
|
256
|
251
|
</scroll-view>
|
257
|
|
-</View>
|
258
|
252
|
</view >
|
259
|
253
|
);
|
260
|
254
|
});
|