|
我有一个按钮,需要用户登录后,根据yggx这个列的值来分别跳转到相应的页面去处理业务- Model.prototype.modelLoad = function(event){
- var ygname=localStorage.getItem("yggxname");
- if(ygname!=""){
- this.comp("ygData").setFilter('filter0',"yg_name = '"+ygname+"'");
- this.comp("ygData").refreshData();
- var yggx=this.comp("ygData").getValue("yg_gx");
- this.comp("jdData").setFilter('filter1',"jd_yg = '"+ygname+"' and jd_gx='"+yggx+"'");
- this.comp("jdData").refreshData();
- this.comp("list1").refresh(true);
- }else{
- justep.Util.hint("当前无账号登录!")
- };
- };
-
- Model.prototype.button1Click = function(event){
- var yggx =this.comp("ygData").getValue("yg_gx");
- if(yggx=="工艺"){
- justep.Shell.showPage("gyzb",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- } else if(yggx=="制版"){
- justep.Shell.showPage("gyzb",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="横机"){
- justep.Shell.showPage("gyzb",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="套口"){
- justep.Shell.showPage("gyzb",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="嵌花机"){
- justep.Shell.showPage("gyzb",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="洗烫"){
- justep.Shell.showPage("gyzb",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="绣勾"){
- justep.Shell.showPage("gyzb",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="电脑机"){
- justep.Shell.showPage("dlj",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="发纱"){
- justep.Shell.showPage("fs",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="手缝"){
- justep.Shell.showPage("gyzb",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else if(yggx=="发货"){
- justep.Shell.showPage("fh",{
- "yggx":this.comp("ygData").getValue("yg_gx"),
- "ygname":this.comp("ygData").getValue("yg_name"),
- });
- }else{
- justep.Util.hint("此工序无需再记录!")
- }
-
- };
复制代码
这样写法,在电脑上或手机上模拟没有问题,但打包后就始终执行 justep.Util.hint("此工序无需再记录!")这个了,怎么回事? |
|