(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["other-page-submit-order-submit-order~other-page-submit-order-submit-tangshi-order"],{"0c8e":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.setUserInfoToCache=t.setUserAddressAuthMin=t.setTokenToCache=t.setTangshiInfoDataToCache=t.setSubmitOrderChooseAddressId=t.setLocationInfoToCache=t.setKeywordToUserHistorySearchCache=t.setCopyRightCache=t.getUserInfoFromCache=t.getUserHistorySearchCacheData=t.getTokenFromCache=t.getTangshiCacheInfoData=t.getSubmitOrderChooseAddressId=t.getLocationInfoFromCache=t.getCopyRightCache=t.clearUserHistorySearchData=t.clearTangshiCacheInfoData=t.clearSubmitOrderChooseAddressId=t.clearCacheUserInfo=t.clearCacheToken=t.clearCacheLocationInfo=void 0,r("e966"),r("4626"),r("5ac7"),r("3efd");var a=r("8729"),o=r("edc8");t.setTokenToCache=function(e){(0,a.setCache)(o.TOKEN_KEY,e)};t.getTokenFromCache=function(){return(0,a.getCache)(o.TOKEN_KEY)};t.clearCacheToken=function(){(0,a.removeCache)(o.TOKEN_KEY)};t.setUserInfoToCache=function(e){var t=(0,a.getCache)(o.USER_INFO);t||(t={}),(0,a.setCache)(o.USER_INFO,Object.assign(t,e))};t.getUserInfoFromCache=function(){return(0,a.getCache)(o.USER_INFO)};t.clearCacheUserInfo=function(){(0,a.removeCache)(o.USER_INFO)};t.setLocationInfoToCache=function(e){var t=e.lat,r=e.lng,i=e.address,n=(0,a.getCache)(o.LOCATION_INFO);n||(n={});var s=0,c=(0,a.getCache)("user_address_auth_min")||0;c=parseInt(c),c&&(s=(new Date).getTime()+60*c*1e3),n.lat=t||0,n.lng=r||0,n.address=i||"",n.expireTime=s,(0,a.setCache)(o.LOCATION_INFO,n)};t.getLocationInfoFromCache=function(){var e=(0,a.getCache)(o.LOCATION_INFO);return e||(e={lat:1,lng:1,address:""}),e};t.clearCacheLocationInfo=function(){(0,a.removeCache)(o.LOCATION_INFO)};t.setSubmitOrderChooseAddressId=function(e){(0,a.setCache)(o.ORDER_ADDRESS_CHOOSE_ID,e)};t.getSubmitOrderChooseAddressId=function(){return(0,a.getCache)(o.ORDER_ADDRESS_CHOOSE_ID)};t.clearSubmitOrderChooseAddressId=function(){(0,a.removeCache)(o.ORDER_ADDRESS_CHOOSE_ID)};t.getUserHistorySearchCacheData=function(){return(0,a.getCache)(o.USER_SEARCH_HISTORY)||[]};t.setKeywordToUserHistorySearchCache=function(e){var t=(0,a.getCache)(o.USER_SEARCH_HISTORY);t||(t=[]),t.includes(e)||(t.length>=10&&t.pop(),t.unshift(e),(0,a.setCache)(o.USER_SEARCH_HISTORY,t))};t.clearUserHistorySearchData=function(){(0,a.removeCache)(o.USER_SEARCH_HISTORY)};var i=function(){var e=(0,a.getCache)(o.TANGSHI_INFO);return e||{status:!1,sid:0,tableId:0}};t.getTangshiCacheInfoData=i;t.setTangshiInfoDataToCache=function(e,t,r){var n=i();n.status=e,n.sid=t||n.sid,n.tableId=r||n.tableId,(0,a.setCache)(o.TANGSHI_INFO,n)};t.clearTangshiCacheInfoData=function(){(0,a.removeCache)(o.TANGSHI_INFO)};t.setCopyRightCache=function(e){(0,a.setCache)("copyright",e)};t.getCopyRightCache=function(e){return(0,a.getCache)("copyright")};t.setUserAddressAuthMin=function(e){(0,a.setCache)("user_address_auth_min",e)}},4098:function(e,t,r){"use strict";r("6a54");var a=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.formatTime=t.formatThousand=t.formatPrice=t.debounce=t.createYear=t.copyToClipBoard=t.callPhone=t.addZeroPrefix=void 0,t.isUnionpayApp=function(){var e=navigator.userAgent.toLowerCase(),t=new RegExp(/(com.unionpay.chsp)/).test(e)||new RegExp(/(com.unionpay.mobilepay)/).test(e);return t},t.throttle=void 0,t.unionPaySdkInit=function(){return n.apply(this,arguments)};var o=a(r("2634")),i=a(r("2fdc"));r("64aa"),r("5c47"),r("0506"),r("23f4"),r("7d2f"),r("9c4e"),r("ab80"),r("a1c1"),r("45da"),r("c9b5"),r("bf0f"),r("aa9c"),r("c223");t.throttle=function(e,t){var r,a,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,s=0,c=function(){s=!1===i.leading?0:Date.now(),n=null,o=e.apply(r,a),n||(r=a=null)};return function(){var d=Date.now();s||!1!==i.leading||(s=d);var u=t-(d-s);return r=this,a=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),s=d,o=e.apply(r,a),n||(r=a=null)):n||!1===i.trailing||(n=setTimeout(c,u)),o}};t.debounce=function(e,t){var r=null;return function(){r||clearTimeout(r),r=setTimeout(e,t)}};t.formatPrice=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e?("string"===typeof e&&(e=Number(e)),e.toFixed(t)):e};t.addZeroPrefix=function(e){return e?("string"===typeof e&&(e=Number(e)),e<10?"0"+e:e):""};t.copyToClipBoard=function(e){"number"===typeof e&&(e=String(e)),uni.setClipboardData({data:e,success:function(){uni.showToast({icon:"none",title:"复制成功"})}})};function n(){return n=(0,i.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:return t=null,e.abrupt("return",new Promise((function(e,r){try{upsdk&&"function"===typeof upsdk.pluginReady&&e(!0)}catch(i){var a=document.createElement("script");a.src="https://open.95516.com/s/open/js/upsdk.js";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(a,o),a.onerror=r,t=setInterval((function(){try{upsdk&&"function"===typeof upsdk.pluginReady&&(upsdk.pluginReady((function(){upsdk.setNavigationBarTitle({title:"可可校园"})})),e(!0),clearInterval(t))}catch(i){console.log("upsdk error")}}),300)}})));case 2:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}t.callPhone=function(e){"number"===typeof e&&(e=String(e)),uni.makePhoneCall({phoneNumber:e,success:function(){uni.showToast({icon:"none",title:"联系成功"})}})};t.formatTime=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dd/MM/yyyy HH:mm:ss";if(e){"string"===typeof e&&(e=e.replaceAll("-","/"));var r=new Date(e),a={"M+":r.getMonth()+1,"d+":r.getDate(),"H+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds()};for(var o in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[o]:("00"+a[o]).substr((""+a[o]).length)));return t||""}};t.formatThousand=function(e){return isNaN(e)?(console.error("非数字"),""):e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")};function s(e){var t=new Date(e),r=[t.getFullYear(),t.getMonth()+1,t.getDate()],a=r[0],o=r[1],i=r[2];return"".concat(a,"-").concat(o<10?"0"+o:o,"-").concat(i<10?"0"+i:i)}t.createYear=function(e){var t,r=[],a=new Date("".concat(e,"-01-01")),o=new Date("".concat(e,"-12-31"));t=a.getDay()<1?a.getTime()+864e5*(1-a.getDay()):a.getDay()>1?a.getTime()+5184e5:a.getTime();var i=o.getDay()<7?o.getTime()+864e5*(1-o.getDay()):o.getTime();return function e(t,r,a,o){var i=(new Date).getTime();a.push({week:o+1,value:"".concat(s(t),"至").concat(s(t+5184e5)),weekValue:"第".concat(o+1,"周"),start:s(t),end:s(t+5184e5)}),t+5184e50&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"":t,a=e.mask,o=void 0!==a&&a;uni.showLoading({title:r,mask:o})};t.closeLoading=function(){uni.hideLoading()}},"4f43":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.navPage=t.navMiniProgram=t.navBack=void 0,r("4626"),r("5ac7"),r("5ef2"),r("f7a5");t.navBack=function(e,t){var r=e||"/pages/index/index",a=getCurrentPages();if((null===a||void 0===a?void 0:a.length)>0){var o=a[0];1!==a.length||o.route&&o.route==r?uni.navigateBack({delta:t||1}):uni.reLaunch({url:r})}else uni.reLaunch({url:r})};t.navPage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nav";if(e)if("nav"===t)if(e.includes("miniProgram"))a(e);else if(e.includes("webview")){var r=e.split("webview:"),o=r[1];uni.navigateTo({url:"/system-page/webview/webview?url="+encodeURIComponent(o),fail:function(e){console.error("[navigateTo]跳转页面失败",e)}})}else uni.navigateTo({url:e,fail:function(e){console.error("[navigateTo]跳转页面失败",e)}});else"redirect"===t?uni.redirectTo({url:e,fail:function(e){console.error("[redirectTo]跳转页面失败",e)}}):"reLaunch"===t?uni.reLaunch({url:e,fail:function(e){console.error("[reLaunch]跳转页面失败",e)}}):"phone"===t&&uni.makePhoneCall({phoneNumber:e,fail:function(e){console.error("[phone]拨打电话失败",e)}})};var a=function(e){if(e&&-1!=e.indexOf(":")){for(var t=e.split(":"),r=t[1].split(","),a={},o=0;o