问题哥
问题哥
  • 发布:2023-03-28 11:08
  • 更新:2023-03-28 13:54
  • 阅读:245

app使用uni-popup报错

分类:uni-app

11:00:35.544 Not found -1,40,57 at view.umd.min.js:1
11:00:35.636 Not found -1,40,57,1 at view.umd.min.js:1
11:00:35.637 Not found -1,40,57,2 at view.umd.min.js:1
11:00:35.660 Not found -1,40;-1,40,57,2,60 at view.umd.min.js:1
11:00:35.707 Not found -1,40,57,1 at view.umd.min.js:1
11:00:35.713 Not found -1,40,57,2 at view.umd.min.js:1

代码如下:
html:
<uni-popup ref="carNumberPop" type="bottom" :animation="true" background-color="#fff">
<view class="popup-content">
<view class="number-wrap">
<car-number v-model="carNumber"></car-number>
</view>
<view class="button_box">
<view class="button" @click="pay(2)">确认</view>
</view>
</view>
</uni-popup>

js:
car_number_change() {
this.$refs['carNumberPop'].open()
},

2023-03-28 11:08 负责人:无 分享
已邀请:
问题哥

问题哥 (作者)

求解

不老刘

不老刘

如果是这样 <uni-popup ref="popup" type="center" :maskClick="false">  

那么调用的时候是  
this.$refs.popup.open();
  • 问题哥 (作者)

    改成这样还是报错

    2023-03-28 16:21

要回复问题请先登录注册