(function(mui, doc, $) {
mui.init({
swipeBack: true //启用右滑关闭功能
});
mui.plusReady(function() {
var cityPicker = new mui.PopPicker({
layer: 1
});
cityPicker.setData(cityData1);
$("#selectOpttion").on("tap", function() {
cityPicker.show(function(items) {
console.log(JSON.stringify(items[0]))
$("#selectOpttion input").val((items[0] || {}).text);
document.getElementsByName("paymentMethod")[0].value = (items[0] || {}).text;
document.getElementsByName("id")[0].value = (items[0] || {}).value;
});
});
})
})(mui, document, jQuery)
在 new mui.PopPicker时报错
报错信息: Uncaught TypeError: undefined is not a function at b2b2c/html/order/order_mode.html:110
1 个回复
DCloud_UNI_CHB
上传一个能重现问题的完整的示例页面吧