index.js 3.1 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["detail/discountsDetail/index"],{"1b58":function(t,n,e){"use strict";e.r(n);var o=e("79cd"),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},"3de5":function(t,n,e){},4923:function(t,n,e){"use strict";var o=e("3de5"),i=e.n(o);i.a},"4c52":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return o}));var o={zsImg:function(){return Promise.all([e.e("common/vendor"),e.e("components/zs-img/index")]).then(e.bind(null,"3acd"))},ccDropDownMenu:function(){return e.e("uni_modules/cc-dropDownMenu/components/cc-dropDownMenu/cc-dropDownMenu").then(e.bind(null,"b1c6"))},zsList:function(){return e.e("components/zs-list/index").then(e.bind(null,"7636"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.list,(function(n,e){var o=t.__get_orig(n),i=(n.shopVo.distance/1e3).toFixed(2);return{$orig:o,g0:i}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},r=[]},"79cd":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("a767"),i={options:{styleIsolation:"shared"},data:function(){return{longitude:"",latitude:"",destination:"",_mapContext:null,status:"more",list:[],btnText:"去使用",titleArr:["全城","距离最近"],dropArr:[[{text:"全城",value:"440103"}],[{text:"距离最近",value:"40-60"}]],banner:"",filterResultData:[],query:{menuId:"",queryName:"","location.lat":0,"location.lon":0,pageCurrent:1,pageSize:10}}},methods:{finishClick:function(t){this.filterResultData=t},goDetail:function(n){t.setStorageSync("shopInfo",JSON.stringify(n)),t.navigateTo({url:"../shopDetail/shopDetail"})},loadMore:function(){this.search()},search:function(){var t=this;return new Promise((function(n,e){"noMore"!=t.status&&(t.status="loading",(0,o.search)(t.query).then((function(e){"Success"==e.state&&(t.list=t.list.concat(e.content.records),t.list.length>=e.content.total?t.status="noMore":(t.status="more",t.query.pageCurrent++),n())})))}))}},onPullDownRefresh:function(){this.query.pageCurrent=1,this.list=[],this.status="more",this.search().then((function(){t.stopPullDownRefresh()}))},onLoad:function(n){var e=this,o=this.getOpenerEventChannel();"{}"!==JSON.stringify(o)&&o.on("banner",(function(t){e.banner=t})),t.setNavigationBarTitle({title:n.title}),this.query.menuId=n.id;var i=JSON.parse(t.getStorageSync("location"));this.query["location.lat"]=i.latitude,this.query["location.lon"]=i.longitude,this.search()}};n.default=i}).call(this,e("543d")["default"])},"95fa":function(t,n,e){"use strict";e.r(n);var o=e("4c52"),i=e("1b58");for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e("4923");var a=e("f0c5"),u=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports},ff6f:function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("b7d7");o(e("66fd"));var i=o(e("95fa"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])}},[["ff6f","common/runtime","common/vendor"]]]);