1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5241db8a"],{"0763":function(t,e,a){},"2c5e":function(t,e,a){"use strict";var n=a("0763"),s=a.n(n);s.a},"41ad":function(t,e,a){"use strict";a.d(e,"e",function(){return c}),a.d(e,"c",function(){return r}),a.d(e,"b",function(){return o}),a.d(e,"d",function(){return d}),a.d(e,"f",function(){return u}),a.d(e,"h",function(){return l}),a.d(e,"a",function(){return h}),a.d(e,"g",function(){return f});var n=a("8982"),s="/industryParkApi",i="/wx/parkActivity";function c(t){return Object(n["a"])({url:s+i+"/list",method:"post",data:t})}function r(t,e){return Object(n["a"])({url:s+i+"/getActivityById?id="+t+"&userId="+e,method:"get"})}function o(t){return Object(n["a"])({url:s+i+"/clickCollect",method:"post",data:t})}function d(t){return Object(n["a"])({url:s+i+"/insertRegisSignInfo",method:"post",data:t})}function u(t){return Object(n["a"])({url:s+i+"/listRegisSignInfo",method:"post",data:t})}function l(t){return Object(n["a"])({url:s+i+"/updatePublishStatus",method:"post",data:t})}function h(t){return Object(n["a"])({url:s+i+"/add",method:"post",data:t})}function f(t){return Object(n["a"])({url:s+i+"/richScan",method:"post",data:t})}},"67a7":function(t,e,a){"use strict";var n=a("bdbe"),s=a.n(n);s.a},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return f}),a.d(e,"b",function(){return v});var n=a("795b"),s=a.n(n),i=a("bc3a"),c=a.n(i),r=a("4328"),o=a.n(r),d=a("4360"),u=a("5cab"),l=a("a18c"),h=a("3089");function f(t,e){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["a"].getToken());var a={method:t.method,url:t.url,data:o.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new s.a(function(e,n){c()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(h["Toast"])(a.errmsg),setTimeout(function(){d["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(a.errmsg),n(a.errmsg);break}e(a)}else console.log(t),n(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(h["Toast"])(e),n(e,a)})})}function v(t){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["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 s.a(function(a,n){c.a.defaults.withCredentials=!0,c()(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(h["Toast"])(e.errmsg),setTimeout(function(){d["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(e.errmsg),n(e.errmsg);break}a(e)}else console.log(t),n(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(h["Toast"])(e),n(e,a)})})}},ac5c:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"detail"},[a("div",{staticClass:"detail-body"},[a("div",{staticClass:"detail-card top-tit-card"},[t._m(0),a("div",{staticClass:"right"},[a("div",{staticClass:"top"},[t._v("\n\t\t\t\t\t"+t._s(t.activityDetail.activityName)+"\n\t\t\t\t")]),a("div",{staticClass:"bottom"},[a("span",[t._v(t._s(t.activityDetail.updatedAt))]),a("span",[t._v("园区管委会")])])]),a("div")]),a("div",{staticClass:"detail-card info"},[a("div",{staticClass:"card-title"},[t._v("详情")]),a("div",{staticClass:"text",domProps:{innerHTML:t._s(t.activityDetail.styleContent)}})])]),a("div",{staticClass:"white-bottom"})])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"left"},[a("i",{staticClass:"iconfont icon-laba"})])}],i=a("41ad"),c=a("5cab"),r={data:function(){return{activityDetail:"",id:""}},mounted:function(){this.id=this.$route.query.id,this.getActivityById()},methods:{getActivityById:function(){var t=this,e=this;Object(i["c"])(this.id,c["a"].currUser().id).then(function(a){a.data&&(e.activityDetail=a.data,e.activityDetail.updatedAt=t.$common.transServDate(e.activityDetail.updatedAt))})}}},o=r,d=(a("67a7"),a("2c5e"),a("2877")),u=Object(d["a"])(o,n,s,!1,null,"d1e5728a",null);e["default"]=u.exports},bdbe:function(t,e,a){}}]);
|