question.js 4.6 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/question/question"],{"19fb":function(t,n,e){"use strict";var o,r=function(){var t=this,n=t.$createElement;t._self._c},u=[];e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}))},2166:function(t,n,e){"use strict";e.r(n);var o=e("593d"),r=e.n(o);for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=r.a},"455f":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 u(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=i(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,u=!0,a=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return u=t.done,t},e:function(t){a=!0,r=t},f:function(){try{u||null==o.return||o.return()}finally{if(a)throw r}}}}function i(t,n){if(t){if("string"===typeof t)return a(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)?a(t,n):void 0}}function a(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 c={data:function(){return{zixunlist:[],keyword:"",querylist:[],quesprojectid:""}},onLoad:function(t){},methods:{xiangmuzufen:function(n){var e=JSON.stringify(n);t.navigateTo({url:"../seequestion/seequestion?item="+e})},getquestionlist:function(){var n=this,e="project/Select_Question",r={qid:"",userid:t.getStorageSync("userid"),role:t.getStorageSync("role"),fprojectid:n.quesprojectid};console.log("8877665544",r),o.default.post(e,r,"get").then((function(t){console.log("问题列表",t),n.zixunlist=t.data,n.querylist=t.data})).catch((function(t){console.log(t)}))},enterxiangmu:function(t){console.log(t),this.keyword=t.target.value},chaxun:function(){if(""==this.keyword)this.getquestionlist();else{console.log(9988776655);var t,n=[],e=this.querylist,o=[],r=u(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;o.push(i.fname)}}catch(l){r.e(l)}finally{r.f()}console.log("名称",o);for(var a=0;a<e.length;a++)for(var c=0;c<o.length;c++)o[c].indexOf(this.keyword)>=0&&c==a&&n.push(e[a]);console.log("9999000777",n),this.zixunlist=n}}},onShow:function(){console.log(2838398),this.quesprojectid=t.getStorageSync("questionid"),this.getquestionlist()}};n.default=c}).call(this,e("543d")["default"])},"4e90":function(t,n,e){"use strict";var o=e("d869"),r=e.n(o);r.a},"56e7":function(t,n,e){"use strict";e.r(n);var o=e("455f"),r=e.n(o);for(var u in o)"default"!==u&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=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,u=new Promise((function(u,i){var a=t.getStorageSync("token"),c={token:a||""};t.request({url:r.globalData.baseUrl+n,data:e,method:o,header:c,success:function(t){200==t.statusCode?u(t):i(t.data)},fail:function(t){console.log(t),i("网络出错"),wx.hideNavigationBarLoading()},complete:function(t){}})}));return u},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 u,i,a,c,l=e("f0c5"),f=Object(l["a"])(o["default"],u,i,!1,null,null,null,!1,a,c);n["default"]=f.exports},"5ee7":function(t,n,e){"use strict";var o=e("9bf9"),r=e.n(o);r.a},"86c1":function(t,n,e){"use strict";(function(t){e("bdbd"),e("921b");o(e("66fd"));var n=o(e("c45c"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"9bf9":function(t,n,e){},c45c:function(t,n,e){"use strict";e.r(n);var o=e("19fb"),r=e("56e7");for(var u in r)"default"!==u&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e("5ee7");var i,a=e("f0c5"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);n["default"]=c.exports},d869:function(t,n,e){}},[["86c1","common/runtime","common/vendor"]]]);