You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
49 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-views-tabBar-home"],{"03c1":function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("4160"),i("ac1f"),i("1276"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("ce43")),s={data:function(){return{list:{bgi:n.default,logo:"/static/images/new/chaozhi_logo.png",title:"/static/images/new/chaozhi_title.png",noticeList:[{title:"32324465人正在抢购"},{title:"宋**婷刚刚下单啦"},{title:"尚**际刚刚下单啦"},{title:"付**白刚刚下单啦"},{title:"海**海刚刚下单啦"}],sw_select:0,list_good:[{img:"https://p0.meituan.net/mallimages/2fd33f00df1266428c446ab0544f170b105276.jpg",price:"9.5",oldPrice:""},{img:"https://p0.meituan.net/mallimages/2bf56ad37cd865c9b936de355ac703da291588.jpg",price:"2.5",oldPrice:"3.0"},{img:"https://p0.meituan.net/mallimages/9a4786e764d0f53318a42d0df8628e7f516056.png",price:"9.99",oldPrice:"12.0"},{img:"https://p0.meituan.net/mallimages/965103a1fe16a42ce9e9e525382490be247677.jpg",price:"7.9",oldPrice:"9.0"},{img:"https://p0.meituan.net/mallimages/d4bfebff42d203e6ef8df97dc9c4c53e243115.jpg",price:"19.9",oldPrice:"23.5"},{img:"https://p0.meituan.net/mallimages/f724bb1033b0bf84ddda34a72af89468302986.jpg",price:"6.99",oldPrice:""},{img:"https://p1.meituan.net/mallimages/f9d4e9fd6e59a028f95461fcac070926829853.png",price:"0.99",oldPrice:"1.5"},{img:"https://p0.meituan.net/mallimages/5c71f2f5a30ea1ba19e0261796abbb4760368.jpg",price:"0.99",oldPrice:"1.2"}]}}},created:function(){},components:{},props:{},mounted:function(){this.arrgood()},methods:{arrgood:function(){for(var t=0;t<this.list.list_good.length;t++){var e=this.list.list_good[t].price,i=e.split(".");this.list.list_good[t].price="".concat(i[0],'.<span style="font-size:12px;">').concat(i[1],"</span>")}this.list.list_good=this.arrTrans(4,this.list.list_good)},Swiper:function(t){this.sw_select=t.detail.current},arrTrans:function(t,e){var i=[];return e.forEach((function(e,a){var n=Math.floor(a/t);i[n]||(i[n]=[]),i[n].push(e)})),i}}};e.default=s},"0f6e":function(t,e,i){"use strict";i.r(e);var a=i("d368"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},"156a":function(t,e,i){t.exports=i.p+"static/img/pingjia.32cb7bec.gif"},"178b":function(t,e,i){var a=i("4a7d");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("7cb58956",a,!0,{sourceMap:!1,shadowMode:!1})},"224a":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"flex flex-wrap justify-center m-3"},[i("v-uni-image",{staticClass:"w-100",staticStyle:{height:"150rpx"},attrs:{src:t.list[0].pic,mode:""}}),i("v-uni-view",{staticClass:"flex w-100 bg-100 padding-xs",staticStyle:{height:"230rpx","justify-content":"space-evenly"},style:{backgroundImage:"url("+t.bgi+")"},attrs:{mode:"aspectFill"}},t._l(t.list[0].childrenResource,(function(e,a){return i("v-uni-view",{key:a,staticClass:"good_item h-100 bg-100 ",staticStyle:{width:"23%"},style:{backgroundImage:"url("+e.bgPic+")"}},[i("v-uni-image",{staticStyle:{width:"100%",height:"65%","border-radius":"15%"},attrs:{src:e.pic,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"text-white text-center"},[i("v-uni-view",{staticClass:"text-sm"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"text-xs"},[t._v(t._s(e.subTitle))])],1)],1)})),1)],1)},s=[]},"2f34":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".chaozhi[data-v-824cb14e]{width:94%;height:%?285?%;background-size:100% 100%;margin:0 3%;padding-bottom:%?20?%}.logo[data-v-824cb14e]{width:%?65?%;height:%?65?%}.title[data-v-824cb14e]{width:%?140?%;height:%?60?%}.notice_swiper[data-v-824cb14e]{width:50%;height:%?50?%}.notice_swiper .sw_item[data-v-824cb14e]{height:%?80?%}.notice_swiper .sw_item .sw_text[data-v-824cb14e]{font-size:%?24?%;color:#ee5d37;display:inline-block}.notice_swiper .sw_image[data-v-824cb14e]{width:%?40?%;height:%?40?%;float:right;margin-top:%?20?%}.chaozhi_button[data-v-824cb14e]{width:17%;height:%?50?%;text-align:center;background:-webkit-linear-gradient(295deg,#fffbeb,#ffeb8f);background:linear-gradient(155deg,#fffbeb,#ffeb8f);display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-radius:20px;margin-right:3%;font-size:13px;color:#ff3b3b}.chaozhi_list[data-v-824cb14e]{height:70%;background-color:#fff;margin:%?10?%;border-radius:%?10?%}.sw_img[data-v-824cb14e]{position:relative}.text-price[data-v-824cb14e]::before{padding-top:10%;padding-left:5%;margin-right:0}.oldprice[data-v-824cb14e]{background-color:#ffe26a;color:#9d4900;text-decoration:line-through;font-size:12px;padding-right:%?10?%;border-radius:0 %?10?% %?6?% 0}",""]),t.exports=e},3118:function(t,e,i){"use strict";var a=i("178b"),n=i.n(a);n.a},3179:function(t,e,i){"use strict";var a=i("4ea4");i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("f210")),s=a(i("e8c5")),r=i("7fa8"),o={data:function(){return{currentSwiper:0,city:"北京",weatherData:[{type:"阴",img:"/static/images/weather/yin.png"},{type:"晴",img:"/static/images/weather/qing.png"},{type:"多云",img:"/static/images/weather/duoyun.png"},{type:"雨",img:"/static/images/weather/xiaoyu.png"},{type:"小雨",img:"/static/images/weather/xiaoyu.png"},{type:"中雨",img:"/static/images/weather/xiaoyu.png"},{type:"大雨",img:"/static/images/weather/dayu.png"},{type:"暴雨",img:"/static/images/weather/leiyu.png"},{type:"雷阵雨",img:"/static/images/weather/leiyu.png"},{type:"雨夹雪",img:"/static/images/weather/xiaoxue.png"},{type:"雪",img:"/static/images/weather/xue.png"},{type:"小雪",img:"/static/images/weather/xue.png"},{type:"中雪",img:"/static/images/weather/xiaoxue.png"},{type:"大雪",img:"/static/images/weather/daxue.png"}],high:"",weatherName:"",latitude:"",longitude:"",todyWeather:{},statusBarHeight:20}},components:{search:s.default},props:{colors:{type:String},locations:{type:Object},swiperList:{type:Array}},created:function(){console.log("key",r.hfKey,r.txMapKey),this.locations.latlng&&(this.latitude=this.locations.latlng.lat||"",this.longitude=this.locations.latlng.lng||"",this.city=this.locations.poiname,this.getWeather(this.latitude,this.longitude))},watch:{locations:function(t){this.latitude=this.locations.latlng.lat||"",this.longitude=this.locations.latlng.lng||"",this.city=this.locations.poiname,this.getWeather(this.latitude,this.longitude)}},mounted:function(){},methods:{Swiper:function(t){this.currentSwiper=t.detail.current},getUserPosition:function(){var t=this;uni.getLocation({type:"wgs84",geocode:!0,success:function(e){console.log("获取经纬度成功",e),t.setData({latitude:e.latitude,longitude:e.longitude})},fail:function(){t.setData({latitude:"",longitude:""})},complete:function(){t.getCity()}})},getCity:function(){var t=new n.default({key:r.txMapKey}),e=this;t.reverseGeocoder({location:{latitude:e.latitude,longitude:e.longitude},success:function(t){console.log("解析地址成功",t);t.result.ad_info.province;var i=t.result.address;e.setData({city:i});var a={};a.lat=e.latitude,a.lng=e.longitude,a.name=i,e.getWeather(e.latitude,e.longitude)},fail:function(t){console.log(t)},complete:function(t){console.log(t)}})},getWeather:function(t,e){var i=this,a="https://free-api.heweather.net/s6/weather/now?key="+r.hfKey+"&location="+e+","+t;uni.request({url:a,method:"GET",success:function(t){console.log(t);var e=t.data.HeWeather6[0].now,a=e.fl;if(i.setData({high:a,weatherName:e.cond_txt}),i.weatherData.forEach((function(t){t.type==e.cond_txt&&i.setData({todyWeather:t})})),""==i.todyWeather.type||!i.todyWeather.type){var n=i.weatherData[0];i.setData({todyWeather:n})}},fail:function(){},complete:function(){}})},nearAddress:function(){uni.navigateTo({url:"/pages/views/home/h5map"})},swiperChange:function(t){this.setData({currentSwiper:t.detail.current})}}};e.default=o},"3ca9":function(t,e,i){"use strict";i.r(e);var a=i("c948"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},4677:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"place"}),i("v-uni-view",{staticStyle:{position:"absolute",top:"0",right:"3%",left:"3%","z-index":"99"}},[i("v-uni-view",{staticClass:"text-lg"},[i("v-uni-view",{staticClass:"left",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.nearAddress.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{src:"/static/images/home/weizhi.png"}}),i("v-uni-view",{staticStyle:{"font-weight":"800"}},[t._v(t._s("送至:"+t.city||!1)),i("v-uni-text",{staticClass:"cuIcon-right",staticStyle:{"padding-left":"10upx"}})],1)],1),t.weatherName&&""!==t.weatherName?i("v-uni-view",{staticClass:"right"},[i("v-uni-image",{attrs:{src:t.todyWeather.img}}),i("v-uni-text",[t._v(t._s(t.weatherName)+" /"+t._s(t.high)+"℃")])],1):t._e()],1),i("search",{staticStyle:{width:"100%"}})],1),i("v-uni-swiper",{staticClass:"screen-swiper square-dot",attrs:{"indicator-dots":!1,circular:!0,autoplay:!0,interval:"5000",duration:"500"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.Swiper.apply(void 0,arguments)}}},t._l(t.swiperList,(function(t,e){return i("v-uni-swiper-item",{key:e},[i("v-uni-image",{attrs:{src:t.img,mode:"aspectFill"}})],1)})),1),i("v-uni-view",{staticClass:"indicator"},t._l(t.swiperList,(function(e,a){return i("v-uni-view",{key:a,class:t.currentSwiper==a?"on":"dots"})})),1)],1)},s=[]},"4a7d":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".header[data-v-65f24caf]{line-height:%?80?%;overflow:hidden;color:#fff;position:relative}.place[data-v-65f24caf]{position:absolute;width:100%;height:100%;top:0;left:0;background:-webkit-linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,.5),#fff);background:linear-gradient(hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,.5),#fff)}.left[data-v-65f24caf]{color:#333;float:left;height:%?80?%;color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;align-items:center;z-index:800}.left uni-image[data-v-65f24caf]{width:%?30?%;height:%?30?%;float:left;margin-right:%?6?%}.left uni-view[data-v-65f24caf]{width:60vw;height:%?40?%;line-height:%?40?%;position:relative;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.right[data-v-65f24caf]{height:%?80?%;float:right;font-size:%?26?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.right uni-image[data-v-65f24caf]{width:%?40?%;height:%?40?%}.right uni-text[data-v-65f24caf]{margin-left:%?10?%}.swiper[data-v-65f24caf]{width:100%;margin-top:%?10?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.swiper-box[data-v-65f24caf]{width:100%;height:45vw;overflow:hidden;\n /* border-radius: 15upx; */\n /* box-shadow: 0upx 8upx 25upx rgba(0, 0, 0, 0.2); */position:relative;z-index:1}.swiper-box uni-swiper[data-v-65f24caf]{width:100%;height:45vw}.swiper-box uni-swiper uni-swiper-item[data-v-65f24caf]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.swiper-box uni-swiper uni-swiper-item uni-image[data-v-65f24caf]{width:95%;height:45vw;margin:0 auto;display:block;border-radius:10px;-webkit-transition:height .3s;transition:height .3s}.swiper-item-side[data-v-65f24caf]{width:95%;height:40vw!important;-webkit-transition:height .3s;transition:height .3s}.indicator[data-v-65f24caf]{position:absolute;bottom:%?20?%;left:%?20?%;right:%?20?%;border-radius:%?3?%;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.dots[data-v-65f24caf]{width:%?12?%;height:%?12?%;border-radius:100%;margin:0 %?10?%;background-color:hsla(0,0%,100%,.4);-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.on[data-v-65f24caf]{width:%?30?%;height:%?12?%;border-radius:%?20?%;margin:0 %?10?%;background-color:#fff;-webkit-transition:all .3s ease-out;transition:all .3s ease-out}",""]),t.exports=e},"58dc":function(t,e,i){"use strict";var a=i("fe83"),n=i.n(a);n.a},"5bb1":function(t,e,i){"use strict";i.r(e);var a=i("8cb6"),n=i("3ca9");for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("b081");var r,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"35443151",null,!1,a["a"],r);e["default"]=c.exports},"5bc3":function(t,e){function i(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function a(t,e,a){return e&&i(t.prototype,e),a&&i(t,a),t}t.exports=a},"60d2":function(t,e,i){"use strict";i.r(e);var a=i("4677"),n=i("9023");for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("3118");var r,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"65f24caf",null,!1,a["a"],r);e["default"]=c.exports},"67c1":function(t,e,i){"use strict";var a=i("7a24"),n=i.n(a);n.a},7609:function(t,e,i){"use strict";i.r(e);var a=i("fd79"),n=i("0f6e");for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("67c1");var r,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"a552260c",null,!1,a["a"],r);e["default"]=c.exports},"78de":function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("156a")),s={data:function(){return{bgi:n.default,list:[{id:12355,pic:"https://p0.meituan.net/mallimages/22b17afae7865debcb8bb69606fc19ae147034.gif",jumpTargetType:16,needClip:!1,name:"1.18-1.19-广州年货节",contentType:1,styleMap:{},bgPic:"https://p0.meituan.net/mallimages/68839887f09ca0843be0661ba84f4de111227.gif",childrenResource:[{id:12356,pic:"https://p0.meituan.net/mallimages/7b69114101c5dc35ada290c89e581ce5260727.jpg",jumpTargetType:16,targetUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2Fc0f017575182d9def2af%2F103435%2Findex.html%3FpoiId%3D1865",needClip:!1,name:"",title:"1.89元秒杀",subTitle:"御寒滋补",contentType:1,styleMap:{},bgPic:"https://p0.meituan.net/mallimages/fde33b41cd967b40c33cae3e3b488b9f4892.png"},{id:12357,pic:"https://p0.meituan.net/mallimages/b8e703d16a7a1cb491d3374962c44d51571511.png",jumpTargetType:16,targetUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2Ff564e719cb80c51429f3%2F103673%2Findex.html%3FpoiId%3D1865",needClip:!1,name:"",title:"低至3.99元",subTitle:"甜蜜水果",contentType:1,styleMap:{},bgPic:"https://p0.meituan.net/mallimages/fde33b41cd967b40c33cae3e3b488b9f4892.png"},{id:12358,pic:"https://p0.meituan.net/mallimages/8773dc1fb4eb103ea36b3b3c6f57689b169059.jpg",jumpTargetType:16,targetUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2F21556a8f83f1b45fc05f%2F103579%2Findex.html%3FpoiId%3D1865",needClip:!1,name:"",title:"两件85折",subTitle:"品牌坚果",contentType:1,styleMap:{},bgPic:"https://p0.meituan.net/mallimages/fde33b41cd967b40c33cae3e3b488b9f4892.png"},{id:12359,pic:"https://p0.meituan.net/mallimages/39b735d7804efdcc6a32bd90cc6b925f668358.png",jumpTargetType:16,targetUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2F5e005b672f5681df12e2%2F103679%2Findex.html%3FpoiId%3D1865",needClip:!1,name:"",title:"买2送1",subTitle:"人气酒饮",contentType:1,styleMap:{},bgPic:"https://p0.meituan.net/mallimages/fde33b41cd967b40c33cae3e3b488b9f4892.png"}]}]}},created:function(){},components:{},props:{},mounted:function(){},methods:{}};e.default=s},"79f4":function(t,e,i){var a=i("2f34");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("f058ebfa",a,!0,{sourceMap:!1,shadowMode:!1})},"7a24":function(t,e,i){var a=i("d7ff");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("5864f654",a,!0,{sourceMap:!1,shadowMode:!1})},"7fa8":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.txMapKey=e.hfKey=void 0;var a="b2286b8feae44d1c926ca9033e5bf123";e.hfKey=a;var n="BIUBZ-UWKW3-FK53E-YIPVT-R4KG5-3DBA3";e.txMapKey=n},"891c":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".home[data-v-e640cbe2]{margin-bottom:%?40?%}.home-title[data-v-e640cbe2]{color:#9ea0a6;border-radius-top:20px;border-radius:20px 20px 0 0;background-color:#fff;position:relative;z-index:99999;top:-10px}.bottomTap[data-v-e640cbe2]{width:75px;height:75px;position:fixed;bottom:80px;right:3%;z-index:200}",""]),t.exports=e},"8cb6":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"category-list"},t._l(t.homepageCategoryList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"category",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.jumpList(e)}}},[i("v-uni-view",{staticClass:"class_img"},[i("v-uni-image",{staticClass:"imgs ",class:16==e.jumpTargetType?"mix":"",attrs:{src:e.iconUrl}})],1),i("v-uni-view",{staticClass:"text",style:16==e.jumpTargetType?"font-size:11px":""},[t._v(t._s(e.name))])],1)})),1)},s=[]},9023:function(t,e,i){"use strict";i.r(e);var a=i("3179"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},9426:function(t,e,i){"use strict";var a=i("79f4"),n=i.n(a);n.a},9500:function(t,e,i){"use strict";i.r(e);var a=i("9feb"),n=i("c31c");for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("58dc");var r,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"e640cbe2",null,!1,a["a"],r);e["default"]=c.exports},"970b":function(t,e){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=i},"9feb":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"home"},[i("headers",{attrs:{colors:t.colors,locations:t.locations,swiperList:t.swiperList}}),i("v-uni-view",{staticClass:"home-title grid col-3 text-center padding-top-sm text-sm"},t._l(t.gridList,(function(e,a){return i("v-uni-view",{attrs:{ukey:a}},[i("v-uni-text",{staticClass:"cuIcon-evaluate_fill padding-right-xs "}),t._v(t._s(e.tilte))],1)})),1),i("chaozhi"),i("classList"),i("activity"),i("fourSquares"),i("v-uni-view",{staticClass:"m-3 text-lg padding-tb-sm"},[t._v("猜你喜欢")]),i("goodList"),i("v-uni-image",{staticClass:"bottomTap",attrs:{src:"/static/images/new/caomei.gif"}})],1)},s=[]},a93b:function(t,e,i){"use strict";i.r(e);var a=i("224a"),n=i("d04f");for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);var r,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"4d456eee",null,!1,a["a"],r);e["default"]=c.exports},ac44:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"chaozhi",style:{"background-image":"url("+t.list.bgi+")"}},[i("v-uni-view",{staticClass:"flex justify-between padding-top-xs align-center",staticStyle:{height:"30%"}},[i("v-uni-view",{staticClass:"flex padding-l",staticStyle:{width:"80%","line-height":"60rpx"}},[i("v-uni-image",{staticClass:"logo",attrs:{src:t.list.logo}}),i("v-uni-image",{staticClass:"title",attrs:{src:t.list.title}}),i("v-uni-view",{staticClass:"padding-left-xs text-orange text-xs"},[t._v("|")]),i("v-uni-swiper",{staticClass:"notice_swiper padding-left-xs",attrs:{circular:!0,vertical:!0,"easing-function":"easeInOutCubic",autoplay:!0,interval:"3000"}},t._l(t.list.noticeList,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"sw_item"},[i("v-uni-text",{staticClass:"sw_text ",staticStyle:{"font-weight":"900"}},[t._v(t._s(e.title))])],1)})),1)],1),i("v-uni-view",{staticClass:"radius chaozhi_button text-center margin-xs"},[i("v-uni-view",{staticStyle:{border:"1px solid #FFEB8F",padding:"2px","border-radius":"20px"}},[i("v-uni-text",{staticClass:" border"},[t._v("去抢购")]),i("v-uni-text",{staticClass:"cuIcon-right text-orange"})],1)],1)],1),i("v-uni-swiper",{staticClass:"chaozhi_list",attrs:{circular:!0,vertical:!0,"easing-function":"easeInOutCubic",autoplay:!0,interval:"3000"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.Swiper.apply(void 0,arguments)}}},t._l(t.list.list_good,(function(e,a){return i("v-uni-swiper-item",{key:a,staticClass:"grid col-4 "},t._l(e,(function(e,a){return i("v-uni-view",{key:a,staticClass:"flex justify-center"},[i("v-uni-image",{staticClass:"h-100 padding-xs sw_img",staticStyle:{position:"relative","padding-bottom":"30rpx"},attrs:{src:e.img,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"text-bold flex align-end",staticStyle:{position:"absolute",bottom:"0","margin-bottom":"10rpx"}},[i("v-uni-view",{staticClass:"bg-gradual-orange text-price flex",staticStyle:{"border-radius":"10rpx 10rpx 0 6rpx",padding:"0rpx 4rpx 0rpx 2rpx"}},[i("v-uni-view",{staticClass:" text-l",staticStyle:{padding:"2rpx 8rpx"},domProps:{innerHTML:t._s(e.price)}})],1),""!=e.oldPrice?i("v-uni-view",{staticClass:"oldprice text-price "},[t._v(t._s(e.oldPrice))]):t._e()],1)],1)})),1)})),1)],1)},s=[]},b081:function(t,e,i){"use strict";var a=i("c11c"),n=i.n(a);n.a},bbe2:function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("a8b2"),s=a(i("60d2")),r=a(i("f917")),o=a(i("5bb1")),c=a(i("a93b")),l=a(i("7609")),u=a(i("5c7e")),d=getApp(),f={data:function(){return{gridList:[{tilte:"新鲜食材"},{tilte:"天天低价"},{tilte:"售后无忧"}],swiperList:[{img:"/static/images/new/banner11.jpg"},{img:"/static/images/new/banner22.png"},{img:"/static/images/new/banner33.png"},{img:"/static/images/new/banner44.png"}],colors:"",bottoms:"100",scrollShow:!1,locations:{},loading:!0}},components:{headers:s.default,chaozhi:r.default,classList:o.default,activity:c.default,fourSquares:l.default,goodList:u.default},onLoad:function(t){},onReady:function(){},onShow:function(){this.setData({colors:d.globalData.newColor}),uni.setNavigationBarColor({});var t=(0,n.getlocation)();t&&(this.locations=t);var e=(0,n.getCartNumber)()||0;uni.setTabBarBadge({index:2,text:String(e)})},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{onPageScroll:function(t){t.scrollTop>=500?this.setData({scrollShow:!0}):this.setData({scrollShow:!1})}}};e.default=f},c11c:function(t,e,i){var a=i("f547");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("0042ddbc",a,!0,{sourceMap:!1,shadowMode:!1})},c31c:function(t,e,i){"use strict";i.r(e);var a=i("bbe2"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},c348:function(t,e,i){"use strict";i.r(e);var a=i("03c1"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},c948:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{homepageCategoryList:[{iconUrl:"https://p0.meituan.net/mallimages/7725f825efb14c613a7ef53882bf2fc342550.png",name:"蔬菜豆制品",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40488",jumpTargetType:3},{iconUrl:"https://p0.meituan.net/mallimages/65a404f1fb66da5eae1b43adac8794da41080.png",name:"肉禽蛋",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40581",jumpTargetType:3},{iconUrl:"https://p0.meituan.net/mallimages/2a9d96c2b396d97e425d60e182a5a8da13882.png",name:"海鲜水产",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40652",jumpTargetType:3,bubble:{id:1011,type:1,text:"抢波龙",priority:1,utime:1610624525256}},{iconUrl:"https://p0.meituan.net/mallimages/8bf2a444e426d0205f1e7a50a034e2d234560.png",name:"水果",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40532",jumpTargetType:3},{iconUrl:"https://p0.meituan.net/mallimages/6a5bba31dd8720e66ac5c90399b647f430483.png",name:"乳品烘焙",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40461",jumpTargetType:3},{iconUrl:"https://p1.meituan.net/mallimages/752d4d5ed15ea9b418268dbbb58f730838543.png",name:"速食冻品",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40478",jumpTargetType:3},{iconUrl:"https://p0.meituan.net/mallimages/cc71321c6617da6b7b941763208a011332548.png",name:"粮油调味",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40472",jumpTargetType:3},{iconUrl:"https://p0.meituan.net/mallimages/ac948daefceb0c71735868d1accbe22031714.png",name:"酒水饮料",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40455",jumpTargetType:3},{iconUrl:"https://p0.meituan.net/mallimages/a59a09667218f46722803f78ef720e5910801.png",name:"休闲零食",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40485",jumpTargetType:3},{iconUrl:"https://p1.meituan.net/mallimages/4f6e7f3657a9741571ad809c021ad98b48763.png",name:"餐饮熟食",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40916",jumpTargetType:3},{iconUrl:"https://p0.meituan.net/mallimages/61c91165616fcecb6148f841b35c85c46003.png",name:"年货大街",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=41755",jumpTargetType:16},{iconUrl:"https://p0.meituan.net/mallimages/5d24618a6160c550ccfe13942ba620c36288.png",name:"美团奶站",jumpUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2Fe7b70154317467246531%2F93534%2Findex.html%3FpoiId%3D1865",jumpTargetType:16},{iconUrl:"https://p1.meituan.net/mallimages/4799fc4c5ed9e7b06e3eb01d5f73ae0432224.png",name:"打边炉",jumpUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2F56eae497a65b9470558c%2F97032%2Findex.html%3FpoiId%3D1865",jumpTargetType:16},{iconUrl:"https://p0.meituan.net/mallimages/adf27d98c79b4ee210381b85bdb0121228333.png",name:"煲靓汤",jumpUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2F121e7c13425aa76e8d97%2F97034%2Findex.html%3FpoiId%3D1865",jumpTargetType:16},{iconUrl:"https://p0.meituan.net/mallimages/36d8e40e80ead870bce26f6a5311c4996010.png",name:"家居个护",jumpUrl:"imaicai://www.maicai.com/category_list?category_id=40482",jumpTargetType:16}]}},props:{},methods:{jumpList:function(t){uni.navigateTo({url:"/pages/views/home/classList?classId="+t.id})}}};e.default=a},ce43:function(t,e,i){t.exports=i.p+"static/img/chaozhi_bgi.94640a45.png"},d04f:function(t,e,i){"use strict";i.r(e);var a=i("78de"),n=i.n(a);for(var s in a)"default"!==s&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},d368:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{tileList:[{tileId:0,title:"秒杀",jumpUrl:"imaicai://www.maicai.com/web?wkwebview=1&future=1&url=https%3A%2F%2Fmall.meituan.com%2Ffe%2Fc%2Factivity%2Fseckill.html",appletJumpUrl:"",subjectId:0,position:3,titleColor:"#121924",subTitleColor:"#FF1929",tagPic:"",itemList:[{skuId:75121,picUrl:"https://p1.meituan.net/mallimages/afc8635ad295f03c99d50945f35544e0158519.jpg",tagType:4,sellPrice:{text:"¥22.7"},dashPrice:{text:"¥25.9",styleId:"dp"},baseCategoryId:57},{skuId:92874,picUrl:"https://p0.meituan.net/mallimages/ce107e631de932c7a572f9bfd7fe296c240498.png",tagType:4,sellPrice:{text:"¥7.7"},dashPrice:{text:"¥11.8",styleId:"dp"},baseCategoryId:23}],tagType:4,seckillVO:{timeInterval:1610985599e3,seckillingType:1},jumpTargetType:10},{tileId:1152,title:"新品发现",subTitle:"精选好货抢鲜购",jumpUrl:"imaicai://www.maicai.com/web?wkwebview=1&url=https%3A%2F%2Fmall.meituan.com%2Ffe%2Fc%2Fseasonal-skus.html",appletJumpUrl:"",subjectId:0,position:5,titleColor:"#121924",subTitleColor:"#CC6A00",tagPic:"",itemList:[{skuId:61006,picUrl:"https://p0.meituan.net/mallimages/275b1af3fc453162b7e405ceb38c4806241570.jpg",tagType:1,baseCategoryId:311},{skuId:1949,picUrl:"https://p1.meituan.net/waimaidpoipicmining/ea9cff3d5456a862eb23e03f9f704b1a102360.jpg",tagType:1,baseCategoryId:448}],tagType:1,jumpTargetType:27},{tileId:1156,title:"品质肉蛋",subTitle:"猪汤骨17.9元",jumpUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2F8d3f7baded5060a2964b%2F103729%2Findex.html%3FpoiId%3D2423",appletJumpUrl:"",subjectId:0,position:6,titleColor:"#121924",subTitleColor:"#158A50",tagPic:"",itemList:[{skuId:93724,picUrl:"https://p1.meituan.net/mallimages/4c7592faa7245c9518779b2ed036ca6f959671.png",tagType:1,baseCategoryId:568},{skuId:84873,picUrl:"https://p1.meituan.net/mallimages/c8dfdf4fb55a839b61f25640287e2bee277992.png",tagType:1,baseCategoryId:55}],tagType:1,jumpTargetType:16},{tileId:1155,title:"大寒节气餐单",subTitle:"应季而食必吃榜",jumpUrl:"imaicai://www.maicai.com/web?future=1&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2Fe9105f026a8f066445b0%2F103559%2Findex.html%3FpoiId%3D2423",appletJumpUrl:"",subjectId:0,position:7,titleColor:"#121924",subTitleColor:"#FF1929",tagPic:"",itemList:[{skuId:74132,picUrl:"https://p1.meituan.net/mallimages/d4ca8cb05b0f8bdce33c11a657c222d591452.jpg",tagType:1,baseCategoryId:36},{skuId:67612,picUrl:"https://p0.meituan.net/mallimages/92ee6d6f97d72a79af056df53fcfcce5152802.jpg",tagType:1,baseCategoryId:39}],tagType:1,jumpTargetType:16}]}}};e.default=a},d7ff:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'.item[data-v-a552260c]{position:relative;padding:%?15?% %?15?%}.item[data-v-a552260c]:after{position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;border-right:1px solid rgba(0,0,0,.1);border-bottom:1px solid rgba(0,0,0,.1);border-radius:inherit;content:" ";-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none}',""]),t.exports=e},f210:function(t,e,i){i("99af"),i("4de4"),i("4160"),i("a15b"),i("4e82"),i("b680"),i("b64b"),i("acd8"),i("ac1f"),i("1276"),i("159b");var a=i("970b"),n=i("5bc3"),s={KEY_ERR:311,KEY_ERR_MSG:"key格式错误",PARAM_ERR:310,PARAM_ERR_MSG:"请求参数信息有误",SYSTEM_ERR:600,SYSTEM_ERR_MSG:"系统错误",WX_ERR_CODE:1e3,WX_OK_CODE:200},r="https://apis.map.qq.com/ws/",o=r+"place/v1/search",c=r+"place/v1/suggestion",l=r+"geocoder/v1/",u=r+"district/v1/list",d=r+"district/v1/getchildren",f=r+"distance/v1/",p=r+"direction/v1/",g={driving:"driving",transit:"transit"},m=6378136.49,h={safeAdd:function(t,e){var i=(65535&t)+(65535&e),a=(t>>16)+(e>>16)+(i>>16);return a<<16|65535&i},bitRotateLeft:function(t,e){return t<<e|t>>>32-e},md5cmn:function(t,e,i,a,n,s){return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(e,t),this.safeAdd(a,s)),n),i)},md5ff:function(t,e,i,a,n,s,r){return this.md5cmn(e&i|~e&a,t,e,n,s,r)},md5gg:function(t,e,i,a,n,s,r){return this.md5cmn(e&a|i&~a,t,e,n,s,r)},md5hh:function(t,e,i,a,n,s,r){return this.md5cmn(e^i^a,t,e,n,s,r)},md5ii:function(t,e,i,a,n,s,r){return this.md5cmn(i^(e|~a),t,e,n,s,r)},binlMD5:function(t,e){var i,a,n,s,r;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var o=1732584193,c=-271733879,l=-1732584194,u=271733878;for(i=0;i<t.length;i+=16)a=o,n=c,s=l,r=u,o=this.md5ff(o,c,l,u,t[i],7,-680876936),u=this.md5ff(u,o,c,l,t[i+1],12,-389564586),l=this.md5ff(l,u,o,c,t[i+2],17,606105819),c=this.md5ff(c,l,u,o,t[i+3],22,-1044525330),o=this.md5ff(o,c,l,u,t[i+4],7,-176418897),u=this.md5ff(u,o,c,l,t[i+5],12,1200080426),l=this.md5ff(l,u,o,c,t[i+6],17,-1473231341),c=this.md5ff(c,l,u,o,t[i+7],22,-45705983),o=this.md5ff(o,c,l,u,t[i+8],7,1770035416),u=this.md5ff(u,o,c,l,t[i+9],12,-1958414417),l=this.md5ff(l,u,o,c,t[i+10],17,-42063),c=this.md5ff(c,l,u,o,t[i+11],22,-1990404162),o=this.md5ff(o,c,l,u,t[i+12],7,1804603682),u=this.md5ff(u,o,c,l,t[i+13],12,-40341101),l=this.md5ff(l,u,o,c,t[i+14],17,-1502002290),c=this.md5ff(c,l,u,o,t[i+15],22,1236535329),o=this.md5gg(o,c,l,u,t[i+1],5,-165796510),u=this.md5gg(u,o,c,l,t[i+6],9,-1069501632),l=this.md5gg(l,u,o,c,t[i+11],14,643717713),c=this.md5gg(c,l,u,o,t[i],20,-373897302),o=this.md5gg(o,c,l,u,t[i+5],5,-701558691),u=this.md5gg(u,o,c,l,t[i+10],9,38016083),l=this.md5gg(l,u,o,c,t[i+15],14,-660478335),c=this.md5gg(c,l,u,o,t[i+4],20,-405537848),o=this.md5gg(o,c,l,u,t[i+9],5,568446438),u=this.md5gg(u,o,c,l,t[i+14],9,-1019803690),l=this.md5gg(l,u,o,c,t[i+3],14,-187363961),c=this.md5gg(c,l,u,o,t[i+8],20,1163531501),o=this.md5gg(o,c,l,u,t[i+13],5,-1444681467),u=this.md5gg(u,o,c,l,t[i+2],9,-51403784),l=this.md5gg(l,u,o,c,t[i+7],14,1735328473),c=this.md5gg(c,l,u,o,t[i+12],20,-1926607734),o=this.md5hh(o,c,l,u,t[i+5],4,-378558),u=this.md5hh(u,o,c,l,t[i+8],11,-2022574463),l=this.md5hh(l,u,o,c,t[i+11],16,1839030562),c=this.md5hh(c,l,u,o,t[i+14],23,-35309556),o=this.md5hh(o,c,l,u,t[i+1],4,-1530992060),u=this.md5hh(u,o,c,l,t[i+4],11,1272893353),l=this.md5hh(l,u,o,c,t[i+7],16,-155497632),c=this.md5hh(c,l,u,o,t[i+10],23,-1094730640),o=this.md5hh(o,c,l,u,t[i+13],4,681279174),u=this.md5hh(u,o,c,l,t[i],11,-358537222),l=this.md5hh(l,u,o,c,t[i+3],16,-722521979),c=this.md5hh(c,l,u,o,t[i+6],23,76029189),o=this.md5hh(o,c,l,u,t[i+9],4,-640364487),u=this.md5hh(u,o,c,l,t[i+12],11,-421815835),l=this.md5hh(l,u,o,c,t[i+15],16,530742520),c=this.md5hh(c,l,u,o,t[i+2],23,-995338651),o=this.md5ii(o,c,l,u,t[i],6,-198630844),u=this.md5ii(u,o,c,l,t[i+7],10,1126891415),l=this.md5ii(l,u,o,c,t[i+14],15,-1416354905),c=this.md5ii(c,l,u,o,t[i+5],21,-57434055),o=this.md5ii(o,c,l,u,t[i+12],6,1700485571),u=this.md5ii(u,o,c,l,t[i+3],10,-1894986606),l=this.md5ii(l,u,o,c,t[i+10],15,-1051523),c=this.md5ii(c,l,u,o,t[i+1],21,-2054922799),o=this.md5ii(o,c,l,u,t[i+8],6,1873313359),u=this.md5ii(u,o,c,l,t[i+15],10,-30611744),l=this.md5ii(l,u,o,c,t[i+6],15,-1560198380),c=this.md5ii(c,l,u,o,t[i+13],21,1309151649),o=this.md5ii(o,c,l,u,t[i+4],6,-145523070),u=this.md5ii(u,o,c,l,t[i+11],10,-1120210379),l=this.md5ii(l,u,o,c,t[i+2],15,718787259),c=this.md5ii(c,l,u,o,t[i+9],21,-343485551),o=this.safeAdd(o,a),c=this.safeAdd(c,n),l=this.safeAdd(l,s),u=this.safeAdd(u,r);return[o,c,l,u]},binl2rstr:function(t){var e,i="",a=32*t.length;for(e=0;e<a;e+=8)i+=String.fromCharCode(t[e>>5]>>>e%32&255);return i},rstr2binl:function(t){var e,i=[];for(i[(t.length>>2)-1]=void 0,e=0;e<i.length;e+=1)i[e]=0;var a=8*t.length;for(e=0;e<a;e+=8)i[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return i},rstrMD5:function(t){return this.binl2rstr(this.binlMD5(this.rstr2binl(t),8*t.length))},rstrHMACMD5:function(t,e){var i,a,n=this.rstr2binl(t),s=[],r=[];for(s[15]=r[15]=void 0,n.length>16&&(n=this.binlMD5(n,8*t.length)),i=0;i<16;i+=1)s[i]=909522486^n[i],r[i]=1549556828^n[i];return a=this.binlMD5(s.concat(this.rstr2binl(e)),512+8*e.length),this.binl2rstr(this.binlMD5(r.concat(a),640))},rstr2hex:function(t){var e,i,a="0123456789abcdef",n="";for(i=0;i<t.length;i+=1)e=t.charCodeAt(i),n+=a.charAt(e>>>4&15)+a.charAt(15&e);return n},str2rstrUTF8:function(t){return unescape(encodeURIComponent(t))},rawMD5:function(t){return this.rstrMD5(this.str2rstrUTF8(t))},hexMD5:function(t){return this.rstr2hex(this.rawMD5(t))},rawHMACMD5:function(t,e){return this.rstrHMACMD5(this.str2rstrUTF8(t),str2rstrUTF8(e))},hexHMACMD5:function(t,e){return this.rstr2hex(this.rawHMACMD5(t,e))},md5:function(t,e,i){return e?i?this.rawHMACMD5(e,t):this.hexHMACMD5(e,t):i?this.rawMD5(t):this.hexMD5(t)},getSig:function(t,e,i,a){var n=null,s=[];return Object.keys(t).sort().forEach((function(e){s.push(e+"="+t[e])})),"search"==i&&(n="/ws/place/v1/search?"+s.join("&")+e),"suggest"==i&&(n="/ws/place/v1/suggestion?"+s.join("&")+e),"reverseGeocoder"==i&&(n="/ws/geocoder/v1/?"+s.join("&")+e),"geocoder"==i&&(n="/ws/geocoder/v1/?"+s.join("&")+e),"getCityList"==i&&(n="/ws/district/v1/list?"+s.join("&")+e),"getDistrictByCityId"==i&&(n="/ws/district/v1/getchildren?"+s.join("&")+e),"calculateDistance"==i&&(n="/ws/distance/v1/?"+s.join("&")+e),"direction"==i&&(n="/ws/direction/v1/"+a+"?"+s.join("&")+e),n=this.md5(n),n},location2query:function(t){if("string"==typeof t)return t;for(var e="",i=0;i<t.length;i++){var a=t[i];e&&(e+=";"),a.location&&(e=e+a.location.lat+","+a.location.lng),a.latitude&&a.longitude&&(e=e+a.latitude+","+a.longitude)}return e},rad:function(t){return t*Math.PI/180},getEndLocation:function(t){for(var e=t.split(";"),i=[],a=0;a<e.length;a++)i.push({lat:parseFloat(e[a].split(",")[0]),lng:parseFloat(e[a].split(",")[1])});return i},getDistance:function(t,e,i,a){var n=this.rad(t),s=this.rad(i),r=n-s,o=this.rad(e)-this.rad(a),c=2*Math.asin(Math.sqrt(Math.pow(Math.sin(r/2),2)+Math.cos(n)*Math.cos(s)*Math.pow(Math.sin(o/2),2)));return c*=m,c=Math.round(1e4*c)/1e4,parseFloat(c.toFixed(0))},getWXLocation:function(t,e,i){uni.getLocation({type:"gcj02",success:t,fail:e,complete:i})},getLocationParam:function(t){if("string"==typeof t){var e=t.split(",");t=2===e.length?{latitude:t.split(",")[0],longitude:t.split(",")[1]}:{}}return t},polyfillParam:function(t){t.success=t.success||function(){},t.fail=t.fail||function(){},t.complete=t.complete||function(){}},checkParamKeyEmpty:function(t,e){if(!t[e]){var i=this.buildErrorConfig(s.PARAM_ERR,s.PARAM_ERR_MSG+e+"参数格式有误");return t.fail(i),t.complete(i),!0}return!1},checkKeyword:function(t){return!this.checkParamKeyEmpty(t,"keyword")},checkLocation:function(t){var e=this.getLocationParam(t.location);if(!e||!e.latitude||!e.longitude){var i=this.buildErrorConfig(s.PARAM_ERR,s.PARAM_ERR_MSG+" location参数格式有误");return t.fail(i),t.complete(i),!1}return!0},buildErrorConfig:function(t,e){return{status:t,message:e}},handleData:function(t,e,i){if("search"==i){for(var a=e.data,n=[],s=0;s<a.length;s++)n.push({id:a[s].id||null,title:a[s].title||null,latitude:a[s].location&&a[s].location.lat||null,longitude:a[s].location&&a[s].location.lng||null,address:a[s].address||null,category:a[s].category||null,tel:a[s].tel||null,adcode:a[s].ad_info&&a[s].ad_info.adcode||null,city:a[s].ad_info&&a[s].ad_info.city||null,district:a[s].ad_info&&a[s].ad_info.district||null,province:a[s].ad_info&&a[s].ad_info.province||null});t.success(e,{searchResult:a,searchSimplify:n})}else if("suggest"==i){var r=e.data,o=[];for(s=0;s<r.length;s++)o.push({adcode:r[s].adcode||null,address:r[s].address||null,category:r[s].category||null,city:r[s].city||null,district:r[s].district||null,id:r[s].id||null,latitude:r[s].location&&r[s].location.lat||null,longitude:r[s].location&&r[s].location.lng||null,province:r[s].province||null,title:r[s].title||null,type:r[s].type||null});t.success(e,{suggestResult:r,suggestSimplify:o})}else if("reverseGeocoder"==i){var c=e.result,l={address:c.address||null,latitude:c.location&&c.location.lat||null,longitude:c.location&&c.location.lng||null,adcode:c.ad_info&&c.ad_info.adcode||null,city:c.address_component&&c.address_component.city||null,district:c.address_component&&c.address_component.district||null,nation:c.address_component&&c.address_component.nation||null,province:c.address_component&&c.address_component.province||null,street:c.address_component&&c.address_component.street||null,street_number:c.address_component&&c.address_component.street_number||null,recommend:c.formatted_addresses&&c.formatted_addresses.recommend||null,rough:c.formatted_addresses&&c.formatted_addresses.rough||null};if(c.pois){var u=c.pois,d=[];for(s=0;s<u.length;s++)d.push({id:u[s].id||null,title:u[s].title||null,latitude:u[s].location&&u[s].location.lat||null,longitude:u[s].location&&u[s].location.lng||null,address:u[s].address||null,category:u[s].category||null,adcode:u[s].ad_info&&u[s].ad_info.adcode||null,city:u[s].ad_info&&u[s].ad_info.city||null,district:u[s].ad_info&&u[s].ad_info.district||null,province:u[s].ad_info&&u[s].ad_info.province||null});t.success(e,{reverseGeocoderResult:c,reverseGeocoderSimplify:l,pois:u,poisSimplify:d})}else t.success(e,{reverseGeocoderResult:c,reverseGeocoderSimplify:l})}else if("geocoder"==i){var f=e.result,p={title:f.title||null,latitude:f.location&&f.location.lat||null,longitude:f.location&&f.location.lng||null,adcode:f.ad_info&&f.ad_info.adcode||null,province:f.address_components&&f.address_components.province||null,city:f.address_components&&f.address_components.city||null,district:f.address_components&&f.address_components.district||null,street:f.address_components&&f.address_components.street||null,street_number:f.address_components&&f.address_components.street_number||null,level:f.level||null};t.success(e,{geocoderResult:f,geocoderSimplify:p})}else if("getCityList"==i){var g=e.result[0],m=e.result[1],h=e.result[2];t.success(e,{provinceResult:g,cityResult:m,districtResult:h})}else if("getDistrictByCityId"==i){var b=e.result[0];t.success(e,b)}else if("calculateDistance"==i){var v=e.result.elements,w=[];for(s=0;s<v.length;s++)w.push(v[s].distance);t.success(e,{calculateDistanceResult:v,distance:w})}else if("direction"==i){var y=e.result.routes;t.success(e,y)}else t.success(e)},buildWxRequestConfig:function(t,e,i){var a=this;return e.header={"content-type":"application/json"},e.method="GET",e.success=function(e){var n=e.data;0===n.status?a.handleData(t,n,i):t.fail(n)},e.fail=function(e){e.statusCode=s.WX_ERR_CODE,t.fail(a.buildErrorConfig(s.WX_ERR_CODE,e.errMsg))},e.complete=function(e){var i=+e.statusCode;switch(i){case s.WX_ERR_CODE:t.complete(a.buildErrorConfig(s.WX_ERR_CODE,e.errMsg));break;case s.WX_OK_CODE:var n=e.data;0===n.status?t.complete(n):t.complete(a.buildErrorConfig(n.status,n.message));break;default:t.complete(a.buildErrorConfig(s.SYSTEM_ERR,s.SYSTEM_ERR_MSG))}},e},locationProcess:function(t,e,i,a){var n=this;if(i=i||function(e){e.statusCode=s.WX_ERR_CODE,t.fail(n.buildErrorConfig(s.WX_ERR_CODE,e.errMsg))},a=a||function(e){e.statusCode==s.WX_ERR_CODE&&t.complete(n.buildErrorConfig(s.WX_ERR_CODE,e.errMsg))},t.location){if(n.checkLocation(t)){var r=h.getLocationParam(t.location);e(r)}}else n.getWXLocation(e,i,a)}},b=function(){"use strict";function t(e){if(a(this,t),!e.key)throw Error("key值不能为空");this.key=e.key}return n(t,[{key:"search",value:function(t){var e=this;if(t=t||{},h.polyfillParam(t),h.checkKeyword(t)){var i={keyword:t.keyword,orderby:t.orderby||"_distance",page_size:t.page_size||10,page_index:t.page_index||1,output:"json",key:e.key};t.address_format&&(i.address_format=t.address_format),t.filter&&(i.filter=t.filter);var a=t.distance||"1000",n=t.auto_extend||1,s=null,r=null;t.region&&(s=t.region),t.rectangle&&(r=t.rectangle);var c=function(e){s&&!r?(i.boundary="region("+s+","+n+","+e.latitude+","+e.longitude+")",t.sig&&(i.sig=h.getSig(i,t.sig,"search"))):r&&!s?(i.boundary="rectangle("+r+")",t.sig&&(i.sig=h.getSig(i,t.sig,"search"))):(i.boundary="nearby("+e.latitude+","+e.longitude+","+a+","+n+")",t.sig&&(i.sig=h.getSig(i,t.sig,"search"))),uni.request(h.buildWxRequestConfig(t,{url:o,data:i},"search"))};h.locationProcess(t,c)}}},{key:"getSuggestion",value:function(t){var e=this;if(t=t||{},h.polyfillParam(t),h.checkKeyword(t)){var i={keyword:t.keyword,region:t.region||"全国",region_fix:t.region_fix||0,policy:t.policy||0,page_size:t.page_size||10,page_index:t.page_index||1,get_subpois:t.get_subpois||0,output:"json",key:e.key};if(t.address_format&&(i.address_format=t.address_format),t.filter&&(i.filter=t.filter),t.location){var a=function(e){i.location=e.latitude+","+e.longitude,t.sig&&(i.sig=h.getSig(i,t.sig,"suggest")),uni.request(h.buildWxRequestConfig(t,{url:c,data:i},"suggest"))};h.locationProcess(t,a)}else t.sig&&(i.sig=h.getSig(i,t.sig,"suggest")),uni.request(h.buildWxRequestConfig(t,{url:c,data:i},"suggest"))}}},{key:"reverseGeocoder",value:function(t){var e=this;t=t||{},h.polyfillParam(t);var i={coord_type:t.coord_type||5,get_poi:t.get_poi||0,output:"json",key:e.key};t.poi_options&&(i.poi_options=t.poi_options);var a=function(e){i.location=e.latitude+","+e.longitude,t.sig&&(i.sig=h.getSig(i,t.sig,"reverseGeocoder")),uni.request(h.buildWxRequestConfig(t,{url:l,data:i},"reverseGeocoder"))};h.locationProcess(t,a)}},{key:"geocoder",value:function(t){var e=this;if(t=t||{},h.polyfillParam(t),!h.checkParamKeyEmpty(t,"address")){var i={address:t.address,output:"json",key:e.key};t.region&&(i.region=t.region),t.sig&&(i.sig=h.getSig(i,t.sig,"geocoder")),uni.request(h.buildWxRequestConfig(t,{url:l,data:i},"geocoder"))}}},{key:"getCityList",value:function(t){var e=this;t=t||{},h.polyfillParam(t);var i={output:"json",key:e.key};t.sig&&(i.sig=h.getSig(i,t.sig,"getCityList")),uni.request(h.buildWxRequestConfig(t,{url:u,data:i},"getCityList"))}},{key:"getDistrictByCityId",value:function(t){var e=this;if(t=t||{},h.polyfillParam(t),!h.checkParamKeyEmpty(t,"id")){var i={id:t.id||"",output:"json",key:e.key};t.sig&&(i.sig=h.getSig(i,t.sig,"getDistrictByCityId")),uni.request(h.buildWxRequestConfig(t,{url:d,data:i},"getDistrictByCityId"))}}},{key:"calculateDistance",value:function(t){var e=this;if(t=t||{},h.polyfillParam(t),!h.checkParamKeyEmpty(t,"to")){var i={mode:t.mode||"walking",to:h.location2query(t.to),output:"json",key:e.key};if(t.from&&(t.location=t.from),"straight"==i.mode){var a=function(e){for(var a=h.getEndLocation(i.to),n={message:"query ok",result:{elements:[]},status:0},s=0;s<a.length;s++)n.result.elements.push({distance:h.getDistance(e.latitude,e.longitude,a[s].lat,a[s].lng),duration:0,from:{lat:e.latitude,lng:e.longitude},to:{lat:a[s].lat,lng:a[s].lng}});var r=n.result.elements,o=[];for(s=0;s<r.length;s++)o.push(r[s].distance);return t.success(n,{calculateResult:r,distanceResult:o})};h.locationProcess(t,a)}else{a=function(e){i.from=e.latitude+","+e.longitude,t.sig&&(i.sig=h.getSig(i,t.sig,"calculateDistance")),uni.request(h.buildWxRequestConfig(t,{url:f,data:i},"calculateDistance"))};h.locationProcess(t,a)}}}},{key:"direction",value:function(t){var e=this;if(t=t||{},h.polyfillParam(t),!h.checkParamKeyEmpty(t,"to")){var i={output:"json",key:e.key};"string"==typeof t.to?i.to=t.to:i.to=t.to.latitude+","+t.to.longitude;var a=null;t.mode=t.mode||g.driving,a=p+t.mode,t.from&&(t.location=t.from),t.mode==g.driving&&(t.from_poi&&(i.from_poi=t.from_poi),t.heading&&(i.heading=t.heading),t.speed&&(i.speed=t.speed),t.accuracy&&(i.accuracy=t.accuracy),t.road_type&&(i.road_type=t.road_type),t.to_poi&&(i.to_poi=t.to_poi),t.from_track&&(i.from_track=t.from_track),t.waypoints&&(i.waypoints=t.waypoints),t.policy&&(i.policy=t.policy),t.plate_number&&(i.plate_number=t.plate_number)),t.mode==g.transit&&(t.departure_time&&(i.departure_time=t.departure_time),t.policy&&(i.policy=t.policy));var n=function(e){i.from=e.latitude+","+e.longitude,t.sig&&(i.sig=h.getSig(i,t.sig,"direction",t.mode)),uni.request(h.buildWxRequestConfig(t,{url:a,data:i},"direction"))};h.locationProcess(t,n)}}}]),t}();t.exports=b},f547:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".category-list[data-v-35443151]{width:94%;margin:0 3%;padding:0 0 %?30?% 0;border-bottom:solid %?2?% #f6f6f6;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;box-shadow:%?0?% %?0?% %?10?% #d0d0d0;margin-top:%?20?%;border-radius:%?10?%}.category[data-v-35443151]{width:20%;margin-top:%?50?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.category[data-v-35443151]:active{opacity:.8}.category .class_img[data-v-35443151]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.category .class_img .imgs[data-v-35443151]{width:12vw;height:12vw}.mix[data-v-35443151]{width:9vw!important;height:9vw!important}.text[data-v-35443151]{margin-top:%?16?%;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?24?%;color:#3c3c3c;font-weight:500}",""]),t.exports=e},f917:function(t,e,i){"use strict";i.r(e);var a=i("ac44"),n=i("c348");for(var s in n)"default"!==s&&function(t){i.d(e,t,(function(){return n[t]}))}(s);i("9426");var r,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"824cb14e",null,!1,a["a"],r);e["default"]=c.exports},fd79:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"grid col-2 h-100 m-3 justify-between",staticStyle:{height:"500rpx","margin-top":"20rpx","box-shadow":"0px 0px 5px #d0d0d0","border-radius":"20rpx"}},t._l(t.tileList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"flex flex-wrap item",staticStyle:{"flex-direction":"row","justify-content":"space-between"}},[i("v-uni-view",{staticClass:"w-100 text-lg"},[t._v(t._s(e.title))]),e.subTitle?i("v-uni-view",{staticClass:"w-100 text-sm",style:{color:e.subTitleColor}},[t._v(t._s(e.subTitle))]):t._e(),i("v-uni-view",{staticClass:"grid col-2 w-100"},t._l(e.itemList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"w-100 "},[i("v-uni-image",{staticStyle:{height:"120rpx"},attrs:{src:e.picUrl,mode:"aspectFit"}}),i("v-uni-view",{staticClass:"padding-left-xs"},[e.sellPrice?i("v-uni-text",{staticClass:"text-bold",staticStyle:{color:"#FF1929"}},[t._v(t._s(e.sellPrice.text))]):t._e(),e.dashPrice?i("v-uni-text",{staticClass:"text-gray text-xs padding-left-xs",staticStyle:{"text-decoration":"line-through"}},[t._v(t._s(e.dashPrice.text))]):t._e()],1)],1)})),1)],1)})),1)},s=[]},fe83:function(t,e,i){var a=i("891c");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("50224cb0",a,!0,{sourceMap:!1,shadowMode:!1})}}]);