shop-php/public/static/js/pages-nongKe-supply_chain-finance.c02f65a8.js
2024-01-26 09:39:36 +08:00

1 line
22 KiB
JavaScript
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-nongKe-supply_chain-finance"],{"0d7a":function(t,e,n){"use strict";n.r(e);var i=n("7096"),r=n("9aed");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("c27c");var a=n("f0c5"),u=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"6fa70138",null,!1,i["a"],void 0);e["default"]=u.exports},"12e7":function(t,e,n){"use strict";n.r(e);var i=n("ef25"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"5d54":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */[data-v-6fa70138] .u-subsection{height:%?94.74?%!important;padding:%?10.53?%!important}[data-v-6fa70138] .u-subsection__bar{height:%?73.68?%!important}.tabs_box[data-v-6fa70138]{padding:0 %?28.07?%;height:%?136.84?%;background-color:#fff}.pro_num[data-v-6fa70138]{color:#20a162}.title_left[data-v-6fa70138]{width:%?548?%}.list_item[data-v-6fa70138]{background-color:#fff;width:%?694.74?%;margin:0 auto;margin-top:%?31.58?%;padding:%?28.07?%;border-radius:8px}.list_item .item_header[data-v-6fa70138]{width:100%;padding-bottom:%?17.54?%;border-bottom:1px dashed #20a162}.list_item .item_header .name[data-v-6fa70138]{font-size:%?31.58?%;color:#333;font-weight:700;margin-bottom:%?21.05?%}.list_item .item_header .time[data-v-6fa70138]{color:#999;font-size:%?24.56?%}.list_item .item_header .btn_right[data-v-6fa70138]{color:#20a162;text-align:center;line-height:%?49.12?%;width:%?138.6?%;height:%?49.12?%;border-radius:4px;border:1px solid #20a162}.list_item .item_cell[data-v-6fa70138]{margin-top:%?24.56?%}',""]),t.exports=e},"673f":function(t,e,n){"use strict";n.r(e);var i=n("72b5"),r=n("12e7");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("bddc");var a=n("f0c5"),u=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"4a603381",null,!1,i["a"],void 0);e["default"]=u.exports},7096:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uSubsection:n("673f").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"finance"},[n("v-uni-view",{staticClass:"tabs_box flex_a_c"},[n("u-subsection",{attrs:{list:t.subsList,current:t.curNow,activeColor:"#20A162"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.subsChange.apply(void 0,arguments)}}})],1),t._l(t.goodsList,(function(e,i){return[n("v-uni-view",{key:e.order_id+"_0",staticClass:"list_item"},[n("v-uni-view",{staticClass:"item_header flex_a_c_j_sb"},[n("v-uni-view",{staticClass:"title_left"},[n("v-uni-view",{staticClass:"name"},[t._v("采购人:"+t._s(e.real_name))]),n("v-uni-view",{staticClass:"name"},[t._v("电 话:"+t._s(e.user_phone))]),n("v-uni-view",{staticClass:"time"},[t._v(t._s(e.pay_time))])],1),"0"==e.status?n("v-uni-view",{staticClass:"btn_right",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.setInfo(e.mer_id,e.order_id)}}},[t._v("去发货")]):n("v-uni-view",{staticClass:"btn_right"},[t._v("已完成")])],1),n("v-uni-view",{staticClass:"item_cont"},[n("v-uni-view",{staticClass:"item_cell"},[t._v("采购商家:"+t._s(e.merchant.mer_name))]),n("v-uni-view",{staticClass:"item_cell flex"},[n("v-uni-view",{},[t._v("采购详情:")]),n("v-uni-view",{staticStyle:{width:"100%",flex:"1"}},t._l(e.orderProduct,(function(e){return n("v-uni-view",{key:e.order_product_id,staticClass:"flex_a_c_j_sb"},[n("v-uni-view",{},[t._v(t._s(e.cart_info.product.store_name))]),n("v-uni-view",{staticClass:"pro_num"},[t._v("X"+t._s(e.product_num))])],1)})),1)],1),n("v-uni-view",{staticClass:"item_cell"},[t._v("收货地址:"+t._s(e.user_address))]),n("v-uni-view",{staticClass:"item_cell"},[t._v("订单编号:"+t._s(e.order_sn))])],1)],1)]}))],2)},o=[]},"72b5":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{ref:"u-subsection",staticClass:"u-subsection",class:["u-subsection--"+t.mode],style:[t.$u.addStyle(t.customStyle),t.wrapperStyle]},[n("v-uni-view",{ref:"u-subsection__bar",staticClass:"u-subsection__bar",class:["button"===t.mode&&"u-subsection--button__bar",0===t.current&&"subsection"===t.mode&&"u-subsection__bar--first",t.current>0&&t.current<t.list.length-1&&"subsection"===t.mode&&"u-subsection__bar--center",t.current===t.list.length-1&&"subsection"===t.mode&&"u-subsection__bar--last"],style:[t.barStyle]}),t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,ref:"u-subsection__item--"+i,refInFor:!0,staticClass:"u-subsection__item",class:["u-subsection__item--"+i,i<t.list.length-1&&"u-subsection__item--no-border-right",0===i&&"u-subsection__item--first",i===t.list.length-1&&"u-subsection__item--last"],style:[t.itemStyle(i)],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler(i)}}},[n("v-uni-text",{staticClass:"u-subsection__item__text",style:[t.textStyle(i)]},[t._v(t._s(t.getText(e)))])],1)}))],2)},r=[]},"78b2":function(t,e,n){var i=n("a8dc");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("6296170f",i,!0,{sourceMap:!1,shadowMode:!1})},7991:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var i={props:{list:{type:Array,default:uni.$u.props.subsection.list},current:{type:[String,Number],default:uni.$u.props.subsection.current},activeColor:{type:String,default:uni.$u.props.subsection.activeColor},inactiveColor:{type:String,default:uni.$u.props.subsection.inactiveColor},mode:{type:String,default:uni.$u.props.subsection.mode},fontSize:{type:[String,Number],default:uni.$u.props.subsection.fontSize},bold:{type:Boolean,default:uni.$u.props.subsection.bold},bgColor:{type:String,default:uni.$u.props.subsection.bgColor},keyName:{type:String,default:uni.$u.props.subsection.keyName}}};e.default=i},"8a83":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getAdminOrderDelivery=function(t){return r.default.get("admin/order/delivery/gain/"+t,{},{login:!0})},e.getAdminOrderDetail=function(t,e){return r.default.get("admin/"+t+"/order/"+e,{},{login:!0})},e.getAdminOrderList=function(t){return r.default.get("admin/order/list",t,{login:!0})},e.getDeliveryStoreLst=function(t){return r.default.get("admin/".concat(t,"/delivery_options"))},e.getLogistics=function(){return r.default.get("logistics",{},{login:!1})},e.getOrderList=function(t,e){return r.default.get("admin/".concat(e,"/order_list"),t,{login:!0})},e.getRefundOrderDetail=function(t,e){return r.default.get("server/".concat(t,"/refund/detail/").concat(e),{},{login:!0})},e.getRefundOrderInfo=function(t,e){return r.default.get("server/".concat(t,"/refund/get/").concat(e))},e.getRefundOrderList=function(t,e){return r.default.get("server/".concat(e,"/refund/lst"),t,{login:!0})},e.getStatisticsInfo=function(){return r.default.get("admin/order/statistics",{},{login:!0})},e.getStatisticsMonth=function(t){return r.default.get("admin/order/data",t,{login:!0})},e.getStatisticsTime=function(t){return r.default.get("admin/order/time",t,{login:!0})},e.getTempAndDelivery=function(t){return r.default.get("admin/".concat(t,"/delivery_config"))},e.logisticsCode=function(t){return r.default.get("order/logistics_code/".concat(t))},e.orderCancellation=function(t,e){return r.default.post("admin/".concat(t,"/verify/").concat(e))},e.orderDeliveryInfo=function(t){return r.default.get("admin/".concat(t,"/mer_form"))},e.orderExportTemp=function(t){return r.default.get("store/expr/temps",t)},e.orderNumberStatistics=function(t,e){return r.default.get("admin/".concat(e,"/pay_number"),t,{login:!0})},e.orderPrice=function(t,e){return r.default.get("admin/"+e+"/order_price",t,{login:!0})},e.orderStat=function(t){return r.default.get("admin/1/statistics",t)},e.orderStatistics=function(t,e){return r.default.get("admin/"+t+"/statistics",e)},e.orderVerific=function(t,e,n){return r.default.post("verifier/".concat(t,"/").concat(e),n)},e.postconfirm=function(t,e){return r.default.post("admin/"+t+"/confirm",e,{login:!0})},e.postsettle=function(t,e){return r.default.post("admin/"+t+"/settle",e,{login:!0})},e.purchaseOrder=function(t,e){return r.default.get("admin/".concat(e,"/purchaseOrder"),t,{login:!0})},e.refundOrderReceive=function(t,e){return r.default.post("server/".concat(t,"/refund/confirm/").concat(e),{},{login:!0})},e.refundOrderSubmit=function(t,e,n){return r.default.post("server/".concat(t,"/refund/status/").concat(e),n,{login:!0})},e.setAdminOrderDelivery=function(t,e,n){return r.default.post("admin/"+t+"/delivery/"+e,n,{login:!0})},e.setAdminOrderPrice=function(t,e,n){return r.default.post("admin/"+t+"/price/"+e,n,{login:!0})},e.setAdminOrderRemark=function(t,e,n){return r.default.post("admin/"+t+"/mark/"+e,n,{login:!0})},e.setOfflinePay=function(t,e){return r.default.post("admin/"+t+"/order/offline",e,{login:!0})},e.setOrderRefund=function(t,e){return r.default.post("admin/"+t+"/order/refund",e,{login:!0})},e.setRefundMark=function(t,e,n){return r.default.post("server/".concat(t,"/refund/mark/").concat(e),n,{login:!0})},e.turnoverStatistics=function(t,e){return r.default.get("admin/".concat(e,"/pay_price"),t,{login:!0})},e.verifierOrder=function(t,e){return r.default.get("verifier/"+t+"/order/"+e)},n("99af");var r=i(n("6860"))},"9aed":function(t,e,n){"use strict";n.r(e);var i=n("a97b"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},a8dc:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-4a603381], uni-scroll-view[data-v-4a603381], uni-swiper-item[data-v-4a603381]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-subsection[data-v-4a603381]{display:flex;flex-direction:row;position:relative;overflow:hidden;width:100%;box-sizing:border-box}.u-subsection--button[data-v-4a603381]{height:32px;background-color:#eeeeef;padding:3px;border-radius:3px;align-items:stretch}.u-subsection--button__bar[data-v-4a603381]{background-color:#fff;border-radius:3px!important}.u-subsection--subsection[data-v-4a603381]{height:30px}.u-subsection__bar[data-v-4a603381]{position:absolute;transition-property:color,-webkit-transform;transition-property:transform,color;transition-property:transform,color,-webkit-transform;transition-duration:.3s;transition-timing-function:ease-in-out}.u-subsection__bar--first[data-v-4a603381]{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:0;border-bottom-right-radius:0}.u-subsection__bar--center[data-v-4a603381]{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0}.u-subsection__bar--last[data-v-4a603381]{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.u-subsection__item[data-v-4a603381]{display:flex;flex-direction:row;flex:1;justify-content:center;align-items:center;position:relative}.u-subsection__item--no-border-right[data-v-4a603381]{border-right-width:0!important}.u-subsection__item--first[data-v-4a603381]{border-top-left-radius:3px;border-bottom-left-radius:3px}.u-subsection__item--last[data-v-4a603381]{border-top-right-radius:3px;border-bottom-right-radius:3px}.u-subsection__item__text[data-v-4a603381]{font-size:12px;line-height:12px;display:flex;flex-direction:row;align-items:center;transition-property:color;transition-duration:.3s}',""]),t.exports=e},a97b:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("c7eb")),o=i(n("1da1")),a=n("26cb"),u=n("8a83"),s=n("f89e"),c={data:function(){return{curNow:"0",serObj:{status:"0",page:"1",limit:"20",product_type:98},subsList:["未发货","已发货","全部订单"],goodsList:[],merId:""}},onLoad:function(t){this.merId=t.merid},onShow:function(){this.getDefaultData()},computed:(0,a.mapGetters)(["userInfo"]),methods:{subsChange:function(t){this.curNow=t,"0"==t&&(this.serObj.status="0",this.getDefaultData()),"1"==t&&(this.serObj.status="1",this.getDefaultData()),"2"==t&&(delete this.serObj.status,this.getDefaultData())},getDefaultData:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var n;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,u.getOrderList)(t.serObj,t.merId);case 2:n=e.sent,t.goodsList=n.data.list;case 4:case"end":return e.stop()}}),e)})))()},goDeliver_goods:function(t){},setInfo:function(t,e){var n=this,i=this,r={delivery_id:this.userInfo.phone,delivery_name:this.userInfo.service.nickname,delivery_type:2,is_split:0,split:[]};(0,u.setAdminOrderDelivery)(t,e,r).then((function(t){n.getDefaultData(),(0,s.Toast)("提交成功")}),(function(t){i.$util.Tips({title:t})}))}},onPullDownRefresh:function(){uni.stopPullDownRefresh()}};e.default=c},b68d:function(t,e,n){var i=n("5d54");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("d9cc9838",i,!0,{sourceMap:!1,shadowMode:!1})},bddc:function(t,e,n){"use strict";var i=n("78b2"),r=n.n(i);r.a},c27c:function(t,e,n){"use strict";var i=n("b68d"),r=n.n(i);r.a},ef25:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("53ca")),o=i(n("7991")),a={name:"u-subsection",mixins:[uni.$u.mpMixin,uni.$u.mixin,o.default],data:function(){return{itemRect:{width:0,height:0}}},watch:{list:function(t,e){this.init()},current:{immediate:!0,handler:function(t){}}},computed:{wrapperStyle:function(){var t={};return"button"===this.mode&&(t.backgroundColor=this.bgColor),t},barStyle:function(){var t={};return t.width="".concat(this.itemRect.width,"px"),t.height="".concat(this.itemRect.height,"px"),t.transform="translateX(".concat(this.current*this.itemRect.width,"px)"),"subsection"===this.mode&&(t.backgroundColor=this.activeColor),t},itemStyle:function(t){var e=this;return function(t){var n={};return"subsection"===e.mode&&(n.borderColor=e.activeColor,n.borderWidth="1px",n.borderStyle="solid"),n}},textStyle:function(t){var e=this;return function(t){var n={};return n.fontWeight=e.bold&&e.current===t?"bold":"normal",n.fontSize=uni.$u.addUnit(e.fontSize),"subsection"===e.mode?n.color=e.current===t?"#fff":e.inactiveColor:n.color=e.current===t?e.activeColor:e.inactiveColor,n}}},mounted:function(){this.init()},methods:{init:function(){var t=this;uni.$u.sleep().then((function(){return t.getRect()}))},getText:function(t){return"object"===(0,r.default)(t)?t[this.keyName]:t},getRect:function(){var t=this;this.$uGetRect(".u-subsection__item--0").then((function(e){t.itemRect=e}))},clickHandler:function(t){this.$emit("change",t)}}};e.default=a},f89e:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(n,i){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){n(t.tapIndex)},fail:function(t){i(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,n){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){n(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,o.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{showCancel:!0,cancelText:"取消",confirmText:"确定"};return new Promise((function(i,r){uni.showModal((0,o.default)((0,o.default)({},n),{},{title:t,content:e,success:function(t){t.confirm&&i(),t.cancel&&r()}}))}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,r=(0,o.default)({title:t,duration:i,position:"center",mask:!0,icon:e||"none"},n);uni.showToast(r)},e.chooseImage=function(t){return new Promise((function(e,n){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){n(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=a,e.formatDate=u,e.getQuarterStartDate=function(){var t=new Date(d,function(){var t=0;c<3&&(t=0);2<c&&c<6&&(t=3);5<c&&c<9&&(t=6);c>8&&(t=9);return t}(),1);return u(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(n){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,n){var i=e,r="navigateTo";switch(i=n?i+"?"+a(n):i,t){case 1:r="navigateTo";break;case 2:r="redirectTo";break;case 3:r="reLaunch";break;case 4:r="switchTab";break;default:r="navigateTo";break}uni[r]({url:i,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,r.default)(window))&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},i.onerror=n,void i.send()}var o=document.createElement("canvas"),a=o.getContext("2d"),u=new Image;return u.onload=function(){o.width=u.width,o.height=u.height,a.drawImage(u,0,0),e(o.toDataURL()),o.height=o.width=0},u.onerror=n,void(u.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,r.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,r.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var i=new plus.io.FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t)},i.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return u(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),u(t,"yyyy-MM-dd")},e.throttle=function(t,e){var n,i;e=e||200;return function(){for(var r=this,o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];n=a,i||(i=setTimeout((function(){i=null,t.apply(r,n)}),e))}},e.unique=function(t){t=t||[];for(var e={},n=0;n<t.length;n++){var i=JSON.stringify(t[n]);"undefined"==typeof i&&(e[i]=1)}for(var n in t.length=0,e)t[t.length]=n;return t};var r=i(n("53ca")),o=i(n("5530"));function a(t){var e,n=[];return Object.keys(t).forEach((function(e){n.push("".concat(e,"=").concat(t[e]))})),e=n.join("&"),e}function u(t,e){return t?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(t).format(e)):""}n("e9c4"),n("d9e2"),n("d401"),n("d3b7"),n("159b"),n("b64b"),n("14d9"),n("99af"),n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr(String(e[n]).length)));return t};var s=new Date,c=s.getMonth(),d=s.getYear();d+=d<2e3?1900:0}}]);