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 lines
2.6 KiB
1 lines
2.6 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/store/map/index"],{"16fe":function(t,e,n){"use strict";var a=n("5b1a"),r=n.n(a);r.a},3941:function(t,e,n){"use strict";n.r(e);var a=n("68cf"),r=n("cb2d");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("16fe");var o=n("828b"),u=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,"17869b88",null,!1,a["a"],void 0);e["default"]=u.exports},"5b1a":function(t,e,n){},"68cf":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},r=[]},"77b9":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("7561");a(n("3240"));var r=a(n("3941"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},a325:function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("cef6")),i=n("e752"),o={mixins:[r.default],data:function(){return{latitudeStore:t.getStorageSync("user_latitude"),longitudeStore:t.getStorageSync("user_longitude"),content:{latitude:t.getStorageSync("user_latitude"),longitude:t.getStorageSync("user_longitude"),store_type:1},storeList:[],markerIdTapped:0,mapKey:""}},computed:{covers:function(){return this.storeList.map((function(t){var e=t.id,n=t.latitude,a=t.longitude,r=t.image;return{id:e,latitude:n,longitude:a,iconPath:r,width:30,height:30}}))},markertapped:function(){var t=this;return this.storeList.find((function(e){return e.id===t.markerIdTapped}))}},onLoad:function(){this.getList()},methods:{getList:function(){var t=this;(0,i.getList)(this.content).then((function(e){var n=e.data;t.storeList=n}))},downloadImage:function(e){var n=this;t.request({url:this.storeList[e].image,responseType:"arraybuffer",success:function(a){var r=t.arrayBufferToBase64(a.data);n.$set(n.storeList[e],"path","data:image/png;base64,"+r),n.mapKey=e}})},markertap:function(t){this.markerIdTapped=t.detail.markerId},openStore:function(e){t.navigateTo({url:"/pages/store/home/index?mapFrom=1&id="+e})},makePhoneCall:function(e){t.makePhoneCall({phoneNumber:e})},openLocation:function(e){var n=e.latitude,a=e.longitude,r=e.name,i=e.address,o=e.detailed_address;t.openLocation({latitude:Number(n),longitude:Number(a),name:r,address:"".concat(i,"-").concat(o)})}}};e.default=o}).call(this,n("df3c")["default"])},cb2d:function(t,e,n){"use strict";n.r(e);var a=n("a325"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a}},[["77b9","common/runtime","common/vendor"]]]); |