(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["claim/pages/detail"],{"057a":function(t,e,i){},2914:function(t,e,i){"use strict";i.r(e);var n=i("73c9"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"379f":function(t,e,i){"use strict";var n=i("057a"),a=i.n(n);a.a},"692a":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.detail.id?t.bannerList.length:null),n=t.detail.id?t.__map(t.typeList,(function(e,i){var n=t.__get_orig(e),a=t.typeList.length,r=t.typeList.length>1&&0==i,o=t.typeList.length>1&&i===t.typeList.length-1;return{$orig:n,g1:a,g2:r,g3:o}})):null,a=t.detail.id?t.detail.collage_list.length:null,r=t.detail.id?t.detail.process&&t.detail.process.length>0:null,o=t.detail.id&&t.list.all_count>0?t.__map(t.list.data,(function(e,i){var n=t.__get_orig(e),a=i<2?e.imgs&&e.imgs.length>0:null,r=i<2&&a?t.__map(e.imgs,(function(i,n){var a=t.__get_orig(i),r=n<3?2==n&&e.imgs.length>3:null,o=n<3&&r?e.imgs.length:null;return{$orig:a,g7:r,g8:o}})):null;return{$orig:n,g6:a,l1:r}})):null,l=t.detail.id?t.detail.machine_info.data&&t.detail.machine_info.data.length>0:null,u=t.detail.id&&l?t.__map(t.detail.machine_info.data,(function(e,i){var n=t.__get_orig(e),a=e.value.length;return{$orig:n,g10:a}})):null;t._isMounted||(t.e0=function(e){return t.$util.goUrl({url:"/claim/pages/collage/more?id="+t.options.id})},t.e1=function(e){return e.stopPropagation(),t.$util.goUrl({url:"/mine/pages/evaluate/more?id="+t.options.id+"&type=1"})},t.e2=function(e){return e.stopPropagation(),t.$util.goUrl({url:"/pages/home",openType:"switchTab"})},t.e3=function(e){return e.stopPropagation(),t.$util.goUrl({url:t.detail.farmer_info.mobile,openType:"call"})},t.e4=function(e){return t.$refs.show_collage_share.close()}),t.$mp.data=Object.assign({},{$root:{g0:i,l0:n,g4:a,g5:r,l2:o,g9:l,l3:u}})},a=[]},"73c9":function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2eee")),r=n(i("c973")),o=n(i("9523")),l=i("26cb");function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e0&&void 0!==t[0]&&t[0],r=e.options.id,i.next=4,e.$api.claim.claimInfo({id:r});case 4:return o=i.sent,o.markers=[{iconPath:"https://lbqnyv2.migugu.com/images/12/2018/11/A33zQycihMM33y337LH23myTqTl3tl.png",id:0,latitude:o.lat,longitude:o.lng,width:28,height:28}],l=o.imgs,u=void 0===l?[]:l,s=o.monitor,c=void 0===s?[]:s,d=o.user_start_collage,f=void 0===d?{id:0}:d,g=[],p=[],u&&u.length>0&&(u.map((function(t){g.push({img:t,link:"",link_type:"img"})})),p.push({title:"图片",type:"img"})),c&&c.length>0&&(c.map((function(t){g.push({img:t.cover,link:t.id,link_type:"monitor"})})),p.push({title:"监控",type:"monitor"})),e.typeList=p,e.bannerList=g,e.detail=o,e.$util.hideAll(),i.next=17,e.getList();case 17:f&&f.id&&!n&&e.$refs.show_collage_share.open();case 18:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},countEnd:function(){var t=this;this.$util.log("倒计时完了"),setTimeout((function(){t.initRefresh()}),1e3)},linkpress:function(t){console.log("linkpress",t)},getList:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var i,n,r,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=t.list,n=t.options.id,r=Object.assign({},t.param,{goods_id:n,type:1,is_goods:0}),e.next=5,t.$api.mine.goodsEvaluateList(r);case 5:o=e.sent,1==t.param.page||(o.data=i.data.concat(o.data)),t.list=o,t.loading=!1,t.$util.hideAll();case 9:case"end":return e.stop()}}),e)})))()},handerSwiperChange:function(t){var e=t.detail.current;this.bannerCurrent=e},handerBannerClick:function(e){var i=this.bannerList[e],n=i.link_type,a=i.link,r=i.img;if("monitor"!=n)t.previewImage({current:r,urls:[r]});else{var o="/home/pages/monitor/detail?id=".concat(a);this.$util.goUrl({url:o})}},toMap:function(){var e=this;return(0,r.default)(a.default.mark((function i(){var n,r,o,l;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=e.detail,r=n.lat,o=n.lng,l=n.address,i.next=3,e.$util.checkAuth({type:"userLocation"});case 3:return i.next=5,t.getLocation({type:"gcj02"});case 5:return i.next=7,t.openLocation({latitude:1*r,longitude:1*o,name:l,scale:28});case 7:case"end":return i.stop()}}),i)})))()},toPreviewImage:function(t,e){var i=this.list.data[t].imgs;this.$util.previewImage({current:i[e],urls:i})},toJoin:function(t){var e=this.detail.collage_list[t],i=e.id,n=e.claim_id,a=e.user_id,r=e.can_join,o=this.detail.collage_data.join_times,l=this.userInfo.id;if(a!=l&&r){var u="/claim/pages/order?id=".concat(n,"&cid=").concat(i,"&type=2");this.$util.goUrl({url:u})}else this.$util.showToast({title:a==l?"不能参与自己发起的众筹哦":"您已参与此众筹或已达到参与次数".concat(o)})},toOrder:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.options.id,i=this.detail,n=i.collage_data,a=void 0===n?{id:0}:n,r=i.user_start_collage,o=void 0===r?{id:0}:r,l=a.id,u=void 0===l?0:l,s=a.can_start,c=a.start_times;if(1==t&&o&&o.id)this.$refs.show_collage_share.open();else if(1!=t||s){var d="/claim/pages/order?id=".concat(e,"&cid=").concat(u,"&type=").concat(t);this.$util.goUrl({url:d})}else this.$util.showToast({title:"您已达到发起众筹次数".concat(c)})}})};e.default=c}).call(this,i("543d")["default"])},a316:function(t,e,i){"use strict";i.r(e);var n=i("692a"),a=i("2914");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("379f");var o=i("f0c5"),l=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=l.exports},c250:function(t,e,i){"use strict";(function(t,e){var n=i("4ea4");i("b03e");n(i("66fd"));var a=n(i("a316"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])}},[["c250","common/runtime","common/vendor"]]]);