Commit 3d30ebf8 authored by yanghui1's avatar yanghui1

测试

parent 766ca522
<!doctype html><html lang="zh"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="dns-prefetch" href="//yun.duiba.com.cn"/><link rel="preconnect" href="//embedlog.duiba.com.cn"><title>活动标题</title><script>if (localStorage && localStorage.isWebp) {
document
.getElementsByTagName('html')[0]
.setAttribute('duiba-webp', 'true');
}</script><script src="//yun.duiba.com.cn/spark/v2/spark.base.fz.wxpollyfill.js"></script><script src="//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"></script><script src="//yun.duiba.com.cn/h5/lib/zepto.min.js"></script><script>"use strict";
var CFG = CFG || {};
CFG.projectId = location.pathname.split('/')[2] || '1';
function getUrlParam(name) {
var search = window.location.search;
var matched = search.slice(1).match(new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'));
return search.length ? matched && matched[2] : null;
}
CFG.appID = '${APPID}';
if (!getUrlParam("appID")) {// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}</script><link href="//yun.duiba.com.cn/spark/v2/temp_base/1651112891659/styles/main.f298a0cb5716ac3469de.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="//yun.duiba.com.cn/spark/v2/temp_base/1651112891659/js/runtime-main.93b7d9da.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1651112891659/js/vendors.879cb3e7.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1651112891659/js/main.38456f32.js" crossorigin="anonymous"></script></body></html>
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+2NO":function(e,t,n){},0:function(e,t){},"63/5":function(e,t){e.exports={OUTPUT_DIR:"dist",SOURCE_DIR:"src",TEMP_DIR:"./.temp",ENTRY:"src/app.jsx",TEMPLATE:"./public/index.html",API_MOCK:!0,PX2REM:!0,IMAGE_Q1:.6,IMAGE_Q2:.8,RES_PATH:"//yun.duiba.com.cn/spark/v2/temp_base/1651112884768/",RES_PATH_PROD:"//yun.duiba.com.cn/spark/v2/temp_base/1651112884768",JS_PATH_PROD:"https://yun.duiba.com.cn/spark/v2/temp_base/1651112891659/js"}},"80eo":function(e,t,n){var r=n("LboF"),o=n("Hji2");"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},"8TUu":function(e,t,n){var r=n("LboF"),o=n("Ftvq");"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},Ftvq:function(e,t,n){},Hji2:function(e,t,n){},aCct:function(e,t){!function(){var e=[],t=!1,n=!1,r=navigator.userAgent.toLowerCase();if(r.indexOf("android")>-1||r.indexOf("adr")>-1){var o=parseFloat(r.substr(r.indexOf("android")+8,3));n=o<4.4}if(n&&localStorage&&delete localStorage.isWebp,localStorage&&!localStorage.isWebp){var a=new Image;a.onload=function(){1!==a.width||n?localStorage.isWebp="":(localStorage.isWebp=!0,document.getElementsByTagName("html")[0].setAttribute("duiba-webp","true"))},a.onerror=function(){t=!0,localStorage.isWebp=""},a.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="}String.prototype.ossImg=function(){return function n(r){return r?t||!localStorage||void 0!==localStorage.isWebp?(e=r.split(".")).length>0&&"gif"===e[e.length-1]?r+"":(localStorage&&localStorage.isWebp?r+="?x-oss-process=image/format,webp":r+="?x-oss-process=image/quality,Q_80",r):void n(r):r}(this)},Array.prototype.imgWebpArray=function(e){for(var t=[],n=0;n<this.length;n++)e&&this[n][e]?this[n][e]=this[n][e].ossImg():this[n]&&(this[n]=this[n].ossImg()),t.push(this[n]);return t}}()},gJVq:function(e,t,n){},k7yg:function(e,t,n){"use strict";n.r(t);var r=n("lSNA"),o=n.n(r),a=n("yXPU"),c=n.n(a),s=n("lwsE"),i=n.n(s),u=n("W8MJ"),l=n.n(u),p=n("7W2i"),f=n.n(p),g=n("a1gu"),h=n.n(g),d=n("Nsbk"),v=n.n(d),m=n("o0o1"),y=n.n(m),b=n("q1tI"),P=n.n(b),O=n("i8i4"),w=n.n(O),k=n("TyAF"),j=(n("mPlr"),n("aFzQ")),A=n("cDf5"),E=n.n(A),R={getRule:"projectRule.query",getFrontVariable:"coop_frontVariable.query",doJoin:{uri:"join.do",method:"post"}},x=n("Wgss"),I=n("zgwS"),L=n("cj9Y"),_=n("bCyt");function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T={user_type:_.b?"0":"1",is_from_share:_.a?"0":"1"},B=function(e){var t={},n=function(n){var r=function(e){if("string"==typeof e)return{uri:e,method:"get"};if("object"===E()(e)){var t=e.uri,n=e.method,r=void 0===n?"get":n,o=e.headers,a=e.withToken,c=e.secret,s=e.secretKey,i=e.contentType;return{uri:t,method:r,headers:o,withToken:a,secret:c,secretKey:s,contentType:void 0===i?"form":i}}console.error("getRequestParams: 传参有误")}(e[n]),o=r.method,a=r.uri,s=r.headers,i=r.withToken,u=r.secret,l=r.secretKey,p=r.contentType;t[n]=c()(y.a.mark((function e(){var t,n,r,c,f,g=arguments;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=g.length>0&&void 0!==g[0]?g[0]:{},n=g.length>1?g[1]:void 0,!i){e.next=13;break}return e.prev=3,e.next=6,Object(x.a)();case 6:r=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),Object(L.a)("星速台token获取失败,***请补全该处理逻辑***"),e.abrupt("return");case 13:return c=D(D({},s),n),i&&r&&(t.token=r),t=D(D({},t),T),e.next=18,Object(I.c)(a,t,o,c,!1,u,l,p).catch((function(e){Object(L.a)((e.message||"网络异常")+" ***请补全该处理逻辑***")}));case 18:if(!(f=e.sent)){e.next=22;break}return f.success||Object(L.a)((f.message||"接口错误")+" ***请补全该处理逻辑***"),e.abrupt("return",f);case 22:case"end":return e.stop()}}),e,null,[[3,9]])})))};for(var r in e)n(r);return t}(D({},R));var M,N=Object(j.l)({ruleInfo:"",frontVariable:{},curPage:"loading",setRule:function(e){this.ruleInfo=e},changePage:function(e,t){this.curPage=e,t&&t()},initRule:function(){var e=this;return c()(y.a.mark((function t(){var n,r;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,B.getRule();case 2:n=t.sent,r=n.data,e.setRule(r);case 5:case"end":return t.stop()}}),t)})))()},getFrontVariable:function(){var e=this;return c()(y.a.mark((function t(){var n,r;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,B.getFrontVariable();case 2:n=t.sent,r=n.data,e.frontVariable=r||{};case 6:case"end":return t.stop()}}),t)})))()}}),W=(n("8TUu"),n("RIqP")),F=n.n(W),C={},J=Object(j.l)({popList:[],pushPop:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.popList.length){var r,o=this.popList.slice();o.push({key:e,data:t,isMulti:n}),o=o.sort((function(e,t){return(C[t.key]?C[t.key]:10)-(C[e.key]?C[e.key]:10)})),this.popList.clear(),(r=this.popList).push.apply(r,F()(o))}else this.popList.push({key:e,data:t,isMulti:n})},closePop:function(e){if(e){var t,n=this.popList.slice();n=n.filter((function(t){return t.key!=e})),this.popList.clear(),(t=this.popList).push.apply(t,F()(n))}else this.popList.shift()},closePopAll:function(){this.popList.clear()}});function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var q={},U=Object(k.a)(M=function(e){f()(n,e);var t=V(n);function n(e){return i()(this,n),t.call(this,e)}return l()(n,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e,t,n=Object(j.p)(J.popList);if(!n.length)return document.body.style.overflow="auto",P.a.createElement("section",null);if(n.length>1&&1==n[n.length-1].isMulti){var r=n[n.length-1];e=q[r.key],t=r.data}var o=n[0],a=q[o.key],c=o.data;return(a||e)&&(document.body.style.overflow="hidden"),P.a.createElement("section",{className:"modal-hoc-bg",style:{zIndex:J.popList.length?1e3:-1,display:J.popList.length?"block":"none"}},a&&P.a.createElement(a,{popData:c}),e&&P.a.createElement("section",{className:"modal-hoc-bg",style:{zIndex:J.popList.length?1e3:-1,display:J.popList.length?"block":"none"}},P.a.createElement(e,{popData:t})))}}]),n}(b.Component))||M,Q=(n("aCct"),n("/2d7")),X=CFG.appID,H="202."+CFG.projectId+".0.0",G=[{ele:".test-md1",data:{dpm:"".concat(X,".110.5.1"),dcm:H,domain:"//embedlog.duiba.com.cn",appId:X},once:!1}],z=n("PJYZ"),K=n.n(z),Y=(n("80eo"),n("o0Sl")),Z=n("63/5");function $(e,t,n){return new Promise((function(r){var o=e.length,a=-1,s=0,i={},u=function(){var t=c()(y.a.mark((function t(){var c,l,p;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(s>=o)){t.next=5;break}0==o&&n&&n(1),r(i),t.next=18;break;case 5:if(!(++a>=o)){t.next=8;break}return t.abrupt("return");case 8:return c=e[a],l=Z.RES_PATH+e[a],t.next=12,ee(l);case 12:(p=t.sent)||console.warn("加载异常",l),i[c]=p,s++,n&&n(s/o),u();case 18:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t=t||1;for(var l=0;l<t;l++)u()}))}function ee(e){return te.apply(this,arguments)}function te(){return(te=c()(y.a.mark((function e(t){var n;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.split(".").pop(),e.t0=!0,e.next=e.t0===/png|jpg|jpeg/.test(n)?4:e.t0===/svga/.test(n)?7:10;break;case 4:return e.next=6,ne(t);case 6:return e.abrupt("return",e.sent);case 7:return e.next=9,re(t);case 9:return e.abrupt("return",e.sent);case 10:return console.warn("非法资源",t),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ne(e){return new Promise((function(t){var n=new Image;n.onload=function(){return t(n)},n.onerror=function(n){console.warn("load",e,n),t(!1)},n.crossOrigin="Anonymous",n.src=e}))}function re(e){return new Promise((function(t){Object(Y.a)(e).then((function(e){return t(e[0])})).catch((function(n){console.warn("load",e,n),t(!1)}))}))}var oe,ae=n("lo2X");function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var se,ie=Object(k.a)(oe=function(e){f()(n,e);var t=ce(n);function n(e){var r;return i()(this,n),r=t.call(this,e),o()(K()(r),"preloadAssetInit",c()(y.a.mark((function e(){var t;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=ae.preLoadImg).length&&Array.prototype.imgWebpArray&&(t=t.imgWebpArray()),$(t,3,(function(e){return r.onLoadingProgress(e)})).then((function(){setTimeout((function(){var e=ae.asyncLoadImg;e.length&&Array.prototype.imgWebpArray&&(e=e.imgWebpArray()),$(e,1)}),5e3)}));case 3:case"end":return e.stop()}}),e)})))),o()(K()(r),"onLoadingProgress",(function(e){var t=Math.floor(100*e);r.isEvenLoad?r.setEvenProgress(t):r.setProgress(t)})),o()(K()(r),"setProgress",(function(e){r.progressBar.style.transform="translateX(".concat(e-100,"%)"),100==e&&setTimeout((function(){r.props.changePage&&N.changePage(r.props.changePage)}),500)})),o()(K()(r),"setEvenProgress",(function(e){r.intervalId&&clearInterval(r.intervalId);var t=r.curPercentage;r.intervalId=setInterval((function(){if(t>=e)return clearInterval(r.intervalId),void(100==e&&r.props.changePage&&N.changePage(r.props.changePage));t+=1,r.curPercentage=t,r.progressBar.style.transform="translateX(".concat(t-100,"%)")}),10)})),r.curPercentage=0,r.intervalId="",r.isEvenLoad=!0,r}return l()(n,[{key:"componentDidMount",value:function(){this.preloadAssetInit()}},{key:"render",value:function(){var e=this;return P.a.createElement("div",{className:"loadingDemo"},P.a.createElement("span",{className:"bg174"}),P.a.createElement("div",{className:"progressBar"},P.a.createElement("span",{className:"atBottom"}),P.a.createElement("span",{className:"loadingBg"},P.a.createElement("span",{className:"above",ref:function(t){return e.progressBar=t}}))),P.a.createElement("span",{className:"inLoad"},"加载中···"))}}]),n}(P.a.Component))||oe;n("rrVD");function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var le,pe=Object(k.a)(se=function(e){f()(n,e);var t=ue(n);function n(e){return i()(this,n),t.call(this,e)}return l()(n,[{key:"render",value:function(){return P.a.createElement("div",{className:"homeDemo"},"当前为活动首页")}}]),n}(P.a.Component))||se;function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}Object(Q.a)({show:G,click:G});var de={loading:P.a.createElement(ie,null),homePage:P.a.createElement(pe,null)},ve=Object(k.a)(le=function(e){f()(r,e);var t,n=he(r);function r(){return i()(this,r),n.apply(this,arguments)}return l()(r,[{key:"componentDidMount",value:(t=c()(y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=N.curPage;return P.a.createElement("div",null,ge(ge({},de[e]),{},{props:{changePage:"homePage"}}),P.a.createElement(U,null))}}]),r}(b.Component))||le;w.a.render(P.a.createElement(ve,null),document.getElementById("root"))},lo2X:function(e){e.exports=JSON.parse('{"preLoadImg":[],"asyncLoadImg":[]}')},mPlr:function(e,t,n){var r=n("LboF"),o=n("+2NO");"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}},rrVD:function(e,t,n){var r=n("LboF"),o=n("gJVq");"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1};r(o,a);e.exports=o.locals||{}}},[["k7yg",1,2]]]);
//# sourceMappingURL=main.38456f32.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./sparkrc.js","webpack:///./src/pages/loadingDemo/loadingDemo.less","webpack:///./src/modal/modal.less","webpack:///./src/utils/checkWebp.js","webpack:///./src/api/apicfg.js","webpack:///./src/api/index.js","webpack:///./src/store/index.js","webpack:///./src/store/modal.js","webpack:///./src/modal/modal.jsx","webpack:///./MD.js","webpack:///./src/utils/preload1.3.js","webpack:///./src/pages/loadingDemo/loadingDemo.jsx","webpack:///./src/pages/homeDemo/homeDemo.jsx","webpack:///./src/app.jsx","webpack:///./src/app.less","webpack:///./src/pages/homeDemo/homeDemo.less"],"names":["module","exports","api","content","__esModule","default","i","options","locals","urlArr","flag","lowAdr","ua","navigator","userAgent","toLowerCase","indexOf","ver","parseFloat","substr","localStorage","isWebp","img","Image","onload","width","document","getElementsByTagName","setAttribute","onerror","src","String","prototype","ossImg","getOssImg","url","split","length","this","Array","imgWebpArray","key","array","push","apiCfg","getRule","getFrontVariable","doJoin","uri","method","mergeData","user_type","newUser","is_from_share","isFromShare","API","apiList","value","headers","withToken","secret","secretKey","contentType","console","error","getRequestParams","mHeaders","a","params","getPxToken","token","Toast","mergedHeaders","callApi","e","message","result","success","generateAPI","store","makeAutoObservable","ruleInfo","frontVariable","curPage","setRule","changePage","page","callback","initRule","data","modalIndex","modalStore","popList","pushPop","isMulti","cacheList","slice","sort","b","clear","closePop","filter","obj","shift","closePopAll","cfg","Modal","observer","props","PopUpMulti","popUpMultiData","list","toJS","body","style","overflow","popObj2","popObj","PopUp","popData","className","zIndex","display","Component","appId","CFG","appID","dcm","projectId","MDList","ele","dpm","domain","once","preloadAsset","urlList","batchNum","onProgress","Promise","resolve","totalNum","assetIndex","loadedNum","loadedData","doLoad","RES_PATH","loadOneAsset","warn","index","fileType","pop","test","loadOneImg","loadOneSvga","err","crossOrigin","loadSvga","then","LoadingDemo","imageList","assetList","preLoadImg","progress","onLoadingProgress","setTimeout","asyncImageList","asyncLoadImg","percentage","Math","floor","isEvenLoad","setEvenProgress","setProgress","progressBar","transform","intervalId","clearInterval","curPercentage","setInterval","preloadAssetInit","ref","el","React","HomeDemo","MD","show","click","pageMap","loading","homePage","App","ReactDOM","render","getElementById"],"mappings":"yHAAAA,EAAOC,QAAS,CACd,WAAc,OACd,WAAc,MACd,SAAY,UACZ,MAAS,cACT,SAAY,sBACZ,UAAY,EACZ,QAAU,EACV,SAAY,GACZ,SAAY,GACZ,SAAW,uDACX,cAAiB,sDACjB,aAAgB,iE,uBCZlB,IAAIC,EAAM,EAAQ,QACFC,EAAU,EAAQ,QAIC,iBAFvBA,EAAUA,EAAQC,WAAaD,EAAQE,QAAUF,KAG/CA,EAAU,CAAC,CAACH,EAAOM,EAAIH,EAAS,MAG9C,IAAII,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEPL,EAAIC,EAASI,GAI1BP,EAAOC,QAAUE,EAAQK,QAAU,I,uBClBnC,IAAIN,EAAM,EAAQ,QACFC,EAAU,EAAQ,QAIC,iBAFvBA,EAAUA,EAAQC,WAAaD,EAAQE,QAAUF,KAG/CA,EAAU,CAAC,CAACH,EAAOM,EAAIH,EAAS,MAG9C,IAAII,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEPL,EAAIC,EAASI,GAI1BP,EAAOC,QAAUE,EAAQK,QAAU,I,kECVnC,WACE,IAAIC,EAAS,GACTC,GAAO,EACTC,GAAS,EACLC,EAAKC,UAAUC,UAAUC,cAE/B,GADkBH,EAAGI,QAAQ,YAAc,GAAKJ,EAAGI,QAAQ,QAAU,EACtD,CACb,IAAMC,EAAMC,WAAWN,EAAGO,OAAOP,EAAGI,QAAQ,WAAa,EAAG,IAC5DL,EAASM,EAAM,IAKjB,GAHIN,GAAUS,qBACLA,aAAaC,OAElBD,eAAiBA,aAAaC,OAAQ,CACxC,IAAMC,EAAM,IAAIC,MAChBD,EAAIE,OAAS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E,sCACOwG,GAAQxG,IADf,IACyByB,MAAO,CAACvB,WAAY,cAC3C,kBAAC,EAAD,W,GAVUsC,e,GAgBlBoE,IAASC,OAAO,kBAAC,GAAD,MAAStK,SAASuK,eAAe,U,mGCnCjD,IAAI/L,EAAM,EAAQ,QACFC,EAAU,EAAQ,QAIC,iBAFvBA,EAAUA,EAAQC,WAAaD,EAAQE,QAAUF,KAG/CA,EAAU,CAAC,CAACH,EAAOM,EAAIH,EAAS,MAG9C,IAAII,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEPL,EAAIC,EAASI,GAI1BP,EAAOC,QAAUE,EAAQK,QAAU,I,qBClBnC,IAAIN,EAAM,EAAQ,QACFC,EAAU,EAAQ,QAIC,iBAFvBA,EAAUA,EAAQC,WAAaD,EAAQE,QAAUF,KAG/CA,EAAU,CAAC,CAACH,EAAOM,EAAIH,EAAS,MAG9C,IAAII,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEPL,EAAIC,EAASI,GAI1BP,EAAOC,QAAUE,EAAQK,QAAU,K","file":"js/main.38456f32.js","sourcesContent":["module.exports ={\n \"OUTPUT_DIR\": \"dist\",\n \"SOURCE_DIR\": \"src\",\n \"TEMP_DIR\": \"./.temp\",\n \"ENTRY\": \"src/app.jsx\",\n \"TEMPLATE\": \"./public/index.html\",\n \"API_MOCK\": true,\n \"PX2REM\": true,\n \"IMAGE_Q1\": 0.6,\n \"IMAGE_Q2\": 0.8,\n \"RES_PATH\":\"//yun.duiba.com.cn/spark/v2/temp_base/1651112884768/\",\n \"RES_PATH_PROD\": \"//yun.duiba.com.cn/spark/v2/temp_base/1651112884768\",\n \"JS_PATH_PROD\": \"https://yun.duiba.com.cn/spark/v2/temp_base/1651112891659/js\"\n}","var api = require(\"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n var content = require(\"!!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--4-1!../../../node_modules/css-loader/dist/cjs.js??ref--4-2!../../../node_modules/postcss-loader/src/index.js??ref--4-3!../../../node_modules/less-loader/dist/cjs.js??ref--4-4!./loadingDemo.less\");\n\n content = content.__esModule ? content.default : content;\n\n if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};","var api = require(\"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n var content = require(\"!!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--4-1!../../node_modules/css-loader/dist/cjs.js??ref--4-2!../../node_modules/postcss-loader/src/index.js??ref--4-3!../../node_modules/less-loader/dist/cjs.js??ref--4-4!./modal.less\");\n\n content = content.__esModule ? content.default : content;\n\n if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};","/**\n * 检查是否支持.webp 格式图片\n *\n * 支持 webp CDN ?x-oss-process=image/format,webp\n * 不支持 CDN ?x-oss-process=image/quality,Q_80\n */\n\n\n(function () {\n let urlArr = []\n let flag = false,\n lowAdr = false\n const ua = navigator.userAgent.toLowerCase()\n const isAndroid = ua.indexOf('android') > -1 || ua.indexOf('adr') > -1\n if (isAndroid) {\n const ver = parseFloat(ua.substr(ua.indexOf('android') + 8, 3))\n lowAdr = ver < 4.4\n }\n if (lowAdr && localStorage) {\n delete localStorage.isWebp\n }\n if (localStorage && !localStorage.isWebp) {\n const img = new Image()\n img.onload = function () {\n if (img.width === 1 && !lowAdr) {\n localStorage.isWebp = true\n document.getElementsByTagName('html')[0].setAttribute('duiba-webp', 'true')\n } else {\n localStorage.isWebp = ''\n }\n }\n img.onerror = function () {\n flag = true\n localStorage.isWebp = ''\n }\n img.src = 'data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA='\n }\n\n function getOssImg (url) {\n if (!url) {\n return url\n }\n if (!flag && localStorage && (typeof localStorage.isWebp === 'undefined')) {\n getOssImg(url)\n } else {\n // gif 的图片不做处理\n urlArr = url.split('.')\n if (urlArr.length > 0 && urlArr[urlArr.length - 1] === 'gif') {\n return url + ''\n }\n if (localStorage && localStorage.isWebp) {\n url = url + '?x-oss-process=image/format,webp'\n } else {\n url = url + '?x-oss-process=image/quality,Q_80'\n }\n return url\n }\n }\n String.prototype.ossImg = function () {\n return getOssImg(this)\n }\n Array.prototype.imgWebpArray = function (key) {\n const array = []\n const list = this\n for (let i = 0; i < list.length; i++) {\n if (key && list[i][key]) {\n list[i][key] = list[i][key].ossImg()\n }else if(list[i]){\n list[i] = list[i].ossImg()\n }\n array.push(list[i])\n }\n return array\n }\n})()\n","\nconst apiCfg = {\n getRule:`projectRule.query`,\n getFrontVariable:`coop_frontVariable.query`,\n doJoin: {\n uri: `join.do`,\n method: \"post\"\n },\n}\n\nexport default apiCfg;\n","import apiCfg from './apicfg';\nimport {getPxToken} from \"@spark/projectx\";\nimport {callApi} from '@spark/api-base'\nimport {Toast} from '@spark/ui'\n\nimport {isFromShare, newUser} from 'duiba-utils';\n\nconst mergeData = {\n\tuser_type: newUser ? '0' : '1',\n\tis_from_share: isFromShare ? '0' : '1',\n}\n\nconst apiList = {\n\t...apiCfg\n}\n\n\nconst API = generateAPI(apiList);\nexport default API;\n\nfunction getRequestParams(value) {\n\tif (typeof value === 'string') {\n\t\treturn {\n\t\t\turi: value,\n\t\t\tmethod: 'get'\n\t\t}\n\t} else if (typeof value === 'object') {\n\t\tconst {uri, method = 'get', headers, withToken, secret, secretKey, contentType = 'form'} = value;\n\t\treturn {\n\t\t\turi,\n\t\t\tmethod,\n\t\t\theaders,\n\t\t\twithToken,\n\t\t\tsecret,\n\t\t\tsecretKey,\n\t\t\tcontentType,\n\t\t}\n\t} else {\n\t\tconsole.error('getRequestParams: 传参有误');\n\t}\n}\n\n\nfunction generateAPI(apiList) {\n\tconst api = {};\n\tfor (const key in apiList) {\n\t\tconst value = apiList[key];\n\n\t\tconst {method, uri, headers: mHeaders, withToken, secret, secretKey, contentType} = getRequestParams(value);\n\t\tapi[key] = async (params = {}, headers) => {\n\t\t\tlet token;\n\t\t\tif (withToken) {\n\t\t\t\ttry {\n\t\t\t\t\ttoken = await getPxToken();\n\t\t\t\t} catch (e) {\n\t\t\t\t\tToast('星速台token获取失败,***请补全该处理逻辑***');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst mergedHeaders = {...mHeaders, ...headers}\n\t\t\tif (withToken && token) {\n\t\t\t\tparams.token = token;\n\t\t\t}\n\n\t\t\tparams = {...params, ...mergeData};\n\n\t\t\tconst result = await callApi(uri, params, method, mergedHeaders, false, secret, secretKey, contentType)\n\t\t\t\t.catch(e => {\n\t\t\t\t\t//捕获网络异常\n\t\t\t\t\tToast((e.message || '网络异常') + ' ***请补全该处理逻辑***');\n\t\t\t\t});\n\t\t\tif (result) {\n\t\t\t\t//判断接口错误\n\t\t\t\tif (!result.success) {\n\t\t\t\t\tToast((result.message || '接口错误') + ' ***请补全该处理逻辑***');\n\t\t\t\t}\n\t\t\t\t//返回整个结果\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn api;\n}\n","import { makeAutoObservable } from 'mobx';\nimport API from '../api/index';\n\nconst store = makeAutoObservable({\n ruleInfo: '',\n frontVariable: {}, //前端开发配置\n curPage: 'loading',\n setRule(ruleInfo) {\n this.ruleInfo = ruleInfo\n },\n changePage(page, callback) {\n this.curPage = page;\n callback && callback();\n },\n async initRule() {\n // 模拟获取远程的数据\n const { data } = await API.getRule();\n this.setRule(data)\n },\n async getFrontVariable() {\n // 获取前端开发配置\n const { data } = await API.getFrontVariable();\n this.frontVariable = data || {};\n console.log('前端开发配置', data)\n }\n})\nexport default store; ","import { makeAutoObservable } from 'mobx';\n\n//此处配置页面的优先级,越大优先级越高\n// PopIndex:11\nconst modalIndex = {\n\n}\n\nconst modalStore = makeAutoObservable({\n popList: [],\n /**\n * \n * @param {*} key 弹窗名,一般是类名的字符串\n * @param {*} data 需要传递的数据,弹窗中使用 const {popData} = props; 获取\n * @param {*} isMulti 是否是二级弹窗,在不关闭已有弹窗的基础上,弹出当前弹窗。注意,如果是二级弹窗,关闭时必须传key\n */\n pushPop(key, data,isMulti=false) {\n if (this.popList.length) {\n let cacheList = this.popList.slice();\n cacheList.push({ key, data,isMulti });\n cacheList = cacheList.sort((a, b) => ((modalIndex[b.key] ? modalIndex[b.key] : 10) - (modalIndex[a.key] ? modalIndex[a.key] : 10)))\n this.popList.clear();\n this.popList.push(...cacheList);\n } else {\n this.popList.push({ key, data,isMulti });\n }\n // console.log(\"this.popList:::\",toJS(this.popList));\n },\n closePop(key) {\n if (key) {\n let cacheList = this.popList.slice();\n cacheList = cacheList.filter(obj => (obj.key != key));\n this.popList.clear();\n this.popList.push(...cacheList);\n } else {\n this.popList.shift();\n }\n },\n closePopAll() {\n this.popList.clear();\n }\n\n});\nexport default modalStore;\n","import React, { Component } from \"react\";\n\nimport './modal.less';\nimport { observer } from 'mobx-react';\nimport modalStore from '../store/modal';\nimport { toJS } from 'mobx';\nexport const cfg = {\n \n};\n\n@observer\nclass Modal extends Component {\n constructor(props) {\n super(props);\n }\n\n componentDidMount() { }\n\n render() {\n const list = toJS(modalStore.popList);\n \n if (!list.length) {\n //TODO:此处根据需要自行修改\n document.body.style.overflow='auto';\n return <section></section>;\n }\n let PopUpMulti, popUpMultiData;\n\n if (list.length > 1 && list[list.length - 1].isMulti == true) {\n const popObj2 = list[list.length - 1];\n PopUpMulti = cfg[popObj2.key];\n popUpMultiData = popObj2.data;\n\n }\n const popObj = list[0];\n const PopUp = cfg[popObj.key];\n const popData = popObj.data;\n\n if (PopUp || PopUpMulti) {\n document.body.style.overflow='hidden';\n } \n\n return <section className=\"modal-hoc-bg\" style={{\n zIndex: modalStore.popList.length ? 1000 : -1,\n display: modalStore.popList.length ? 'block' : 'none'\n }}>\n {PopUp && <PopUp popData={popData} />}\n {PopUpMulti && <section className=\"modal-hoc-bg\" style={{\n zIndex: modalStore.popList.length ? 1000 : -1,\n display: modalStore.popList.length ? 'block' : 'none'\n }}><PopUpMulti popData={popUpMultiData} />\n </section>}\n </section>;\n }\n\n}\n\nexport default Modal;","import MD from 'spark-utils/out/md/index.js';\n\nlet appId = CFG.appID;\nconst dcm = '202.' + CFG.projectId + '.0.0';\nconst domain = '//embedlog.duiba.com.cn';\n\nlet MDList = [\n {\n ele: `.test-md1`,\n data: {\n dpm: `${appId}.110.5.1`,\n dcm,\n domain,\n appId\n },\n once: false\n }\n];\n\nexport default () =>\n MD({\n show: MDList, // 曝光\n click: MDList // 点击\n });\n","import { loadSvga } from '@spark/svgaplayer'\n// import * as FYGE from 'fyge';\n// import { Howl } from 'howler';\nimport { RES_PATH } from '../../sparkrc'\n\n/**\n * 预加载资源(/png|jpg|jpeg|svga|spi|json|mp3|wav/)\n * @param {string[]} urlList 资源地址列表\n * @param {number} batchNum 每批并行加载的资源个数(一般来说该数字越大整体加载速度越快,但加载前期会更卡顿)\n * @param {Function} [onProgress] 加载进度回调,每加载完一个资源回调一次,入参为进度值(0,1]\n * @returns {Promise} 返回一个只会resolve(loadedData)的promise,loadedData保存了所有预加载好的资源,可通过相对路径索引\n * @example \n * //例\n * const loadedData = await PreloadAsset(urlList, 10, onProgress);\n * const image = loadedData['image/fish.png'];\n * const svgaData = loadedData['svga/fish.svga'];\n * const spiData = loadedData['spine/fish.spi'];\n * const lottieData = loadedData['lottie/fish.json'];\n */\nexport function preloadAsset(urlList, batchNum, onProgress) {\n return new Promise((resolve) => {\n /** 要加载资源总数 */\n const totalNum = urlList.length;\n /** 要加载的资源索引 */\n let assetIndex = -1;\n /** 已加载完毕的资源个数 */\n let loadedNum = 0;\n /** 存放加载好的数据,用地址索引 */\n const loadedData = {};\n /** 加载逻辑 */\n const doLoad = async () => {\n if (loadedNum >= totalNum) {\n totalNum == 0 && onProgress && onProgress(1); //无加载资源时,即为假loading\n resolve(loadedData); // 加载完毕\n } else {\n assetIndex++;\n if (assetIndex >= totalNum) return\n const key = urlList[assetIndex];\n const url = RES_PATH + urlList[assetIndex];\n const result = await loadOneAsset(url);\n if (!result) {\n console.warn('加载异常', url);\n }\n loadedData[key] = result;\n loadedNum++;\n onProgress && onProgress(loadedNum / totalNum);\n doLoad();\n }\n }\n batchNum = batchNum || 1;\n for (let index = 0; index < batchNum; index++) {\n doLoad();\n }\n })\n}\n\n/**\n * 加载一个资源\n * @param {string} url 地址\n */\nasync function loadOneAsset(url) {\n const fileType = url.split('.').pop();\n switch (true) {\n case (/png|jpg|jpeg/).test(fileType):\n return await loadOneImg(url);\n case (/svga/).test(fileType):\n return await loadOneSvga(url);\n // case (/spi/).test(fileType):\n // return await loadOneSpi(url);\n // case (/json/).test(fileType):\n // return await loadOneJson(url);\n // case (/mp3|wav/).test(fileType):\n // return await loadOneAudio(url);\n default:\n console.warn('非法资源', url);\n return false;\n }\n}\n\n/**\n * 加载一张图片\n * @param {string} url 地址\n */\nfunction loadOneImg(url) {\n return new Promise(resolve => {\n const img = new Image();\n img.onload = () => resolve(img);\n img.onerror = err => {\n console.warn('load', url, err);\n resolve(false)\n };\n img.crossOrigin = 'Anonymous'\n img.src = url;\n })\n}\n\n/**\n * 加载一个svga\n * @param {string} url 地址\n */\nfunction loadOneSvga(url) {\n return new Promise(resolve => {\n loadSvga(url).then((data) => resolve(data[0])).catch(err => {\n console.warn('load', url, err);\n resolve(false)\n });\n })\n}\n\n// /**\n// * 加载一个spine\n// * @param {string} url 地址\n// */\n// function loadOneSpi(url) {\n// return new Promise(resolve => {\n// FYGE.loadSpine(url, spineData => {\n// resolve(spineData);\n// }, err => {\n// console.warn('load', url, err);\n// resolve(false);\n// })\n// })\n// }\n\n// /**\n// * 加载一个Json\n// * @param {string} url 地址\n// */\n// function loadOneJson(url) {\n// return new Promise(resolve => {\n// FYGE.GlobalLoader.loadJson((result, res) => {\n// if (result) {\n// resolve(res);\n// } else {\n// console.warn('load fail', url);\n// resolve(false);\n// }\n// }, url)\n// })\n// }\n\n// /**\n// * 加载一个音频\n// * @param {string} url 地址\n// */\n// function loadOneAudio(url) {\n// return new Promise(resolve => {\n// const sound = new Howl({\n// src: url,\n// onload: () => resolve(sound),\n// onloaderror: err => {\n// console.warn('load fail', url, err);\n// resolve(false);\n// },\n// });\n// })\n// }\n\n\n\n","\"use strict\";\n\nimport React from \"react\";\nimport { observer } from \"mobx-react\";\nimport store from \"../../store/index\";\nimport \"./loadingDemo.less\";\nimport { preloadAsset } from \"@src/utils/preload1.3.js\";\nimport assetList from '@src/assetList.json';\n@observer\nclass LoadingDemo extends React.Component {\n constructor(props) {\n super(props);\n this.curPercentage = 0;\n this.intervalId = \"\";\n this.isEvenLoad = true; //是否匀速加载进度条\n }\n componentDidMount() {\n this.preloadAssetInit();\n }\n preloadAssetInit = async() => {\n let imageList = assetList.preLoadImg;\n if(imageList.length && Array.prototype.imgWebpArray){\n imageList = imageList.imgWebpArray()\n }\n preloadAsset(imageList, 3, (progress) => this.onLoadingProgress(progress)).then(()=>{\n //预加载资源完成\n setTimeout(() => {\n //异步加载资源开始\n let asyncImageList = assetList.asyncLoadImg;\n if(asyncImageList.length && Array.prototype.imgWebpArray){\n asyncImageList = asyncImageList.imgWebpArray()\n }\n preloadAsset(asyncImageList, 1)\n }, 5000);\n });\n }\n /**\n * 资源加载进度回调\n * @param {*} index\n * @param {*} progress\n */\n onLoadingProgress = (progress) => {\n const percentage = Math.floor(progress * 100);\n console.log('progress', percentage);\n if(this.isEvenLoad){ \n this.setEvenProgress(percentage);\n }else{\n this.setProgress(percentage)\n }\n \n };\n /**\n * 非匀速加载进度\n * @param {*} percentage\n */\n setProgress = (percentage) => {\n this.progressBar.style.transform = `translateX(${percentage - 100}%)`;\n if(percentage == 100){\n setTimeout(()=>{\n this.props.changePage && store.changePage(this.props.changePage); //跳转页面\n }, 500)\n }\n };\n\n /**\n * 以1%匀速加载进度\n * @param {*} percentage\n */\n setEvenProgress = (percentage) => {\n this.intervalId && clearInterval(this.intervalId);\n let curPercentage = this.curPercentage;\n this.intervalId = setInterval(() => {\n if (curPercentage >= percentage) {\n clearInterval(this.intervalId);\n percentage == 100 && this.props.changePage && store.changePage(this.props.changePage); //跳转页面\n return;\n }\n curPercentage += 1;\n this.curPercentage = curPercentage;\n this.progressBar.style.transform = `translateX(${curPercentage - 100}%)`;\n }, 10);\n };\n\n render() {\n return (\n <div className=\"loadingDemo\">\n <span className=\"bg174\"></span>\n <div className=\"progressBar\">\n <span className=\"atBottom\"></span>\n <span className=\"loadingBg\">\n <span\n className=\"above\"\n ref={(el) => (this.progressBar = el)}\n ></span>\n </span>\n </div>\n <span className=\"inLoad\">加载中···</span>\n </div>\n );\n }\n}\n\nexport default LoadingDemo;\n","'use strict';\n\nimport React from 'react';\nimport { observer } from 'mobx-react';\nimport './homeDemo.less';\n\n@observer\nclass HomeDemo extends React.Component {\n constructor(props) {\n super(props);\n }\n render() {\n return (\n <div className=\"homeDemo\">\n 当前为活动首页\n </div>\n );\n }\n}\n\nexport default HomeDemo;\n","import React, { Component } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport {observer} from 'mobx-react';\nimport \"./app.less\";\nimport store from './store/index';\nimport Modal from './modal/modal';\nimport './utils/checkWebp'\nimport MD from '../MD';\nMD();\n\n//此处为spark-cli动态生成\nimport LoadingDemo from \"@src/pages/loadingDemo/loadingDemo\";\nimport HomeDemo from \"@src/pages/homeDemo/homeDemo\";\n\nconst pageMap = {\n loading: <LoadingDemo />,\n homePage: <HomeDemo/>,\n}\n@observer\nclass App extends Component {\n async componentDidMount(){\n //获取前端开发配置,依据项目需要,酌情添加 !!!\n // await store.getFrontVariable(); \n }\n render() {\n const { curPage } = store;\n return (\n <div>\n {{...pageMap[curPage], props: {changePage: 'homePage'}}}\n <Modal />\n </div>\n );\n }\n}\n\nReactDOM.render(<App />, document.getElementById(\"root\"));\n","var api = require(\"!../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n var content = require(\"!!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--4-1!../node_modules/css-loader/dist/cjs.js??ref--4-2!../node_modules/postcss-loader/src/index.js??ref--4-3!../node_modules/less-loader/dist/cjs.js??ref--4-4!./app.less\");\n\n content = content.__esModule ? content.default : content;\n\n if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};","var api = require(\"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n var content = require(\"!!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--4-1!../../../node_modules/css-loader/dist/cjs.js??ref--4-2!../../../node_modules/postcss-loader/src/index.js??ref--4-3!../../../node_modules/less-loader/dist/cjs.js??ref--4-4!./homeDemo.less\");\n\n content = content.__esModule ? content.default : content;\n\n if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,l=r[0],i=r[1],p=r[2],c=0,s=[];c<l.length;c++)a=l[c],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,l=1;l<t.length;l++){var i=t[l];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="//yun.duiba.com.cn/spark/v2/temp_base/1651112891659/";var l=window.webpackJsonp=window.webpackJsonp||[],i=l.push.bind(l);l.push=r,l=l.slice();for(var p=0;p<l.length;p++)r(l[p]);var f=i;t()}([]);
//# sourceMappingURL=runtime-main.93b7d9da.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAEx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T,EAAS,aAAc,CAAEe,OAAO,KAQvDnB,EAAoBoB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQnB,EAAoBmB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKzC,OAAO0C,OAAO,MAGvB,GAFAxB,EAAoBgB,EAAEO,GACtBzC,OAAO+B,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOnB,EAAoBS,EAAEc,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRvB,EAAoB2B,EAAI,SAAStB,GAChC,IAAIM,EAASN,GAAUA,EAAOiB,WAC7B,WAAwB,OAAOjB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAL,EAAoBS,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRX,EAAoBY,EAAI,SAASgB,EAAQC,GAAY,OAAO/C,OAAOC,UAAUC,eAAeC,KAAK2C,EAAQC,IAGzG7B,EAAoB8B,EAAI,uDAExB,IAAIC,EAAaC,OAAqB,aAAIA,OAAqB,cAAK,GAChEC,EAAmBF,EAAW5C,KAAKuC,KAAKK,GAC5CA,EAAW5C,KAAOf,EAClB2D,EAAaA,EAAWG,QACxB,IAAI,IAAIvD,EAAI,EAAGA,EAAIoD,EAAWlD,OAAQF,IAAKP,EAAqB2D,EAAWpD,IAC3E,IAAIU,EAAsB4C,EAI1BxC,I","file":"js/runtime-main.93b7d9da.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"//yun.duiba.com.cn/spark/v2/temp_base/1651112891659/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
*{margin:0;padding:0}body,html{font-size:.24rem;width:100%;height:100%;-webkit-text-size-adjust:100%!important;-ms-text-size-adjust:100%!important;text-size-adjust:100%!important;-moz-text-size-adjust:100%!important}.modal-hoc-bg{position:fixed;top:0;bottom:0;right:0;left:0;background-color:rgba(0,0,0,.8);z-index:1000}.loadingDemo{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.loadingDemo,.loadingDemo .bg174{width:7.5rem;height:16.24rem;left:0;position:absolute}.loadingDemo .bg174{top:0;background:url(//yun.duiba.com.cn/spark/v2/temp_base/1651112884768/loadingDemo/%E8%83%8C%E6%99%AF.jpg) no-repeat 0 0/100% 100%}[duiba-webp=true] .loadingDemo .bg174{background:url(//yun.duiba.com.cn/spark/v2/temp_base/1651112884768/loadingDemo/%E8%83%8C%E6%99%AF.jpg?x-oss-process=image%2Fformat%2Cwebp) no-repeat 0 0/100% 100%}.loadingDemo .progressBar{width:5.24rem;height:.22rem;left:1.13rem;top:7.17rem;position:absolute;overflow:hidden;border-radius:.06rem}.loadingDemo .progressBar .atBottom{width:5.24rem;height:.22rem;left:0;top:0;position:absolute;background:url(//yun.duiba.com.cn/spark/v2/temp_base/1651112884768/loadingDemo/%E5%BA%95%E9%83%A8173.png) no-repeat 0 0/100% 100%}[duiba-webp=true] .loadingDemo .progressBar .atBottom{background:url(//yun.duiba.com.cn/spark/v2/temp_base/1651112884768/loadingDemo/%E5%BA%95%E9%83%A8173.png?x-oss-process=image%2Fformat%2Cwebp) no-repeat 0 0/100% 100%}.loadingDemo .progressBar .loadingBg{width:5.16rem;height:.14rem;left:.05rem;top:.04rem;overflow:hidden;position:absolute;border-radius:.06rem}.loadingDemo .progressBar .above{display:block;position:relative;width:5.16rem;height:.14rem;background:url(//yun.duiba.com.cn/spark/v2/temp_base/1651112884768/loadingDemo/%E4%B8%8A%E9%9D%A2.png) no-repeat 0 0/100% 100%;border-radius:.06rem}[duiba-webp=true] .loadingDemo .progressBar .above{background:url(//yun.duiba.com.cn/spark/v2/temp_base/1651112884768/loadingDemo/%E4%B8%8A%E9%9D%A2.png?x-oss-process=image%2Fformat%2Cwebp) no-repeat 0 0/100% 100%}.loadingDemo .inLoad{width:1.17rem;height:.23rem;left:3.22rem;top:7.58rem;position:absolute;font-size:.24rem;line-height:.23rem;color:#fff}@-webkit-keyframes loading{0%{-webkit-transform:translateX(-5.2rem);transform:translateX(-5.2rem)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes loading{0%{-webkit-transform:translateX(-5.2rem);transform:translateX(-5.2rem)}to{-webkit-transform:translateX(0);transform:translateX(0)}}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -10,11 +10,11 @@ MD();
//此处为spark-cli动态生成
import LoadingDemo from "@src/pages/loadingDemo/loadingDemo";
import HomeDemo from "@src/pages/homeDemo/homeDemo";
import HomePage from './pages/homePage/homePage'
const pageMap = {
loading: <LoadingDemo />,
homePage: <HomeDemo/>,
homePage: <HomePage/>,
}
@observer
class App extends Component {
......
{"preLoadImg":[],"asyncLoadImg":[]}
\ No newline at end of file
{"preLoadImg":[],"asyncLoadImg":["图-白天/IP口味王色系.png","图-白天/周二.png","图-白天/活动规则.png","图-白天/签到区.png","图-白天/组8292.png"]}
\ No newline at end of file
import React, { Component } from "react";
import './modal.less';
import { observer } from 'mobx-react';
import modalStore from '../store/modal';
import { toJS } from 'mobx';
export const cfg = {
};
export const cfg = {};
@observer
class Modal extends Component {
......@@ -14,30 +11,31 @@ class Modal extends Component {
super(props);
}
componentDidMount() { }
componentDidMount() {}
render() {
const list = toJS(modalStore.popList);
if (!list.length) {
//TODO:此处根据需要自行修改
document.body.style.overflow='auto';
document.body.style.overflow = 'auto';
return <section></section>;
}
let PopUpMulti, popUpMultiData;
if (list.length > 1 && list[list.length - 1].isMulti == true) {
const popObj2 = list[list.length - 1];
PopUpMulti = cfg[popObj2.key];
popUpMultiData = popObj2.data;
}
const popObj = list[0];
const PopUp = cfg[popObj.key];
const popData = popObj.data;
if (PopUp || PopUpMulti) {
document.body.style.overflow='hidden';
document.body.style.overflow = 'hidden';
}
return <section className="modal-hoc-bg" style={{
......
'use strict';
import React from 'react';
import { observer } from 'mobx-react';
import './homeDemo.less';
@observer
class HomeDemo extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="homeDemo">
当前为活动首页
</div>
);
}
}
export default HomeDemo;
@import "../../res.less";
.homeDemo {}
'use strict';
import React from 'react';
import { RES_PATH } from '../../../sparkrc.js';
import { observer } from 'mobx-react';
import store from '../../store/index';
import modalStore from '@src/store/modal';
import API from '../../api';
import './homePage.less';
@observer
class HomePage extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="homePage">
<span className="group8292"></span>
<span className="ipTasteKingColorSystem"></span>
<span className="checkinArea"></span>
<span className="tuesday"></span>
<span className="activityRules"></span>
</div>
);
}
}
export default HomePage;
@import "../../res.less";
.homePage {
width: 750px;
height: 1240px;
left: 0px;
top: 0px;
position: absolute;
.group8292 {
width: 750px;
height: 1240px;
left: 0px;
top: 0px;
position: absolute;
.sparkBg("图-白天/组8292.png");
}
.ipTasteKingColorSystem {
width: 192px;
height: 221px;
left: 527px;
top: 223px;
position: absolute;
.sparkBg("图-白天/IP口味王色系.png");
}
.checkinArea {
width: 697px;
height: 218px;
left: 27px;
top: 363px;
position: absolute;
.sparkBg("图-白天/签到区.png");
}
.tuesday {
width: 515px;
height: 93px;
left: 0px;
top: 258px;
position: absolute;
.sparkBg("图-白天/周二.png");
}
.activityRules {
width: 102px;
height: 31px;
left: 648px;
top: 240px;
position: absolute;
.sparkBg("图-白天/活动规则.png");
}
}
import { makeAutoObservable } from 'mobx';
import API from '../api/index';
const store = makeAutoObservable({
ruleInfo: '',
frontVariable: {}, //前端开发配置
frontVariable: {},
//前端开发配置
curPage: 'loading',
setRule(ruleInfo) {
this.ruleInfo = ruleInfo
this.ruleInfo = ruleInfo;
},
changePage(page, callback) {
this.curPage = page;
......@@ -15,13 +15,13 @@ const store = makeAutoObservable({
async initRule() {
// 模拟获取远程的数据
const { data } = await API.getRule();
this.setRule(data)
this.setRule(data);
},
async getFrontVariable() {
// 获取前端开发配置
const { data } = await API.getFrontVariable();
this.frontVariable = data || {};
console.log('前端开发配置', data)
}
})
console.log('前端开发配置', data);
},
});
export default store;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment