pages-applic-aid.92fe11f6.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-applic-aid"],{"0722":function(t,a,e){var i=e("ea51");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("967d").default;o("571f1c18",i,!0,{sourceMap:!1,shadowMode:!1})},"22da":function(t,a,e){"use strict";e("6a54"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};a.default=i},2683:function(t,a,e){"use strict";e.r(a);var i=e("cb59"),o=e("bf46");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(a,t,(function(){return o[t]}))}(n);e("e6d4");var d=e("828b"),l=Object(d["a"])(o["default"],i["b"],i["c"],!1,null,"5516c8de",null,!1,i["a"],void 0);a["default"]=l.exports},"67e1":function(t,a,e){var i=e("c86c");a=i(!1),a.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/body[data-v-45dac20a],\nuni-page-body[data-v-45dac20a]{height:100%;width:100%;background-color:#fff}body.?%PAGE?%[data-v-45dac20a]{background-color:#fff}.content[data-v-45dac20a]{height:100%;width:100%;background-color:#fff}.map[data-v-45dac20a]{width:100%;height:%?600?%}.location[data-v-45dac20a]{overflow-y:scroll;position:fixed;bottom:0;height:55%;width:100%;background-color:#fff;padding:%?24?%}.location .Search-box[data-v-45dac20a]{height:%?80?%;padding-right:%?24?%;padding-left:%?24?%}.location .Search-box .Search-box-sort[data-v-45dac20a]{float:left;margin-left:%?32?%;margin-right:%?19?%}.location .Search-box .Search-box-sort .sort-text[data-v-45dac20a]{width:%?57?%;height:%?29?%;font-size:%?30?%;font-weight:500;color:#333;line-height:%?58?%;margin-right:%?19?%}.location .Search-box .Search-box-sort .sort-img[data-v-45dac20a]{width:%?21?%;height:%?11?%;margin-bottom:%?4?%}.location .Search-box .Search-box-size[data-v-45dac20a]{height:%?58?%;border-radius:%?32?%;background-color:#f1f1f1;padding-left:%?36?%;display:flex;align-items:center}.location .Search-box .Search-box-size .box-img[data-v-45dac20a]{height:%?32?%;width:%?32?%;margin-right:%?16?%}.location .Search-box .Search-box-size .box-word[data-v-45dac20a]{width:100%;font-size:%?26?%;font-weight:500;color:#cdcbcb;line-height:%?55?%}.location .location-item[data-v-45dac20a]{z-index:1000;display:flex;justify-content:space-between;align-items:center;border-bottom:%?1?% solid #e7e8ea;padding:%?15?% 0}.location .location-item .box-left[data-v-45dac20a]{display:flex}.location .location-item .box-left .img01[data-v-45dac20a]{width:%?8?%;height:%?28?%;margin-right:%?18?%}.location .location-item .box-left .img01 uni-image[data-v-45dac20a]{width:%?8?%;height:%?28?%}.location .location-item .box-left .img02[data-v-45dac20a]{width:%?117?%;height:%?117?%;border-radius:50%}.location .location-item .box-left .img02 uni-image[data-v-45dac20a]{width:%?117?%;height:%?117?%;border-radius:50%}.location .location-item .box-left .info[data-v-45dac20a]{margin-left:%?16?%}.location .location-item .box-left .info .info-header[data-v-45dac20a]{display:flex;align-items:center}.location .location-item .box-left .info .info-header .name[data-v-45dac20a]{font-size:%?32?%;color:#333}.location .location-item .box-left .info .info-header .distance[data-v-45dac20a]{margin-left:%?25?%;font-size:%?28?%;color:#303133}.location .location-item .box-left .info .info-header .location-icon[data-v-45dac20a]{margin-left:%?10?%;width:%?20?%;height:%?26?%}.location .location-item .box-left .info .info-header .location-icon uni-image[data-v-45dac20a]{width:%?20?%;height:%?26?%;display:inline}.location .location-item .box-left .info .address[data-v-45dac20a]{font-size:%?26?%;color:#333;margin-top:%?33?%}.location .location-item .box-right .img[data-v-45dac20a]{height:%?107?%}.location .location-item .box-right .img uni-image[data-v-45dac20a]{width:%?107?%;height:%?107?%}.location .location-item .box-right .called[data-v-45dac20a]{margin-right:%?16?%;height:%?107?%;line-height:%?107?%;font-size:%?28?%;color:#cb131c}.list-tpl[data-v-45dac20a]{background-color:#fff;margin:%?25?% %?0?%;padding:%?25?% %?25?%;font-size:%?28?%;border-radius:%?15?%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #f1f1f1}.list-tpl .list-left[data-v-45dac20a]{display:flex;width:100%}.list-tpl .list-left .number[data-v-45dac20a]{font-size:%?32?%;margin-right:%?14?%}.list-tpl .list-left .info[data-v-45dac20a]{width:100%}.list-tpl .list-left .info .title[data-v-45dac20a]{font-size:%?32?%;color:#222;font-weight:500}.list-tpl .list-left .info .addr[data-v-45dac20a]{width:%?400?%;margin-top:%?20?%;font-size:%?20?%;font-family:PingFang SC;font-weight:500;color:#999}.list-tpl .image[data-v-45dac20a]{width:10%;text-align:center}.list-tpl .image uni-image[data-v-45dac20a]{width:%?50?%;height:%?50?%}.list-tpl .image .tip[data-v-45dac20a]{color:#7f7f7f;font-size:%?21?%}.popup_row[data-v-45dac20a]{width:100%;height:%?500?%;background-color:#fff;border-radius:%?20?%;display:flex;justify-content:center;align-items:center}.popup_row .rows[data-v-45dac20a]{width:100%;padding:0 %?24?%}.popup_row .rows .rows-item[data-v-45dac20a]{height:%?80?%;line-height:%?80?%;text-align:center;width:100%;font-size:%?32?%;color:#303133}',""]),t.exports=a},7252:function(t,a,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.integrallist=function(t){return(0,o.default)({url:"/api/integral/list",method:"get",data:t})},a.orderData=function(t){return(0,o.default)({url:"/api/order/data",method:"get",data:t})},a.userinfo=function(t){return(0,o.default)({url:"/api/userinfo",method:"get",data:t})},a.userinfoid=function(t){return(0,o.default)({url:"/api/level/recharge",method:"post",data:t})};var o=i(e("d4c5"))},7337:function(t,a,e){"use strict";e.r(a);var i=e("f755"),o=e("f9f0");for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(a,t,(function(){return o[t]}))}(n);e("ab91");var d=e("828b"),l=Object(d["a"])(o["default"],i["b"],i["c"],!1,null,"45dac20a",null,!1,i["a"],void 0);a["default"]=l.exports},9312:function(t,a,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("5c47"),e("fd3c"),e("c223");var o=i(e("2634")),n=i(e("2fdc")),d=i(e("9b1b")),l=i(e("39d8")),c=e("8f59"),r=i(e("568c")),s=i(e("1cdf")),u=i(e("2683")),f=e("a9d2"),h=(e("7252"),{components:{uniPopup:s.default,espempty:r.default,uniLoadMore:u.default},data:function(){var t;return t={loaded:!1,jhzmarker:[],loadtype:"more",page:1,limit:10,AEDList:[],height:"",list:[],latitude:"",longitude:"",current:0,name:"",uid:""},(0,l.default)(t,"name",""),(0,l.default)(t,"phone",""),(0,l.default)(t,"to_phone",""),(0,l.default)(t,"marker",[]),(0,l.default)(t,"specificAdd",""),(0,l.default)(t,"addressData",{name:"",mobile:"",latitude:0,longitude:0,address:{province:"",city:"",district:"",detail:""},area:"",default:!1}),t},onReady:function(t){var a=this;uni.getSystemInfo({success:function(t){var e=uni.createSelectorQuery();e.select(".scroll-wrapper").boundingClientRect(),e.exec((function(e){console.log(e,"ddddddddddddd"),a.height=t.windowHeight-e[0].top+"px",console.log("打印页面的剩余高度",a.height)}))},fail:function(t){}})},onLoad:function(){var t=this;console.log("开始加载事件"),uni.showLoading({title:"加载中",mask:!0});try{var a,i=e("e1cd");a=i.getLocation,i.ready((function(){console.log("加载完毕注册事件"),a({type:"gcj02",success:function(a){console.log("获取经纬度",a),t.longitude=a.longitude,t.latitude=a.latitude,t.marker=[{latitude:t.latitude,longitude:t.longitude,iconPath:"/static/img/img19.png",width:"45",height:"45"}],t.loadData()},fail:function(t){console.log("失败",t)}})}))}catch(d){var o;console.log(d);var n=e("e1cd");o=n.getLocation,n.ready((function(){console.log("加载完毕注册事件"),o({type:"gcj02",success:function(a){console.log("获取经纬度1",a),t.longitude=a.longitude,t.latitude=a.latitude,t.loadData()},fail:function(t){console.log("失败",t)}})}))}},computed:(0,d.default)({},(0,c.mapState)("user",["hasLogin","userInfo"])),methods:(0,d.default)((0,d.default)({},(0,c.mapMutations)("user",["setUserInfo"])),{},{mapChange:function(t){console.log(t)},loadData:function(){var t=this;return(0,n.default)((0,o.default)().mark((function a(){var e;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(e=t,"loading"!=e.loadtype&&"noMore"!=e.loadtype){a.next=3;break}return a.abrupt("return");case 3:(0,f.getDistance)({lng1:e.longitude,lat1:e.latitude}).then((function(t){var a=t.data;uni.hideLoading(),console.log(a,999);for(var i=0;i<a.length;i++)a[i].space=e.space(e.latitude,e.longitude,a[i].latitude,a[i].longitude);var o=a.map((function(t){return{latitude:t.latitude,longitude:t.longitude,iconPath:"/static/icon/jhz.png",width:"35",height:"35",id:t.id,address:t.address}}));e.jhzmarker=e.marker.concat(o),e.AEDList=e.AEDList.concat(a),console.log(e.AEDList,"obj.AEDList+++++++"),e.loaded=!0,e.limit==a.length?(e.loadtype="more",e.page++):e.loadtype="noMore"}));case 4:case"end":return a.stop()}}),a)})))()},space:function(t,a,e,i){console.log(t,a,e,i);var o=t*Math.PI/180,n=e*Math.PI/180,d=o-n,l=a*Math.PI/180-i*Math.PI/180,c=2*Math.asin(Math.sqrt(Math.pow(Math.sin(d/2),2)+Math.cos(o)*Math.cos(n)*Math.pow(Math.sin(l/2),2)));return c*=6378.137,c=Math.round(1e4*c)/1e4,1e3*c},openAddress:function(t){this.latitude2=t.latitude,this.longitude2=t.longitude,this.address=t.address,this.$refs.popup.open()},toGaodeMap:function(){var t=this.latitude2,a=this.longitude2,e=this.address;console.log("选择高德",t,a,e),window.location.href="https://uri.amap.com/marker?position=".concat(a,",").concat(t,"&name=").concat(e)},totengxunMap:function(){var t=this.latitude2,a=this.longitude2,e=this.address;console.log("选择腾讯",t,a),window.location.href="http://apis.map.qq.com/uri/v1/marker?marker=coord:".concat(t,",").concat(a,";addr:").concat(e)},tobaiDuMap:function(){var t=this.latitude2,a=this.longitude2,e=this.latitude,i=this.longitude,o=this.address;console.log("选择百度",t,a),console.log("获取当前经纬度",e,i),window.location.href="http://api.map.baidu.com/direction?origin=latlng:".concat(e,",").concat(i,"|name:我的位置&destination=").concat(t,",").concat(a,"&mode=driving&region=").concat(o,"&output=html&src=webapp.baidu.openAPIdemo")}})});a.default=h},ab91:function(t,a,e){"use strict";var i=e("c2eb"),o=e.n(i);o.a},bf46:function(t,a,e){"use strict";e.r(a);var i=e("22da"),o=e.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(n);a["default"]=o.a},c2eb:function(t,a,e){var i=e("67e1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("967d").default;o("55f09803",i,!0,{sourceMap:!1,shadowMode:!1})},cb59:function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"uni-load-more"},[e("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[e("v-uni-view",{staticClass:"load1 load"},[e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),e("v-uni-view",{staticClass:"load2 load"},[e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),e("v-uni-view",{staticClass:"load3 load"},[e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}}),e("v-uni-view",{staticClass:"item",style:{background:t.color}})],1)],1),e("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]},e6d4:function(t,a,e){"use strict";var i=e("0722"),o=e.n(i);o.a},ea51:function(t,a,e){var i=e("c86c");a=i(!1),a.push([t.i,".uni-load-more[data-v-5516c8de]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-5516c8de]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-5516c8de]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-5516c8de]{position:absolute}.uni-load-more__img>.load .item[data-v-5516c8de]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-5516c8de 1.56s ease infinite;animation:load-data-v-5516c8de 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(4){top:11px;left:0}.load1[data-v-5516c8de],\n.load2[data-v-5516c8de],\n.load3[data-v-5516c8de]{height:24px;width:24px}.load2[data-v-5516c8de]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-5516c8de]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-5516c8de{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=a},f755:function(t,a,e){"use strict";e.d(a,"b",(function(){return o})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){return i}));var i={uniLoadMore:e("2683").default,uniPopup:e("1cdf").default},o=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"map",attrs:{id:"map"}},[i("v-uni-map",{ref:"map_1",staticStyle:{width:"750rpx",height:"600rpx"},attrs:{id:"map_1",latitude:t.latitude,longitude:t.longitude,markers:t.jhzmarker},on:{updated:function(a){arguments[0]=a=t.$handleEvent(a),t.mapChange.apply(void 0,arguments)}}})],1),i("v-uni-scroll-view",{staticClass:"scroll-wrapper",style:{height:t.height},attrs:{"scroll-y":"true"},on:{scrolltolower:function(a){arguments[0]=a=t.$handleEvent(a),t.loadData.apply(void 0,arguments)}}},[t.loaded&&0===t.AEDList.length?i("espempty",{attrs:{tit:"救护站列表为空"}}):t._e(),t._l(t.AEDList,(function(a,o){return i("v-uni-view",{key:a.id,staticClass:"list-tpl flex",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openAddress(a)}}},[[i("v-uni-view",{staticClass:"list-left"},[i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"title"},[t._v(t._s(a.name))]),i("v-uni-view",{staticClass:"addr"},[t._v("地址:"+t._s(a.address))])],1)],1),i("v-uni-view",{staticClass:"image"},[i("v-uni-image",{attrs:{src:e("fe2a")}}),a.space>999?i("v-uni-view",{staticClass:"tip"},[t._v(">999m")]):i("v-uni-view",{staticClass:"tip"},[t._v(t._s(a.space)+"m")])],1)]],2)})),i("uni-load-more",{attrs:{status:t.loadtype}})],2),i("uni-popup",{ref:"popup",attrs:{type:"bottom"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.close.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"popup_row"},[i("v-uni-view",{staticClass:"rows"},[i("v-uni-view",{staticClass:"rows-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toGaodeMap.apply(void 0,arguments)}}},[t._v("高德地图")]),i("v-uni-view",{staticClass:"rows-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tobaiDuMap.apply(void 0,arguments)}}},[t._v("百度地图")]),i("v-uni-view",{staticClass:"rows-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.totengxunMap.apply(void 0,arguments)}}},[t._v("腾讯地图")])],1)],1)],1)],1)},n=[]},f9f0:function(t,a,e){"use strict";e.r(a);var i=e("9312"),o=e.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(n);a["default"]=o.a},fe2a:function(t,a,e){t.exports=e.p+"static/img/img10.png"}}]);