起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2046|回复: 8

[结贴] 获取的object对象始终不对,是哪里错误,能帮忙看看吗

[复制链接]

55

主题

142

帖子

330

积分

中级会员

Rank: 3Rank: 3

积分
330
QQ
发表于 2016-5-9 08:56:10 | 显示全部楼层 |阅读模式
版本: BeX5V3.1 小版本号: 3.4
数据库: MS SQLServer 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 7 浏览器: Chrome
QQ图片20160509084823.png

QQ图片20160509084955.jpg
这里的拍照功能仿pai案例,但是绑定获取图片的这一段始终报错,应该是$object上下文对象获取得不对,跟踪的结始终是model对象,但是我仔细对比了pai案例的源码,几乎都一致了啊,为什么pai案例$object就能获取到当前行对象,而我的代码始终获取不到呢,能帮忙指点一下吗,十分感谢,为这个问题折腾好几天了,始终找不到原因。
附上我的源码:
<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
  design="device:m;">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="top:228px;left:64px;height:auto;"
   >
    <div component="$UI/system/components/justep/data/bizData" autoLoad="true"
      xid="bizData1" concept="HR_SignRecord" columns="HR_SignRecord,fPersonID,fPersonName,fDay,fTime1,fAddress1,fTime,fAddress"
      isTree="true" limit="-1">
      <creator xid="default1" action="/HR/sign/logic/action/createHR_SignRecordAction"/>  
      <reader xid="default2" action="/HR/sign/logic/action/queryHR_SignRecord1Action"/>  
      <writer xid="default3" action="/HR/sign/logic/action/saveHR_SignRecordAction"/>
    </div>
  </div>  
  <span component="$UI/system/components/justep/windowDialog/windowDialog" xid="windowDialog1"
    src="$UI/HR/sign/process/sign/list.w" title="签到记录"/>
  <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
    xid="panel1" bottom="true">
    <div class="x-panel-top" xid="top1">
      <div component="$UI/system/components/justep/titleBar/titleBar" class="x-titlebar"
        xid="titleBar1" title="移动签到">
        <div class="x-titlebar-left" xid="left1">
          <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-only-icon"
            label="button" xid="button1" icon="icon-chevron-left">
            <i xid="i3" class="icon-chevron-left"/>  
            <span xid="span3"/>
          </a>
        </div>  
        <div class="x-titlebar-title" xid="title1">移动签到</div>  
        <div class="x-titlebar-right reverse" xid="right1">
          <a component="$UI/system/components/justep/button/button" class="btn btn-link"
            label="设置" xid="button2">
            <i xid="i2"/>  
            <span xid="span2">设置</span>
          </a>
        </div>
      </div>
    </div>  
    <div class="x-panel-content" xid="content1">
      <div component="$UI/system/components/justep/list/list" class="x-list"
        xid="list1" data="bizData1">
        <div component="$UI/system/components/justep/contents/contents" class="x-contents x-full"
          active="0" xid="contents1">
          <div class="x-contents-content" data-bind="css:{'x-content-on-left':$model.isOnLeft.bind($model,$object)(),'active':$model.isOnCenter.bind($model,$object)(),'x-content-on-right':$model.isOnRight.bind($model,$object)()}">
            <div component="$UI/system/components/justep/output/output" class="x-output"
              xid="output1" bind-ref="$model.bizData1.ref("fAddress")"/>
            <div xid="map" style="height:139px;"/>
            <img alt="" style="width:100px;height:100px;" height="30px" class="img-responsive" data-bind="attr:{src:$model.getSrc.bind($model,$object)()}"/>
            <a component="$UI/system/components/justep/button/button" class="btn btn-default btn-only-icon"
              label="button" xid="button3" icon="icon-ios7-camera">
              <i xid="i1" class="icon-ios7-camera"/>  
              <span xid="span1"/>
            </a>
          </div>
        </div>
      </div>
    </div>  
    <div class="x-panel-bottom" xid="bottom1">
      <div component="$UI/system/components/justep/button/buttonGroup" class="btn-group btn-group-lg btn-group-justified center-block"
        tabbed="true" xid="buttonGroup1">
        <a component="$UI/system/components/justep/button/button" class="btn btn-default"
          label="签到" xid="button5">
          <i xid="i7"/>  
          <span xid="span5">签到</span>
        </a>
        <a component="$UI/system/components/justep/button/button" class="btn btn-default"
          label="签退" xid="button4">
          <i xid="i6"/>  
          <span xid="span4">签退</span>
        </a>
      </div>
    </div>
  </div>
</div>




js文件:
define(function(require){
        var $ = require("jquery");
        var justep = require("$UI/system/lib/justep");
        require("$UI/system/lib/cordova/cordova");
        require("cordova!com.justep.cordova.plugin.baidulocation");
        require('$UI/system/lib/jquery/transition');
        var DocUtils = require('$UI/system/components/justep/docCommon/docUtil');
        
        var bizData1;
    var isLeft = true;
        var currentLocation;
        var watchLocationID;
        
        var Model = function(){
            debugger;
                this.callParent();
                this.on('onload',function(){
                        bizData1 = this.comp('bizData1');
                        if(bizData1.getCount() == 0){
                                var row = bizData1.newData({});
//                                paiData.setValue('fScode','随手拍');
//                                paiData.setValue('fSName',"");
                                //paiData.setValue('fCode',"");
                                debugger;
                                bizData1.setValue('fAddress',"");
                                bizData1.saveData();
                        }
                        // Success callback
                    var success = function(p){
                        var latitude = p.coords.latitude;
                                var longitude = p.coords.longitude;
                                currentLocation = latitude + '|' +longitude;
                    };
                    watchLocationID = navigator.geolocation.watchPosition(success, null, {enableHighAccuracy: true});
                });
        
                //this.address = new justep.Bind.observable("");
        };
        


//        Model.prototype.modelLoad = function(event) {
//                //只能在手机app上运行
////                if(!justep.Browser.isX5App){
////                        alert("此功能只能在手机APP中使用!");
////                        justep.Portal.closeWindow();
////                }
//               
//               
//                var me = this;
//               
//                // 如果包含了百度定位插件
//                if(navigator.baiduLocation){
//                        navigator.baiduLocation.getCurrentPosition(function(e) {
//                                var url = require.toUrl("./map.html?operator=chajian&longitude=" + e.coords.longitude + "&latitude=" + e.coords.latitude);
//                                $(me.getElementByXid('map')).html('<iframe xid="mapFrame" src="' + url + '" width="100%" height="100%" style="border:0;"></iframe>');
//                                me.address.set(me.comp("bizData1").getValue("fTime")+e.address);
//                                me.comp("bizData1").setValue("fAddress", e.address);
//                                me.comp("bizData1").setValue("fLongitude", e.coords.longitude);
//                                me.comp("bizData1").setValue("fLatitude", e.coords.latitude);
//                                me.address.set(me.comp("bizData1").getValue("fTime")+" "+e.address);
//
//                                //$(me.getElementByXid("button4")).hide();
//
//                        });
//                        
//                }else{
//                        navigator.geolocation.getCurrentPosition(function(e){
//                                var url = require.toUrl("./map.html?operator=guge&longitude=" + e.coords.longitude + "&latitude=" + e.coords.latitude);
//                                $(me.getElementByXid('map')).html('<iframe xid="mapFrame" src="' + url + '" width="100%" height="100%" style="border:0;"></iframe>');
//
//                                me.comp("bizData1").setValue("fAddress", e.address);
//                                me.address.set(me.comp("bizData1").getValue("fTime")+" "+e.address);
//
//                                //$(me.getElementByXid("button4")).hide();
//                        });
//               
//                }
//
//
//        };
        
        
        //签到
        Model.prototype.button5Click = function(event){
                var data = this.comp("bizData1");
               
                var rows2 = data.find(['fType'],['签退'],true,true,true);
               
               
               
                var rows = data.find(['fType'],['签到'],true,true,true);
                if(rows.length===0){
                        if(rows2.length>0){
                                alert("已签退,无法签到!");
                                return false;
                        }
                        this.comp("bizData1").setValue("fType","签到");
                        this.comp("bizData1").saveData({"onSuccess" : function(event){
                                          alert("签到成功!");
                                          //justep.Portal.closeWindow();
                                  }
                        });
                }else{
                        alert("今天已经签到过!");
                }

        };

        Model.prototype.button4Click = function(event){
                var data = this.comp("bizData1");
               
                var rows = data.find(['fType'],['签退'],true,true,true);
               
                if(rows.length===0){
                        this.comp("bizData1").setValue("fType","签退");
                        this.comp("bizData1").saveData({"onSuccess" : function(event){
                                          alert("签退成功!");
                                          //justep.Portal.closeWindow();
                                  }
                        });
                }else{
                        alert("今天已经签退过!");
                }
        };

        Model.prototype.button3Click = function(event){
    this.comp("windowDialog1").open();
        };


function allPrpos(obj) {
    // 用来保存所有的属性名称和值
    var props = "";
    // 开始遍历
    for(var p in obj){
        // 方法
        if(typeof(obj[p])=="function"){
            //obj[p]();
        }else{
            // p 为属性名称,obj[p]为对应属性的值
            props += p + "=" + obj[p] + ";  ";
        }
    }
    // 最后显示所有的属性
    alert(props);
}


        Model.prototype.isOnLeft = function($object){
                return isLeft;
        };
        
        Model.prototype.isOnCenter = function($object){
                var isCenter = false;
                if(this.comp('bizData1').getCurrentRow()){
                        isCenter = this.comp('bizData1').getCurrentRow().row == $object.row;
                        if(isCenter){
                                isLeft = false;
                        }
                }
                return isCenter;
               
        };
        
        Model.prototype.isOnRight = function($object){
                if(!isLeft && this.comp('bizData1').getCurrentRow()){
                        isCenter = this.comp('bizData1').getCurrentRow().row == $object.row;
                        if(isCenter){
                                return false;
                        }
                        return true;
                }
                return false;
        };
        




        Model.prototype.getSrc = function($object){
            debugger;
        alert($object);
            allPrpos($object);
          //  alert($object.row);
            
                var codeValue = $object.row.fAddress.value.get();
                if(codeValue){
                        var img = DocUtils.InnerUtils.getdocServerAction({
                                docPath:"/defaultDocNameSpace",
                                urlPattern:"/repository/file/download/" + codeValue + "/last/content",
                                context:this.getContext()
                        });
                        return img;
                }
                return "http://www.justep.com/file/upload/201407/09/11-27-37-58-1.jpg";
        };



Model.prototype.cameraBtnClick = function(event){
                var self = this;
                if(navigator.camera){
                    debugger;
                        navigator.camera.getPicture(captureSuccess, captureFail, { quality: 50});
                        function captureSuccess(path) {
                                var success = function(r) {
                                        var file = $(r.response).find("file");
                                        var fileId = $(file).attr("file-name");
                                        var row = bizData1.newData({});
                                        debugger;
                                
                                        //bizData1.setValue('fScode','随手拍');
                                        //bizData1.setValue('fSName',currentLocation);
                                        bizData1.setValue('fAddress',fileId);
                                        bizData1.saveData();

                                         
                                          //src="$UI/HR/sign/process/sign/checkin/process/IMG_0279.JPG";
                                        //attr:{src:$model.getSrc.bind($model,$object)()}
                                        //$('#image2').
                                        //$object.row.AddressPhoto.value.get();
                                       
                                };
                                var fail = function(error) {
                                    alert("upload An error has occurred: Code = " + error.code);
                                };
                                var options = new FileUploadOptions();
                                var fileName= path.substr(path.lastIndexOf('/')+1);

                                options.fileName = fileName;
                                var ft = new FileTransfer();
                                debugger;
                                ft.upload(path, encodeURI(self.getUploadUrl()), success, fail, options);
                        };
                        function captureFail(){
                                alert('fail');
                        };
                }else{
                        var msg = $('<div class="alert alert-danger" style="z-index:999;text-align:center;font-size:16px;-webkit-transition:all 0.4s;-webkit-transform:translate3d(0,-100%,0);font-weight:bold;position:absolute;top:0;left:0;width:100%;" role="alert">本demo在手机app中运行效果最佳</div>').appendTo('body');
                        setTimeout(function(){
                                msg.transform('translate3d(0,0,0)');
                        },1);
                        setTimeout(function(){
                                msg.transform('translate3d(0,-100%,0)').transitionEnd(function(){
                                        msg.remove();
                                });
                        },2000);
                }
        };
        
        Model.prototype.getUploadUrl = function(){
                var docUrl = DocUtils.InnerUtils.getdocServerAction({
                        docPath:"/defaultDocNameSpace",
                        urlPattern:"/repository/file/cache/upload",
                        context:this.getContext(),
                        useCookie:false
                });
                if (docUrl.indexOf("uploadDoc.j") != -1&& docUrl.indexOf("#") == -1) {
                                docUrl = window.location.protocol + "//"
                                                + window.location.host + docUrl;
                }
                return docUrl;
        };
        
        Model.prototype.contents1ActiveChange = function(event){
                console.log('change');
        };
        
        Model.prototype.modelModelConstruct = function(event){
                var bizData1 = this.comp('bizData1');
                debugger;
                if(bizData1 && bizData1.getCount() == 0){
                        var row = bizData1.newData({});
                        //bizData1.setValue('fScode','随手拍');
                        //bizData1.setValue('fSName',"");
                        bizData1.setValue('fAddress',"");
                        debugger;
                }
        };

        Model.prototype.button1Click = function(event){
        };
        Model.prototype.button3Click = function(event){
        };
        return Model;
});



请老师一定帮忙看看啊,该看的视频我都看过了,可还是始终解决不掉啊:'(



        


91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36174
发表于 2016-5-9 13:39:28 | 显示全部楼层
1.在list中可以直接放row和col,为什么要再放一个contents组件?
2.如果是list中的关系值传到js中获取url这个参数就可以
在bind-attr-src上如下设置
bind-attr-src="$model.getImageUrl($object)"

js中直接用参数获取,不是直接写$object
参考
Model.prototype.getImageUrl = function(row) {
                if (row != undefined) {
                        var jsonList = eval("(" + row.val('fFJ') + ")");
                        var ownerID = row.getID();
                        if (jsonList != undefined) {
                                var realFileName = jsonList[0]["realFileName"];
                                var storeFileName = jsonList[0]["storeFileName"];
                                var operateType = "browse";
                                var url = '$UI/system/service/doc/common/simpleFileStore.j?realFileName=' + realFileName + '&storeFileName=' + storeFileName + '&ownerID=' + ownerID + '&operateType=' + operateType;
                                return require.toUrl(url);

                        }
                }

        };
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

55

主题

142

帖子

330

积分

中级会员

Rank: 3Rank: 3

积分
330
QQ
 楼主| 发表于 2016-5-9 13:58:27 | 显示全部楼层
十分感谢,回头我按你的方法试试。
可是我是仿pai案例写的,代码几乎一模一样拷过来的,为什么pai案例能行,我的就不行啊,问题出在哪里啊
PAI案例原码:
<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" component="$UI/system/components/justep/window/window">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="left:18px;top:83px;height:244px;">
    <div component="$UI/system/components/justep/data/bizData" xid="paiData"
      concept="DEMO_Asset" columns="DEMO_Asset,version,fCode,fScode,fDescription,fSName" limit="-1"
      autoLoad="true" autoNew="false" isTree="true">
      <reader xid="default1" action="/demo/misc/logic/action/queryAssetAction"/>  
      <writer xid="default2" action="/demo/misc/logic/action/saveAssetAction"/>  
      <creator xid="default3" action="/demo/misc/logic/action/createAssetAction"/>
    </div>
  </div>  
  <span component="$UI/system/components/justep/windowDialog/windowDialog" xid="baiduMapDialog"
    style="left:15px;top:143px;" src="$UI/demo/misc/process/pai/map.w"/>  
  <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
    top="true" bottom="true" xid="panel1">
    <div class="x-panel-top" xid="top1">
      <div component="$UI/system/components/justep/titleBar/titleBar" title="随手拍"
        class="x-titlebar" xid="titleBar2">
        <div class="x-titlebar-left" xid="div5">
          <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-only-icon"
            icon="icon-chevron-left" xid="backBtn1">
            <i class="icon-chevron-left" xid="i8"/>  
            <span xid="span8"/>
          </a>
        </div>  
        <div class="x-titlebar-title" xid="div6">随手拍</div>  
        <div class="x-titlebar-right reverse" xid="div7">
          <a component="$UI/system/components/justep/button/button" class="btn btn-link"
            xid="mapBtn" icon="icon-android-location">
            <i xid="i1" class="icon-android-location"/>  
            <span xid="span1"/>
          </a>
        </div>
      </div>
    </div>  
    <div class="x-panel-content" xid="content1">
      <div component="$UI/system/components/justep/list/list" class="x-list"
            xid="list1" data="paiData">
          <div component="$UI/system/components/justep/contents/contents"
            class="x-contents x-full x-list-template" active="0" xid="contents1" wrap="false">
            <div class="x-contents-content" data-bind="css:{'x-content-on-left':$model.isOnLeft.bind($model,$object)(),'active':$model.isOnCenter.bind($model,$object)(),'x-content-on-right':$model.isOnRight.bind($model,$object)()}">
                    <img style="min-height:200px;min-width:100%;" data-bind="attr:{src:$model.getSrc.bind($model,$object)()}" class="img-responsive"></img>
            </div>
          </div>
        </div>
    </div>  
    <div class="x-panel-bottom" xid="bottom1">
      <div component="$UI/system/components/justep/titleBar/titleBar" class="x-titlebar"
        xid="titleBar1">
        <div class="x-titlebar-left" xid="div2">
          <a component="$UI/system/components/justep/button/button" class="btn btn-link"
            xid="cameraBtn" icon="icon-camera">
            <i xid="i6" class="icon-camera"/>  
            <span xid="span6"/>
          </a>
        </div>  
        <div class="x-titlebar-title" xid="div3"/>  
        <div class="x-titlebar-right reverse" xid="div4">
        </div>
      </div>
    </div>
  </div>
</div>




JS文件
define(function(require){
        var $ = require("jquery");
        var justep = require("$UI/system/lib/justep");
        require("$UI/system/lib/cordova/cordova");
        require('$UI/system/lib/jquery/transition');
        var DocUtils = require('$UI/system/components/justep/docCommon/docUtil');
        
        var isLeft = true;
        var currentLocation;
        var watchLocationID;
        var paiData;
        var Model = function(){
        debugger;
                this.callParent();
                this.on('onload',function(){
                        paiData = this.comp('paiData');
                        /*if(paiData.getCount() == 0){
                                var row = paiData.newData({});
                                paiData.setValue('fScode','随手拍');
                                paiData.setValue('fSName',"");
                                paiData.setValue('fCode',"");
                                paiData.saveData();
                        }*/
                        // Success callback
                    var success = function(p){
                        var latitude = p.coords.latitude;
                                var longitude = p.coords.longitude;
                                currentLocation = latitude + '|' +longitude;
                    };
                    watchLocationID = navigator.geolocation.watchPosition(success, null, {enableHighAccuracy: true});
                });
        };
        
        Model.prototype.backBtn1Click = function(event){
                justep.Shell.closePage();
        };

        Model.prototype.mapBtnClick = function(event){
                this.comp('baiduMapDialog').open({data:currentLocation});
        };
        
        Model.prototype.getSrc = function($object){
        //allPrpos($object);
        //alert($object);
        debugger;
//                var aa = this.comp('paiData').getCurrentRow().row == $object.row;
//            alert(aa);
                var codeValue = $object.row.fCode.value.get();
                if(codeValue){
                        var img = DocUtils.InnerUtils.getdocServerAction({
                                docPath:"/defaultDocNameSpace",
                                urlPattern:"/repository/file/download/" + codeValue + "/last/content",
                                context:this.getContext()
                        });
        //                debugger;
                        return img;
                }
                return "http://www.justep.com/file/upload/201407/09/11-27-37-58-1.jpg";
        };
        ;
        Model.prototype.getPosition = function($object){
                return "x-content-on-left";
        };
        
        Model.prototype.isOnLeft = function($object){
                return isLeft;
        };
        
        Model.prototype.isOnCenter = function($object){
                var isCenter = false;
                if(this.comp('paiData').getCurrentRow()){
                        isCenter = this.comp('paiData').getCurrentRow().row == $object.row;
                        if(isCenter){
                                isLeft = false;
                        }
                }
                return isCenter;
               
        };
        
        Model.prototype.isOnRight = function($object){
                if(!isLeft && this.comp('paiData').getCurrentRow()){
                        isCenter = this.comp('paiData').getCurrentRow().row == $object.row;
                        if(isCenter){
                                return false;
                        }
                        return true;
                }
                return false;
        };
        
        Model.prototype.cameraBtnClick = function(event){
                debugger;
                console.log();
                var self = this;
                if(navigator.camera){
                        navigator.camera.getPicture(captureSuccess, captureFail, { quality: 50});
                //path= 'http://www.justep.com/file/upload/201407/09/11-27-37-58-1.jpg';
                //capturesuccess(path);
                        function captureSuccess(path) {
                                var success = function(r) {
                                    debugger;
                                        var file = $(r.response).find("file");
                                       
                                        console.log();
                                        var fileId = $(file).attr("file-name");
                                        var row = paiData.newData({});
                                        paiData.setValue('fScode','随手拍');
                                        paiData.setValue('fSName',currentLocation);
                                        paiData.setValue('fCode',fileId);
                                        debugger;
                                        paiData.saveData();
                                };
                                var fail = function(error) {
                                    alert("upload An error has occurred: Code = " + error.code);
                                };
                                var options = new FileUploadOptions();
                                var fileName= path.substr(path.lastIndexOf('/')+1);
                                options.fileName = fileName;
                                var ft = new FileTransfer();
                                ft.upload(path, encodeURI(self.getUploadUrl()), success, fail, options);
                        };
                        function captureFail(){
                                alert('fail');
                        };
                }else{
                        var msg = $('<div class="alert alert-danger" style="z-index:999;text-align:center;font-size:16px;-webkit-transition:all 0.4s;-webkit-transform:translate3d(0,-100%,0);font-weight:bold;position:absolute;top:0;left:0;width:100%;" role="alert">本demo在手机app中运行效果最佳</div>').appendTo('body');
                        setTimeout(function(){
                                msg.transform('translate3d(0,0,0)');
                        },1);
                        setTimeout(function(){
                                msg.transform('translate3d(0,-100%,0)').transitionEnd(function(){
                                        msg.remove();
                                });
                        },2000);
                }
        };
        
        
        
function allPrpos(obj) {
    // 用来保存所有的属性名称和值
    var props = "";
    // 开始遍历
    for(var p in obj){
        // 方法
        if(typeof(obj[p])=="function"){
            //obj[p]();
        }else{
            // p 为属性名称,obj[p]为对应属性的值
            props += p + "=" + obj[p] + ";  ";
        }
    }
    // 最后显示所有的属性
    alert(props);
}

        
        Model.prototype.getUploadUrl = function(){
            
                var docUrl = DocUtils.InnerUtils.getdocServerAction({
                        docPath:"/defaultDocNameSpace",
                        urlPattern:"/repository/file/cache/upload",
                        context:this.getContext(),
                        useCookie:false
                });
                if (docUrl.indexOf("uploadDoc.j") != -1&& docUrl.indexOf("#") == -1) {
                                docUrl = window.location.protocol + "//"
                                                + window.location.host + docUrl;
                }
                return docUrl;
        };
        
        Model.prototype.contents1ActiveChange = function(event){
                console.log('change');
        };
        
        Model.prototype.modelModelConstruct = function(event){
        debugger;
                var paiData = this.comp('paiData');
                if(paiData && paiData.getCount() == 0){
                        var row = paiData.newData({});
                        paiData.setValue('fScode','随手拍');
                        paiData.setValue('fSName',"");
                        paiData.setValue('fCode',"");
                }
        };
        
        return Model;
});


回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36174
发表于 2016-5-9 15:40:05 | 显示全部楼层
看我2楼回复的修改
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

55

主题

142

帖子

330

积分

中级会员

Rank: 3Rank: 3

积分
330
QQ
 楼主| 发表于 2016-5-11 09:53:17 | 显示全部楼层
无标题.jpg
无标题1.jpg
QQ图片20160511094904.jpg
已经改过来了,还是报错啊,能帮忙远程看一下吗,我愿意付费啊
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36174
发表于 2016-5-11 11:37:44 | 显示全部楼层
row是在list中吗?
不是list中就不能用$object
放了list中后list设置data属性
然后在li中放row
list.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

55

主题

142

帖子

330

积分

中级会员

Rank: 3Rank: 3

积分
330
QQ
 楼主| 发表于 2016-5-11 11:54:13 | 显示全部楼层
listtemplate,li是什么,为什么添加的list跟你的不一样,拜托你能远程帮我看下,需要费用我付啊
无标题4.jpg
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36174
发表于 2016-5-11 16:34:26 | 显示全部楼层
你的listTemplateUI哪?
看我发的list的节点
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36174
发表于 2016-5-11 17:31:16 | 显示全部楼层
加这个qq1282807026
加的是备注加上公司名杭州灵奥科技有限公司
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-6-8 22:08 , Processed in 0.063794 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表