1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/refuel/refuel"],{"22bd":function(t,e,n){"use strict";var o=n("9c7d"),i=n.n(o);i.a},"65c4":function(t,e,n){"use strict";n.r(e);var o=n("c8c4"),i=n("fa3e");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("22bd");var s=n("828b"),r=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"3ba2bfd2",null,!1,o["a"],void 0);e["default"]=r.exports},"8ab2":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("3cca");o(n("3240"));var i=o(n("65c4"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"914f":function(t,e,n){"use strict";(function(t,o){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("7eb4")),s=i(n("ee10")),r=(i(n("b530")),i(n("7073"))),u={data:function(){return{appltType:t.getStorageSync("appltType"),value:"",liters:0,show:!1,pic:0,hindex:0,qindex:0,aindex:null,sindex:null,store:{name:"测试油站",description:"济南分店",address:"济南槐荫区"},welfare:[],distance:"",storeId:"",oilNumberList:[],oilGunList:[],staffList:[],amountList:[100,200,300],baseUrl:this.$baseUrl,oilPrice:0,oilUnit:"",AppToken:t.getStorageSync("App-Token"),oilOrder:{storeId:"",couponId:"",commissionAmount:0,staffId:"",terminal:"applet",oils:"",oilGunNum:"",oilNum:"",orderAmount:0,discountAmount:0,payAmount:0,payType:t.getStorageSync("appltType")}}},components:{tabbar:function(){n.e("components/tabbar/tabbar").then(function(){return resolve(n("45e5"))}.bind(null,n)).catch(n.oe)}},onLoad:function(e){if("WECHAT"==t.getStorageSync("appltType")){var n=decodeURIComponent(e.q);if(e.q){var o=n.split("?")[1],i="19",a="",s="";if(o.includes("&")){var r=o.split("&");r.forEach((function(t){t.includes("storeId")?i=t.split("=")[1]:t.includes("staffId")?a=t.split("=")[1]:s=t.split("=")[1]}))}else o.includes("storeId")?i=o.split("=")[1]:(s=o.split("=")[1],this.getStoreIdBySn(s));t.setStorageSync("storeId",i),t.setStorageSync("sn",s),t.setStorageSync("inviteStaffId",a),this.storeId=t.getStorageSync("storeId"),this.staffId=t.getStorageSync("inviteStaffId"),t.getStorageSync("storeId")&&this.getStore(t.getStorageSync("storeId"))}}else t.getStorageSync("storeId")?this.getStore(t.getStorageSync("storeId")):this.getStoreIdBySn(t.getStorageSync("sn"))},onShow:function(){this.getStore(t.getStorageSync("storeId")),this.getTheJudgmentIsTheSame()},methods:{getAddress:function(e){var n=this;t.getLocation({type:"gcj02",success:function(o){""==n.longitude&&""==n.latitude&&(n.longitude=o.longitude,n.latitude=o.latitude),console.log("经度: "+n.longitude),console.log("纬度: "+n.latitude),(0,r.default)({url:"business/storeInformation/store/recentlyStore",method:"post",data:{lon:n.longitude,lat:n.latitude,storeId:e,isLogin:n.AppToken?"0":"1"}}).then((function(e){console.log(e,"2154"),e.data.store?(n.store=e.data.store,t.setStorageSync("storeId",e.data.store.id),t.setStorageSync("chainStoreId",e.data.store.chainStoreId),n.getOilNumber(e.data.store.id)):t.showToast({title:"当前店铺已关闭!!!",icon:"none"})})).catch((function(t){}))},fail:function(t){n.getStore(2),console.log("获取位置信息失败: "+t.errMsg)}})},getUserAuthority:function(){var e=this;t.getSetting({success:function(n){return(0,s.default)(a.default.mark((function o(){return a.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(n.authSetting["scope.userLocation"]){o.next=5;break}return o.next=3,e.getAddress(t.getStorageSync("storeId"));case 3:o.next=7;break;case 5:return o.next=7,e.getAddress(t.getStorageSync("storeId"));case 7:case"end":return o.stop()}}),o)})))()},fail:function(t){}})},getStoreIdBySn:function(e){var n=this;(0,r.default)({url:"business/tag/oilTag/getSn/"+e,method:"get"}).then((function(e){t.setStorageSync("storeId",e.data.storeId),e.data.storeId?n.getStore(t.getStorageSync("storeId")):n.getAddress(t.getStorageSync("storeId"))}))},openKey:function(){this.show=!0,this.$refs.popup1.open("bottom")},isExistStoreId:function(){""!=t.getStorageSync("storeI
|