|
@@ -4,17 +4,15 @@ import { getPackageDetail } from "@/services/home";
|
4
|
4
|
import { saveOrder, getOrderSub, payOrder } from "@/services/payOrder";
|
5
|
5
|
import { useState, useEffect } from "react";
|
6
|
6
|
import formatPrice from "@/utils/formatPrice";
|
|
7
|
+import { Button, Radio, View } from "@tarojs/components";
|
7
|
8
|
import InputNumber from "@/components/InputNumber";
|
8
|
|
-import { Button, Checkbox, Input, RadioGroup, Radio } from "@tarojs/components";
|
9
|
9
|
import AuthPage from '@/components/AuthPage'
|
10
|
|
-import food from "@/assets/icons/ProCard/food.png";
|
11
|
|
-import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
|
12
|
10
|
import CustomNav from "@/components/CustomNav";
|
13
|
11
|
import OrderMolded from "@/components/OrderMolded";
|
14
|
12
|
import Popup from "@/components/Popup";
|
|
13
|
+import Card from "./Card";
|
15
|
14
|
import "./style.less";
|
16
|
15
|
|
17
|
|
-import Card from "./Card";
|
18
|
16
|
|
19
|
17
|
export default withLayout((props) => {
|
20
|
18
|
//#region
|
|
@@ -188,11 +186,12 @@ export default withLayout((props) => {
|
188
|
186
|
setTotalPrice(total);
|
189
|
187
|
}, [list]);
|
190
|
188
|
|
191
|
|
- //#endregion
|
192
|
189
|
return (
|
193
|
190
|
!person.phone ? <AuthPage /> :
|
194
|
|
- <view class='container'>
|
195
|
|
- <CustomNav title='订单' />
|
|
191
|
+ <view class='page-index container'>
|
|
192
|
+ <view className='index-navbar'>
|
|
193
|
+ <CustomNav title='订单' />
|
|
194
|
+ </view>
|
196
|
195
|
<Popup show={showDialog} maskClosable={false}>
|
197
|
196
|
<OrderMolded item={detail} />
|
198
|
197
|
<InputNumber value={BuyNumber} onChange={x => setBuyNumber(x)} style={{ marginTop: '40rpx' }} />
|
|
@@ -216,10 +215,10 @@ export default withLayout((props) => {
|
216
|
215
|
{/* 协议条款 */}
|
217
|
216
|
<view className='Card-number-box'>
|
218
|
217
|
<view className='Card-number'>
|
219
|
|
- <text style='left:29px;position: absolute; padding-top:20px'>
|
|
218
|
+ <text>
|
220
|
219
|
手机号码:
|
221
|
220
|
</text>
|
222
|
|
- <text style='right:29px;position: absolute;padding-top:20px'>
|
|
221
|
+ <text style='right:0;position: absolute;'>
|
223
|
222
|
{person.phone}
|
224
|
223
|
</text>
|
225
|
224
|
</view>
|
|
@@ -245,23 +244,14 @@ export default withLayout((props) => {
|
245
|
244
|
|
246
|
245
|
</view>
|
247
|
246
|
{/* 支付按钮 */}
|
248
|
|
- <view className='button-box-button-box'>
|
249
|
|
- <view className='button-text-image'>
|
250
|
|
- <text className='button-text-money-hot'>
|
251
|
|
- 返现¥{formatPrice(totalPrice?.cashback || 0)}
|
252
|
|
- </text>
|
253
|
|
- <image className='button-image' src={ProCard_hot}>
|
254
|
|
- 123123
|
255
|
|
- </image>
|
256
|
|
- <view className='button-text-money'>
|
257
|
|
- 门店市面价:{formatPrice(totalPrice?.standardPrice || 0)}元
|
258
|
|
- </view>
|
259
|
|
- </view>
|
260
|
|
- <Button className='button-box-one' onClick={() => onShowPay()}>
|
261
|
|
- ¥{formatPrice(totalPrice?.actualPrice || 0)}元
|
262
|
|
- <text className='button-text-one'>支付订单</text>
|
263
|
|
- </Button>
|
264
|
|
- </view>
|
|
247
|
+ <Button className='payorder' onClick={() => onShowPay()}>
|
|
248
|
+ <View className='paytext'>¥{formatPrice(totalPrice?.actualPrice || 0)}元</View>
|
|
249
|
+ <View className='paycontent'>
|
|
250
|
+ <View className='paybuttontop'>返现¥{formatPrice(totalPrice?.cashback || 0)}</View>
|
|
251
|
+ <View className='paybuttonbottom'>门店市面价:{formatPrice(totalPrice?.standardPrice || 0)}元</View>
|
|
252
|
+ </View>
|
|
253
|
+ <View className='paytext'>支付订单</View>
|
|
254
|
+ </Button>
|
265
|
255
|
</view>
|
266
|
256
|
</view>
|
267
|
257
|
);
|