Commit 4b226c29 by zhonghao

JKWRD-75: 人脸识别面板

parent a8f311f0
...@@ -92,10 +92,15 @@ class OrderDetailMini extends Component { ...@@ -92,10 +92,15 @@ class OrderDetailMini extends Component {
)} )}
</View> </View>
<View style={styles.TdStyle}> <View style={styles.TdStyle}>
{item.num ? (
<Text style={styles.TdText}> {NP.round(item.num, 0).toFixed(0)} </Text> <Text style={styles.TdText}> {NP.round(item.num, 0).toFixed(0)} </Text>
) : (
<Text style={styles.TdText}> 0 </Text>
)}
</View> </View>
<View style={styles.TdStyle}> <View style={styles.TdStyle}>
{item.price ? ( { item.num ? (
item.price ? (
<Text style={styles.TdText}> <Text style={styles.TdText}>
{NP.round(item.price * item.num, 2).toFixed(2)} {NP.round(item.price * item.num, 2).toFixed(2)}
</Text> </Text>
...@@ -103,7 +108,10 @@ class OrderDetailMini extends Component { ...@@ -103,7 +108,10 @@ class OrderDetailMini extends Component {
<Text style={styles.TdText}> <Text style={styles.TdText}>
{NP.round(item.prePrice * item.num, 2).toFixed(2)} {NP.round(item.prePrice * item.num, 2).toFixed(2)}
</Text> </Text>
)} )
) : (
<Text style={styles.TdText}> 0.00 </Text>
) }
</View> </View>
</View> </View>
); );
......
...@@ -2,7 +2,7 @@ const app = ''; // eg: .25h/.eg ...@@ -2,7 +2,7 @@ const app = ''; // eg: .25h/.eg
export const isProd = process.env.NODE_ENV === 'production'; export const isProd = process.env.NODE_ENV === 'production';
export const host = isProd export const host = isProd
? `https://api${app}.vs-u.com` ? `https://api${app}.vs-u.com`
: 'http://192.168.88.171:7001'; : 'http://192.168.88.88:7001';
export const login = `https://m${app}.vs-u.com`; export const login = `https://m${app}.vs-u.com`;
export const qrHost = login; export const qrHost = login;
export const imgUrl = 'http://barcod.oss-cn-shenzhen.aliyuncs.com/images/'; export const imgUrl = 'http://barcod.oss-cn-shenzhen.aliyuncs.com/images/';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment