<van-submit-bar
:price="allPrice"
button-text="提交订单"
@submit="handleSubmitOrder"
class="submit-bar"
:loading="submitBarLoading"
>
</van-submit-bar>
报错
VM3610:1 MiniProgramError
Cannot read property '__args__' of undefined
TypeError: Cannot read property '__args__' of undefined
at processEventArgs (http://127.0.0.1:33436/appservice/common/vendor.js:1519:29)
at http://127.0.0.1:33436/appservice/common/vendor.js:1627:26
at Array.forEach (<anonymous>)
at http://127.0.0.1:33436/appservice/common/vendor.js:1597:21
at Array.forEach (<anonymous>)
at et.handleEvent [as __e] (http://127.0.0.1:33436/appservice/common/vendor.js:1588:15)
at et.E.d.(anonymous function).(anonymous function).d.addListener.capture (http://127.0.0.1:33436/appservice/__dev__/WAService.js:2:2192720)
at r.safeCallback (http://127.0.0.1:33436/appservice/__dev__/WAService.js:2:2015851)
at r.call (http://127.0.0.1:33436/appservice/__dev__/WAService.js:2:2015744)
at o (http://127.0.0.1:33436/appservice/__dev__/WAService.js:2:2019168)
改成
@submit="handleSubmitOrder(e)"
就可以了