Merge branch 'master' into clearingForm

This commit is contained in:
zhangds 2024-02-21 10:10:49 +08:00
commit 05e8f6356c
35 changed files with 303 additions and 236 deletions

View File

@ -1,41 +1,41 @@
{
"files": {
"static/js/0.38d2c2d3.chunk.js": "/static/js/0.38d2c2d3.chunk.js",
"static/js/1.cc42b39f.chunk.js": "/static/js/1.cc42b39f.chunk.js",
"static/js/0.673ffbb0.chunk.js": "/static/js/0.673ffbb0.chunk.js",
"static/js/1.f3d06c3f.chunk.js": "/static/js/1.f3d06c3f.chunk.js",
"static/css/2.74e9175c.chunk.css": "/static/css/2.74e9175c.chunk.css",
"static/js/2.79cc083b.chunk.js": "/static/js/2.79cc083b.chunk.js",
"static/js/2.73a09376.chunk.js": "/static/js/2.73a09376.chunk.js",
"static/css/3.75be5fa1.chunk.css": "/static/css/3.75be5fa1.chunk.css",
"static/js/3.7514d546.chunk.js": "/static/js/3.7514d546.chunk.js",
"static/js/3.2a14e653.chunk.js": "/static/js/3.2a14e653.chunk.js",
"main.css": "/static/css/main.b0e33980.chunk.css",
"main.js": "/static/js/main.95dbfb01.chunk.js",
"runtime-main.js": "/static/js/runtime-main.ec07691c.js",
"static/css/6.eb8ccc3b.chunk.css": "/static/css/6.eb8ccc3b.chunk.css",
"static/js/6.b925bae8.chunk.js": "/static/js/6.b925bae8.chunk.js",
"static/css/7.8da81b07.chunk.css": "/static/css/7.8da81b07.chunk.css",
"static/js/7.8d9f6866.chunk.js": "/static/js/7.8d9f6866.chunk.js",
"main.js": "/static/js/main.747eab15.chunk.js",
"runtime-main.js": "/static/js/runtime-main.4f812af6.js",
"static/css/6.04f16127.chunk.css": "/static/css/6.04f16127.chunk.css",
"static/js/6.a200a675.chunk.js": "/static/js/6.a200a675.chunk.js",
"static/css/7.8d7b63a3.chunk.css": "/static/css/7.8d7b63a3.chunk.css",
"static/js/7.dfacf3e6.chunk.js": "/static/js/7.dfacf3e6.chunk.js",
"static/css/8.9a9b6f5c.chunk.css": "/static/css/8.9a9b6f5c.chunk.css",
"static/js/8.751f6ff7.chunk.js": "/static/js/8.751f6ff7.chunk.js",
"static/css/9.4e156c5f.chunk.css": "/static/css/9.4e156c5f.chunk.css",
"static/js/9.7a91a0a5.chunk.js": "/static/js/9.7a91a0a5.chunk.js",
"static/js/10.ddc78ac2.chunk.js": "/static/js/10.ddc78ac2.chunk.js",
"static/js/9.bd0660e6.chunk.js": "/static/js/9.bd0660e6.chunk.js",
"static/js/10.6c9f07c8.chunk.js": "/static/js/10.6c9f07c8.chunk.js",
"static/css/11.b1da7569.chunk.css": "/static/css/11.b1da7569.chunk.css",
"static/js/11.0a5237f9.chunk.js": "/static/js/11.0a5237f9.chunk.js",
"static/js/12.338d66c4.chunk.js": "/static/js/12.338d66c4.chunk.js",
"static/js/11.c9929302.chunk.js": "/static/js/11.c9929302.chunk.js",
"static/js/12.5d12f291.chunk.js": "/static/js/12.5d12f291.chunk.js",
"index.html": "/index.html",
"static/js/0.38d2c2d3.chunk.js.LICENSE.txt": "/static/js/0.38d2c2d3.chunk.js.LICENSE.txt",
"static/js/1.cc42b39f.chunk.js.LICENSE.txt": "/static/js/1.cc42b39f.chunk.js.LICENSE.txt",
"static/js/10.ddc78ac2.chunk.js.LICENSE.txt": "/static/js/10.ddc78ac2.chunk.js.LICENSE.txt",
"static/js/3.7514d546.chunk.js.LICENSE.txt": "/static/js/3.7514d546.chunk.js.LICENSE.txt",
"static/js/6.b925bae8.chunk.js.LICENSE.txt": "/static/js/6.b925bae8.chunk.js.LICENSE.txt",
"static/js/7.8d9f6866.chunk.js.LICENSE.txt": "/static/js/7.8d9f6866.chunk.js.LICENSE.txt",
"static/js/0.673ffbb0.chunk.js.LICENSE.txt": "/static/js/0.673ffbb0.chunk.js.LICENSE.txt",
"static/js/1.f3d06c3f.chunk.js.LICENSE.txt": "/static/js/1.f3d06c3f.chunk.js.LICENSE.txt",
"static/js/10.6c9f07c8.chunk.js.LICENSE.txt": "/static/js/10.6c9f07c8.chunk.js.LICENSE.txt",
"static/js/3.2a14e653.chunk.js.LICENSE.txt": "/static/js/3.2a14e653.chunk.js.LICENSE.txt",
"static/js/6.a200a675.chunk.js.LICENSE.txt": "/static/js/6.a200a675.chunk.js.LICENSE.txt",
"static/js/7.dfacf3e6.chunk.js.LICENSE.txt": "/static/js/7.dfacf3e6.chunk.js.LICENSE.txt",
"static/js/8.751f6ff7.chunk.js.LICENSE.txt": "/static/js/8.751f6ff7.chunk.js.LICENSE.txt",
"static/js/9.7a91a0a5.chunk.js.LICENSE.txt": "/static/js/9.7a91a0a5.chunk.js.LICENSE.txt"
"static/js/9.bd0660e6.chunk.js.LICENSE.txt": "/static/js/9.bd0660e6.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.ec07691c.js",
"static/js/runtime-main.4f812af6.js",
"static/css/8.9a9b6f5c.chunk.css",
"static/js/8.751f6ff7.chunk.js",
"static/css/main.b0e33980.chunk.css",
"static/js/main.95dbfb01.chunk.js"
"static/js/main.747eab15.chunk.js"
]
}

View File

@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/goods_new_v3.js?v3"></script><title>营销管理系统</title><style>#root,body,html{width:100%;height:100%;padding:0;margin:0;font-size:14px;overflow:hidden}</style><link href="/static/css/8.9a9b6f5c.chunk.css" rel="stylesheet"><link href="/static/css/main.b0e33980.chunk.css" rel="stylesheet"></head><body><script type="text/javascript">window.goods=product</script><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,u=t[0],i=t[1],f=t[2],s=0,d=[];s<u.length;s++)o=u[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);d.length;)d.shift()();return c.push.apply(c,f||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==a[i]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{2:1,3:1,6:1,7:1,9:1,11:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"74e9175c",3:"75be5fa1",6:"eb8ccc3b",7:"8da81b07",9:"4e156c5f",10:"31d6cfe0",11:"b1da7569",12:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(l=c[i]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(f===n||f===a))return t()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var l;if((f=(l=s[i]).getAttribute("data-href"))===n||f===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],d.parentNode.removeChild(d),r(c)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"38d2c2d3",1:"cc42b39f",2:"79cc083b",3:"7514d546",6:"b925bae8",7:"8d9f6866",9:"7a91a0a5",10:"ddc78ac2",11:"0a5237f9",12:"338d66c4"}[e]+".chunk.js"}(e);var f=new Error;c=function(t){i.onerror=i.onload=null,clearTimeout(s);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}a[e]=void 0}};var s=setTimeout((function(){c({type:"timeout",target:i})}),12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/",u.oe=function(e){throw e};var i=this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=f;r()}([])</script><script src="/static/js/8.751f6ff7.chunk.js"></script><script src="/static/js/main.95dbfb01.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/goods_new_v3.js?v3"></script><title>营销管理系统</title><style>#root,body,html{width:100%;height:100%;padding:0;margin:0;font-size:14px;overflow:hidden}</style><link href="/static/css/8.9a9b6f5c.chunk.css" rel="stylesheet"><link href="/static/css/main.b0e33980.chunk.css" rel="stylesheet"></head><body><script type="text/javascript">window.goods=product</script><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,c=t[0],i=t[1],f=t[2],s=0,d=[];s<c.length;s++)o=c[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);d.length;)d.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==a[i]&&(n=!1)}n&&(u.splice(t--,1),e=c(c.s=r[0]))}return e}var n={},o={5:0},a={5:0},u=[];function c(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{2:1,3:1,6:1,7:1,9:1,11:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"74e9175c",3:"75be5fa1",6:"04f16127",7:"8d7b63a3",9:"4e156c5f",10:"31d6cfe0",11:"b1da7569",12:"31d6cfe0"}[e]+".chunk.css",a=c.p+n,u=document.getElementsByTagName("link"),i=0;i<u.length;i++){var f=(l=u[i]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(f===n||f===a))return t()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var l;if((f=(l=s[i]).getAttribute("data-href"))===n||f===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=n,delete o[e],d.parentNode.removeChild(d),r(u)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.src=function(e){return c.p+"static/js/"+({}[e]||e)+"."+{0:"673ffbb0",1:"f3d06c3f",2:"73a09376",3:"2a14e653",6:"a200a675",7:"dfacf3e6",9:"bd0660e6",10:"6c9f07c8",11:"c9929302",12:"5d12f291"}[e]+".chunk.js"}(e);var f=new Error;u=function(t){i.onerror=i.onload=null,clearTimeout(s);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}a[e]=void 0}};var s=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(t)},c.m=e,c.c=n,c.d=function(e,t,r){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(c.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(r,n,function(t){return e[t]}.bind(null,n));return r},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw e};var i=this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=f;r()}([])</script><script src="/static/js/8.751f6ff7.chunk.js"></script><script src="/static/js/main.747eab15.chunk.js"></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[11],{431:function(e,n,t){},473:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return o}));var i=t(1),s=t.n(i),r=(t(431),t(176)),c=t(10),m="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\errpage\\errpage.js";class o extends s.a.Component{constructor(e){super(e),this.state={}}tick(){window.history.go(-1)}componentWillUnmount(){}render(){return Object(c.jsxDEV)("div",{id:"errpage",className:"maincenter",children:[Object(c.jsxDEV)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/404.png",alt:""},void 0,!1,{fileName:m,lineNumber:17,columnNumber:9},this),Object(c.jsxDEV)(r.a,{onClick:this.tick.bind(this),children:"\u8fd4\u56de\u4e0a\u4e00\u9875"},void 0,!1,{fileName:m,lineNumber:21,columnNumber:9},this)]},void 0,!0,{fileName:m,lineNumber:16,columnNumber:7},this)}}}}]);
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[11],{432:function(e,n,t){},474:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return o}));var i=t(1),s=t.n(i),r=(t(432),t(176)),c=t(10),m="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\pages\\errpage\\errpage.js";class o extends s.a.Component{constructor(e){super(e),this.state={}}tick(){window.history.go(-1)}componentWillUnmount(){}render(){return Object(c.jsxDEV)("div",{id:"errpage",className:"maincenter",children:[Object(c.jsxDEV)("img",{src:"https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/404.png",alt:""},void 0,!1,{fileName:m,lineNumber:17,columnNumber:9},this),Object(c.jsxDEV)(r.a,{onClick:this.tick.bind(this),children:"\u8fd4\u56de\u4e0a\u4e00\u9875"},void 0,!1,{fileName:m,lineNumber:21,columnNumber:9},this)]},void 0,!0,{fileName:m,lineNumber:16,columnNumber:7},this)}}}}]);

View File

@ -1 +1 @@
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[12],{475:function(t,e,n){"use strict";n.r(e),n.d(e,"getCLS",(function(){return d})),n.d(e,"getFCP",(function(){return y})),n.d(e,"getFID",(function(){return k})),n.d(e,"getLCP",(function(){return F})),n.d(e,"getTTFB",(function(){return C}));var i,a,r,o,u=function(t,e){return{name:t,value:void 0===e?-1:e,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(t){}},s=function(t,e){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},f=function(t){addEventListener("pageshow",(function(e){e.persisted&&t(e)}),!0)},m="function"==typeof WeakSet?new WeakSet:new Set,p=function(t,e,n){var i;return function(){e.value>=0&&(n||m.has(e)||"hidden"===document.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},d=function(t,e){var n,i=u("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),n())},r=c("layout-shift",a);r&&(n=p(t,i,e),s((function(){r.takeRecords().map(a),n()})),f((function(){i=u("CLS",0),n=p(t,i,e)})))},v=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){s((function(t){var e=t.timeStamp;v=e}),!0)},g=function(){return v<0&&(v=l(),h(),f((function(){setTimeout((function(){v=l(),h()}),0)}))),{get timeStamp(){return v}}},y=function(t,e){var n,i=g(),a=u("FCP"),r=function(t){"first-contentful-paint"===t.name&&(s&&s.disconnect(),t.startTime<i.timeStamp&&(a.value=t.startTime,a.entries.push(t),m.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],s=o?null:c("paint",r);(o||s)&&(n=p(t,a,e),o&&r(o),f((function(i){a=u("FCP"),n=p(t,a,e),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,m.add(a),n()}))}))})))},S={passive:!0,capture:!0},E=new Date,w=function(t,e){i||(i=e,a=t,r=new Date,b(removeEventListener),L())},L=function(){if(a>=0&&a<r-E){var t={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach((function(e){e(t)})),o=[]}},T=function(t){if(t.cancelable){var e=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,e){var n=function(){w(t,e),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,S),removeEventListener("pointercancel",i,S)};addEventListener("pointerup",n,S),addEventListener("pointercancel",i,S)}(e,t):w(e,t)}},b=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return t(e,T,S)}))},k=function(t,e){var n,r=g(),d=u("FID"),v=function(t){t.startTime<r.timeStamp&&(d.value=t.processingStart-t.startTime,d.entries.push(t),m.add(d),n())},l=c("first-input",v);n=p(t,d,e),l&&s((function(){l.takeRecords().map(v),l.disconnect()}),!0),l&&f((function(){var r;d=u("FID"),n=p(t,d,e),o=[],a=-1,i=null,b(addEventListener),r=v,o.push(r),L()}))},F=function(t,e){var n,i=g(),a=u("LCP"),r=function(t){var e=t.startTime;e<i.timeStamp&&(a.value=e,a.entries.push(t)),n()},o=c("largest-contentful-paint",r);if(o){n=p(t,a,e);var d=function(){m.has(a)||(o.takeRecords().map(r),o.disconnect(),m.add(a),n())};["keydown","click"].forEach((function(t){addEventListener(t,d,{once:!0,capture:!0})})),s(d,!0),f((function(i){a=u("LCP"),n=p(t,a,e),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,m.add(a),n()}))}))}))}},C=function(t){var e,n=u("TTFB");e=function(){try{var e=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,e={entryType:"navigation",startTime:0};for(var n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e}();if(n.value=n.delta=e.responseStart,n.value<0)return;n.entries=[e],t(n)}catch(t){}},"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)}}}]);
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[12],{476:function(t,e,n){"use strict";n.r(e),n.d(e,"getCLS",(function(){return d})),n.d(e,"getFCP",(function(){return y})),n.d(e,"getFID",(function(){return k})),n.d(e,"getLCP",(function(){return F})),n.d(e,"getTTFB",(function(){return C}));var i,a,r,o,u=function(t,e){return{name:t,value:void 0===e?-1:e,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(t){}},s=function(t,e){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},f=function(t){addEventListener("pageshow",(function(e){e.persisted&&t(e)}),!0)},m="function"==typeof WeakSet?new WeakSet:new Set,p=function(t,e,n){var i;return function(){e.value>=0&&(n||m.has(e)||"hidden"===document.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},d=function(t,e){var n,i=u("CLS",0),a=function(t){t.hadRecentInput||(i.value+=t.value,i.entries.push(t),n())},r=c("layout-shift",a);r&&(n=p(t,i,e),s((function(){r.takeRecords().map(a),n()})),f((function(){i=u("CLS",0),n=p(t,i,e)})))},v=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){s((function(t){var e=t.timeStamp;v=e}),!0)},g=function(){return v<0&&(v=l(),h(),f((function(){setTimeout((function(){v=l(),h()}),0)}))),{get timeStamp(){return v}}},y=function(t,e){var n,i=g(),a=u("FCP"),r=function(t){"first-contentful-paint"===t.name&&(s&&s.disconnect(),t.startTime<i.timeStamp&&(a.value=t.startTime,a.entries.push(t),m.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],s=o?null:c("paint",r);(o||s)&&(n=p(t,a,e),o&&r(o),f((function(i){a=u("FCP"),n=p(t,a,e),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,m.add(a),n()}))}))})))},S={passive:!0,capture:!0},E=new Date,w=function(t,e){i||(i=e,a=t,r=new Date,b(removeEventListener),L())},L=function(){if(a>=0&&a<r-E){var t={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach((function(e){e(t)})),o=[]}},T=function(t){if(t.cancelable){var e=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,e){var n=function(){w(t,e),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,S),removeEventListener("pointercancel",i,S)};addEventListener("pointerup",n,S),addEventListener("pointercancel",i,S)}(e,t):w(e,t)}},b=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach((function(e){return t(e,T,S)}))},k=function(t,e){var n,r=g(),d=u("FID"),v=function(t){t.startTime<r.timeStamp&&(d.value=t.processingStart-t.startTime,d.entries.push(t),m.add(d),n())},l=c("first-input",v);n=p(t,d,e),l&&s((function(){l.takeRecords().map(v),l.disconnect()}),!0),l&&f((function(){var r;d=u("FID"),n=p(t,d,e),o=[],a=-1,i=null,b(addEventListener),r=v,o.push(r),L()}))},F=function(t,e){var n,i=g(),a=u("LCP"),r=function(t){var e=t.startTime;e<i.timeStamp&&(a.value=e,a.entries.push(t)),n()},o=c("largest-contentful-paint",r);if(o){n=p(t,a,e);var d=function(){m.has(a)||(o.takeRecords().map(r),o.disconnect(),m.add(a),n())};["keydown","click"].forEach((function(t){addEventListener(t,d,{once:!0,capture:!0})})),s(d,!0),f((function(i){a=u("LCP"),n=p(t,a,e),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,m.add(a),n()}))}))}))}},C=function(t){var e,n=u("TTFB");e=function(){try{var e=performance.getEntriesByType("navigation")[0]||function(){var t=performance.timing,e={entryType:"navigation",startTime:0};for(var n in t)"navigationStart"!==n&&"toJSON"!==n&&(e[n]=Math.max(t[n]-t.navigationStart,0));return e}();if(n.value=n.delta=e.responseStart,n.value<0)return;n.entries=[e],t(n)}catch(t){}},"complete"===document.readyState?setTimeout(e,0):addEventListener("pageshow",e)}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[4],{36:function(e,n,t){},45:function(e,n,t){},46:function(e,n,t){},54:function(e,n,t){},55:function(e,n,t){"use strict";t.r(n);var i=t(1),o=t(24),l=t.n(o),c=(t(45),t(25)),m=t(5),s=(t(46),t(36),t(58)),r=t(10),a="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\App.js";const u=Object(i.lazy)((()=>Promise.all([t.e(0),t.e(1),t.e(3),t.e(2),t.e(6)]).then(t.bind(null,491)))),b=Object(i.lazy)((()=>Promise.all([t.e(0),t.e(1),t.e(3),t.e(2),t.e(7)]).then(t.bind(null,502)))),d=Object(i.lazy)((()=>Promise.all([t.e(0),t.e(11)]).then(t.bind(null,473)))),h=Object(i.lazy)((()=>Promise.all([t.e(0),t.e(1),t.e(10),t.e(2),t.e(9)]).then(t.bind(null,478))));class N extends i.Component{constructor(...e){super(...e),this.state={pathname:""}}componentWillMount(){const e=window.location.href.lastIndexOf("/"),n=window.location.href.substr(e);this.setState({pathname:`${n}`})}render(){return Object(r.jsxDEV)(c.a,{children:Object(r.jsxDEV)(i.Suspense,{fallback:Object(r.jsxDEV)(s.a,{loading:!0,icon:"circle",iconText:"\u52a0\u8f7d\u4e2d..."},void 0,!1,{fileName:a,lineNumber:29,columnNumber:13},this),children:[Object(r.jsxDEV)(m.b,{path:"/login",exact:!0,component:b},void 0,!1,{fileName:a,lineNumber:31,columnNumber:11},this),Object(r.jsxDEV)(m.b,{path:"/edittemplate",exact:!0,component:h},void 0,!1,{fileName:a,lineNumber:32,columnNumber:11},this),Object(r.jsxDEV)(m.b,{path:"/home",component:u},void 0,!1,{fileName:a,lineNumber:33,columnNumber:11},this),Object(r.jsxDEV)(m.b,{exact:!0,path:"/",render:()=>Object(r.jsxDEV)(m.a,{to:"/login"},void 0,!1,{fileName:a,lineNumber:37,columnNumber:27},this)},void 0,!1,{fileName:a,lineNumber:34,columnNumber:11},this),Object(r.jsxDEV)(m.b,{component:d},void 0,!1,{fileName:a,lineNumber:38,columnNumber:11},this)]},void 0,!0,{fileName:a,lineNumber:27,columnNumber:9},this)},void 0,!1,{fileName:a,lineNumber:26,columnNumber:7},this)}}var j=e=>{e&&e instanceof Function&&t.e(12).then(t.bind(null,475)).then((({getCLS:n,getFID:t,getFCP:i,getLCP:o,getTTFB:l})=>{n(e),t(e),i(e),o(e),l(e)}))};t(53),t(54);l.a.render(Object(r.jsxDEV)(N,{},void 0,!1,{fileName:"D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\index.js",lineNumber:10,columnNumber:5},void 0),document.getElementById("root")),j()}},[[55,5,8]]]);
(this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[]).push([[4],{36:function(e,n,t){},45:function(e,n,t){},46:function(e,n,t){},54:function(e,n,t){},55:function(e,n,t){"use strict";t.r(n);var i=t(1),o=t(24),l=t.n(o),c=(t(45),t(25)),m=t(5),s=(t(46),t(36),t(58)),r=t(10),a="D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\App.js";const u=Object(i.lazy)((()=>Promise.all([t.e(0),t.e(1),t.e(3),t.e(2),t.e(6)]).then(t.bind(null,492)))),b=Object(i.lazy)((()=>Promise.all([t.e(0),t.e(1),t.e(3),t.e(2),t.e(7)]).then(t.bind(null,503)))),d=Object(i.lazy)((()=>Promise.all([t.e(0),t.e(11)]).then(t.bind(null,474)))),h=Object(i.lazy)((()=>Promise.all([t.e(0),t.e(1),t.e(10),t.e(2),t.e(9)]).then(t.bind(null,479))));class N extends i.Component{constructor(...e){super(...e),this.state={pathname:""}}componentWillMount(){const e=window.location.href.lastIndexOf("/"),n=window.location.href.substr(e);this.setState({pathname:`${n}`})}render(){return Object(r.jsxDEV)(c.a,{children:Object(r.jsxDEV)(i.Suspense,{fallback:Object(r.jsxDEV)(s.a,{loading:!0,icon:"circle",iconText:"\u52a0\u8f7d\u4e2d..."},void 0,!1,{fileName:a,lineNumber:29,columnNumber:13},this),children:[Object(r.jsxDEV)(m.b,{path:"/login",exact:!0,component:b},void 0,!1,{fileName:a,lineNumber:31,columnNumber:11},this),Object(r.jsxDEV)(m.b,{path:"/edittemplate",exact:!0,component:h},void 0,!1,{fileName:a,lineNumber:32,columnNumber:11},this),Object(r.jsxDEV)(m.b,{path:"/home",component:u},void 0,!1,{fileName:a,lineNumber:33,columnNumber:11},this),Object(r.jsxDEV)(m.b,{exact:!0,path:"/",render:()=>Object(r.jsxDEV)(m.a,{to:"/login"},void 0,!1,{fileName:a,lineNumber:37,columnNumber:27},this)},void 0,!1,{fileName:a,lineNumber:34,columnNumber:11},this),Object(r.jsxDEV)(m.b,{component:d},void 0,!1,{fileName:a,lineNumber:38,columnNumber:11},this)]},void 0,!0,{fileName:a,lineNumber:27,columnNumber:9},this)},void 0,!1,{fileName:a,lineNumber:26,columnNumber:7},this)}}var j=e=>{e&&e instanceof Function&&t.e(12).then(t.bind(null,476)).then((({getCLS:n,getFID:t,getFCP:i,getLCP:o,getTTFB:l})=>{n(e),t(e),i(e),o(e),l(e)}))};t(53),t(54);l.a.render(Object(r.jsxDEV)(N,{},void 0,!1,{fileName:"D:\\project\\\u8425\u9500\u7cfb\u7edf\\frontend\\src\\index.js",lineNumber:10,columnNumber:5},void 0),document.getElementById("root")),j()}},[[55,5,8]]]);

View File

@ -0,0 +1 @@
!function(e){function t(t){for(var n,o,c=t[0],i=t[1],f=t[2],s=0,d=[];s<c.length;s++)o=c[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);d.length;)d.shift()();return u.push.apply(u,f||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==a[i]&&(n=!1)}n&&(u.splice(t--,1),e=c(c.s=r[0]))}return e}var n={},o={5:0},a={5:0},u=[];function c(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{2:1,3:1,6:1,7:1,9:1,11:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"74e9175c",3:"75be5fa1",6:"04f16127",7:"8d7b63a3",9:"4e156c5f",10:"31d6cfe0",11:"b1da7569",12:"31d6cfe0"}[e]+".chunk.css",a=c.p+n,u=document.getElementsByTagName("link"),i=0;i<u.length;i++){var f=(l=u[i]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(f===n||f===a))return t()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var l;if((f=(l=s[i]).getAttribute("data-href"))===n||f===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=n,delete o[e],d.parentNode.removeChild(d),r(u)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var u,i=document.createElement("script");i.charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.src=function(e){return c.p+"static/js/"+({}[e]||e)+"."+{0:"673ffbb0",1:"f3d06c3f",2:"73a09376",3:"2a14e653",6:"a200a675",7:"dfacf3e6",9:"bd0660e6",10:"6c9f07c8",11:"c9929302",12:"5d12f291"}[e]+".chunk.js"}(e);var f=new Error;u=function(t){i.onerror=i.onload=null,clearTimeout(s);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}a[e]=void 0}};var s=setTimeout((function(){u({type:"timeout",target:i})}),12e4);i.onerror=i.onload=u,document.head.appendChild(i)}return Promise.all(t)},c.m=e,c.c=n,c.d=function(e,t,r){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(c.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)c.d(r,n,function(t){return e[t]}.bind(null,n));return r},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw e};var i=this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=f;r()}([]);

View File

@ -1 +0,0 @@
!function(e){function t(t){for(var n,o,u=t[0],i=t[1],f=t[2],s=0,d=[];s<u.length;s++)o=u[s],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(l&&l(t);d.length;)d.shift()();return c.push.apply(c,f||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==a[i]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{2:1,3:1,6:1,7:1,9:1,11:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"74e9175c",3:"75be5fa1",6:"eb8ccc3b",7:"8da81b07",9:"4e156c5f",10:"31d6cfe0",11:"b1da7569",12:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(l=c[i]).getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(f===n||f===a))return t()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var l;if((f=(l=s[i]).getAttribute("data-href"))===n||f===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],d.parentNode.removeChild(d),r(c)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"38d2c2d3",1:"cc42b39f",2:"79cc083b",3:"7514d546",6:"b925bae8",7:"8d9f6866",9:"7a91a0a5",10:"ddc78ac2",11:"0a5237f9",12:"338d66c4"}[e]+".chunk.js"}(e);var f=new Error;c=function(t){i.onerror=i.onload=null,clearTimeout(s);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}a[e]=void 0}};var s=setTimeout((function(){c({type:"timeout",target:i})}),12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/",u.oe=function(e){throw e};var i=this.webpackJsonpmarketingsystem=this.webpackJsonpmarketingsystem||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var l=f;r()}([]);

View File

@ -970,8 +970,13 @@ export const resendCardCode = (data) => {
}
/* 设置开发信息 */
export const setResellMerchant = (data) => {
return req("post", baseurl + "/reseller/resellMerchant/set", data)
export const setResellMerchant = (id, data) => {
return req("put", baseurl + `/reseller/merchant/${id}`, data)
}
/* 获取开发信息密钥 */
export const generateRsaKey = (data) => {
return req("get", baseurl + "/reseller/merchant/generateRsaKey", data)
}
/* 设置分销商通知地址 */

View File

@ -135,6 +135,10 @@ export default class pagination extends React.Component {
this.setState({ count: 100 })
this.props.onCountChange(100)
break
case "5":
this.setState({ count: 200 })
this.props.onCountChange(200)
break
default:
break
}
@ -186,6 +190,7 @@ export default class pagination extends React.Component {
<MenuItem key={2}>20</MenuItem>
<MenuItem key={3}>50</MenuItem>
<MenuItem key={4}>100</MenuItem>
<MenuItem key={5}>200</MenuItem>
</Menu>
</DropdownContent>
</Dropdown>

View File

@ -35,13 +35,13 @@ const Column = [
type: "normal",
width: "20%"
},
// {
// title: "商户编号",
// name: "merchant",
// prop: "merchant[merchant_id]",
// type: "normal",
// width: "20%"
// },
{
title: "商户编号",
name: "merchant",
prop: "merchant[merchant_id]",
type: "normal",
width: "20%"
},
{
title: "分销商名称",
prop: "name",
@ -240,7 +240,7 @@ export default class acclist extends React.Component {
},
{
path: "distributor-merchant",
name: "开放信息"
name: "更新商户"
}
]
}
@ -311,11 +311,18 @@ export default class acclist extends React.Component {
}
onMenuItemClick(e, key, row) {
if (key == 1) {
//重置密码
this.setState({ pwdVisible: true, resellid: row.id })
} else if (key == 2) {
this.setState({ logVisible: true })
switch (Number(key)) {
case 1:
this.setState({ pwdVisible: true, resellid: row.id })
break
case 2:
this.setState({ logVisible: true })
break
case 3:
this.openInformation(row)
break
default:
break
}
}
@ -486,15 +493,6 @@ export default class acclist extends React.Component {
>
编辑
</a>
{/* <a
className="grid-link"
onClick={(e) => {
this.openInformation(rowData)
}}
>
开放信息
</a> */}
<a
className="grid-link"
onClick={(e) => {
@ -517,6 +515,7 @@ export default class acclist extends React.Component {
}}
>
<MenuItem key="1">重置密码</MenuItem>
<MenuItem key="3">更新商户</MenuItem>
{/* <MenuItem key="2"> 日志</MenuItem> */}
</Menu>
</DropdownContent>

View File

@ -1,33 +1,39 @@
import { generateRsaKey, setResellMerchant } from "@/assets/api"
import FormItem from "@/components/form-item/main"
import Form from "@/components/form/main"
import Ipt from "@/components/input/main"
import { omit } from "lodash-es"
import { useEffect, useRef, useState } from "react"
import { Button, Card, Checkbox, CopyButton, Input, Notify, Radio, RadioGroup } from "zent"
import { setResellMerchant } from "@/assets/api"
import "./index"
import { Button, Card, Checkbox, Input, Notify, Radio, RadioGroup, Pop, CopyButton } from "zent"
import "./index.less"
export default function Merchant() {
const [state, setState] = useState({
reseller_id: "",
merchant_id: "",
marketing_notify_url: [""],
custom_rsa_public_key: "",
encrypt_type: 2,
subscribe_event: [],
loading: false
loading: false,
reseller_id: 0 /* 分销商id */,
merchant_id: "", // *
pos_id: "", //id *
app_id: "", //appid *
store_id: "", //api mode 1 2* id
public_key: "", // *
private_key: "", // *
merchant_public_key: "", // *
secret_key: "", //api mode 1 2*
notify_url: "", // *
subscribe_event: [], //
status: 1, // 1 2 *
api_mode: 2 // 1-RSA+ 2- *
})
const fromRef = useRef()
const rules = {
merchant_id: [
{ type: "required", message: "请输入商户编号" },
{
type: "regExp",
message: "请输入正确的商户号",
reg: /^[A-Za-z0-9]+$/
}
],
custom_rsa_public_key: [{ type: "required", message: "请输入商户侧RSA公钥" }],
marketing_notify_url: [
merchant_id: [{ type: "required", message: "请输入商户编号" }],
public_key: [{ type: "required", message: "请输入公钥" }],
private_key: [{ type: "required", message: "请输入私钥" }],
app_id: [{ type: "required", message: "请输入应用ID" }],
pos_id: [{ type: "required", message: "请输入平台ID" }],
store_id: [{ type: "required", message: "请输入店铺ID" }],
secret_key: [{ type: "required", message: "请输入偏移量" }],
merchant_public_key: [{ type: "required", message: "请输入商户公钥" }],
notify_url: [
{ type: "required", message: "请输入商户回调通知网关地址" },
{
type: "regExp",
@ -42,33 +48,37 @@ export default function Merchant() {
setState({ ...state, reseller_id: id, ...merchant })
}, [])
/* 获取密钥 */
function getKey() {
generateRsaKey({ api_mode: state.api_mode }).then(({ data }) => {
setState({ ...state, ...data })
})
}
/* 提交 */
function submit() {
const valid = fromRef.current.validator()
if (valid) {
setState({ loading: true })
const data = omit(state, [
"create_time",
"id",
"status",
"update_time",
"rsa_private_key",
"rsa_public_key",
"loading"
])
setResellMerchant(data).then(({ code, message }) => {
if (code === 200) {
const data = omit(state, ["reseller_id", "loading"])
setResellMerchant(state.reseller_id, data)
.then(({ code, message }) => {
if (code === 200) {
Notify.success("保存成功")
let clr = setTimeout(() => {
window.history.go(-1)
setState({ loading: false })
clearTimeout(clr)
}, 1000)
} else {
setState({ loading: false })
Notify.success(message)
}
})
.catch(({ message }) => {
setState({ loading: false })
Notify.success(message)
let clr = null
clr = setTimeout(() => {
window.history.go(-1)
clearTimeout(clr)
}, 1000)
} else {
Notify.success(message)
}
setState({ loading: false })
})
})
}
}
@ -77,7 +87,7 @@ export default function Merchant() {
<Card style={{ width: "100%" }} title={"更新信息"}>
<div className="adddistributor merchantForm">
<Form model={state} rules={rules} ref={fromRef}>
<FormItem labelname="商户编号" required="">
<FormItem labelname="商户编号" prop="merchant_id">
<Ipt
onChange={(value) => setState({ ...state, merchant_id: value })}
onClearItem={() => setState({ ...state, merchant_id: "" })}
@ -91,12 +101,122 @@ export default function Merchant() {
alignment={"left"}
/>
</FormItem>
<FormItem labelname="商户回调通知网关地址" prop="marketing_notify_url">
<FormItem labelname="平台ID" prop="pos_id">
<Ipt
onChange={(value) => setState({ ...state, marketing_notify_url: value })}
onClearItem={() => setState({ ...state, marketing_notify_url: "" })}
onChange={(value) => setState({ ...state, pos_id: value })}
onClearItem={() => setState({ ...state, pos_id: "" })}
countShow={false}
value={state.marketing_notify_url}
value={state.pos_id}
placeholder={"请输入平台ID"}
labelWidth={"0px"}
maxLength={20}
height={"36px"}
width={"520px"}
alignment={"left"}
/>
</FormItem>
<FormItem labelname="APP-ID" prop="app_id">
<Ipt
onChange={(value) => setState({ ...state, app_id: value })}
onClearItem={() => setState({ ...state, app_id: "" })}
countShow={false}
value={state.app_id}
placeholder={"请输入APPID"}
labelWidth={"0px"}
maxLength={20}
height={"36px"}
width={"520px"}
alignment={"left"}
/>
</FormItem>
{state.api_mode === 2 ? (
<FormItem labelname="店铺ID" prop="store_id">
<Ipt
onChange={(value) => setState({ ...state, store_id: value })}
onClearItem={() => setState({ ...state, store_id: "" })}
countShow={false}
value={state.store_id}
placeholder={"请输入店铺ID"}
labelWidth={"0px"}
maxLength={20}
height={"36px"}
width={"520px"}
alignment={"left"}
/>
</FormItem>
) : null}
{state.api_mode === 2 ? (
<FormItem labelname="偏移量" prop="secret_key">
<Ipt
onChange={(value) => setState({ ...state, secret_key: value })}
onClearItem={() => setState({ ...state, secret_key: "" })}
countShow={false}
value={state.secret_key}
placeholder={"请输入偏移量"}
labelWidth={"0px"}
maxLength={20}
height={"36px"}
width={"520px"}
alignment={"left"}
/>
</FormItem>
) : null}
<FormItem labelname="私钥" prop="private_key">
<div className="flex">
<Input
type="textarea"
onChange={({ target }) => setState({ ...state, private_key: target.value })}
value={state.private_key}
placeholder={"请输入私钥"}
readOnly
labelWidth={"0px"}
width={"520px"}
alignment={"left"}
/>
<CopyButton text={state.private_key} />
</div>
</FormItem>
<FormItem labelname="公钥" prop="public_key">
<div className="flex">
<Input
type="textarea"
onChange={({ target }) => setState({ ...state, public_key: target.value })}
value={state.public_key}
readOnly
placeholder={"请输入公钥"}
labelWidth={"0px"}
width={"520px"}
alignment={"left"}
/>
<CopyButton text={state.public_key} />
</div>
</FormItem>
<FormItem labelname="" required="">
<Pop trigger="hover" content="密钥受 “对接类型” 影响">
<Button type="primary" onClick={getKey}>
重新获取密钥
</Button>
</Pop>
</FormItem>
<FormItem labelname="商户公钥" prop="merchant_public_key">
<Input
type="textarea"
onChange={({ target }) => setState({ ...state, merchant_public_key: target.value })}
value={state.merchant_public_key}
placeholder={"请输入商户公钥"}
labelWidth={"0px"}
width={"520px"}
alignment={"left"}
/>
</FormItem>
<FormItem labelname="商户回调通知网关地址" prop="notify_url">
<Ipt
onChange={(value) => setState({ ...state, notify_url: value })}
onClearItem={() => setState({ ...state, notify_url: "" })}
countShow={false}
value={state.notify_url}
placeholder={"请输入网关地址"}
labelWidth={"0px"}
height={"36px"}
@ -104,77 +224,22 @@ export default function Merchant() {
alignment={"left"}
/>
</FormItem>
{state.rsa_public_key ? (
<FormItem labelname="营销系统RSA公钥" prop="rsa_public_key">
<div className="phonet">
<Ipt
countShow={false}
value={state.rsa_public_key}
disabled
labelWidth={"0px"}
height={"36px"}
width={"520px"}
alignment={"left"}
/>
<CopyButton
text={state.rsa_public_key}
onCopySuccess={() => {
Notify.clear()
Notify.success("复制成功!")
}}
>
<Button type="info">复制RSA公钥</Button>
</CopyButton>
</div>
</FormItem>
) : null}
{state.rsa_private_key ? (
<FormItem labelname="营销系统RSA私钥" prop="rsa_private_key">
<div className="phonet">
<Ipt
countShow={false}
value={state.rsa_private_key}
disabled
labelWidth={"0px"}
height={"36px"}
width={"520px"}
alignment={"left"}
/>
{state.rsa_private_key ? (
<CopyButton
text={state.rsa_private_key}
onCopySuccess={() => {
Notify.clear()
Notify.success("复制成功!")
}}
>
<Button type="info">复制RSA私钥</Button>
</CopyButton>
) : null}
</div>
</FormItem>
) : null}
<FormItem labelname="商户侧RSA公钥" prop="custom_rsa_public_key">
<Input
type="textarea"
autoSize
onChange={({ target }) =>
setState({ ...state, custom_rsa_public_key: target.value })
}
value={state.custom_rsa_public_key}
placeholder={"请输入商户侧RSA公钥"}
labelWidth={"0px"}
width={"520px"}
alignment={"left"}
/>
</FormItem>
<FormItem labelname="加密算法" prop="encrypt_type">
<FormItem labelname="商户状态">
<RadioGroup
onChange={({ target }) => setState({ ...state, encrypt_type: target.value })}
value={state.encrypt_type}
onChange={({ target }) => setState({ ...state, status: target.value })}
value={state.status}
>
<Radio value={2}>RSA</Radio>
<Radio value={1}>定制算法</Radio>
<Radio value={1}>正常</Radio>
<Radio value={2}>禁用</Radio>
</RadioGroup>
</FormItem>
<FormItem labelname="对接类型" prop="api_mode">
<RadioGroup
onChange={({ target }) => setState({ ...state, api_mode: target.value })}
value={state.api_mode}
>
<Radio value={2}>国密模式</Radio>
<Radio value={1}>RSA模式</Radio>
</RadioGroup>
</FormItem>
<FormItem labelname="订阅事件" prop="subscribe_event" required="">

View File

@ -1,30 +1,14 @@
.zent-form-horizontal[data-zv="9.11.0"] .zent-form-label {
flex-basis: 118px !important;
justify-content: flex-start !important;
}
.maincenter {
.zent-textarea {
height: 120px
}
.zent-form-horizontal[data-zv="9.11.0"] .zent-form-control-content {
margin-left: 0;
}
.flex {
display: flex;
align-items: center;
.adddistributor .iptfillself .label {
margin-right: 66px;
}
// .zent-select-v2-popup{
// width: 250px !important;
// }
.zent-btn-info[data-zv="9.11.0"] {
width: 120px;
color: #296bef !important;
border: none !important;
}
.zent-dialog-r-anchor .zent-dialog-r[data-zv="9.11.0"] {
margin-top: -180px;
}
.tip-reseller {
color: red;
font-size: 12px;
.zent-btn {
margin-left: 15px;
}
}
}

View File

@ -206,8 +206,13 @@ export default class orderList extends React.Component {
//导出订单
exportFn() {
let _self = this
let { status, orderType, option, key_word, pay_status, voucher_status } = _self.state
let { status, orderType, option, key_word, pay_status, voucher_status, search } = _self.state
const { plan_id, product_id, reseller_id } = search
let data = {}
data.plan_id = plan_id ? plan_id.key : ""
data.product_id = product_id ? product_id.key : ""
data.reseller_id = reseller_id ? reseller_id.key : ""
if (orderType && status) {
//区分立减金和商品
data.type = orderType
@ -994,7 +999,9 @@ export default class orderList extends React.Component {
<Menu onClick={(e, key) => this.menuItemClick(key, rowData.order_number)}>
{rowData.notifyEvent &&
rowData.notifyEvent.map((item) => (
<MenuItem key={item.event}>{item.name}</MenuItem>
<MenuItem disabled={item.disable == 2} key={item.event}>
{item.name}
</MenuItem>
))}
{rowData.type === 2 &&
rowData.orderVoucher &&

View File

@ -8,6 +8,13 @@ import ReactJson from "react-json-view"
import { Notify } from "zent"
import "./more.less"
const Column = [
{
title: "序号",
name: "index",
prop: "index",
type: "slot",
width: "20%"
},
{
title: "创建时间",
name: "time",
@ -221,10 +228,13 @@ export default class order extends React.Component {
this.pageChange(e)
}}
checkChange={this.selection.bind(this)}
ComponentHandler={(com, rowData) => {
ComponentHandler={(com, rowData, index) => {
if (com == "time") {
return <div>{moment.unix(rowData.time).format("YYYY-MM-DD HH:mm:ss")}</div>
}
if (com == "index") {
return <span>{index + 1}</span>
}
if (com == "opearo") {
return (
<div>

View File

@ -5,7 +5,7 @@ import FormItem from "@/components/form-item/main"
import Form from "@/components/form/main"
import { map } from "lodash-es"
import React from "react"
import { RadioButton, RadioGroup, Select } from "zent"
import { RadioButton, RadioGroup, Select, Icon, Pop } from "zent"
import "./add.less"
export default class accList extends React.Component {
@ -173,20 +173,6 @@ export default class accList extends React.Component {
新建落地页
</a>
</FormItem>
<FormItem labelname="兑换入口交互" prop="use">
<RadioGroup
onChange={(e) => {
this.onLinkChange(e)
}}
value={this.state.model.use}
>
<RadioButton value={2} disabled>
二维码
</RadioButton>
<RadioButton value={1}>链接</RadioButton>
</RadioGroup>
</FormItem>
<FormItem labelname="域名选择" prop="link">
<RadioGroup
onChange={(e) => {
@ -194,13 +180,19 @@ export default class accList extends React.Component {
}}
value={this.state.model.link}
>
<RadioButton value={1}>大客户</RadioButton>
<RadioButton value={2} disabled={this.state.keyType === "2"}>
普通商户
</RadioButton>
<RadioButton value={3} disabled={this.state.keyType === "2"}>
备用
</RadioButton>
<Pop trigger="hover" content="22233.cn ">
<RadioButton value={1}>大客户</RadioButton>
</Pop>
<Pop trigger="hover" content="83323.cn">
<RadioButton value={2} disabled={this.state.keyType === "2"}>
普通商户
</RadioButton>
</Pop>
<Pop trigger="hover" content="86885.cn">
<RadioButton value={3} disabled={this.state.keyType === "2"}>
备用
</RadioButton>
</Pop>
</RadioGroup>
</FormItem>
</Form>