danweizixun.js 4.9 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/danweizixun/danweizixun"],{2166:function(t,n,e){"use strict";e.r(n);var o=e("593d"),r=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},2713:function(t,n,e){"use strict";e.r(n);var o=e("4bc8"),r=e("c17d");for(var i in r)"default"!==i&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e("77b5");var a,u=e("f0c5"),l=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);n["default"]=l.exports},"4bc8":function(t,n,e){"use strict";var o,r=function(){var t=this,n=t.$createElement;t._self._c},i=[];e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}))},"4e90":function(t,n,e){"use strict";var o=e("d869"),r=e.n(o);r.a},"593d":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")},post:function(n,e,o){var r=this,i=new Promise((function(i,a){var u=t.getStorageSync("token"),l={token:u||""};t.request({url:r.globalData.baseUrl+n,data:e,method:o,header:l,success:function(t){200==t.statusCode?i(t):a(t.data)},fail:function(t){console.log(t),a("网络出错"),wx.hideNavigationBarLoading()},complete:function(t){}})}));return i},globalData:{userInfo:null,baseUrl:"https://www.bjzha.net/api/"}};n.default=e}).call(this,e("543d")["default"])},"59df":function(t,n,e){"use strict";e.r(n);var o=e("2166");for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("4e90");var i,a,u,l,c=e("f0c5"),f=Object(c["a"])(o["default"],i,a,!1,null,null,null,!1,u,l);n["default"]=f.exports},"77b5":function(t,n,e){"use strict";var o=e("d9b8"),r=e.n(o);r.a},b48f:function(t,n,e){"use strict";(function(t){e("bdbd"),e("921b");o(e("66fd"));var n=o(e("2713"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},c17d:function(t,n,e){"use strict";e.r(n);var o=e("ec9e"),r=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},d869:function(t,n,e){},d9b8:function(t,n,e){},ec9e:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(e("59df"));function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=a(t))){var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r,i=!0,u=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return i=t.done,t},e:function(t){u=!0,r=t},f:function(){try{i||null==o.return||o.return()}finally{if(u)throw r}}}}function a(t,n){if(t){if("string"===typeof t)return u(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e<n;e++)o[e]=t[e];return o}var l={data:function(){return{selshow:!1,xiangmulist:[],keyword:"",end:"",querylist:[]}},onLoad:function(){},methods:{zixundanweifen:function(n){console.log(n);var e=n.target.dataset.disid,o=n.target.dataset.item;console.log("999",o);var r=o.ftemid,i=o.fprojectid;console.log(i),o=JSON.stringify(o),console.log(o),t.navigateTo({url:"../zixundanweifen/zixundanweifen?disid="+e+"&item="+o+"&fteamid="+r+"&fprojectid="+i+"&status="+this.end[0].status})},vote:function(n){var e=n.target.dataset.itemid;console.log("lalal",e),t.navigateTo({url:"../danweivote/danweivote?id="+e})},getzixunlist:function(){console.log(999);var n=this,e="project/Get_advisory",r={fuserid:t.getStorageSync("userid"),role:t.getStorageSync("role"),fprojectid:""};o.default.post(e,r,"get").then((function(t){console.log("咨询单位",t),n.xiangmulist=t.data,n.querylist=t.data;var e=n.xiangmulist.splice(-1);n.end=e,console.log("hahhahahhah",JSON.stringify(n.end)),console.log(n.end[0].status),console.log(JSON.stringify(e)),console.log(n.xiangmulist)})).catch((function(t){console.log(t)}))},enterxiangmu:function(t){console.log(t),this.keyword=t.target.value},chaxun:function(){if(""==this.keyword)this.getzixunlist();else{var t,n=[],e=this.querylist,o=[],r=i(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;o.push(a.fname)}}catch(c){r.e(c)}finally{r.f()}console.log("名称",o);for(var u=0;u<e.length;u++)for(var l=0;l<o.length;l++)o[l].indexOf(this.keyword)>=0&&l==u&&n.push(e[u]);console.log("9999000777",n),this.xiangmulist=n}}},onShow:function(){this.getzixunlist()}};n.default=l}).call(this,e("543d")["default"])}},[["b48f","common/runtime","common/vendor"]]]);