home.js 6.03 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/home"],{"4d35":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("9a91");a(n("3240"));var i=a(n("78bc"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"52a1":function(t,e,n){"use strict";var a=n("9a7a"),i=n.n(a);i.a},7074:function(t,e,n){"use strict";n.r(e);var a=n("8662"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"78bc":function(t,e,n){"use strict";n.r(e);var a=n("93dc"),i=n("7074");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("52a1");var r=n("828b"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"6b16698a",null,!1,a["a"],void 0);e["default"]=u.exports},8662:function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("af34")),o={components:{tabbar:function(){n.e("components/tabbar/tabbar").then(function(){return resolve(n("3789"))}.bind(null,n)).catch(n.oe)}},data:function(){return{scrollTop:0,OrderType:0,tableData:[],procedureData:[],pageindex:{pageNumber:1,pageSize:10},swiperList:[],zujin:[{price:"4800"},{price:"3400"},{price:"3000"}],biaoqian:[],show:!1,xuanval:0,xuanList:["区域","租金","默认排序","筛选"],list:[{name:"商铺"},{name:"场地"},{name:"广告位"}],current:0,yingxiaoData:[],shangwuData:[],activity:[]}},onLoad:function(){t.hideTabBar()},onPageScroll:function(t){this.scrollTop=t.scrollTop},filters:{getimgurl:function(t){var e=t.split(",")[0];return e}},mounted:function(){this.getALL(),this.onCouponTab(0)},methods:{getALL:function(){var t=this;this.$http.sendRequest("/cereAnnouncement/queryByPage","POST",{pageNumber:1,pageSize:2},1).then((function(e){t.procedureData=e.data.data.content.slice(-2)})),this.$http.sendRequest("/cereCarouselImage/queryByPage","POST",this.pageindex,1).then((function(e){t.swiperList=e.data.data.content})),this.$http.sendRequest("/cereMarketingActivity/queryByPage","POST",{pageNumber:1,pageSize:2,reviewStatus:"2"},1).then((function(e){t.yingxiaoData=e.data.data.content})),this.$http.sendRequest("/cereBusinessCooperation/queryByPage","POST",{status:"1",pageNumber:1,pageSize:2},1).then((function(e){t.shangwuData=e.data.data.content})),this.$http.sendRequest("/cereActivityApplication/queryByPage","POST",{auditStatus:"3",pageNumber:1,pageSize:2},1).then((function(e){t.activity=e.data.data.content}))},onCouponTab:function(t){var e=this,n={pageNumber:1,pageSize:10,publishStatus:"1"};this.current=t,0==t?(n.pageNumber=0,this.$http.sendRequest("/cereBasicInformationShop/queryByPage","POST",n,1).then((function(t){e.tableData=t.data.data.content})).catch((function(t){console.log(t)}))):1==t?this.$http.sendRequest("/cereBasicInformationVenue/queryByPage","POST",n,1).then((function(t){e.tableData=t.data.data.content})).catch((function(t){console.log(t)})):2==t&&(n.advertisingType="线上广告位",this.$http.sendRequest("/cereAdvertisingInformation/likeGet","POST",n,1).then((function(t){e.tableData=t.data.data.content})).catch((function(t){console.log(t)})))},shops:function(){t.navigateTo({url:"/pages/shops/shops"})},field:function(){t.navigateTo({url:"/pages/field/field"})},toDetail:function(e,n){t.navigateTo({url:"".concat(n,"?item=").concat(e)})},toDetailTwo:function(e,n){var a=JSON.stringify(e);t.navigateTo({url:"".concat(n,"?item=").concat(a)})},goDetail:function(e){t.navigateTo({url:"".concat(e)})},advertisement:function(){t.navigateTo({url:"/pages/advertisement/advertisement"})},gaozhi:function(e){var n=JSON.stringify(e);t.navigateTo({url:"/pages/procedure/procedure?item=".concat(n)})},details:function(e){var n=JSON.stringify(e);0==this.current||1==this.current?t.navigateTo({url:"/pages/details/details?item=".concat(n)}):t.navigateTo({url:"/pages/advertisementDetail/advertisementDetail?item=".concat(n)})},setList:function(t){if(this.xuanval=t,console.log(this.tableData),0==t){var e=this.tableData.filter((function(t){return t.hasOwnProperty("belongingRegion")})),n=e.map((function(t){return{label:t.belongingRegion}})),a=(0,i.default)(new Set(n));console.log(a),this.list=a}else(1==t||2==t)&&(this.list=[]);this.show=!0},confirm:function(t){var e=this,n={pageNumber:1,pageSize:10,belongingRegion:t[0].label};this.$http.sendRequest("/cereBasicInformationShop/queryByPage","POST",n,1).then((function(t){e.tableData=t.data.data.content}))},tabsChange:function(t){console.log(t),this.onCouponTab(t)},wuye:function(){t.navigateTo({url:"/pages/propertyPay/propertyPayList/propertyPayList"})},piaowu:function(){t.navigateTo({url:"/pages/ticketBooking/ticketBooking"})},goList:function(){0==this.current?t.navigateTo({url:"/pages/shops/shops"}):1==this.current?t.navigateTo({url:"/pages/field/field"}):t.navigateTo({url:"/pages/advertisement/advertisement"})}}};e.default=o}).call(this,n("df3c")["default"])},"93dc":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uIcon:function(){return n.e("node-modules/uview-ui/components/u-icon/u-icon").then(n.bind(null,"2408"))},uTabsSwiper:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-tabs-swiper/u-tabs-swiper")]).then(n.bind(null,"7b9b"))},uImage:function(){return n.e("node-modules/uview-ui/components/u-image/u-image").then(n.bind(null,"a209"))},tabbar:function(){return n.e("components/tabbar/tabbar").then(n.bind(null,"3789"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$imgUrl("/bg.png")),a=t.$imgUrl("/logo.png"),i=t.$imgUrl("/home1.png"),o=t.$imgUrl("/home2.png"),r=t.$imgUrl("/home3.png"),u=t.$imgUrl("/home4.png"),c=t.tableData.length,s=t.__map(t.tableData,(function(e,n){var a=t.__get_orig(e),i=t._f("getimgurl")(t.$img+(e.displayMainImage||e.locationDiagram||e.displayImage)),o=e.detailedLocation?t.$imgUrl("/kefu.png"):null;return{$orig:a,f0:i,m6:o}}));t.$mp.data=Object.assign({},{$root:{m0:n,m1:a,m2:i,m3:o,m4:r,m5:u,g0:c,l0:s}})},o=[]},"9a7a":function(t,e,n){}},[["4d35","common/runtime","common/vendor"]]]);