question.js 4.6 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/question/question"],{"07a9":function(t,n,e){"use strict";e.r(n);var o=e("5f51"),r=e("281e");for(var u in r)"default"!==u&&function(t){e.d(n,t,(function(){return r[t]}))}(u);e("ae5b");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},"0aa0":function(t,n,e){"use strict";var o=e("1604"),r=e.n(o);r.a},"0c9c":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"])},1604:function(t,n,e){},"1f18":function(t,n,e){"use strict";e.r(n);var o=e("0c9c"),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},"281e":function(t,n,e){"use strict";e.r(n);var o=e("9200"),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},"30b9":function(t,n,e){"use strict";e.r(n);var o=e("1f18");for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("0aa0");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},"5f51":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}))},9200:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(e("30b9"));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.getdanweilist();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(),this.getdanweilist()}};n.default=c}).call(this,e("543d")["default"])},"9ec6":function(t,n,e){},ae5b:function(t,n,e){"use strict";var o=e("9ec6"),r=e.n(o);r.a},d4ac:function(t,n,e){"use strict";(function(t){e("a237"),e("921b");o(e("66fd"));var n=o(e("07a9"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])}},[["d4ac","common/runtime","common/vendor"]]]);