home.js
4.54 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/home"],{"296c":function(e,t,n){},"3f68":function(e,t,n){"use strict";(function(e){var a=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("af34")),o={components:{tabbar:function(){n.e("components/tabbar/tabbar").then(function(){return resolve(n("8df9"))}.bind(null,n)).catch(n.oe)}},data:function(){return{scrollTop:0,OrderType:0,tableData:[],procedureData:[],pageindex:{pageNumber:1,pageSize:10},swiperList:[],show:!1,xuanval:0,xuanList:["区域","租金","默认排序","筛选"],list:[{value:"1",label:"江"},{value:"2",label:"湖"}]}},onLoad:function(){e.hideTabBar()},onPageScroll:function(e){this.scrollTop=e.scrollTop},mounted:function(){this.getALL()},methods:{getALL:function(){var e=this;this.$http.sendRequest("/cereAnnouncement/queryByPage","POST",{pageNumber:1,pageSize:2},1).then((function(t){e.procedureData=t.data.data.content.slice(-2)})),this.$http.sendRequest("/cereBasicInformationShop/queryByPage","POST",this.pageindex,1).then((function(t){console.log(t.data.data.content),e.tableData=t.data.data.content})),this.$http.sendRequest("/cereCarouselImage/queryByPage","POST",this.pageindex,1).then((function(t){e.swiperList=t.data.data.content})),setTimeout((function(t){e.$http.sendRequest("/cereAdvertisingInformation/likeGet","POST",{pageNumber:1,pageSize:10,advertisingType:"线上广告位"},1).then((function(t){var n=t.data.data.content;n.forEach((function(t){e.tableData.push(t)}))}))}),500)},onCouponTab:function(e){var t=this;this.OrderType=e,0==e&&this.getALL(),1==e?this.$http.sendRequest("/cereBasicInformationShop/queryByPage","POST",this.pageindex,1).then((function(e){t.tableData=e.data.data.content})).catch((function(e){console.log(e)})):2==e?this.tableData=[]:3==e?(this.pageindex.advertisingType="线上广告位",this.$http.sendRequest("/cereAdvertisingInformation/likeGet","POST",this.pageindex,1).then((function(e){t.tableData=e.data.data.content})).catch((function(e){console.log(e)}))):(4==e||5==e)&&(this.tableData=[])},shops:function(){e.navigateTo({url:"/pages/shops/shops"})},field:function(){e.navigateTo({url:"/pages/field/field"})},advertisement:function(){e.navigateTo({url:"/pages/advertisement/advertisement"})},gaozhi:function(t){var n=JSON.stringify(t);e.navigateTo({url:"/pages/procedure/procedure?item=".concat(n)})},details:function(t){var n=JSON.stringify(t);e.navigateTo({url:"/pages/details/details?item=".concat(n)})},setList:function(e){if(this.xuanval=e,console.log(this.tableData),0==e){var t=this.tableData.filter((function(e){return e.hasOwnProperty("belongingRegion")})),n=t.map((function(e){return{label:e.belongingRegion}})),a=(0,i.default)(new Set(n));console.log(a),this.list=a}else(1==e||2==e)&&(this.list=[]);this.show=!0},confirm:function(e){var t=this,n={pageNumber:1,pageSize:10,belongingRegion:e[0].label};this.$http.sendRequest("/cereBasicInformationShop/queryByPage","POST",n,1).then((function(e){t.tableData=e.data.data.content}))}}};t.default=o}).call(this,n("df3c")["default"])},"544e":function(e,t,n){"use strict";(function(e,t){var a=n("47a9");n("aab8");a(n("3240"));var i=a(n("92d6"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"81a5":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var a={uSelect:function(){return n.e("node-modules/uview-ui/components/u-select/u-select").then(n.bind(null,"bc31"))},tabbar:function(){return n.e("components/tabbar/tabbar").then(n.bind(null,"8df9"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$imgUrl("/bg.png")),a=e.$imgUrl("/logo.png"),i=e.$imgUrl("/home1.png"),o=e.$imgUrl("/home2.png"),r=e.$imgUrl("/home3.png"),c=e.$imgUrl("/home4.png"),u=e.$imgUrl("/home4.png"),s=e.$imgUrl("/down.png"),l=e.$imgUrl("/down.png"),d=e.$imgUrl("/down.png"),f=e.$imgUrl("/down.png");e.$mp.data=Object.assign({},{$root:{m0:n,m1:a,m2:i,m3:o,m4:r,m5:c,m6:u,m7:s,m8:l,m9:d,m10:f}})},o=[]},"92d6":function(e,t,n){"use strict";n.r(t);var a=n("81a5"),i=n("f653");for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n("cce2");var r=n("828b"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"53c6e5f4",null,!1,a["a"],void 0);t["default"]=c.exports},cce2:function(e,t,n){"use strict";var a=n("296c"),i=n.n(a);i.a},f653:function(e,t,n){"use strict";n.r(t);var a=n("3f68"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=i.a}},[["544e","common/runtime","common/vendor"]]]);