1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4cfd31b6"],{7329:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"policy"},[t._m(0),a("div",{staticClass:"policy-body"},t._l(t.dataList,function(e){return a("div",{staticClass:"card-menu-icon",on:{click:function(a){return t.$router.push({path:"/investmentPolicy/detail",query:{id:e.id}})}}},[t._m(1,!0),a("div",{staticClass:"center"},[t._v(t._s(e.title))]),t._m(2,!0)])}),0)])},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"top"},[s("img",{attrs:{src:a("b47f"),alt:""}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"left"},[a("i",{staticClass:"iconfont icon-taiyangneng"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"right"},[a("i",{staticClass:"iconfont icon-zuo"})])}],c=a("9f14"),r={data:function(){return{params:{pageNum:1,pageSize:10,policySmall:1},totalPage:1,dataList:[]}},mounted:function(){this.params.policySmall=this.$route.query.id,this.selectData()},methods:{selectData:function(){var t=this;Object(c["c"])(this.params).then(function(e){console.log(e),e.data&&(t.dataList=e.data)})}}},o=r,i=(a("b12c"),a("2877")),u=Object(i["a"])(o,s,n,!1,null,"b899d178",null);e["default"]=u.exports},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return h}),a.d(e,"b",function(){return g});var s=a("795b"),n=a.n(s),c=a("bc3a"),r=a.n(c),o=a("4328"),i=a.n(o),u=a("4360"),l=a("5cab"),d=a("a18c"),f=a("3089");function h(t,e){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var a={method:t.method,url:t.url,data:i.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new n.a(function(e,s){r()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(f["Toast"])(a.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),s(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(f["Toast"])(a.errmsg),s(a.errmsg);break}e(a)}else console.log(t),s(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),s(e,a)})})}function g(t){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new n.a(function(a,s){r.a.defaults.withCredentials=!0,r()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(f["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),s(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(f["Toast"])(e.errmsg),s(e.errmsg);break}a(e)}else console.log(t),s(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(f["Toast"])(e),s(e,a)})})}},"9f14":function(t,e,a){"use strict";a.d(e,"c",function(){return o}),a.d(e,"a",function(){return i}),a.d(e,"b",function(){return u});var s=a("8982"),n="/industryParkApi",c="/wx/policy",r="/wx/policyType";function o(t){return Object(s["a"])({url:n+c+"/list",method:"post",data:t})}function i(t){return Object(s["a"])({url:n+c+"/getById",method:"post",data:t})}function u(t){return Object(s["a"])({url:n+r+"/listAll",method:"post",data:t})}},b12c:function(t,e,a){"use strict";var s=a("f42d"),n=a.n(s);n.a},b47f:function(t,e,a){t.exports=a.p+"assets/img/top.eb98166b.jpg"},f42d:function(t,e,a){}}]);
|