Commit 393df976 by zeven

Merge remote-tracking branch 'origin/zhonghao'

parents 007c4fd2 4b226c29
......@@ -92,10 +92,15 @@ class OrderDetailMini extends Component {
)}
</View>
<View style={styles.TdStyle}>
<Text style={styles.TdText}> {NP.round(item.num, 0).toFixed(0)} </Text>
{item.num ? (
<Text style={styles.TdText}> {NP.round(item.num, 0).toFixed(0)} </Text>
) : (
<Text style={styles.TdText}> 0 </Text>
)}
</View>
<View style={styles.TdStyle}>
{item.price ? (
{ item.num ? (
item.price ? (
<Text style={styles.TdText}>
{NP.round(item.price * item.num, 2).toFixed(2)}
</Text>
......@@ -103,7 +108,10 @@ class OrderDetailMini extends Component {
<Text style={styles.TdText}>
{NP.round(item.prePrice * item.num, 2).toFixed(2)}
</Text>
)}
)
) : (
<Text style={styles.TdText}> 0.00 </Text>
) }
</View>
</View>
);
......
......@@ -2,7 +2,7 @@ const app = ''; // eg: .25h/.eg
export const isProd = process.env.NODE_ENV === 'production';
export const host = isProd
? `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 qrHost = login;
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