chshPay/unpackage/dist/build/web/static/js/index.a7cc9f77.js

1 line
27 KiB
JavaScript

(function(e){function t(t){for(var i,r,u=t[0],s=t[1],c=t[2],f=0,d=[];f<u.length;f++)r=u[f],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&d.push(a[r][0]),a[r]=0;for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);l&&l(t);while(d.length)d.shift()();return o.push.apply(o,c||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],i=!0,u=1;u<n.length;u++){var s=n[u];0!==a[s]&&(i=!1)}i&&(o.splice(t--,1),e=r(r.s=n[0]))}return e}var i={},a={index:0},o=[];function r(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var t=[],n=a[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise((function(t,i){n=a[e]=[t,i]}));t.push(n[2]=i);var o,u=document.createElement("script");u.charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.src=function(e){return r.p+"static/js/"+({"pages-Paysuccessful-jxPaysuccessful":"pages-Paysuccessful-jxPaysuccessful","pages-index-index":"pages-index-index"}[e]||e)+"."+{"pages-Paysuccessful-jxPaysuccessful":"5e2a9858","pages-index-index":"ec62da6c"}[e]+".js"}(e);var s=new Error;o=function(t){u.onerror=u.onload=null,clearTimeout(c);var n=a[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,n[1](s)}a[e]=void 0}};var c=setTimeout((function(){o({type:"timeout",target:u})}),12e4);u.onerror=u.onload=o,document.head.appendChild(u)}return Promise.all(t)},r.m=e,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/cash_pay/",r.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],s=u.push.bind(u);u.push=t,u=u.slice();for(var c=0;c<u.length;c++)t(u[c]);var l=s;o.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("9bb0")},"19c5":function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("9b8e")),o=i(n("8f59")),r=i(n("cb07")),u=i(n("ca3e"));a.default.use(o.default);var s=new o.default.Store({modules:r.default,getters:u.default,strict:!1});t.default=s},"2f74":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*每个页面公共css */",""]),e.exports=t},"32a1":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=this._self._c||e;return t("App",{attrs:{keepAliveInclude:this.keepAliveInclude}})},a=[]},3512:function(e,t){e.exports={HTTP_REQUEST_URL:"https://tpoint.agrimedia.cn",HEADER:{},TOKENNAME:"Authori-zation",EXPIRE:0,LIMIT:10,TIMEOUT:1e4}},"48b1":function(e,t,n){"use strict";n.r(t);var i=n("acf6"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},6810:function(e,t,n){"use strict";(function(e){n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("aa9c"),n("f7a5"),n("4626"),n("5ac7"),n("e966"),n("0c26"),n("e838"),n("c9b5"),n("bf0f"),n("ab80"),n("64aa"),n("5c47"),n("a1c1"),n("5ef2"),n("fd3c"),n("795c"),n("c223");var a=i(n("9b1b")),o=i(n("2634")),r=i(n("2fdc")),u=i(n("39d8")),s=i(n("5de6")),c=i(n("fcf3")),l={Tips:function(e,t){"string"==typeof e&&(t=e,e={});var n=e.title||"",i=e.icon||"none",a=e.endtime||2e3,o=e.success;if(n&&uni.showToast({title:n,icon:i,duration:a,success:o}),void 0!=t)if("object"==(0,c.default)(t)){var r=t.tab||1,u=t.url||"";switch(r){case 1:setTimeout((function(){uni.switchTab({url:u})}),a);break;case 2:setTimeout((function(){uni.navigateTo({url:u})}),a);break;case 3:setTimeout((function(){history.back()}),a);break;case 4:setTimeout((function(){uni.reLaunch({url:u})}),a);break;case 5:setTimeout((function(){uni.redirectTo({url:u})}),a);break}}else"function"==typeof t?setTimeout((function(){t&&t()}),a):setTimeout((function(){uni.navigateTo({url:t})}),n?a:0)},ArrayRemove:function(e,t,n){var i=[];if(e instanceof Array)for(var a=0;a<e.length;a++)("number"==typeof t&&e[t]!=a||"string"==typeof t&&e[a][t]!=n)&&i.push(e[a]);return i},textByteLength:function(e,t){for(var n=0,i=1,a=0,o=[],r=0;r<e.length;r++)e.charCodeAt(r)>255?(n+=2,n>i*t&&(n++,o.push(e.slice(a,r)),a=r,i++)):(n++,n>i*t&&(o.push(e.slice(a,r)),a=r,i++));return o.push(e.slice(a,e.length)),[n,o,i]},PosterCanvas:function(e,t,n,i,a){var o=this;uni.showLoading({title:i18n.t("海报生成中"),mask:!0});var r=uni.createCanvasContext("myCanvas");r.clearRect(0,0,0,0),r.fillStyle="#fff",r.fillRect(0,0,750,1250),uni.getImageInfo({src:e[0],success:function(u){var c=u.width,l=u.height;r.drawImage(e[1],0,0,c,c),r.save();var f=110;r.arc(590,900,f,0,2*Math.PI),r.drawImage(e[2],480,790,220,220),r.restore();var d=o.textByteLength(t,20),p=(0,s.default)(d,3),h=(p[0],p[1]),g=p[2];if(g>2){g=2;var v=h.slice(0,2);v[v.length-1]+="……",h=v}r.setTextAlign("left"),r.setFontSize(36),r.setFillStyle("#000");for(var m=0;m<h.length;m++)m?r.fillText(h[m],50,1e3+36*m+18,1100):r.fillText(h[m],50,1e3+36*m,1100);if(r.setTextAlign("left"),r.setFontSize(72),r.setFillStyle("#DA4F2A"),r.fillText(i18n.t("¥")+n,40,856),r.setTextAlign("left"),r.setFontSize(36),r.setFillStyle("#999"),i){r.fillText(i18n.t("¥")+i,50,912);(function(e,t,n,i,a,o,r,u){var s=e.measureText(t).width;switch(e.textAlign){case"center":n-=s/2;break;case"right":n-=s;break}i+=a+u,e.beginPath(),e.strokeStyle=o,e.lineWidth=r,e.moveTo(n,i),e.lineTo(n+s,i),e.stroke()})(r,i18n.t("¥")+i,55,865,36,"#999",2,0)}r.setTextAlign("left"),r.setFontSize(28),r.setFillStyle("#999"),r.fillText(i18n.t("长按或扫描查看"),490,1066),r.draw(!0,(function(){uni.canvasToTempFilePath({canvasId:"myCanvas",fileType:"png",destWidth:c,destHeight:l,success:function(e){uni.hideLoading(),a&&a(e.tempFilePath)}})}))},fail:function(e){uni.hideLoading(),o.Tips({title:i18n.t("无法获取图片信息")})}})},bargainPosterCanvas:function(e,t,n,i,a,o,r,u){var c=this,l=uni.createCanvasContext("myCanvas");l.clearRect(0,0,0,0),l.fillStyle="#fff",l.fillRect(0,0,2*o,2*r),uni.getImageInfo({src:e[0],success:function(f){f.width,f.height;l.drawImage(e[0],0,0,o,r);l.drawImage(e[1],.1571*o,.2916*r,.6857*o,.4316*r),l.drawImage(e[2],.385*o,.77*r,.25*o,.25*o),l.save();var d=c.textByteLength(t,32),p=(0,s.default)(d,3),h=(p[0],p[1]),g=p[2];if(g>2){g=2;var v=h.slice(0,2);v[v.length-1]+="…",h=v}l.setTextAlign("left"),l.setFillStyle("#000"),h.length<2?l.setFontSize(22):l.setFontSize(20);for(var m=0;m<h.length;m++)m?l.fillText(h[m],20,35+8*m+18,1100):l.fillText(h[m],20,35,1100);l.setTextAlign("left"),l.setFontSize(16),l.setFillStyle("#FFF"),l.fillText(n,.65*o,.166*r),l.save(),l.setFillStyle("red"),l.setFontSize(26),l.fillText(a,.1857*o,.18*r),l.save(),l.setFillStyle("#333"),l.setFontSize(16),l.fillText(i,.1036*o,.2306*r),l.save(),l.draw(!0,(function(){uni.canvasToTempFilePath({canvasId:"myCanvas",fileType:"png",quality:1,success:function(e){u&&u(e.tempFilePath),uni.hideLoading()}})}))},fail:function(e){uni.hideLoading(),c.Tips({title:i18n.t("无法获取图片信息")})}})},userPosterCanvas:function(t,n,i,a,o,r,u,s){var c=this,l=uni.createCanvasContext("myCanvas"+a);l.clearRect(0,0,0,0),uni.getImageInfo({src:t[1],success:function(c){c.width,c.height;l.fillStyle="#fff",l.fillRect(0,0,o,r),l.drawImage(t[1],0,0,o,r),l.setTextAlign("left"),l.setFontSize(12),l.setFillStyle("#333");l.drawImage(t[0],.1906*o,.7746*r,.21666*o,.21666*o),o<270?l.setFontSize(8):l.setFontSize(10),l.fillText(n,.4283*o,.8215*r-5),o<270?l.setFontSize(8):l.setFontSize(10),e.log(o,.4283,.4283*o),l.fillText(i18n.t("邀请您加入")+i,.4283*o,.8685*r-11),l.fillText(i18n.t("邀请码: ".concat(u)),.4283*o,.8685*r+8),l.save(),l.draw(!0,(function(){uni.canvasToTempFilePath({canvasId:"myCanvas"+a,fileType:"png",quality:1,success:function(e){s&&s(e.tempFilePath)}})}))},fail:function(t){e.log(t),uni.hideLoading(),c.Tips({title:i18n.t("无法获取图片信息")})}})},isIDCardExpired:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=this;e&&e.includes("-")||n.Tips({title:"识别身份证有效期格式错误"});var i=e.split("-"),a=(0,s.default)(i,2),o=a[0],r=a[1],u=function(e){var t=parseInt(e.slice(0,4),10),n=parseInt(e.slice(4,6),10)-1,i=parseInt(e.slice(6,8),10);return new Date(t,n,i)},c=u(o),l=u(r);return t>l||t<c},uploadImageOne:function(t,n,i){var a=this;if("string"===typeof t){var o=t;t={},t.url=o}var r=t.count||1,s=t.sizeType||["compressed"],c=t.sourceType||["album","camera"],l=(t.is_load,t.url||""),f=t.name||"pics",d=t.fileType||"image";uni.chooseImage({count:r,sizeType:s,sourceType:c,success:function(t){uni.showLoading({title:i18n.t("图片上传中")}),uni.uploadFile({url:HTTP_REQUEST_URL+"/api/"+l,filePath:t.tempFilePaths[0],fileType:d,name:f,formData:{filename:f},header:(0,u.default)({},TOKENNAME,"Bearer "+store.state.app.token),success:function(e){if(uni.hideLoading(),403==e.statusCode)a.Tips({title:e.data});else{var t=e.data?JSON.parse(e.data):{};200==t.status?n&&n(t):(i&&i(t),a.Tips({title:t.msg}))}},fail:function(t){e.log(t),uni.hideLoading(),a.Tips({title:i18n.t("上传图片失败")})}})}})},compressImageToTargetSize:function(t,n,i,a){var o=this;if("string"===typeof t){var r=t;t={},t.url=r}var s=t.count||1,c=t.sizeType||["compressed"],l=t.sourceType||["album","camera"],f=(t.is_load,t.url||""),d=t.name||"pics",p=t.fileType||"image";function h(t){uni.uploadFile({url:HTTP_REQUEST_URL+"/api/"+f,filePath:t,fileType:p,name:d,formData:{filename:d},header:(0,u.default)({},TOKENNAME,"Bearer "+store.state.app.token),success:function(e){if(uni.hideLoading(),403==e.statusCode)o.Tips({title:e.data});else{var t=e.data?JSON.parse(e.data):{};200==t.status?n&&n(t):(i&&i(t),o.Tips({title:t.msg}))}},fail:function(t){e.log(t),uni.hideLoading(),o.Tips({title:i18n.t("上传图片失败")})}})}uni.chooseImage({count:s,sizeType:c,sourceType:l,success:function(e){var t=e.tempFilePaths[0];uni.compressImage({src:t,quality:80,success:function(e){h(e.tempFilePath)}})},fail:function(t){var n=t.errMsg;e.log(n,"111111111"),"chooseImage:fail cancel"==n&&(n="取消选择照片"),"chooseImage:fail:systempermission denied"==n&&(n="请检查相册和相机权限"),"chooseImage:fail privacy permission is not authorized"==n&&(n="获取照片隐私权限失败"),"chooseImage:fail privacy permission is not authorized in gap"==n&&(n="获取照片隐私权限失败"),o.Tips({title:n})}})},uploadImageChange:function(t,n,i,a){var o=this;if("string"===typeof t){var r=t;t={},t.url=r}var s=t.count||1,c=t.sizeType||["compressed"],l=t.sourceType||["album","camera"],f=(t.is_load,t.url||""),d=t.name||"pics",p=t.fileType||"image";function h(t){uni.uploadFile({url:HTTP_REQUEST_URL+"/api/"+f,filePath:t,fileType:p,name:d,formData:{filename:d},header:(0,u.default)({},TOKENNAME,"Bearer "+store.state.app.token),success:function(e){if(uni.hideLoading(),403==e.statusCode)o.Tips({title:e.data});else{var t=e.data?JSON.parse(e.data):{};200==t.status?n&&n(t):(i&&i(t),o.Tips({title:t.msg}))}},fail:function(t){e.log(t),uni.hideLoading(),o.Tips({title:i18n.t("上传图片失败")})}})}uni.chooseImage({count:s,sizeType:c,sourceType:l,success:function(e){uni.getImageInfo({src:e.tempFilePaths[0],success:function(t){if(uni.showLoading({title:i18n.t("图片上传中")}),e.tempFiles[0].size<=2097152)h(t.path);else{var n,i,o;o=t.width/t.height,t.width>750?(n=750,i=750/o):(n=t.width,i=t.height),a&&a({w:n,h:i});var r=uni.createCanvasContext("canvas");r.width=n,r.height=i,r.clearRect(0,0,n,i),r.drawImage(t.path,0,0,n,i),r.save(),setTimeout((function(e){r.draw(!0,(function(){uni.canvasToTempFilePath({canvasId:"canvas",fileType:"JPEG",destWidth:n,destHeight:i,quality:.7,success:function(e){h(e.tempFilePath)}})}))}),200)}}})},fail:function(t){var n=t.errMsg;e.log(n,"111111111"),"chooseImage:fail cancel"==n&&(n="取消选择照片"),"chooseImage:fail:systempermission denied"==n&&(n="请检查相册和相机权限"),"chooseImage:fail privacy permission is not authorized"==n&&(n="获取照片隐私权限失败"),"chooseImage:fail privacy permission is not authorized in gap"==n&&(n="获取照片隐私权限失败"),o.Tips({title:n})}})},uploadImgs:function(t,n,i,a){var o=this;uni.uploadFile({url:HTTP_REQUEST_URL+"/api/"+t,filePath:n,fileType:"image",name:"pics",formData:{filename:"pics"},header:(0,u.default)({},TOKENNAME,"Bearer "+store.state.app.token),success:function(e){if(uni.hideLoading(),403==e.statusCode)o.Tips({title:e.data});else{var t=e.data?JSON.parse(e.data):{};200==t.status?i&&i(t):(a&&a(t),o.Tips({title:t.msg}))}},fail:function(t){uni.hideLoading(),e.log(res),o.Tips({title:i18n.t("上传图片失败")})}})},compareVersion:function(e,t){e=e.split("."),t=t.split(".");var n=Math.max(e.length,t.length);while(e.length<n)e.push("0");while(t.length<n)t.push("0");for(var i=0;i<n;i++){var a=parseInt(e[i]),o=parseInt(t[i]);if(a>o)return 1;if(a<o)return-1}return 0},getNowTime:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,i=e.getDate(),a=e.getHours(),o=e.getMinutes(),r=e.getSeconds(),u=t+"/"+n+"/"+i+" "+a+":"+o+":"+r;return u},SplitArray:function(e,t){if("object"!=(0,c.default)(e))return[];void 0===t&&(t=[]);for(var n=0;n<e.length;n++)t.push(e[n]);return t},trim:function(e){return String.prototype.trim.call(e)},$h:{Div:function(e,t){e=parseFloat(e),t=parseFloat(t);var n,i,a=0,o=0;try{a=e.toString().split(".")[1].length}catch(r){}try{o=t.toString().split(".")[1].length}catch(r){}return n=Number(e.toString().replace(".","")),i=Number(t.toString().replace(".","")),this.Mul(n/i,Math.pow(10,o-a))},Add:function(e,t){var n,i,a;t=parseFloat(t);try{n=e.toString().split(".")[1].length}catch(o){n=0}try{i=t.toString().split(".")[1].length}catch(o){i=0}return a=Math.pow(100,Math.max(n,i)),(this.Mul(e,a)+this.Mul(t,a))/a},Sub:function(e,t){var n,i,a,o;e=parseFloat(e),t=parseFloat(t);try{n=e.toString().split(".")[1].length}catch(r){n=0}try{i=t.toString().split(".")[1].length}catch(r){i=0}return a=Math.pow(10,Math.max(n,i)),o=n>=i?n:i,((this.Mul(e,a)-this.Mul(t,a))/a).toFixed(o)},Mul:function(e,t){e=parseFloat(e),t=parseFloat(t);var n=0,i=e.toString(),a=t.toString();try{n+=i.split(".")[1].length}catch(o){}try{n+=a.split(".")[1].length}catch(o){}return Number(i.replace(".",""))*Number(a.replace(".",""))/Math.pow(10,n)}},$L:{getLocation:function(){var e=this;return(0,r.default)((0,o.default)().mark((function t(){return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.doGetLocation();case 1:case"end":return t.stop()}}),t)})))()},doGetLocation:function(){uni.getLocation({success:function(e){uni.removeStorageSync("CACHE_LONGITUDE"),uni.removeStorageSync("CACHE_LATITUDE"),uni.setStorageSync("CACHE_LONGITUDE",e.longitude),uni.setStorageSync("CACHE_LATITUDE",e.latitude)},fail:function(e){e.errMsg.indexOf("auth deny")>=0?uni.showToast({title:i18n.t("访问位置被拒绝")}):uni.showToast({title:e.errMsg})}})},getSetting:function(){return new Promise((function(e,t){uni.getSetting({success:function(t){void 0!==t.authSetting["scope.userLocation"]?t.authSetting["scope.userLocation"]?e(1):e(2):e(0)}})}))},openSetting:function(){var e=this;uni.openSetting({success:function(t){t.authSetting&&t.authSetting["scope.userLocation"]&&e.doGetLocation()},fail:function(e){}})},checkPermission:function(){return(0,r.default)((0,o.default)().mark((function e(){var t;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!permision.isIOS){e.next=6;break}return e.next=3,permision.requestIOS("location");case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,permision.requestAndroid("android.permission.ACCESS_FINE_LOCATION");case 8:e.t0=e.sent;case 9:return t=e.t0,null===t||1===t?t=1:2===t?uni.showModal({content:i18n.t("系统定位已关闭"),confirmText:i18n.t("确定"),showCancel:!1,success:function(e){}}):t.code?uni.showModal({content:t.message}):uni.showModal({content:i18n.t("需要定位权限"),confirmText:i18n.t("确定"),success:function(e){e.confirm&&permision.gotoAppSetting()}}),e.abrupt("return",t);case 12:case"end":return e.stop()}}),e)})))()}},JumpPath:function(t){var n=t.split("@APPID=");n.length>1?this.Tips({title:"h5与app端不支持跳转外部小程序"}):(e.log(t,"----------"),-1!=t.indexOf("http")?uni.navigateTo({url:"/pages/annex/web_view/index?url=".concat(encodeURIComponent(t))}):-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index","/pages/index/index"].indexOf(t)?uni.navigateTo({url:t}):uni.switchTab({url:t}))},openLocation:function(t){e.log(t),uni.openLocation((0,a.default)((0,a.default)({},t),{},{success:function(){e.log("success")},fail:function(t){e.log(t)}}))},pxToRpx:function(e){var t=uni.getSystemInfoSync().screenWidth,n=e/(t/750);return n},getLastMonths:function(e){var t,n=[];if(e){var i=e.split("-").map(Number),a=(0,s.default)(i,2),o=a[0],r=a[1];t=new Date(o,r-1)}else t=new Date;t.setDate(1);for(var u=0;u<4;u++){var c=t.getFullYear(),l=String(t.getMonth()).padStart(2,"0");n.push({name:"".concat(c,"-").concat(l)}),t.setMonth(t.getMonth()-1)}return n}};t.default=l}).call(this,n("ba7c")["default"])},"738f":function(e,t,n){var i=n("2f74");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("967d").default;a("073fc182",i,!0,{sourceMap:!1,shadowMode:!1})},"7d57":function(e,t){e.exports={LOGIN_STATUS:"LOGIN_STATUS_TOKEN",ISPAY:"",UID:"UID",USER_INFO:"USER_INFO",EXPIRES_TIME:"EXPIRES_TIME",WX_AUTH:"WX_AUTH",STATE_KEY:"wx_authorize_state",LOGINTYPE:"loginType",BACK_URL:"login_back_url",STATE_R_KEY:"roution_authorize_state",LOGO_URL:"LOGO_URL",SUBSCRIBE_MESSAGE:"SUBSCRIBE_MESSAGE",TIPS_KEY:"TIPS_KEY",SPREAD:"spread",CACHE_LONGITUDE:"LONGITUDE",CACHE_LATITUDE:"LATITUDE",USER_ADDRESS:"USER_ADDRESS",isFiveClick:"isFiveClick"}},"934d":function(e,t,n){"use strict";var i=n("738f"),a=n.n(i);a.a},"9bb0":function(e,t,n){"use strict";var i=n("f5bd").default,a=i(n("9b1b"));n("3dde"),n("a8b2"),n("1480"),n("6e4a"),n("a514"),n("d6b2");var o=i(n("f773")),r=i(n("19c5")),u=i(n("6810")),s=i(n("9b8e"));n("b75f"),s.default.prototype.$util=u.default,s.default.config.productionTip=!1,o.default.mpType="app";var c=new s.default((0,a.default)({store:r.default},o.default));c.$mount()},a514:function(e,t,n){"use strict";(function(e){var t=n("f5bd").default;n("473f"),n("bf0f"),n("de6c"),n("5c47"),n("a1c1");var i=t(n("9b8e")),a={keys:function(){return[]}};e["____0A12251____"]=!0,delete e["____0A12251____"],e.__uniConfig={globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},uniIdRouter:{}},e.__uniConfig.compilerVersion="4.76",e.__uniConfig.darkmode=!1,e.__uniConfig.themeConfig={},e.__uniConfig.uniPlatform="h5",e.__uniConfig.appId="__UNI__0A12251",e.__uniConfig.appName="H5-pay",e.__uniConfig.appVersion="1.0.0",e.__uniConfig.appVersionCode="100",e.__uniConfig.router={mode:"history",base:"/cash_pay/"},e.__uniConfig.publicPath="/cash_pay/",e.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:2e5},e.__uniConfig.debug=!1,e.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},e.__uniConfig.sdkConfigs={maps:{qqmap:{key:"NO7BZ-APDKP-UCBD7-VT7CX-R5UZK-JBF2W"}}},e.__uniConfig.qqMapKey="NO7BZ-APDKP-UCBD7-VT7CX-R5UZK-JBF2W",e.__uniConfig.googleMapKey=void 0,e.__uniConfig.aMapKey=void 0,e.__uniConfig.aMapSecurityJsCode=void 0,e.__uniConfig.aMapServiceHost=void 0,e.__uniConfig.locale="",e.__uniConfig.fallbackLocale=void 0,e.__uniConfig.locales=a.keys().reduce((function(e,t){var n=t.replace(/\.\/(uni-app.)?(.*).json/,"$2"),i=a(t);return Object.assign(e[n]||(e[n]={}),i.common||i),e}),{}),e.__uniConfig.nvue={"flex-direction":"column"},e.__uniConfig.__webpack_chunk_load__=n.e,i.default.component("pages-index-index",(function(e){var t={component:n.e("pages-index-index").then(function(){return e(n("d456d"))}.bind(null,n)).catch(n.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(t.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(t.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),t})),i.default.component("pages-Paysuccessful-jxPaysuccessful",(function(e){var t={component:n.e("pages-Paysuccessful-jxPaysuccessful").then(function(){return e(n("f9bf"))}.bind(null,n)).catch(n.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(t.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(t.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),t})),e.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{render:function(e){return e("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"向商家付款",enablePullDownRefresh:!1,navigationStyle:"custom"})},[e("pages-index-index",{slot:"page"})])}},meta:{id:1,name:"pages-index-index",isNVue:!1,maxWidth:0,pagePath:"pages/index/index",isQuit:!0,isEntry:!0,windowTop:0}},{path:"/pages/Paysuccessful/jxPaysuccessful",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"支付结果",enablePullDownRefresh:!1,navigationStyle:"custom"})},[e("pages-Paysuccessful-jxPaysuccessful",{slot:"page"})])}},meta:{name:"pages-Paysuccessful-jxPaysuccessful",isNVue:!1,maxWidth:0,pagePath:"pages/Paysuccessful/jxPaysuccessful",windowTop:0}},{path:"/choose-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],e.UniApp&&new e.UniApp}).call(this,n("0ee4"))},acf6:function(e,t,n){"use strict";(function(e){n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={onLaunch:function(){e.log("App Launch")},onShow:function(){e.log("App Show")},onHide:function(){e.log("App Hide")}};t.default=i}).call(this,n("ba7c")["default"])},b304:function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("7d57"),o=i(n("b5f1")),r={token:o.default.get(a.LOGIN_STATUS)||!1,ISPAY:o.default.get(a.ISPAY)||""},u={LOGIN:function(e,t){e.token=t.token},UPDATE_LOGIN:function(e,t){e.token=t,o.default.set(a.LOGIN_STATUS,t)},SETALL_PAT:function(e,t){e.ISPAY=t,o.default.set(a.ISPAY,t)}},s={state:r,mutations:u,actions:{}};t.default=s},b5f1:function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("5c47"),n("a1c1"),n("fd3c"),n("aa9c"),n("5ef2"),n("e966"),n("64aa"),n("dd2b"),n("d4b5"),n("bf0f");var a=i(n("fcf3")),o=i(n("80b1")),r=i(n("efe5")),u=n("3512"),s=function(){function e(t){(0,o.default)(this,e),this.cacheSetHandler=uni.setStorageSync,this.cacheGetHandler=uni.getStorageSync,this.cacheClearHandler=uni.removeStorageSync,this.cacheExpire="UNI-APP-CRMEB:TAG",this.clearOverdue()}return(0,r.default)(e,[{key:"time",value:function(){return Math.round(new Date/1e3)}},{key:"strTotime",value:function(e){var t=e.substring(0,19);return t=t.replace(/-/g,"/"),Math.round(new Date(t).getTime()/1e3)}},{key:"setExpireCaheTag",value:function(e,t){var n=this;if(t=void 0!==t?t:u.EXPIRE,"number"===typeof t){var i=this.cacheGetHandler(this.cacheExpire),o=[],r=[];"object"===(0,a.default)(i)&&i.length&&(o=i.map((function(i){return r.push(i.key),i.key===e&&(i.expire=0===t?0:n.time()+t),i}))),r.length&&-1!==r.indexOf(e)||o.push({key:e,expire:0===t?0:this.time()+t}),this.cacheSetHandler(this.cacheExpire,o)}}},{key:"getExpireCahe",value:function(e,t){try{var n=this.cacheGetHandler(this.cacheExpire),i=0,o=!1;if("object"===(0,a.default)(n)&&n.length){if(n.map((function(t,n){t.key===e&&(i=t.expire,o=n)})),i){var r=parseInt(i);return!(i&&i<this.time()&&!Number.isNaN(r))||(void 0!==t&&!0!==t||(this.cacheClearHandler(e),!1!==o&&(n.splice(o,1),this.cacheSetHandler(this.cacheExpire,n))),!1)}return!!this.cacheGetHandler(e)}return!1}catch(u){return!1}}},{key:"set",value:function(e,t,n){if(void 0===t)return!0;"object"===(0,a.default)(t)&&(t=JSON.stringify(t));try{return this.setExpireCaheTag(e,n),this.cacheSetHandler(e,t)}catch(i){return!1}}},{key:"has",value:function(e,t){return this.clearOverdue(),this.getExpireCahe(e,t)}},{key:"get",value:function(e,t,n){this.clearOverdue();try{var i=this.getExpireCahe(e),a=this.cacheGetHandler(e);if(a&&i)return"boolean"===typeof t?JSON.parse(a):a;if("function"===typeof t){var o=t();return this.set(e,o,n),o}return this.set(e,t,n),t}catch(r){return null}}},{key:"clear",value:function(e){try{var t=this.cacheGetHandler(this.cacheExpire),n=!1;return t&&"object"===(0,a.default)(t)&&t.length&&(t.map((function(t,i){t.key===e&&(n=i)})),!1!==n&&t.splice(n,1),this.cacheSetHandler(this.cacheExpire,t)),this.cacheClearHandler(e)}catch(i){return!1}}},{key:"clearOverdue",value:function(){var e=this,t=this.cacheGetHandler(this.cacheExpire),n=this.time(),i=[],o=[];t&&"object"===(0,a.default)(t)&&t.length&&t.map((function(e){e&&(void 0!==e.expire&&e.expire>n||0===e.expire?o.push(e):i.push(e.key))})),o.length!==t.length&&this.cacheSetHandler(this.cacheExpire,o),i.forEach((function(t){e.cacheClearHandler(t)}))}}]),e}(),c=new s;t.default=c},b75f:function(e,t,n){var i=n("bdbb").default;n("bf0f"),uni.addInterceptor({returnValue:function(e){return!e||"object"!==i(e)&&"function"!==typeof e||"function"!==typeof e.then?e:new Promise((function(t,n){e.then((function(e){return e?e[0]?n(e[0]):t(e[1]):t(e)}))}))}})},ca3e:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={token:function(e){return e.app.token},isLogin:function(e){return!!e.app.token},backgroundColor:function(e){return e.app.backgroundColor},userInfo:function(e){return e.app.userInfo||{}},uid:function(e){return e.app.uid},homeActive:function(e){return e.app.homeActive},home:function(e){return e.app.home},cartNum:function(e){return e.indexData.cartNum},activityTab:function(e){return e.app.activityTab},address:function(e){return e.app.addressInfo}}},cb07:function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("b304")),o={app:a.default};t.default=o},f773:function(e,t,n){"use strict";n.r(t);var i=n("32a1"),a=n("48b1");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("934d");var r=n("828b"),u=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=u.exports}});