1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2060d3f4"],{"06a8":function(t,a,e){"use strict";var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div")},n=[],s=e("795b"),c=e.n(s),r=(e("7f7f"),e("ac6a"),e("f20c")),o=e("5cab"),u=e("f499"),l=e.n(u),d=e("8982"),f="/industryParkApi",h="/wx/data",g="/wx/public",v="/wx/dictController";function p(t){return Object(d["a"])({url:f+h+"/listBizAll/"+t,method:"post"})}function m(t){return Object(d["a"])({url:f+g+"/listProjectAll",method:"post",data:t})}function b(t){return Object(d["a"])({url:f+v+"/getByCodes",method:"post",data:t})}function _(t){var a={codes:l()(t)};return new c.a(function(t,e){b(a).then(function(a){t(a)}).catch(function(t,a){e(t,a)})})}var y=e("3089"),S={name:"BaseData",data:function(){return{currentPage:1,totalSize:0,pageSize:10,InitialLoading:!0,allLoaded:!1,bottomStatus:"",StaffData:[],StaffMap:{},BizData:[],BizMap:{},UserProject:[],ProjectData:[],ProjectMap:{},dialogImageUrl:"",dialogImageVisible:!1,dc_map:{},dc_data:{},dc_map_no_all:{},dc_data_no_all:{}}},mounted:function(){},methods:{initDict:function(t){var a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(e){var i=a.getDictValue(t.data,e,!0);a.dc_data[e]=i,a.dc_map[e]=a.$common.transDcMap(i);var n=a.getDictValue(t.data,e,!1);a.dc_data_no_all[e]=n,a.dc_map_no_all[e]=a.$common.transDcMap(n)})})},initDict2:function(t){var a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(e){var i=a.getDictValue(t.data,e,!1);a.dc_data[e]=i,a.dc_map[e]=a.$common.transDcMap(i);var n=a.getDictValue(t.data,e,!1);a.dc_data_no_all[e]=n,a.dc_map_no_all[e]=a.$common.transDcMap(n)})})},initBiz:function(){var t=this;return this.BizData=[],p(o["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var e={label:a.businessName,value:a.id};t.BizData.push(e),t.BizMap[a.id]=a.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],m(o["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var e={label:a.name,value:a.id};t.ProjectData.push(e),t.ProjectMap[e.value]=a})}).catch(function(){})},pagination:function(t){var a=this.currentPage,e=this.pageSize,i=a*e-e,n=a*e;return t.slice(i,n)},getDictValue:function(t,a,e){var i=t[a]?r["a"].castEval(t[a].dictValue):[],n=[];if(i.forEach(function(t){var a={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};n.push(a)}),e){var s={label:"全部",value:"",active:!0};n.unshift(s)}return n},confirm:function(t,a){return new c.a(function(e,i){y["Dialog"].confirm({title:a,message:t}).then(function(t){e(t)}).catch(function(t){Object(y["Toast"])("已取消"),i(t)})})},handleBottomChange:function(t){console.log("handleBottomChange:"+t),this.bottomStatus=t,"drop"===this.bottomStatus&&this.currentPage++},loadBottom:function(){var t=this,a=this;console.log("loadBottom"),setTimeout(function(){a.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,a){var e=a.indexOf(t);a.splice(e,1)},noImg:function(){var t=event.srcElement;t.src=e("aed7"),t.onerror=null}}},C=S,j=e("2877"),k=Object(j["a"])(C,i,n,!1,null,"3fa5b905",null);a["a"]=k.exports},"386d":function(t,a,e){"use strict";var i=e("cb7c"),n=e("83a1"),s=e("5f1b");e("214f")("search",1,function(t,a,e,c){return[function(e){var i=t(this),n=void 0==e?void 0:e[a];return void 0!==n?n.call(e,i):new RegExp(e)[a](String(i))},function(t){var a=c(e,t,this);if(a.done)return a.value;var r=i(t),o=String(this),u=r.lastIndex;n(u,0)||(r.lastIndex=0);var l=s(r,o);return n(r.lastIndex,u)||(r.lastIndex=u),null===l?-1:l.index}]})},"41ad":function(t,a,e){"use strict";e.d(a,"e",function(){return c}),e.d(a,"c",function(){return r}),e.d(a,"b",function(){return o}),e.d(a,"d",function(){return u}),e.d(a,"f",function(){return l}),e.d(a,"h",function(){return d}),e.d(a,"a",function(){return f}),e.d(a,"g",function(){return h});var i=e("8982"),n="/industryParkApi",s="/wx/parkActivity";function c(t){return Object(i["a"])({url:n+s+"/list",method:"post",data:t})}function r(t,a){return Object(i["a"])({url:n+s+"/getActivityById?id="+t+"&userId="+a,method:"get"})}function o(t){return Object(i["a"])({url:n+s+"/clickCollect",method:"post",data:t})}function u(t){return Object(i["a"])({url:n+s+"/insertRegisSignInfo",method:"post",data:t})}function l(t){return Object(i["a"])({url:n+s+"/listRegisSignInfo",method:"post",data:t})}function d(t){return Object(i["a"])({url:n+s+"/updatePublishStatus",method:"post",data:t})}function f(t){return Object(i["a"])({url:n+s+"/add",method:"post",data:t})}function h(t){return Object(i["a"])({url:n+s+"/richScan",method:"post",data:t})}},"466d":function(t,a,e){"use strict";var i=e("b81e"),n=e.n(i);n.a},"7f7f":function(t,a,e){var i=e("86cc").f,n=Function.prototype,s=/^\s*function ([^ (]*)/,c="name";c in n||e("9e1e")&&i(n,c,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(t){return""}}})},"83a1":function(t,a){t.exports=Object.is||function(t,a){return t===a?0!==t||1/t===1/a:t!=t&&a!=a}},8982:function(t,a,e){"use strict";e.d(a,"a",function(){return h}),e.d(a,"b",function(){return g});var i=e("795b"),n=e.n(i),s=e("bc3a"),c=e.n(s),r=e("4328"),o=e.n(r),u=e("4360"),l=e("5cab"),d=e("a18c"),f=e("3089");function h(t,a){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var e={method:t.method,url:t.url,data:o.a.stringify(t.data)};return a&&(e.data=t.data),t.headers&&(e.headers=t.headers),new n.a(function(a,i){c()(e).then(function(t){if(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),i(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),i(e.errmsg);break}a(e)}else console.log(t),i(t)}).catch(function(a,e){console.log(t.url+" fail",a,e),Object(f["Toast"])(a),i(a,e)})})}function g(t){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var a={method:t.method,url:t.url};return a.data=t.data,t.headers&&(a.headers=t.headers,a.headers["MVVM-Key"]=String((new Date).getTime()),a.headers["xx"]="anything",a.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new n.a(function(e,i){c.a.defaults.withCredentials=!0,c()(a).then(function(t){if(console.log("response:",t),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),i(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),i(a.errmsg);break}e(a)}else console.log(t),i(t)}).catch(function(a,e){console.log(t.url+" fail",a,e),Object(f["Toast"])(a),i(a,e)})})}},aed7:function(t,a,e){t.exports=e.p+"assets/img/no-result.b05bdcd3.jpg"},b81e:function(t,a,e){},ff67:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"announcement"},[e("div",{staticClass:"tap-part"},[e("van-tabs",{attrs:{"title-active-color":"#2A3980",color:"#2A3980","line-width":"175px"},model:{value:t.active,callback:function(a){t.active=a},expression:"active"}},[e("van-tab",{attrs:{title:"最新活动"}},[e("div",{staticClass:"tips-list"},t._l(t.tipList,function(a){return e("div",{class:["tip-item",a.active&&"active"],on:{click:function(e){return t.selectChange(a.value)}}},[t._v("\n "+t._s(a.label)+"\n ")])}),0),e("div",{staticClass:"card-news-list"},t._l(t.activityList,function(a){return e("div",{staticClass:"detail-card shadow-radius news-card",on:{click:function(e){return t.getDetail(a)}}},[e("div",{staticClass:"image"},[e("img",{attrs:{src:a.annexArray[0],alt:""}})]),e("div",{staticClass:"info-part"},[e("p",{staticClass:"tit"},[t._v(t._s(a.activityName))]),e("div",{staticClass:"bottom"},[e("div",{staticClass:"left"},["1"===a.registrationStatus?e("span",{staticClass:"normal-tip by y-bg"},[t._v("报名中")]):t._e(),"2"===a.registrationStatus?e("span",{staticClass:"normal-tip by y-bg"},[t._v("报名已结束")]):t._e(),a.registrationStatus?t._e():e("span",{staticClass:"normal-tip by h-bg"},[t._v("报名未开始")]),1==a.styleStatus?e("span",{staticClass:"normal-tip yd h-bg",on:{click:function(e){return e.stopPropagation(),t.getStyle(a)}}},[t._v("活动风采")]):t._e()]),e("div",{staticClass:"right"},[e("div",{staticClass:"num"},[t._v(t._s(a.partakeNumber)+"人参与")]),e("div",{staticClass:"icon-collect",on:{click:function(e){return e.stopPropagation(),t.changeCollectorsStatus(a)}}},["2"===a.collectorsStatus?e("i",{staticClass:"iconfont icon-wujiaoxingxingxingshoucangdianji blue"}):e("i",{staticClass:"iconfont icon-wujiaoxingxingxingshoucangdianji"})])])])])])}),0)]),e("van-tab",{attrs:{title:"报名记录"}},[e("div",{staticClass:"card-news-list"},t._l(t.regisSignList,function(a){return e("div",{staticClass:"record-card shadow-radius"},[e("div",{staticClass:"left"},[e("img",{attrs:{src:a.annexArray[0].replace("/server","/industryParkApi"),alt:""}}),e("p",{staticClass:"text"},[t._v("请出示二维码签到")])]),e("div",{staticClass:"right"},[e("div",{staticClass:"title"},[t._v(t._s(a.activityName))]),e("div",{staticClass:"time"},[t._v("时间:"+t._s(a.activityStartTime)+"开始")]),e("div",{staticClass:"add"},[e("p",[t._v("地址:"+t._s(a.activityAddress))])]),e("div",{staticClass:"bottom"},["1"==a.registrationStatus?e("p",{staticClass:"normal-tip by y-bg",staticStyle:{"text-align":"center"}},[t._v("\n 报名中\n ")]):t._e(),"2"==a.registrationStatus?e("p",{staticClass:"normal-tip by h-bg",staticStyle:{"text-align":"center"}},[t._v("\n 报名已结束\n ")]):t._e(),a.registrationStatus?t._e():e("p",{staticClass:"normal-tip by h-bg",staticStyle:{"text-align":"center"}},[t._v("\n 未报名\n ")])])])])}),0)])],1)],1)])},n=[],s=(e("ac6a"),e("386d"),e("06a8")),c=e("41ad"),r=e("5cab"),o={name:"ParkActivities",mixins:[s["a"]],data:function(){return{url:"https://www.idea-co-sf.com/industryParkApi",dc_key:["activityType"],active:0,userId:"",tipList:[],search:{activityType:"",userId:"",publishStatus:"2"},activityList:[],regisSignList:[]}},mounted:function(){var t=this;this.userId=r["a"].uid(),this.initDict(this.dc_key).then(function(a){t.tipList=t.dc_data.activityType,t.getData(),t.getRegisSignInfo()})},methods:{getData:function(){var t=this;this.search.userId=this.userId,Object(c["e"])(this.search).then(function(a){t.activityList=a}).catch(function(){})},getRegisSignInfo:function(){var t=this,a=this;Object(c["f"])({userId:this.userId,referenceType:"1"}).then(function(e){a.regisSignList=e,a.regisSignList.forEach(function(a){a.activityStartTime=t.$common.transBaseDateTime(a.activityStartTime)}),console.log(a.regisSignList)}).catch(function(){})},selectChange:function(t){var a=!0;this.tipList.forEach(function(e){e.value===t?e.active?a=!1:e.active=!0:e.active=!1}),a&&(this.search.activityType=t,this.getData())},getDetail:function(t){this.$router.push({path:"/parkActivities/detail",query:{id:t.id}})},getStyle:function(t){this.$router.push({path:"/parkActivities/style",query:{id:t.id}})},changeCollectorsStatus:function(t){if("2"===t.collectorsStatus){var a=this;Object(c["b"])({id:t.id,userId:r["a"].currUser().id,collectorsStatus:"1"}).then(function(t){a.getData(),a.getRegisSignInfo()})}else{var e=this;Object(c["b"])({id:t.id,userId:r["a"].currUser().id,collectorsStatus:"2"}).then(function(t){e.getData(),e.getRegisSignInfo()})}}}},u=o,l=(e("466d"),e("2877")),d=Object(l["a"])(u,i,n,!1,null,"4ced846b",null);a["default"]=d.exports}}]);
|