吃个甘蔗嚼一年 3 jaren geleden
bovenliggende
commit
b94a1a2f68
2 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 3
    1
      src/components/ShopUnused/index.jsx
  2. 1
    1
      src/components/ShopUsed/index.jsx

+ 3
- 1
src/components/ShopUnused/index.jsx Bestand weergeven

@@ -25,7 +25,9 @@ export default (props) => {
25 25
         <image className='orderImg' src={item.poster} mode='aspectFit' />
26 26
         <view className='orderRight'>
27 27
           <view className='foodName'>{item.description}</view>
28
-          <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>{(item.actualPrice / 100) - (item.commissionCharge / 100).toFixed(2)}</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
28
+
29
+
30
+          <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>{(item.actualPrice / 100) - (item.cashback / 100) - (item.commissionCharge / 100).toFixed(2)}</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
29 31
           <view>已下单:等待客户上门就餐</view>
30 32
         </view>
31 33
         <view className='line' />

+ 1
- 1
src/components/ShopUsed/index.jsx Bestand weergeven

@@ -39,7 +39,7 @@ export default (props) => {
39 39
         <Image className='orderImg' src={item.poster} mode='aspectFit' />
40 40
         <View className='orderRight'>
41 41
           <View className='foodName'>{item.description}</View>
42
-          <View className='price'>合计金额:¥<Text style={{ fontSize: '24rpx' }}>{(item.actualPrice / 100) - (item.commissionCharge / 100).toFixed(2)}</Text>元 <Text className='pnum'>数量:<Text>1</Text>张</Text> </View>
42
+          <View className='price'>合计金额:¥<Text style={{ fontSize: '24rpx' }}>{(item.actualPrice / 100) - (item.cashback / 100) - (item.commissionCharge / 100).toFixed(2)}</Text>元 <Text className='pnum'>数量:<Text>1</Text>张</Text> </View>
43 43
         </View>
44 44
 
45 45
         <View className='veri_Date' > 核销时间:{formatTimes(item.verifiedDate, 'yyyy-MM-dd hh:mm')}</View>