|
|
@ -1,288 +1,383 @@ |
|
|
|
import React from 'react'; |
|
|
|
import React, { useState } from "react"; |
|
|
|
import {View, Text, Dimensions, StyleSheet, ScrollView} from 'react-native'; |
|
|
|
import { |
|
|
|
import Book from './components/Book'; |
|
|
|
View, |
|
|
|
import {connect} from 'react-redux'; |
|
|
|
Text, |
|
|
|
import tw from 'tailwind-react-native-classnames'; |
|
|
|
Dimensions, |
|
|
|
import b1Image from './assets/b1.png'; |
|
|
|
StyleSheet, |
|
|
|
import _ from 'lodash'; |
|
|
|
ScrollView, |
|
|
|
|
|
|
|
SafeAreaView, |
|
|
|
|
|
|
|
Platform, |
|
|
|
|
|
|
|
StatusBar, |
|
|
|
|
|
|
|
LayoutAnimation, |
|
|
|
|
|
|
|
} from "react-native"; |
|
|
|
|
|
|
|
import Navbar from "../../components/Navbar"; |
|
|
|
|
|
|
|
import Drawer from "../../components/Drawer"; |
|
|
|
|
|
|
|
import Book from "./components/Book"; |
|
|
|
|
|
|
|
import { connect } from "react-redux"; |
|
|
|
|
|
|
|
import tw from "tailwind-react-native-classnames"; |
|
|
|
|
|
|
|
import b1Image from "./assets/b1.png"; |
|
|
|
|
|
|
|
import _ from "lodash"; |
|
|
|
|
|
|
|
|
|
|
|
const width = Dimensions.get('window').width; |
|
|
|
const width = Dimensions.get("window").width; |
|
|
|
const height = Dimensions.get('window').height; |
|
|
|
const height = Dimensions.get("window").height; |
|
|
|
|
|
|
|
|
|
|
|
const colors = { |
|
|
|
const colors = { |
|
|
|
1: '#FFF700', |
|
|
|
1: "#FFF700", |
|
|
|
4: '#FF0000', |
|
|
|
4: "#FF0000", |
|
|
|
3: '#4CFF00', |
|
|
|
3: "#4CFF00", |
|
|
|
2: '#196EC0', |
|
|
|
2: "#196EC0", |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const status = { |
|
|
|
const status = { |
|
|
|
1: 'در حال پردازش', |
|
|
|
1: "در حال پردازش", |
|
|
|
4: 'درخواست رد شد', |
|
|
|
4: "درخواست رد شد", |
|
|
|
3: 'تکمیل شد', |
|
|
|
3: "تکمیل شد", |
|
|
|
2: 'ارسال شده', |
|
|
|
2: "ارسال شده", |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
function OrderDetails({ order }) { |
|
|
|
function OrderDetails({ order }) { |
|
|
|
|
|
|
|
const [position, setPosition] = useState("100%"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const setBoxPosition = () => { |
|
|
|
|
|
|
|
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut); |
|
|
|
|
|
|
|
setPosition(position === "100%" ? "0%" : "100%"); |
|
|
|
|
|
|
|
}; |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
|
|
|
|
<SafeAreaView |
|
|
|
|
|
|
|
style={{ |
|
|
|
|
|
|
|
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0, |
|
|
|
|
|
|
|
position: "relative", |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<Navbar setBoxPosition={setBoxPosition} back={true} /> |
|
|
|
|
|
|
|
<Drawer setBoxPosition={setBoxPosition} position={position} /> |
|
|
|
<ScrollView |
|
|
|
<ScrollView |
|
|
|
contentContainerStyle={styles.contentContainerStyle} |
|
|
|
contentContainerStyle={styles.contentContainerStyle} |
|
|
|
style={styles.container}> |
|
|
|
style={styles.container} |
|
|
|
|
|
|
|
> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style( |
|
|
|
tw.style( |
|
|
|
'flex flex-row-reverse w-full justify-between items-center p-3', |
|
|
|
"flex flex-row-reverse w-full justify-between items-center p-3" |
|
|
|
), |
|
|
|
), |
|
|
|
{backgroundColor: '#EEF7FF'}, |
|
|
|
{ backgroundColor: "#EEF7FF" }, |
|
|
|
]}> |
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#20297B", fontFamily: "regular" }, |
|
|
|
{fontSize: width / 32, color: '#20297B'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
{_.join(['شماره سفارش:', order.number], ' ')} |
|
|
|
{_.join(["شماره سفارش:", order.number], " ")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<View style={tw.style('flex flex-row-reverse items-center')}> |
|
|
|
<View style={tw.style("flex flex-row-reverse items-center")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light'), |
|
|
|
{ color: "#20297B", fontSize: width / 36, fontFamily: "bold" }, |
|
|
|
{color: '#20297B', fontSize: width / 32}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
{status[order.status]} |
|
|
|
{status[order.status]} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('h-4 w-4 rounded-full mr-2'), |
|
|
|
tw.style("h-4 w-4 rounded-full mr-2"), |
|
|
|
{ backgroundColor: colors[order.status] }, |
|
|
|
{ backgroundColor: colors[order.status] }, |
|
|
|
]}></View> |
|
|
|
]} |
|
|
|
|
|
|
|
></View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('w-full flex flex-row-reverse py-4'), |
|
|
|
tw.style("w-full flex flex-row-reverse py-4"), |
|
|
|
{borderBottomWidth: 1, borderColor: '#86A0B933'}, |
|
|
|
{ borderBottomWidth: 1, borderColor: "#86A0B933" }, |
|
|
|
]}> |
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
آدرس تحویل: |
|
|
|
آدرس تحویل: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('flex-1 font-light text-right mr-2'), |
|
|
|
tw.style("flex-1 font-light text-right mr-2"), |
|
|
|
{fontSize: width / 32, lineHeight: 17, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 40, |
|
|
|
|
|
|
|
lineHeight: 17, |
|
|
|
|
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "light", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
{order.address} |
|
|
|
{order.address} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('w-full flex flex-row-reverse justify-between py-4'), |
|
|
|
tw.style("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
{borderBottomWidth: 1, borderColor: '#86A0B933'}, |
|
|
|
{ borderBottomWidth: 1, borderColor: "#86A0B933" }, |
|
|
|
]}> |
|
|
|
]} |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
> |
|
|
|
|
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
مشخصات تحویل گیرنده: |
|
|
|
مشخصات تحویل گیرنده: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 15, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 40, |
|
|
|
|
|
|
|
lineHeight: 17, |
|
|
|
|
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "light", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
{order.name} |
|
|
|
{order.name} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
شماره موبایل: |
|
|
|
شماره موبایل: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 17, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 40, |
|
|
|
|
|
|
|
lineHeight: 17, |
|
|
|
|
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "light", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
{order.cellphone} |
|
|
|
{order.cellphone} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('w-full rounded-md flex flex-col p-4 items-end mt-2'), |
|
|
|
tw.style("w-full rounded-md flex flex-col p-4 items-end mt-2"), |
|
|
|
{backgroundColor: '#EEF6FF'}, |
|
|
|
{ backgroundColor: "#EEF6FF" }, |
|
|
|
]}> |
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
{_.join(['کد تحویل', order.receiveCode], ' ')} |
|
|
|
{_.join(["کد تحویل", order.receiveCode], " ")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mt-2'), |
|
|
|
tw.style("font-light text-right mt-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 17, color: '#05335F'}, |
|
|
|
{ fontSize: width / 40, color: "#05335F", fontFamily: "regular" }, |
|
|
|
]}> |
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
این کد را پس از دریافت کالا، به مامور ارسال دانوین اعلام فرمایید |
|
|
|
این کد را پس از دریافت کالا، به مامور ارسال دانوین اعلام فرمایید |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View style={tw.style('w-full flex flex-col items-end')}> |
|
|
|
<View style={tw.style("w-full flex flex-col items-end")}> |
|
|
|
{order.items.map((item, index) => ( |
|
|
|
{order.items.map((item, index) => ( |
|
|
|
<Book book={item} key={index} /> |
|
|
|
<Book book={item} key={index} /> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[tw.style('w-full flex flex-row-reverse justify-between py-4')]}> |
|
|
|
style={[ |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
tw.style("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
مبلغ سبد خرید: |
|
|
|
مبلغ سبد خرید: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 15, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 39, |
|
|
|
{_.join([order.shoppingCardPrice, 'تومان'], ' ')} |
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{_.join([order.shoppingCardPrice, "تومان"], " ")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
تخفیف: |
|
|
|
تخفیف: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 17, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 39, |
|
|
|
{_.join([order.discountPrice, 'تومان'], ' ')} |
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{_.join([order.discountPrice, "تومان"], " ")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('w-full flex flex-row-reverse justify-between py-4'), |
|
|
|
tw.style("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
{borderBottomWidth: 1, borderColor: '#86A0B933'}, |
|
|
|
{ borderBottomWidth: 1, borderColor: "#86A0B933" }, |
|
|
|
]}> |
|
|
|
]} |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
> |
|
|
|
|
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
هزینه ارسال کالا: |
|
|
|
هزینه ارسال کالا: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 15, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 39, |
|
|
|
{_.join([order.sendPrice, 'تومان'], ' ')} |
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{_.join([order.sendPrice, "تومان"], " ")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
جمع هزینه پرداختی: |
|
|
|
جمع هزینه پرداختی: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 17, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 39, |
|
|
|
{_.join([order.totalPrice, 'تومان'], ' ')} |
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{_.join([order.totalPrice, "تومان"], " ")} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('w-full flex flex-row-reverse justify-between py-4'), |
|
|
|
tw.style("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
{borderBottomWidth: 1, borderColor: '#86A0B933'}, |
|
|
|
{ borderBottomWidth: 1, borderColor: "#86A0B933" }, |
|
|
|
]}> |
|
|
|
]} |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
> |
|
|
|
|
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
نحوه پرداخت: |
|
|
|
نحوه پرداخت: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 15, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 39, |
|
|
|
|
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
{order.payMethod} |
|
|
|
{order.payMethod} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
شماره تراکنش: |
|
|
|
شماره تراکنش: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 17, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 39, |
|
|
|
|
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
{order.transactionNumber} |
|
|
|
{order.transactionNumber} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[tw.style('w-full flex flex-row-reverse justify-between py-4')]}> |
|
|
|
style={[ |
|
|
|
<View style={tw.style('flex flex-row-reverse')}> |
|
|
|
tw.style("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<View style={tw.style("flex flex-row-reverse")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-medium'), |
|
|
|
{ fontSize: width / 36, color: "#05335F", fontFamily: "bold" }, |
|
|
|
{fontSize: width / 32, color: '#05335F'}, |
|
|
|
]} |
|
|
|
]}> |
|
|
|
> |
|
|
|
تاریخ تحویل: |
|
|
|
تاریخ تحویل: |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw.style('font-light text-right mr-1'), |
|
|
|
tw.style("font-light text-right mr-1"), |
|
|
|
{fontSize: width / 32, lineHeight: 15, color: '#05335F'}, |
|
|
|
{ |
|
|
|
]}> |
|
|
|
fontSize: width / 39, |
|
|
|
|
|
|
|
color: "#05335F", |
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]} |
|
|
|
|
|
|
|
> |
|
|
|
{order.date} |
|
|
|
{order.date} |
|
|
|
</Text> |
|
|
|
</Text> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
</ScrollView> |
|
|
|
</ScrollView> |
|
|
|
|
|
|
|
</SafeAreaView> |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({ |
|
|
|
const styles = StyleSheet.create({ |
|
|
|
contentContainerStyle: { |
|
|
|
contentContainerStyle: { |
|
|
|
paddingBottom: 50, |
|
|
|
paddingBottom: 100, |
|
|
|
alignItems: 'flex-end', |
|
|
|
alignItems: "flex-end", |
|
|
|
}, |
|
|
|
}, |
|
|
|
container: { |
|
|
|
container: { |
|
|
|
width: width, |
|
|
|
width: width, |
|
|
|
backgroundColor: 'white', |
|
|
|
backgroundColor: "white", |
|
|
|
flexDirection: 'column', |
|
|
|
flexDirection: "column", |
|
|
|
paddingVertical: 5, |
|
|
|
paddingVertical: 5, |
|
|
|
paddingHorizontal: 10, |
|
|
|
paddingHorizontal: 10, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -292,21 +387,21 @@ export default OrderDetails; |
|
|
|
|
|
|
|
|
|
|
|
OrderDetails.defaultProps = { |
|
|
|
OrderDetails.defaultProps = { |
|
|
|
order: { |
|
|
|
order: { |
|
|
|
number: '535353523653', |
|
|
|
number: "535353523653", |
|
|
|
receiveCode: '300031', |
|
|
|
receiveCode: "300031", |
|
|
|
status: 2, |
|
|
|
status: 2, |
|
|
|
items: [b1Image, b1Image], |
|
|
|
items: [b1Image, b1Image], |
|
|
|
date: '1400/1/11', |
|
|
|
date: "1400/1/11", |
|
|
|
cost: '1.240.000', |
|
|
|
cost: "1.240.000", |
|
|
|
address: |
|
|
|
address: |
|
|
|
'تهران خیابان انقلاب حدفاصل ابوریحان و فلسطین بن بست سروش پلاک 2 واحد 12 شرقی', |
|
|
|
"تهران خیابان انقلاب حدفاصل ابوریحان و فلسطین بن بست سروش پلاک 2 واحد 12 شرقی", |
|
|
|
name: 'هومن عابدی', |
|
|
|
name: "هومن عابدی", |
|
|
|
cellphone: '09121234568', |
|
|
|
cellphone: "09121234568", |
|
|
|
shoppingCardPrice: '981.000', |
|
|
|
shoppingCardPrice: "981.000", |
|
|
|
discountPrice: '12.000', |
|
|
|
discountPrice: "12.000", |
|
|
|
sendPrice: '18.000', |
|
|
|
sendPrice: "18.000", |
|
|
|
totalPrice: '18.000', |
|
|
|
totalPrice: "18.000", |
|
|
|
payMethod: 'حضوری', |
|
|
|
payMethod: "حضوری", |
|
|
|
transactionNumber: ' BS3194DNB98312', |
|
|
|
transactionNumber: " BS3194DNB98312", |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|