leegee
leegee
  • 发布:2018-07-12 16:31
  • 更新:2018-07-12 16:31
  • 阅读:851

picker的问题 不知道为什么启动不了

分类:MUI

<!doctype html>
<html>

<head>
<title>Hello MUI</title>
<#include "ebeitmobile/common/header/head.ev">
<script type="text/javascript" src="${ctx}/ws/ebeitui/common/jcryption/jcryption.js"></script>
<script type="text/javascript">
// mui.init();

mui.init({
swipeBack:true // 启用右滑关闭功能
});

var subinvman_sel=$("#subinvman_sel")[0];
if(subinvman_sel)
{
var picker=new mui.PopPicker();
picker.setData([{value:'store',text:'库内上架'},{value:'deli',text:'来货上架'}]);
document.querySelector("#subinvman_sel").addEventListener("tap",function(){
picker.show(function(items){
$("#subinvman_sel")[0].innerHTML=items[0].text;
});
});
}

</script>
<style>

.title {
margin: 20px 15px 10px;
color: #6d6d72;
font-size: 15px;
}

.mui-input-row {
margin-top: 5px;
background-color: gainsboro;
line-height: 40px;
margin-bottom: 10px;
}

.mui-input-clear {
margin-top: 10px;
}

</style>
</head>

<body>

<header class="mui-bar mui-bar-nav">  
<a class="mui-action-back mui-icon mui-pull-left mui-icon-left-nav"></a>  
<h1 class="mui-title">签收上架</h1>  
</header>  

<div class="mui-content">  
<div class="mui-input-row">  
<label>标签条码</label>  
<input type="goodsId" class="mui-input-clear" placeholder="请输入或者扫描条码">  
</div>  

<div class="mui-content">  
<label>条码类型</label>  
<button id='subinvman_sel' class="mui-btn mui-btn-block" type='button'>请选择</button>   
</div>  

<div class="mui-button-row">  
<button type="button" class="mui-btn mui-btn-primary" >确认</button>  
</div>  
</div>  

</body>

</html>

2018-07-12 16:31 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复