shop-php/public/static/js/pages-gather-gather.db8cc390.js

1 line
68 KiB
JavaScript
Raw Normal View History

2023-09-05 14:13:48 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-gather-gather"],{"0419":function(t,e,n){"use strict";n.r(e);var i=n("df04"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"08cf":function(t,e,n){"use strict";(function(t){n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("c7eb")),r=i(n("1da1"));n("d81d"),n("a9e3"),n("d3b7"),n("e9c4");var o=n("f44c"),u=uni.requireNativePlugin("uniMP"),s="",c="",l=null;function d(t,e){for(var n=t.split(".").map(Number),i=e.split(".").map(Number),a=0;a<Math.max(n.length,i.length);a++){var r=a<n.length?n[a]:0,o=a<i.length?i[a]:0;if(r>o)return 1;if(r<o)return-1}return 0}var f=function(){var e=(0,r.default)((0,a.default)().mark((function e(n){var i;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=n,e.next=3,(0,o.getGXconfig)();case 3:i=e.sent,t("log","最新版本",i.data," at utils/uniMP.js:28"),t("log",u,uni," at utils/uniMP.js:29"),uni.showLoading({title:"下载中...",mask:!0}),u.getUniMPVersion(n,(function(e){t("log","当前版本",e," at utils/uniMP.js:36"),0!=e.code||d(i.data.version,e.versionInfo.name);var n,a=0;l=setInterval((function(){a<100?uni.showLoading({title:"下载中... ".concat(a,"%"),mask:!0}):uni.showLoading({title:"安装中...",mask:!0})}),600);var r=uni.downloadFile({url:null===(n=i.data.version_info)||void 0===n?void 0:n.dow_url,success:function(e){c=e.tempFilePath,t("log","下载完成",c," at utils/uniMP.js:53"),p()}});r.onProgressUpdate((function(t){t.progress>a&&(a+=10),a>=90&&(clearInterval(l),l=null)}))}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){u.getUniMPVersion(s,(function(e){t("log","安装:供销",e," at utils/uniMP.js:82"),g(),t("log","getUniMPVersion: "+JSON.stringify(e)," at utils/uniMP.js:95")}))},g=function(){u.installUniMP({appid:s,wgtFile:c},(function(e){0==e.code?(t("log","小程序安装成功"," at utils/uniMP.js:107"),h()):(uni.hideLoading(),uni.showModal({title:"安装失败",content:JSON.stringify(e),showCancel:!1})),t("log","安装供销: "+JSON.stringify(e)," at utils/uniMP.js:117")}))},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=uni.getStorageSync("LOGIN_STATUS_TOKEN");if(!n)return uni.showToast({icon:"none",title:"请先登录"});u.openUniMP({appid:e||s,extraData:{uniMP:!0,token:n}},(function(e){uni.hideLoading(),0!=e.code&&uni.showModal({title:"启动失败",content:JSON.stringify(e),showCancel:!1}),t("log","openUniMP: "+JSON.stringify(e)," at utils/uniMP.js:142")}))},v={loadMP:f,installMP:p,doInstallMP:g,getVersion:function(e){return s=e,new Promise((function(e,n){u.getUniMPVersion(s,(function(e){t("log","供销",e," at utils/uniMP.js:75")}))}))},open:h};e.default=v}).call(this,n("0de9")["log"])},"09b5":function(t,e,n){"use strict";n.r(e);var i=n("4b34"),a=n("1e02");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("d2f7");var o=n("f0c5"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"02ffb315",null,!1,i["a"],void 0);e["default"]=u.exports},"0b0d":function(t,e,n){var i=n("a247");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("e7ff4e9e",i,!0,{sourceMap:!1,shadowMode:!1})},1520:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c975");var a=i(n("ef94")),r={name:"u-empty",mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],data:function(){return{icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空",comment:"暂无评论"}}},computed:{emptyStyle:function(){var t={};return t.marginTop