Răsfoiți Sursa

refactor(红包组件): 简化按钮逻辑并移除订单详情中冗余的优惠金额模板

ylong 1 săptămână în urmă
părinte
comite
6cf42f5f04

+ 2 - 1
pages-car/components/red-packet-item.vue

@@ -23,7 +23,8 @@
                 </view>
                 </view>
 
 
                 <view class="action-box" v-if="status === 0">
                 <view class="action-box" v-if="status === 0">
-                    <view class="btn-use" @click="onUse">{{ info.type == 2 ? '赠送给朋友' : '立即使用' }}</view>
+                    <view class="btn-use" @click="onUse">立即使用</view>
+                    <!-- <view class="btn-use" @click="onUse">{{ info.type == 2 ? '赠送给朋友' : '立即使用' }}</view> -->
                 </view>
                 </view>
             </view>
             </view>
         </view>
         </view>

+ 0 - 6
pages-car/pages/order-detail.vue

@@ -99,12 +99,6 @@
                         <text class="discount">-¥{{ discount.discountMoney || '0.00' }}</text>
                         <text class="discount">-¥{{ discount.discountMoney || '0.00' }}</text>
                     </view>
                     </view>
                 </template>
                 </template>
-                <template v-else>
-                    <view class="row">
-                        <text>优惠金额</text>
-                        <text class="discount">-¥{{ orderInfo.discountMoney || '0.00' }}</text>
-                    </view>
-                </template>
                 <view class="divider"></view>
                 <view class="divider"></view>
                 <view class="real-pay-row">
                 <view class="real-pay-row">
                     <text>实付款 ({{ orderInfo.payType == 1 ? '余额支付' : '微信支付' }})</text>
                     <text>实付款 ({{ orderInfo.payType == 1 ? '余额支付' : '微信支付' }})</text>