1 line
5.9 KiB
JavaScript
1 line
5.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4758705f"],{"47e6":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#search_project .search_box[data-v-31f1c15a]{background:#fff}#search_project .top[data-v-31f1c15a]{background:#fff;margin-bottom:.5rem}#search_project .top img[data-v-31f1c15a]{width:100%;height:10.71rem;border-radius:.54rem}#search_project .top .project[data-v-31f1c15a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:left;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:.3rem}#search_project .top .project .project_name[data-v-31f1c15a]{-webkit-box-flex:4;-webkit-flex:4;-ms-flex:4;flex:4;font-size:16px;font-weight:700;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;height:100%}#search_project .top .project .detail[data-v-31f1c15a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#search_project .top .project .detail .top[data-v-31f1c15a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0}#search_project .top .project .detail .top .num[data-v-31f1c15a]{color:#ce811d;font-size:16px}#search_project .top .project .detail .top .bottom[data-v-31f1c15a]{color:#9f9f9f}#search_project .top .classification[data-v-31f1c15a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin:.8rem 0}#search_project .top .classification .left[data-v-31f1c15a]{color:#f14e4e}#search_project .top .classification .right .other[data-v-31f1c15a]{margin-left:1rem;color:#ce811d}#search_project .top .line[data-v-31f1c15a]{display:block;width:100%;height:.03rem;background-color:#f5f5f5;margin:.75rem 0}#search_project .top .project_brief[data-v-31f1c15a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:left}#search_project .search_box input[data-v-31f1c15a]{width:100%}.search_box input[data-v-31f1c15a]{max-width:100%}",""]),t.exports=e},"6b48":function(t,e,a){var i=a("47e6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("00e567fa",i,!0,{sourceMap:!1,shadowMode:!1})},"842f":function(t,e,a){"use strict";a("6b48")},c1c3:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"search_project"}},[a("c-title",{attrs:{text:"项目列表"}}),a("div",{staticClass:"search_box"},[a("van-search",{attrs:{placeholder:"项目",clearable:""},on:{search:t.btnSearch},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),a("d-list",{attrs:{loading:t.upgradeCodeLoading,finished:t.upgradeCodeFinished},on:{load:function(e){return t.getNearyData()}}},t._l(t.projectList,(function(e){return a("div",{key:e.id,staticClass:"top",staticStyle:{padding:"1.07rem",background:"#fff"},on:{click:function(a){return t.btnDetail(e.id)}}},[a("img",{attrs:{src:e.thumb,alt:""}}),a("div",{staticClass:"project"},[a("span",{staticClass:"project_name"},[t._v(t._s(e.title))]),a("div",{staticClass:"detail"},[a("div",{staticClass:"top"},[a("span",{staticClass:"num"},[t._v(t._s(e.total_sell_count))]),a("span",{staticClass:"num_name"},[t._v("次")])]),a("span",{staticClass:"bottom"},[t._v("累计销售")])])]),a("div",{staticClass:"classification"},[a("div",{staticClass:"left"},[t._v(t._s(e.category_name))]),a("div",{staticClass:"right"},[a("span",{staticClass:"other store_num"},[a("i",{staticClass:"iconfont icon-fontclass-tuanduifenxiaoshang"}),t._v(t._s(e.store_count)+"家")]),a("span",{staticClass:"other distance"},[a("i",{staticClass:"iconfont icon-order_locate"}),t._v(t._s(e.store_distance)+t._s(e.store_distance_unit))]),a("span",{staticClass:"other day"},[a("i",{staticClass:"iconfont icon-fontclass-qixian"}),t._v(t._s(e.period))])])]),e.description?a("span",{staticClass:"line"}):t._e(),a("span",{staticClass:"project_brief"},[t._v(" "+t._s(e.description)+" ")])])})),0)],1)},s=[],o=(a("e7e5"),a("d399")),c=a("2909"),n=a("94b4"),l=a("6968"),r={data:function(){return{lng:"",lat:"",address:"",point:"",location:"",value:"",projectList:[],upgradeCodeLoading:!1,upgradeCodeFinished:!1,upgradeCodePage:1}},activated:function(){var t=this;this.fun.getLocation().then((function(e){t.location=e,t.address=e.title,t.getNearyData()})).catch((function(t){}))},methods:{btnSearch:function(){this.projectList=[],this.upgradeCodeLoading=!1,this.upgradeCodeFinished=!1,this.upgradeCodePage=1,this.getNearyData()},getNearyData:function(){var t=this,e=this.fun.bd_encrypt(this.location.point.lng,this.location.point.lat);this.lng=e.lng,this.lat=e.lat,$http.get("plugin.store-projects.frontend.project.get-list",{lng:this.lng,lat:this.lat,page:this.upgradeCodePage,name:this.value?this.value:""},"loading").then((function(e){if(1===e.result){var a,i=e.data,s=i.data,n=i.current_page,l=i.last_page;0!==s.length&&n!==l||(t.upgradeCodeFinished=!0),(a=t.projectList).push.apply(a,Object(c["a"])(s)),t.upgradeCodeLoading=!1,t.upgradeCodePage++}else Object(o["a"])(e.msg)})).catch((function(t){}))},tolocation:function(){this.$store.commit("setReferer",window.location.href),this.$router.push(this.fun.getUrl("o2oLocation"))},btnDetail:function(t){this.$router.push(this.fun.getUrl("VerificationProjectDetails",{id:t}))}},components:{DList:n["a"],cTitle:l["a"]}},d=r,p=d,f=(a("842f"),a("2877")),u=Object(f["a"])(p,i,s,!1,null,"31f1c15a",null);e["default"]=u.exports}}]); |