第一次提交

This commit is contained in:
dt_2916866708
2024-02-28 17:26:46 +08:00
commit f756390529
991 changed files with 126914 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["ChargingStation/pages/index/index"],{"1d2f":function(t,e,n){},"2eaf":function(t,e,n){"use strict";n.r(e);var a=n("de5d"),i=n("4399");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("e6fe");var c=n("f0c5"),u=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"3b7f707a",null,!1,a["a"],void 0);e["default"]=u.exports},4399:function(t,e,n){"use strict";n.r(e);var a=n("6337"),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},"4dd3":function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("9773");a(n("66fd"));var i=a(n("2eaf"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},6337:function(t,e,n){"use strict";(function(t,a){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("2eee")),c=i(n("c973")),u=i(n("2303")),r={components:{skeleton:function(){n.e("ChargingStation/pages/index/skeleton").then(function(){return resolve(n("8164"))}.bind(null,n)).catch(n.oe)}},data:function(){return{user:t.getStorageSync("user"),guideTop:120,viewData:null,ChargingStationLabels:[{logo:n("e526"),title:"60度/小时"},{logo:n("65bf"),title:"24h内免费停车"},{logo:n("3aa8"),title:"24h营业"}]}},onLoad:function(t){t.data&&this.getDetails(JSON.parse(t.data))},methods:{goGuide:function(){t.navigateTo({url:"/ChargingStation/pages/guide/index?guideList=".concat(encodeURIComponent(JSON.stringify(this.viewData.guideList)))})},guideMove:function(t){this.guideTop=t.touches[0].clientY},navigation:function(){t.openLocation({latitude:this.viewData.stationLat,longitude:this.viewData.stationLng,success:function(){console.log("success")}})},collect:function(){var e=this,n=t.getStorageSync("location"),a=n.latitude,i=void 0===a?39.9:a,o=n.longitude,c=void 0===o?116.38:o,r=this.viewData,s=r.id,l=r.stationId;u.default[this.viewData.collected?"cancelCollect":"collectStation"]({xyStationId:s,stationId:l}).then((function(t){e.getDetails({id:s,stationLat:i,stationLng:c,tags:e.viewData["tags"]})}))},freeTell:function(){a.makePhoneCall({phoneNumber:"4008565355",success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},getDetails:function(e){var n=this;u.default.getSiteDetails(e).then((function(a){2e4==a.code?(n.viewData=a.data,n.viewData["tags"]=e["tags"],n.ChargingStationLabels[0].title="".concat(n.viewData.kilowattHour,"/KW"),n.ChargingStationLabels[1].title=n.viewData.parkFee,n.ChargingStationLabels[2].title=n.viewData.businessHours):42011==a.code&&t.showToast({title:"登陆后可查看",icon:"none",success:function(){setTimeout((function(){t.navigateBack()}),2e3)}})}))},scanCode:function(){var e=this;return(0,c.default)(o.default.mark((function n(){var a,i;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.user){n.next=3;break}return t.showModal({title:"提示",content:"登录后才可扫码下单哦",confirmText:"去登陆",success:function(e){e.confirm?t.reLaunch({url:"/pages/login/index"}):e.cancel}}),n.abrupt("return");case 3:return n.next=5,e.tool.scanCode();case 5:a=n.sent,a.result&&(i=e.tool.routingParameterGeneration({type:"qrCode",qrCode:encodeURIComponent(a.result),stationId:e.viewData.id}),t.navigateTo({url:"/ChargingStation/pages/placeOrder/index".concat(i)}));case 7:case"end":return n.stop()}}),n)})))()},goPeriodPrice:function(){t.navigateTo({url:"/ChargingStation/pages/periodPrice/index?priceList=".concat(JSON.stringify(this.viewData.priceList),"&now=").concat(this.viewData.currentTimeInterval)})},goChargingPorts:function(e){t.navigateTo({url:"/ChargingStation/pages/chargingPorts/index?equipmentType=".concat(e,"&id=").concat(this.viewData.id)})}}};e.default=r}).call(this,n("543d")["default"],n("bc2e")["default"])},de5d: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={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"e4f7"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.viewData?t.tool.getnum(t.viewData.distance):null),a=t.viewData?t.tool.getnum(t.viewData.totalFee,3):null,i=t.viewData?t.tool.getnum(t.viewData.originalTotalFee,3):null,o=t.viewData?t.tool.getnum(t.viewData.electricityFee,3):null,c=t.viewData?t.tool.getnum(t.viewData.serviceFee,3):null;t.$mp.data=Object.assign({},{$root:{g0:n,g1:a,g2:i,g3:o,g4:c}})},o=[]},e6fe:function(t,e,n){"use strict";var a=n("1d2f"),i=n.n(a);i.a}},[["4dd3","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,9 @@
{
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTitleText": "站点详情",
"enablePullDownRefresh": false,
"usingComponents": {
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
"skeleton": "/ChargingStation/pages/index/skeleton"
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.stationItem_bottom_label.data-v-3b7f707a{margin-right:15rpx}.stationItem_bottom_label.data-v-3b7f707a:last-child{margin-right:0}.stationItem_bottom_label text.data-v-3b7f707a{font-size:24rpx;color:#000}.stationItem_bottom_label_logo.data-v-3b7f707a{padding:2rpx 8rpx;opacity:1;border:2rpx solid #48b8ba;border-radius:30rpx;font-size:20rpx;color:#48b8ba;margin-right:8rpx}.stationItem_bottom_price.data-v-3b7f707a{font-size:32rpx;color:#121836}.is_stop_row.data-v-3b7f707a{font-size:24rpx;color:#cacaca;margin-bottom:18rpx}.is_stop_row image.data-v-3b7f707a{margin-right:14rpx}.stationItem_bottom.data-v-3b7f707a{margin-top:30rpx}.stationItem_address.data-v-3b7f707a{font-size:24rpx;color:#cacaca}.stationItem_distance.data-v-3b7f707a{font-size:24rpx;color:#121836}.stationItem_top_label_container.data-v-3b7f707a{margin-top:10rpx}.stationItem_top_label.data-v-3b7f707a{font-size:22rpx;color:#fff;padding:5rpx 17rpx;border-radius:20rpx 20rpx 20rpx 20rpx;margin-right:12rpx}.stationItem_top_title.data-v-3b7f707a{font-size:30rpx;font-weight:400;color:#000}.stationItem.data-v-3b7f707a{position:relative;width:690rpx;margin:0 auto;min-height:234rpx;background:#fff;box-shadow:0rpx 2rpx 6rpx 0rpx rgba(0,0,0,.08);border-radius:15rpx 15rpx 15rpx 15rpx;margin-top:60rpx;padding:25rpx 30rpx;box-sizing:border-box!important}.guide.data-v-3b7f707a{width:164rpx;height:60rpx;background:#fff;box-shadow:0rpx 2rpx 6rpx 0rpx rgba(0,0,0,.1);border-radius:81rpx 0rpx 0rpx 81rpx;opacity:1;position:absolute;right:0;font-size:28rpx;color:#000}.details_body.data-v-3b7f707a{background-color:#ededed;width:100vw;height:100vh;overflow:hidden}.details_body .details_footer.data-v-3b7f707a{box-shadow:0rpx 6rpx 19rpx 0rpx rgba(0,0,0,.1);width:100%;padding:39rpx 50rpx 0 50rpx;box-sizing:border-box;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);background-color:#fff}.details_body .details_footer .label_text.data-v-3b7f707a{color:#121836;font-size:24rpx;margin-top:10rpx}.details_body .details_footer .details_footer_button.data-v-3b7f707a{width:354rpx;height:90rpx;font-size:34rpx;color:#fff;background:#0b1123;border-radius:15rpx 15rpx 15rpx 15rpx;opacity:1;box-sizing:border-box}.details_body .details_center.data-v-3b7f707a{background-color:#fff;margin-top:20rpx;padding:50rpx 30rpx;box-sizing:border-box;color:rgba(0,0,0,.85);font-size:28rpx}.details_body .details_center .details_center_label.data-v-3b7f707a{margin-top:36rpx;flex-wrap:wrap;margin-bottom:40rpx}.details_body .details_center .details_center_label .details_center_label_item.data-v-3b7f707a:last-child{margin-right:0;border:2rpx solid #f67a22}.details_body .details_center .details_center_label .details_center_label_item.data-v-3b7f707a:nth-child(2){border:2rpx solid #36658d}.details_body .details_center .details_center_label .details_center_label_item.data-v-3b7f707a{padding:10rpx 8rpx;border-radius:32rpx 32rpx 32rpx 32rpx;opacity:1;border:2rpx solid #48b8ba;margin-right:10rpx;max-width:calc((100% - 20rpx) / 3);box-sizing:border-box}.details_body .details_center .blue.data-v-3b7f707a{color:#476ffa}.details_body .details_center .totalPrice_old.data-v-3b7f707a{color:rgba(0,0,0,.45098039215686275);font-size:24rpx;text-decoration:line-through;margin-left:15rpx}.details_body .details_center .totalPrice.data-v-3b7f707a{font-weight:600;color:#121836;font-size:32rpx!important}.details_body .details_center .details_center_title.data-v-3b7f707a{color:#000;font-size:30rpx;margin-bottom:30rpx}.details_body .details_header.data-v-3b7f707a{background-color:#fff;padding:0 30rpx;padding-top:100rpx;padding-bottom:35rpx}.details_body .details_header .details_header_label .details_header_label_item.data-v-3b7f707a{margin-top:15rpx}.details_body .details_header .details_header_label .details_header_label_item text.data-v-3b7f707a{color:rgba(0,0,0,.75);font-size:25rpx;margin-left:15rpx}.details_body .details_header .details_header_label .details_header_label_item image.data-v-3b7f707a{width:35rpx}.details_body .details_header .details_header_information .stationItem_distance.data-v-3b7f707a{border:1px solid #476ffa;border-radius:32rpx 32rpx 32rpx 32rpx;padding:5rpx 10rpx;color:#476ffa}.details_body .details_header .details_header_information .address.data-v-3b7f707a{color:rgba(0,0,0,.25);font-size:28rpx;margin:15rpx 0}

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["ChargingStation/pages/index/skeleton"],{"0069":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={}},"0283":function(n,t,e){"use strict";var u=e("3768"),i=e.n(u);i.a},"1c8f":function(n,t,e){"use strict";e.r(t);var u=e("0069"),i=e.n(u);for(var c in u)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(c);t["default"]=i.a},"2b94":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){}));var u=function(){var n=this.$createElement;this._self._c},i=[]},3768:function(n,t,e){},8164:function(n,t,e){"use strict";e.r(t);var u=e("2b94"),i=e("1c8f");for(var c in i)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(c);e("0283");var f=e("f0c5"),r=Object(f["a"])(i["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);t["default"]=r.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'ChargingStation/pages/index/skeleton-create-component',
{
'ChargingStation/pages/index/skeleton-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("8164"))
})
},
[['ChargingStation/pages/index/skeleton-create-component']]
]);

View File

@@ -0,0 +1,4 @@
{
"usingComponents": {},
"component": true
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long