1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/info/labels"],{"042d":function(t,e,s){"use strict";s.r(e);var n=s("a1eb"),o=s("df02");for(var i in o)"default"!==i&&function(t){s.d(e,t,(function(){return o[t]}))}(i);s("7212");var l,a=s("f0c5"),c=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"703b7dde",null,!1,n["a"],l);e["default"]=c.exports},7212:function(t,e,s){"use strict";var n=s("c670"),o=s.n(n);o.a},"77fa":function(t,e,s){"use strict";(function(t){s("39a3");n(s("66fd"));var e=n(s("042d"));function n(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=s,t(e.default)}).call(this,s("543d")["createPage"])},"816c":function(t,e,s){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){s.e("components/TopBar/TopBar").then(function(){return resolve(s("f619"))}.bind(null,s)).catch(s.oe)},o={components:{TopBar:n},data:function(){return{assetsUrl:this.$util.assetsUrl,chooseLabels:[],labelsList:[],scollHeight:0,type:""}},onLoad:function(t){var e=getCurrentPages(),s=e[e.length-2];console.log(t),t.type&&"wants"===t.type?(this.type=t.type,this.chooseLabels=s.$vm.myWants):t.type&&"labels"===t.type&&(this.type=t.type,this.chooseLabels=s.$vm.myLabels),this.computedScollviewHeight(),this.getLabels()},methods:{computedScollviewHeight:function(){var e=this,s=t.createSelectorQuery(),n=0,o="#topbar,#title,#tip,#chooselist";s.selectAll(o).boundingClientRect((function(t){t.forEach((function(t){n+=t.height}))})).exec((function(){var s=t.getSystemInfoSync();e.scollHeight=s.windowHeight-n-145,console.log(e.scollHeight)}))},sure:function(){for(var e=getCurrentPages(),s=e[e.length-2],n=[],o=[],i=0;i<this.chooseLabels.length;i++)n.push(this.chooseLabels[i]),o.push("".concat(this.chooseLabels[i].id));console.log(o),"wants"===this.type?(s.$vm.myWants=n,s.$vm.saveOptions.wantedLabelIds=o):(s.$vm.myLabels=n,s.$vm.saveOptions.myLabelIds=o),t.navigateBack({delta:1})},deleteTag:function(t){var e=this;this.chooseLabels.splice(t,1),setTimeout((function(){e.computedScollviewHeight()}),10)},chooseTag:function(t,e){var s=this;this.labelsList[t].list[e].choose=!this.labelsList[t].list[e].choose,this.labelsList[t].list[e].choose&&!this.chooseLabels.includes({name:this.labelsList[t].list[e].name,id:this.labelsList[t].list[e].id})&&this.chooseLabels.push({name:this.labelsList[t].list[e].name,id:this.labelsList[t].list[e].id}),setTimeout((function(){s.computedScollviewHeight()}),10),setTimeout((function(){s.labelsList[t].list[e].choose=!1}),500)},getLabels:function(){var t=this;this.$api.login.labelsConfig({isSpLabel:"labels"===this.type,pageNum:1,pageSize:20}).then((function(e){t.labelsList=e.data})).catch((function(t){console.log(t)}))},bindClick:function(t){console.log(t)}}};e.default=o}).call(this,s("543d")["default"])},a1eb:function(t,e,s){"use strict";s.d(e,"b",(function(){return o})),s.d(e,"c",(function(){return i})),s.d(e,"a",(function(){return n}));var n={TopBar:function(){return s.e("components/TopBar/TopBar").then(s.bind(null,"f619"))}},o=function(){var t=this,e=t.$createElement;t._self._c},i=[]},c670:function(t,e,s){},df02:function(t,e,s){"use strict";s.r(e);var n=s("816c"),o=s.n(n);for(var i in n)"default"!==i&&function(t){s.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a}},[["77fa","common/runtime","common/vendor"]]]);
|