🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~ bindDom: function (dom) { var _this = this; if(_this.pushStatus == '审核不通过') { _this.className ='btg' }else if(_this.pushStatus == '未上报') { _this.className ='' }else if(_this.pushStatus == '审核通过') { _this.className ='tg' } play = function(e) { _this._getData(e) } var str = ''; str+='<li class="upd_li clearfix" data-id="'+ _this.id+'" data-veId="'+_this.veId+'">' str+='<span>'+ _this.veName+'</span>' str+='<span>'+ _this.veprice+'元/斤</span>' str+='<span>'+_this.type+'</span>' str+='<span class= '+ _this.className+'>'+_this.pushStatus+'</span>' str+='<span><a class="upd_a" href="##" data-id="'+_this.id+'" data-veId="'+_this.veId+'" onclick="play(event)" href="javascript:void(0)">上报</a>' str+='</span>' str+='</li>'; return str; }, ~~~ ~~~ bindDom: function (dom) { var _this = this; var par = { veId: _this.veId, veName: _this.veName, } Delimitation = function (e,par) { console.log(_this) _this._clickReport(e,par) } if(_this.updown >=0) { _this.strPointer = '↑'; _this.className='upd_up' }else { _this.strPointer = '↓'; _this.className='upd_up1' } var str = ''; str+='<li class="upd_li clearfix" onclick="Delimitation(event, '+JSON.stringify(par).replace(/\"/g,"'")+')">' str+='<span>'+_this.veName+'</span>' str+='<span>'+_this.veprice+'元/斤</span>' str+='<span class="'+_this.className+'"><a class="'+_this.className+'">'+ _this.strPointer+'</a>'+_this.updown+'</span>' str+='<span>'+_this.rate+'%</span>' str+='<span>'+_this.mergetDate+'</span>' str+='</li>'; return str; }, ~~~