Commit 02b560c7 authored by wildfirecode13's avatar wildfirecode13

1

parent d050e1ed
...@@ -87,4 +87,4 @@ function removeCalendarEvent(json) { ...@@ -87,4 +87,4 @@ function removeCalendarEvent(json) {
// // bridge.callHandler('currentLocation', { '': 'currentLocation', 'body': str3 }, function () { // // bridge.callHandler('currentLocation', { '': 'currentLocation', 'body': str3 }, function () {
// // }) //ios获取定位 // // }) //ios获取定位
// // }); // // });
// });</script><link href="//yun.duiba.com.cn/spark/v2/temp_base/1636530535886/styles/main.e8cf3e75148993800e9d.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/1636530535886/js/runtime-main.9ddcaf99.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1636530535886/js/vendors.33d53b6d.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1636530535886/js/main.28cd9ff5.js" crossorigin="anonymous"></script></body></html> // });</script><link href="//yun.duiba.com.cn/spark/v2/temp_base/1636531206903/styles/main.fb1e88722823c6f3ab3c.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/1636531206903/js/runtime-main.33ab8d39.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1636531206903/js/vendors.33d53b6d.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1636531206903/js/main.54b67a1c.js" crossorigin="anonymous"></script></body></html>
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+2NO":function(t,e,n){},"8TUu":function(t,e,n){var o=n("LboF"),a=n("Ftvq");"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[t.i,a,""]]);var r={insert:"head",singleton:!1};o(a,r);t.exports=a.locals||{}},Ftvq:function(t,e,n){},k7yg:function(t,e,n){"use strict";n.r(e);var o,a=n("lwsE"),r=n.n(a),c=n("W8MJ"),i=n.n(c),l=n("7W2i"),s=n.n(l),u=n("a1gu"),p=n.n(u),d=n("Nsbk"),f=n.n(d),h=n("J4zp"),v=n.n(h),m=n("q1tI"),y=n.n(m),g=n("i8i4"),w=n.n(g),k=(n("mPlr"),n("8TUu"),n("TyAF")),E=n("RIqP"),L=n.n(E),b=n("aFzQ"),D={},I=Object(b.l)({popList:[],pushPop:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.popList.length){var o,a=this.popList.slice();a.push({key:t,data:e,isMulti:n}),a=a.sort((function(t,e){return(D[e.key]?D[e.key]:10)-(D[t.key]?D[t.key]:10)})),this.popList.clear(),(o=this.popList).push.apply(o,L()(a))}else this.popList.push({key:t,data:e,isMulti:n})},closePop:function(t){if(t){var e,n=this.popList.slice();n=n.filter((function(e){return e.key!=t})),this.popList.clear(),(e=this.popList).push.apply(e,L()(n))}else this.popList.shift()},closePopAll:function(){this.popList.clear()}});function O(t){var e=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(t){return!1}}();return function(){var n,o=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return p()(this,n)}}var R={},C=Object(k.a)(o=function(t){s()(n,t);var e=O(n);function n(t){return r()(this,n),e.call(this,t)}return i()(n,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t,e,n,o,a=Object(b.p)(I.popList);if(!a.length)return document.body.style.overflow="auto",y.a.createElement("section",null);if(a.length>1&&1==a[a.length-1].isMulti){var r=a[a.length-1];n=R[r.key],o=r.data}var c=a[0];return t=R[c.key],e=c.data,(t||n)&&(document.body.style.overflow="hidden"),y.a.createElement("section",{className:"modal-hoc-bg",style:{zIndex:I.popList.length?1e3:-1,display:I.popList.length?"block":"none"}},t&&y.a.createElement(t,{popData:e}),n&&y.a.createElement("section",{className:"modal-hoc-bg",style:{zIndex:I.popList.length?1e3:-1,display:I.popList.length?"block":"none"}},y.a.createElement(n,{popData:o})))}}]),n}(m.Component))||o,F=n("/2d7"),M=CFG.appID,J="202."+CFG.projectId+".0.0",N=[{ele:".test-md1",data:{dpm:"".concat(M,".110.5.1"),dcm:J,domain:"//embedlog.duiba.com.cn",appId:M},once:!1}];function S(t){var e=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(t){return!1}}();return function(){var n,o=f()(t);if(e){var a=f()(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return p()(this,n)}}Object(F.a)({show:N,click:N});var T=function(t){s()(n,t);var e=S(n);function n(){return r()(this,n),e.apply(this,arguments)}return i()(n,[{key:"componentDidMount",value:function(){console.warn("JSInterface",window.JSInterface);var t={pushIndex:1,title:"测试标题",startDate:"2021-11-10 16:00",endTime:"5",alarmTime:"2",notes:""},e=[1,2,3],n=[["15","55"],["16","10"],["16","20"]];(e=e.map((function(t){return e=t,n=new Date,o=n.getFullYear(),a=n.getMonth()+1,r=n.getDate(),o.toString()+a.toString()+r.toString()+"_"+e.toString();var e,n,o,a,r}))).forEach((function(e,o){var a,r,c,i,l,s,u,p,d=JSON.parse(JSON.stringify(t));d.startDate=(a=n[o],r=v()(a,2),c=r[0],i=r[1],l=new Date,s=l.getFullYear(),u=l.getMonth()+1,p=l.getDate(),"".concat(s,"-").concat(u,"-").concat(p," ").concat(c,":").concat(i)),d.title="测试标题".concat(e),console.warn("eventId",e),console.warn("do addCalendarEvent 1",e);var f={callBackHandlerName:"addCalendarEvent1",eventId:e,title:d.title,startDate:d.startDate,endTime:d.endTime,alarmTime:d.alarmTime,notes:d.notes};console.warn("json "+e,f),window.addCalendarEvent(f)})),window.addCalendarEvent1=function(t){var e;if(console.warn("哈哈 回调执行了,回调数据是: 2",t),e=(e=JSON.parse(t)).errorCode,console.warn(e),console.warn("000"==e),"000"==e){console.warn("???",e);var n=new Event("addCalendarEvent1");document.dispatchEvent(n)}}}},{key:"render",value:function(){return y.a.createElement("div",null,y.a.createElement("div",null,"请在app.jsx中指定首页"),y.a.createElement(C,null))}}]),n}(m.Component);w.a.render(y.a.createElement(T,null),document.getElementById("root"))},mPlr:function(t,e,n){var o=n("LboF"),a=n("+2NO");"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[t.i,a,""]]);var r={insert:"head",singleton:!1};o(a,r);t.exports=a.locals||{}}},[["k7yg",1,2]]]);
//# sourceMappingURL=main.28cd9ff5.js.map
\ No newline at end of file
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+2NO":function(e,t,n){},"8TUu":function(e,t,n){var o=n("LboF"),a=n("Ftvq");"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var r={insert:"head",singleton:!1};o(a,r);e.exports=a.locals||{}},Ftvq:function(e,t,n){},k7yg:function(e,t,n){"use strict";n.r(t);var o,a=n("lwsE"),r=n.n(a),c=n("W8MJ"),i=n.n(c),l=n("7W2i"),s=n.n(l),u=n("a1gu"),p=n.n(u),d=n("Nsbk"),f=n.n(d),v=n("J4zp"),h=n.n(v),m=n("q1tI"),y=n.n(m),g=n("i8i4"),w=n.n(g),E=(n("mPlr"),n("8TUu"),n("TyAF")),k=n("RIqP"),L=n.n(k),b=n("aFzQ"),C={},D=Object(b.l)({popList:[],pushPop:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.popList.length){var o,a=this.popList.slice();a.push({key:e,data:t,isMulti:n}),a=a.sort((function(e,t){return(C[t.key]?C[t.key]:10)-(C[e.key]?C[e.key]:10)})),this.popList.clear(),(o=this.popList).push.apply(o,L()(a))}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,L()(n))}else this.popList.shift()},closePopAll:function(){this.popList.clear()}});function I(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,o=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return p()(this,n)}}var O={},R=Object(E.a)(o=function(e){s()(n,e);var t=I(n);function n(e){return r()(this,n),t.call(this,e)}return i()(n,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e,t,n,o,a=Object(b.p)(D.popList);if(!a.length)return document.body.style.overflow="auto",y.a.createElement("section",null);if(a.length>1&&1==a[a.length-1].isMulti){var r=a[a.length-1];n=O[r.key],o=r.data}var c=a[0];return e=O[c.key],t=c.data,(e||n)&&(document.body.style.overflow="hidden"),y.a.createElement("section",{className:"modal-hoc-bg",style:{zIndex:D.popList.length?1e3:-1,display:D.popList.length?"block":"none"}},e&&y.a.createElement(e,{popData:t}),n&&y.a.createElement("section",{className:"modal-hoc-bg",style:{zIndex:D.popList.length?1e3:-1,display:D.popList.length?"block":"none"}},y.a.createElement(n,{popData:o})))}}]),n}(m.Component))||o,F=n("/2d7"),J=CFG.appID,M="202."+CFG.projectId+".0.0",N=[{ele:".test-md1",data:{dpm:"".concat(J,".110.5.1"),dcm:M,domain:"//embedlog.duiba.com.cn",appId:J},once:!1}];function S(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,o=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return p()(this,n)}}Object(F.a)({show:N,click:N});var T=function(e){s()(n,e);var t=S(n);function n(){return r()(this,n),t.apply(this,arguments)}return i()(n,[{key:"componentDidMount",value:function(){console.warn("JSInterface",window.JSInterface);var e={pushIndex:1,title:"测试标题",startDate:"2021-11-10 16:00",endTime:"5",alarmTime:"2",notes:""},t=[1,2,3],n=[["15","55"],["16","10"],["16","20"]];(t=t.map((function(e){return t=e,n=new Date,o=n.getFullYear(),a=n.getMonth()+1,r=n.getDate(),o.toString()+a.toString()+r.toString()+"_"+t.toString();var t,n,o,a,r}))).forEach((function(t,o){var a,r,c,i,l,s,u,p,d=JSON.parse(JSON.stringify(e));d.startDate=(a=n[o],r=h()(a,2),c=r[0],i=r[1],l=new Date,s=l.getFullYear(),u=l.getMonth()+1,p=l.getDate(),"".concat(s,"-").concat(u,"-").concat(p," ").concat(c,":").concat(i)),d.title="测试标题".concat(t),console.warn("eventId",t),console.warn("do addCalendarEvent 1",t);var f={callBackHandlerName:"addCalendarEvent1",eventId:t,title:d.title,startDate:d.startDate,endTime:d.endTime,alarmTime:d.alarmTime,notes:d.notes};console.warn("json "+t,f),window.addCalendarEvent(f)})),window.removeCalendarEvent1=function(e){if(console.warn("哈哈 删除回调执行了,回调数据是: 3",e),"000"==JSON.parse(e).errorCode){var t=new Event("removeCalendarEvent1");document.dispatchEvent(t)}},window.addCalendarEvent1=function(e){var t;if(console.warn("哈哈 添加回调执行了,回调数据是: 2",e),t=(t=JSON.parse(e)).errorCode,console.warn(t),console.warn("000"==t),"000"==t){console.warn("???",t);var n=new Event("addCalendarEvent1");document.dispatchEvent(n)}}}},{key:"render",value:function(){return y.a.createElement("div",null,y.a.createElement("div",null,"请在app.jsx中指定首页"),y.a.createElement(R,null))}}]),n}(m.Component);w.a.render(y.a.createElement(T,null),document.getElementById("root"))},mPlr:function(e,t,n){var o=n("LboF"),a=n("+2NO");"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var r={insert:"head",singleton:!1};o(a,r);e.exports=a.locals||{}}},[["k7yg",1,2]]]);
//# sourceMappingURL=main.54b67a1c.js.map
\ No newline at end of file
This diff is collapsed.
!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/1636530535886/";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()}([]); !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/1636531206903/";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.9ddcaf99.js.map //# sourceMappingURL=runtime-main.33ab8d39.js.map
\ No newline at end of file \ No newline at end of file
...@@ -23,4 +23,4 @@ body { ...@@ -23,4 +23,4 @@ body {
z-index: 1000; z-index: 1000;
} }
/*# sourceMappingURL=main.e8cf3e75148993800e9d.css.map*/ /*# sourceMappingURL=main.fb1e88722823c6f3ab3c.css.map*/
\ No newline at end of file \ No newline at end of file
{"version":3,"sources":[],"names":[],"mappings":"","file":"styles/main.e8cf3e75148993800e9d.css","sourceRoot":""} {"version":3,"sources":[],"names":[],"mappings":"","file":"styles/main.fb1e88722823c6f3ab3c.css","sourceRoot":""}
\ No newline at end of file \ No newline at end of file
...@@ -9,6 +9,6 @@ module.exports ={ ...@@ -9,6 +9,6 @@ module.exports ={
"IMAGE_Q1": 0.6, "IMAGE_Q1": 0.6,
"IMAGE_Q2": 0.8, "IMAGE_Q2": 0.8,
"RES_PATH": "/src/assets/", "RES_PATH": "/src/assets/",
"RES_PATH_PROD": "//yun.duiba.com.cn/spark/v2/temp_base/1636530533846", "RES_PATH_PROD": "//yun.duiba.com.cn/spark/v2/temp_base/1636531204554",
"JS_PATH_PROD": "https://yun.duiba.com.cn/spark/v2/temp_base/1636530535886/js" "JS_PATH_PROD": "https://yun.duiba.com.cn/spark/v2/temp_base/1636531206903/js"
} }
\ No newline at end of file
...@@ -70,14 +70,39 @@ class App extends Component { ...@@ -70,14 +70,39 @@ class App extends Component {
} }
console.warn('json ' + eventId, json) console.warn('json ' + eventId, json)
window['addCalendarEvent'](json) window['addCalendarEvent'](json)
// var json1 = {
// "callBackHandlerName": "removeCalendarEvent1",
// "eventId": eventId,
// "title": pushData.title,
// "startDate": pushData.startDate,
// "endTime": pushData.endTime,
// "alarmTime": pushData.alarmTime,
// "notes": pushData.notes
// }
// console.warn('准备删除数据 json1 ' + eventId, json1);
// window['removeCalendarEvent'](json1);
}) })
window['removeCalendarEvent1'] = function (data) {
console.warn('哈哈 删除回调执行了,回调数据是: 3', data)
var code;
code = JSON.parse(data)
code = code.errorCode
console.log(code)
console.log(code == "000")
if (code == "000") {
var removeCalendarEvent1 = new Event("removeCalendarEvent1");
document.dispatchEvent(removeCalendarEvent1)
}
}
window['addCalendarEvent1'] = function (data) { window['addCalendarEvent1'] = function (data) {
console.warn('哈哈 回调执行了,回调数据是: 2', data) console.warn('哈哈 添加回调执行了,回调数据是: 2', data)
var code; var code;
code = JSON.parse(data) code = JSON.parse(data)
......
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