Commit 91a52baa by 闻闻闻

'H5更新'

1 parent 0192bd05
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, user-scalable=no"> <title>linke-wechat</title></head><body> <div class="container"> <img src='' class='posterImg'/> <div class="footerLink"> <div class="sharePic" >分享图片</div> <div class="myTaskDetail">我的邀请任务进度</div> </div> </div><script src="././js/index.js?93bedc8d31ed89583e59"></script><script src="././js/common.js?93bedc8d31ed89583e59"></script></body></html>
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, user-scalable=no"> <title>linke-wechat</title></head><body> <div class="container"> <img src='' class='posterImg'/> <div class="footerLink"> <div class="sharePic" >分享图片</div> <div class="myTaskDetail">我的邀请任务进度</div> </div> </div><script src="././js/index.js?6d4cb2ff1751cd278db1"></script><script src="././js/common.js?6d4cb2ff1751cd278db1"></script></body></html>
\ No newline at end of file \ No newline at end of file
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(x[e]&&b[e]){for(var n in b[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(p[n]=t[n]);0==--m&&0===v&&E()}}(e,n),t&&t(e,n)};var n,r=!0,o="93bedc8d31ed89583e59",i={},a=[],s=[];function u(e){var t=D[e];if(!t)return A;function r(r){return t.hot.active?(D[r]?-1===D[r].parents.indexOf(e)&&D[r].parents.push(e):(a=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),a=[]),A(r)}for(var o in A)Object.prototype.hasOwnProperty.call(A,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(r,o,function(e){return{configurable:!0,enumerable:!0,get:function(){return A[e]},set:function(t){A[e]=t}}}(o));return r.e=function(e){return"ready"===l&&f("prepare"),v++,A.e(e).then(t,(function(e){throw t(),e}));function t(){v--,"prepare"===l&&(y[e]||C(e),0===v&&0===m&&E())}},r.t=function(e,t){return 1&t&&(e=r(e)),A.t(e,-2&t)},r}var c=[],l="idle";function f(e){l=e;for(var t=0;t<c.length;t++)c[t].call(null,e)}var d,p,h,g,m=0,v=0,y={},b={},x={};function w(e){return+e+""===e?+e:e}function T(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return r=e,f("check"),t=(t=1e4)||1e4,new Promise((function(e,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=A.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=t,r.send(null)}catch(e){return n(e)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)e();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var t=JSON.parse(r.responseText)}catch(t){return void n(t)}e(t)}}})).then((function(e){return e?(b={},y={},x=e.c,h=e.h,f("prepare"),e=new Promise((function(e,t){d={resolve:e,reject:t}})),p={},C(2),"prepare"===l&&0===v&&0===m&&E(),e):(f(S()?"ready":"idle"),null)}));var t}function C(e){var t,n;x[e]?(b[e]=!0,m++,t=e,(n=document.createElement("script")).charset="utf-8",n.src=A.p+""+t+"."+o+".hot-update.js",document.head.appendChild(n)):y[e]=!0}function E(){f("ready");var e=d;if(d=null,e)if(r)Promise.resolve().then((function(){return j(r)})).then((function(t){e.resolve(t)}),(function(t){e.reject(t)}));else{var t,n=[];for(t in p)Object.prototype.hasOwnProperty.call(p,t)&&n.push(w(t));e.resolve(n)}}function j(t){if("ready"!==l)throw new Error("apply() is only allowed in ready status");return function t(r){var s,u,c,l;function d(e){for(var t=[e],n={},r=t.map((function(e){return{chain:[e],id:e}}));0<r.length;){var o=r.pop(),i=o.id,a=o.chain;if((l=D[i])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:i};for(var s=0;s<l.parents.length;s++){var u=l.parents[s],c=D[u];if(c){if(c.hot._declinedDependencies[i])return{type:"declined",chain:a.concat([u]),moduleId:i,parentId:u};-1===t.indexOf(u)&&(c.hot._acceptedDependencies[i]?(n[u]||(n[u]=[]),m(n[u],[i])):(delete n[u],t.push(u),r.push({chain:a.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];-1===e.indexOf(r)&&e.push(r)}}S();var v={},y=[],b={},T=function(){console.warn("[HMR] unexpected require("+E.moduleId+") to disposed module")};for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var E;q=w(C);var j=!1,k=!1,N=!1,O="";switch((E=p[C]?d(q):{type:"disposed",moduleId:C}).chain&&(O="\nUpdate propagation: "+E.chain.join(" -> ")),E.type){case"self-declined":r.onDeclined&&r.onDeclined(E),r.ignoreDeclined||(j=new Error("Aborted because of self decline: "+E.moduleId+O));break;case"declined":r.onDeclined&&r.onDeclined(E),r.ignoreDeclined||(j=new Error("Aborted because of declined dependency: "+E.moduleId+" in "+E.parentId+O));break;case"unaccepted":r.onUnaccepted&&r.onUnaccepted(E),r.ignoreUnaccepted||(j=new Error("Aborted because "+q+" is not accepted"+O));break;case"accepted":r.onAccepted&&r.onAccepted(E),k=!0;break;case"disposed":r.onDisposed&&r.onDisposed(E),N=!0;break;default:throw new Error("Unexception type "+E.type)}if(j)return f("abort"),Promise.reject(j);if(k)for(var q in b[q]=p[q],m(y,E.outdatedModules),E.outdatedDependencies)Object.prototype.hasOwnProperty.call(E.outdatedDependencies,q)&&(v[q]||(v[q]=[]),m(v[q],E.outdatedDependencies[q]));N&&(m(y,[E.moduleId]),b[q]=T)}var L,H=[];for(u=0;u<y.length;u++)q=y[u],D[q]&&D[q].hot._selfAccepted&&b[q]!==T&&!D[q].hot._selfInvalidated&&H.push({module:q,parents:D[q].parents.slice(),errorHandler:D[q].hot._selfAccepted});f("dispose"),Object.keys(x).forEach((function(e){!1===x[e]&&function(e){delete installedChunks[e]}(e)}));for(var I,P,M=y.slice();0<M.length;)if(q=M.pop(),l=D[q]){var R={},_=l.hot._disposeHandlers;for(c=0;c<_.length;c++)(s=_[c])(R);for(i[q]=R,l.hot.active=!1,delete D[q],delete v[q],c=0;c<l.children.length;c++){var F=D[l.children[c]];F&&0<=(L=F.parents.indexOf(q))&&F.parents.splice(L,1)}}for(q in v)if(Object.prototype.hasOwnProperty.call(v,q)&&(l=D[q]))for(P=v[q],c=0;c<P.length;c++)I=P[c],0<=(L=l.children.indexOf(I))&&l.children.splice(L,1);for(q in f("apply"),void 0!==h&&(o=h,h=void 0),p=void 0,b)Object.prototype.hasOwnProperty.call(b,q)&&(e[q]=b[q]);var B=null;for(q in v)if(Object.prototype.hasOwnProperty.call(v,q)&&(l=D[q])){P=v[q];var W=[];for(u=0;u<P.length;u++)I=P[u],(s=l.hot._acceptedDependencies[I])&&-1===W.indexOf(s)&&W.push(s);for(u=0;u<W.length;u++){s=W[u];try{s(P)}catch(t){r.onErrored&&r.onErrored({type:"accept-errored",moduleId:q,dependencyId:P[u],error:t}),r.ignoreErrored||(B=B||t)}}}for(u=0;u<H.length;u++){var $=H[u];q=$.module,a=$.parents,n=q;try{A(q)}catch(s){if("function"==typeof $.errorHandler)try{$.errorHandler(s)}catch(t){r.onErrored&&r.onErrored({type:"self-accept-error-handler-errored",moduleId:q,error:t,originalError:s}),B=(B=r.ignoreErrored?B:B||t)||s}else r.onErrored&&r.onErrored({type:"self-accept-errored",moduleId:q,error:s}),r.ignoreErrored||(B=B||s)}}return B?(f("fail"),Promise.reject(B)):g?t(r).then((function(e){return y.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):(f("idle"),new Promise((function(e){e(y)})))}(t=t||{})}function S(){return g&&(p=p||{},g.forEach(k),g=void 0,1)}function k(t){Object.prototype.hasOwnProperty.call(p,t)||(p[t]=e[t])}var D={};function A(t){if(D[t])return D[t].exports;var r,o,d=D[t]={i:t,l:!1,exports:{},hot:(o={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==(r=t),active:!0,accept:function(e,t){if(void 0===e)o._selfAccepted=!0;else if("function"==typeof e)o._selfAccepted=e;else if("object"==typeof e)for(var n=0;n<e.length;n++)o._acceptedDependencies[e[n]]=t||function(){};else o._acceptedDependencies[e]=t||function(){}},decline:function(e){if(void 0===e)o._selfDeclined=!0;else if("object"==typeof e)for(var t=0;t<e.length;t++)o._declinedDependencies[e[t]]=!0;else o._declinedDependencies[e]=!0},dispose:function(e){o._disposeHandlers.push(e)},addDisposeHandler:function(e){o._disposeHandlers.push(e)},removeDisposeHandler:function(e){0<=(e=o._disposeHandlers.indexOf(e))&&o._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":(p={})[r]=e[r],f("ready");break;case"ready":k(r);break;case"prepare":case"check":case"dispose":case"apply":(g=g||[]).push(r)}},check:T,apply:j,status:function(e){if(!e)return l;c.push(e)},addStatusHandler:function(e){c.push(e)},removeStatusHandler:function(e){0<=(e=c.indexOf(e))&&c.splice(e,1)},data:i[r]},n=void 0,o),parents:(s=a,a=[],s),children:[]};return e[t].call(d.exports,d,d.exports,u(t)),d.l=!0,d.exports}A.m=e,A.c=D,A.d=function(e,t,n){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(A.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)A.d(n,r,function(t){return e[t]}.bind(null,r));return n},A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="./",A.h=function(){return o},u(12)(A.s=12)}([function(e,t,n){"use strict";(function(e){var n=window.location.origin.includes("localhost")?window.location.origin:"http://146.56.222.200:8090";t.a=function(t,r){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"get";return t=n+t,r="get"!=o&&r?JSON.stringify(r):r,new Promise((function(n,i){e.ajax({url:t,data:r,dataType:"JSON",type:o,contentType:"application/json",success:function(e){200!==e.code&&alert(e.msg),n(e)},error:function(e){alert(t+e.status),i(e)}})}))}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(5);function o(e){return e=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),null!=(e=window.location.search.substr(1).match(e))?unescape(e[2]):null}function i(){var e=o("code"),t=window.location.origin.includes("localhost")?"http://h5.linkwechat.cn/test.html":window.location.href;if(null==e||""===e)return window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat("wxa57479bcd3f15461","&redirect_uri=").concat(encodeURIComponent(t),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"),!1;r.a.code=e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));var r=n(0);function o(e){return Object(r.a)("/wecom/fission/poster",e,"post")}function i(e){return Object(r.a)("/wecom/fission/".concat(e.fissionId,"/progress/").concat(e.eid),null,"get")}function a(e){return Object(r.a)("/wecom/reward/getRewardByFissionId/".concat(e.fissionId,"/").concat(e.eid),null,"get")}function s(e){return Object(r.a)("/weixin/auth/getToken?code=".concat(e),null,"get")}function u(e){return Object(r.a)("/weixin/auth/getUserInfo",e,"get")}},function(e,t,n){var r; !function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(x[e]&&b[e]){for(var n in b[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(p[n]=t[n]);0==--m&&0===v&&E()}}(e,n),t&&t(e,n)};var n,r=!0,o="6d4cb2ff1751cd278db1",i={},a=[],s=[];function u(e){var t=D[e];if(!t)return A;function r(r){return t.hot.active?(D[r]?-1===D[r].parents.indexOf(e)&&D[r].parents.push(e):(a=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),a=[]),A(r)}for(var o in A)Object.prototype.hasOwnProperty.call(A,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(r,o,function(e){return{configurable:!0,enumerable:!0,get:function(){return A[e]},set:function(t){A[e]=t}}}(o));return r.e=function(e){return"ready"===l&&f("prepare"),v++,A.e(e).then(t,(function(e){throw t(),e}));function t(){v--,"prepare"===l&&(y[e]||C(e),0===v&&0===m&&E())}},r.t=function(e,t){return 1&t&&(e=r(e)),A.t(e,-2&t)},r}var c=[],l="idle";function f(e){l=e;for(var t=0;t<c.length;t++)c[t].call(null,e)}var d,p,h,g,m=0,v=0,y={},b={},x={};function w(e){return+e+""===e?+e:e}function T(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return r=e,f("check"),t=(t=1e4)||1e4,new Promise((function(e,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=A.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=t,r.send(null)}catch(e){return n(e)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)e();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var t=JSON.parse(r.responseText)}catch(t){return void n(t)}e(t)}}})).then((function(e){return e?(b={},y={},x=e.c,h=e.h,f("prepare"),e=new Promise((function(e,t){d={resolve:e,reject:t}})),p={},C(2),"prepare"===l&&0===v&&0===m&&E(),e):(f(S()?"ready":"idle"),null)}));var t}function C(e){var t,n;x[e]?(b[e]=!0,m++,t=e,(n=document.createElement("script")).charset="utf-8",n.src=A.p+""+t+"."+o+".hot-update.js",document.head.appendChild(n)):y[e]=!0}function E(){f("ready");var e=d;if(d=null,e)if(r)Promise.resolve().then((function(){return j(r)})).then((function(t){e.resolve(t)}),(function(t){e.reject(t)}));else{var t,n=[];for(t in p)Object.prototype.hasOwnProperty.call(p,t)&&n.push(w(t));e.resolve(n)}}function j(t){if("ready"!==l)throw new Error("apply() is only allowed in ready status");return function t(r){var s,u,c,l;function d(e){for(var t=[e],n={},r=t.map((function(e){return{chain:[e],id:e}}));0<r.length;){var o=r.pop(),i=o.id,a=o.chain;if((l=D[i])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:i};for(var s=0;s<l.parents.length;s++){var u=l.parents[s],c=D[u];if(c){if(c.hot._declinedDependencies[i])return{type:"declined",chain:a.concat([u]),moduleId:i,parentId:u};-1===t.indexOf(u)&&(c.hot._acceptedDependencies[i]?(n[u]||(n[u]=[]),m(n[u],[i])):(delete n[u],t.push(u),r.push({chain:a.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];-1===e.indexOf(r)&&e.push(r)}}S();var v={},y=[],b={},T=function(){console.warn("[HMR] unexpected require("+E.moduleId+") to disposed module")};for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var E;q=w(C);var j=!1,k=!1,N=!1,O="";switch((E=p[C]?d(q):{type:"disposed",moduleId:C}).chain&&(O="\nUpdate propagation: "+E.chain.join(" -> ")),E.type){case"self-declined":r.onDeclined&&r.onDeclined(E),r.ignoreDeclined||(j=new Error("Aborted because of self decline: "+E.moduleId+O));break;case"declined":r.onDeclined&&r.onDeclined(E),r.ignoreDeclined||(j=new Error("Aborted because of declined dependency: "+E.moduleId+" in "+E.parentId+O));break;case"unaccepted":r.onUnaccepted&&r.onUnaccepted(E),r.ignoreUnaccepted||(j=new Error("Aborted because "+q+" is not accepted"+O));break;case"accepted":r.onAccepted&&r.onAccepted(E),k=!0;break;case"disposed":r.onDisposed&&r.onDisposed(E),N=!0;break;default:throw new Error("Unexception type "+E.type)}if(j)return f("abort"),Promise.reject(j);if(k)for(var q in b[q]=p[q],m(y,E.outdatedModules),E.outdatedDependencies)Object.prototype.hasOwnProperty.call(E.outdatedDependencies,q)&&(v[q]||(v[q]=[]),m(v[q],E.outdatedDependencies[q]));N&&(m(y,[E.moduleId]),b[q]=T)}var L,H=[];for(u=0;u<y.length;u++)q=y[u],D[q]&&D[q].hot._selfAccepted&&b[q]!==T&&!D[q].hot._selfInvalidated&&H.push({module:q,parents:D[q].parents.slice(),errorHandler:D[q].hot._selfAccepted});f("dispose"),Object.keys(x).forEach((function(e){!1===x[e]&&function(e){delete installedChunks[e]}(e)}));for(var I,P,M=y.slice();0<M.length;)if(q=M.pop(),l=D[q]){var R={},_=l.hot._disposeHandlers;for(c=0;c<_.length;c++)(s=_[c])(R);for(i[q]=R,l.hot.active=!1,delete D[q],delete v[q],c=0;c<l.children.length;c++){var F=D[l.children[c]];F&&0<=(L=F.parents.indexOf(q))&&F.parents.splice(L,1)}}for(q in v)if(Object.prototype.hasOwnProperty.call(v,q)&&(l=D[q]))for(P=v[q],c=0;c<P.length;c++)I=P[c],0<=(L=l.children.indexOf(I))&&l.children.splice(L,1);for(q in f("apply"),void 0!==h&&(o=h,h=void 0),p=void 0,b)Object.prototype.hasOwnProperty.call(b,q)&&(e[q]=b[q]);var B=null;for(q in v)if(Object.prototype.hasOwnProperty.call(v,q)&&(l=D[q])){P=v[q];var W=[];for(u=0;u<P.length;u++)I=P[u],(s=l.hot._acceptedDependencies[I])&&-1===W.indexOf(s)&&W.push(s);for(u=0;u<W.length;u++){s=W[u];try{s(P)}catch(t){r.onErrored&&r.onErrored({type:"accept-errored",moduleId:q,dependencyId:P[u],error:t}),r.ignoreErrored||(B=B||t)}}}for(u=0;u<H.length;u++){var $=H[u];q=$.module,a=$.parents,n=q;try{A(q)}catch(s){if("function"==typeof $.errorHandler)try{$.errorHandler(s)}catch(t){r.onErrored&&r.onErrored({type:"self-accept-error-handler-errored",moduleId:q,error:t,originalError:s}),B=(B=r.ignoreErrored?B:B||t)||s}else r.onErrored&&r.onErrored({type:"self-accept-errored",moduleId:q,error:s}),r.ignoreErrored||(B=B||s)}}return B?(f("fail"),Promise.reject(B)):g?t(r).then((function(e){return y.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e})):(f("idle"),new Promise((function(e){e(y)})))}(t=t||{})}function S(){return g&&(p=p||{},g.forEach(k),g=void 0,1)}function k(t){Object.prototype.hasOwnProperty.call(p,t)||(p[t]=e[t])}var D={};function A(t){if(D[t])return D[t].exports;var r,o,d=D[t]={i:t,l:!1,exports:{},hot:(o={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==(r=t),active:!0,accept:function(e,t){if(void 0===e)o._selfAccepted=!0;else if("function"==typeof e)o._selfAccepted=e;else if("object"==typeof e)for(var n=0;n<e.length;n++)o._acceptedDependencies[e[n]]=t||function(){};else o._acceptedDependencies[e]=t||function(){}},decline:function(e){if(void 0===e)o._selfDeclined=!0;else if("object"==typeof e)for(var t=0;t<e.length;t++)o._declinedDependencies[e[t]]=!0;else o._declinedDependencies[e]=!0},dispose:function(e){o._disposeHandlers.push(e)},addDisposeHandler:function(e){o._disposeHandlers.push(e)},removeDisposeHandler:function(e){0<=(e=o._disposeHandlers.indexOf(e))&&o._disposeHandlers.splice(e,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":(p={})[r]=e[r],f("ready");break;case"ready":k(r);break;case"prepare":case"check":case"dispose":case"apply":(g=g||[]).push(r)}},check:T,apply:j,status:function(e){if(!e)return l;c.push(e)},addStatusHandler:function(e){c.push(e)},removeStatusHandler:function(e){0<=(e=c.indexOf(e))&&c.splice(e,1)},data:i[r]},n=void 0,o),parents:(s=a,a=[],s),children:[]};return e[t].call(d.exports,d,d.exports,u(t)),d.l=!0,d.exports}A.m=e,A.c=D,A.d=function(e,t,n){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},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,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(A.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)A.d(n,r,function(t){return e[t]}.bind(null,r));return n},A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="./",A.h=function(){return o},u(12)(A.s=12)}([function(e,t,n){"use strict";(function(e){var n=window.location.origin.includes("localhost")?window.location.origin:"http://146.56.222.200:8090";t.a=function(t,r){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"get";return t=n+t,r="get"!=o&&r?JSON.stringify(r):r,new Promise((function(n,i){e.ajax({url:t,data:r,dataType:"JSON",type:o,contentType:"application/json",success:function(e){200!==e.code&&alert(e.msg),n(e)},error:function(e){alert(t+e.status),i(e)}})}))}}).call(this,n(3))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(5);function o(e){return e=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),null!=(e=window.location.search.substr(1).match(e))?unescape(e[2]):null}function i(){var e=o("code"),t=window.location.origin.includes("localhost")?"http://h5.linkwechat.cn/test.html":window.location.href;if(null==e||""===e)return window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat("wxa57479bcd3f15461","&redirect_uri=").concat(encodeURIComponent(t),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"),!1;r.a.code=e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));var r=n(0);function o(e){return Object(r.a)("/wecom/fission/poster",e,"post")}function i(e){return Object(r.a)("/wecom/fission/".concat(e.fissionId,"/progress/").concat(e.eid),null,"get")}function a(e){return Object(r.a)("/wecom/reward/getRewardByFissionId/".concat(e.fissionId,"/").concat(e.eid),null,"get")}function s(e){return Object(r.a)("/weixin/auth/getToken?code=".concat(e),null,"get")}function u(e){return Object(r.a)("/weixin/auth/getUserInfo",e,"get")}},function(e,t,n){var r;
/*! /*!
* jQuery JavaScript Library v3.6.0 * jQuery JavaScript Library v3.6.0
* https://jquery.com/ * https://jquery.com/
......
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>任务进度查询</title></head><body> <div class='container'> <div class="title">活动兑奖</div> <div class="generalFont">任务完成后显示兑换码</div> <div class="generalContent"> <div class="generalBox"> <div class="listMsg"> <div class="generalFont">兑换链接</div> <div class="codeDetail codeLink"></div> </div> <div class="listMsg"> <div class="generalFont">兑奖图片</div> <!-- <div class="codeDetail codeImg">1024</div> --> <img class="codeDetail codeImg" src=''/> </div> <div class="listMsg"> <div class="generalFont">兑换规则</div> <div class="codeDetail codeNum"></div> </div> </div> </div> <div class="title">邀请列表</div> <div class="generalFont">您已邀请<span class="completeNum"></span>人,还差<span class="loseNum"></span>人,即可领奖</div> <div class="customersBox"> <!-- <div class='customersList'> <img src='' class='customersImg'/> <span>2020-01-03 00:00:00</span> <span class="customersSuccess">邀请成功</span> </div> --> </div> <div class="activityPoster"> <div>活动海报</div> <img src='' class='activityPosterImg'/> </div> </div><script src="././js/taskProcess.js?93bedc8d31ed89583e59"></script><script src="././js/common.js?93bedc8d31ed89583e59"></script></body></html>
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>任务进度查询</title></head><body> <div class='container'> <div class="title">活动兑奖</div> <div class="generalFont">任务完成后显示兑换码</div> <div class="generalContent"> <div class="generalBox"> <div class="listMsg"> <div class="generalFont">兑换链接</div> <div class="codeDetail codeLink"></div> </div> <div class="listMsg"> <div class="generalFont">兑奖图片</div> <!-- <div class="codeDetail codeImg">1024</div> --> <img class="codeDetail codeImg" src=''/> </div> <div class="listMsg"> <div class="generalFont">兑换规则</div> <div class="codeDetail codeNum"></div> </div> </div> </div> <div class="title">邀请列表</div> <div class="generalFont">您已邀请<span class="completeNum"></span>人,还差<span class="loseNum"></span>人,即可领奖</div> <div class="customersBox"> <!-- <div class='customersList'> <img src='' class='customersImg'/> <span>2020-01-03 00:00:00</span> <span class="customersSuccess">邀请成功</span> </div> --> </div> <div class="activityPoster"> <div>活动海报</div> <img src='' class='activityPosterImg'/> </div> </div><script src="././js/taskProcess.js?6d4cb2ff1751cd278db1"></script><script src="././js/common.js?6d4cb2ff1751cd278db1"></script></body></html>
\ No newline at end of file \ No newline at end of file
......
...@@ -6,8 +6,11 @@ import config from './contant' ...@@ -6,8 +6,11 @@ import config from './contant'
$(function(){ $(function(){
const taskFissionId = getUrlParam('fissionId'); const taskFissionId = getUrlParam('fissionId');
const code = config.code
const eid = null const eid = null
//防止存入了错误的userinfo
if(localStorage.getItem('userinfo') == undefined || localStorage.getItem('userinfo') == 'undefined'){
localStorage.removeItem('userinfo')
}
$('.sharePic').click(function(){ $('.sharePic').click(function(){
alert('长按图片在弹出菜单中发送给朋友或者可保存图片分享至朋友圈') alert('长按图片在弹出菜单中发送给朋友或者可保存图片分享至朋友圈')
}); });
...@@ -27,7 +30,7 @@ $(function(){ ...@@ -27,7 +30,7 @@ $(function(){
} }
//缓存中没有用户信息,进入授权流程 //缓存中没有用户信息,进入授权流程
getWxCode() getWxCode()
const code = config.code
if(!code){ if(!code){
//防止跳转前进入流程 //防止跳转前进入流程
return return
...@@ -36,8 +39,10 @@ $(function(){ ...@@ -36,8 +39,10 @@ $(function(){
getToken(code) getToken(code)
.then(res=>{ .then(res=>{
let data =res.data let data =res.data
if(data && data.openId){
localStorage.setItem('userinfo',JSON.stringify(data)) localStorage.setItem('userinfo',JSON.stringify(data))
getPosterFlow({openId:data.openId,lang:"zh_CN"}) getPosterFlow({openId:data.openId,lang:"zh_CN"})
}
}) })
} catch (error) { } catch (error) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!