<view class="invoiceModal-bottom" :style="{height:isiPhoneX?'80':'50'}px"> <view class="invoiceModal-btBox"> <view class="invoiceModal-bt" @click="submitInvoiceClick">确定</view> </view> <view style="height:30px;width:100%;" v-if="isiPhoneX"></view> </view> 检查错误
时间: 2023-07-06 12:27:34 浏览: 84
AX2227_BTBOXSDK_V110_20141010.rar_APP_LLP_QN8065_建荣 蓝牙芯片_建荣16170
这段代码中存在一个错误,即在计算样式时,需要将字符串 `"80"` 和 `"50"` 转换为数字,即使用 `parseInt()` 或 `parseFloat()` 方法。所以正确的写法应该是:
```html
<view class="invoiceModal-bottom" :style="{height:isiPhoneX?80:50}px">
<view class="invoiceModal-btBox">
<view class="invoiceModal-bt" @click="submitInvoiceClick">确定</view>
</view>
<view style="height:30px;width:100%;" v-if="isiPhoneX"></view>
</view>
```
阅读全文