diff --git a/.gitignore b/.gitignore index e250a02..3240cc6 100755 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ .externalNativeBuild app/build +uniapp\347\244\272\344\276\213\345\267\245\347\250\213\346\272\220\347\240\201/unipluginDemo/unpackage diff --git a/app/src/main/assets/apps/__UNI__2B9497D/www/app-config-service.js b/app/src/main/assets/apps/__UNI__2B9497D/www/app-config-service.js index 411e973..26df71f 100644 --- a/app/src/main/assets/apps/__UNI__2B9497D/www/app-config-service.js +++ b/app/src/main/assets/apps/__UNI__2B9497D/www/app-config-service.js @@ -1,8 +1,8 @@ var isReady=false;var onReadyCallbacks=[]; var isServiceReady=false;var onServiceReadyCallbacks=[]; -var __uniConfig = {"pages":["pages/index/index","pages/index/ball_list","pages/index/scan","pages/sample/ext-module","pages/sample/ext-component","pages/sample/richAlert"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"unipluginDemo","compilerVersion":"3.3.11","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; -var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/ball_list","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/scan","meta":{"isNVue":true},"window":{"navigationBarTitleText":"22222"}},{"path":"/pages/sample/ext-module","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 module"}},{"path":"/pages/sample/ext-component","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 component"}},{"path":"/pages/sample/richAlert","meta":{},"window":{"navigationBarTitleText":"RichAlert"}}]; +var __uniConfig = {"pages":["pages/sample/ext-module-vue","pages/index/index","pages/index/ball_list","pages/index/scan","pages/sample/ext-module","pages/sample/ext-component","pages/sample/richAlert"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"unipluginDemo","compilerVersion":"3.3.11","entryPagePath":"pages/sample/ext-module-vue","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; +var __uniRoutes = [{"path":"/pages/sample/ext-module-vue","meta":{"isQuit":true},"window":{"navigationBarTitleText":"扩展 module vue"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/ball_list","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/scan","meta":{"isNVue":true},"window":{"navigationBarTitleText":"22222"}},{"path":"/pages/sample/ext-module","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 module nvue"}},{"path":"/pages/sample/ext-component","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 component"}},{"path":"/pages/sample/richAlert","meta":{},"window":{"navigationBarTitleText":"RichAlert"}}]; __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); diff --git a/app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js b/app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js index 2b7f69b..a6b1018 100644 --- a/app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js +++ b/app/src/main/assets/apps/__UNI__2B9497D/www/app-service.js @@ -1 +1 @@ -(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0101":function(t,e,n){"use strict";n.r(e);var i=n("242c"),a=n("b505");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r,o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","button-sp-area"),attrs:{_i:0}},[n("button",{attrs:{_i:1},on:{click:function(e){return t.showRichAlert()}}})])},s=[]},"0de9":function(t,e,n){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function a(){return"string"===typeof __channelId__&&__channelId__}function s(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1){var l=o.pop();c=o.join("---COMMA---"),0===l.indexOf(" at ")?c+=l:c+="---COMMA---"+l}else c=o[0];console[r](c)}n.r(e),n.d(e,"log",(function(){return r})),n.d(e,"default",(function(){return o}))},"242c":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-container"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-hello-text"),attrs:{_i:1}},[n("text",{staticClass:t._$s(2,"sc","hello-text"),attrs:{_i:2}})]),t._l(t._$s(3,"f",{forItems:t.list}),(function(e,i,a,s){return n("view",{key:t._$s(3,"f",{forIndex:a,key:e.id}),staticClass:t._$s("3-"+s,"sc","uni-panel"),attrs:{_i:"3-"+s}},[n("view",{staticClass:t._$s("4-"+s,"sc","uni-panel-h"),class:t._$s("4-"+s,"c",e.open?"uni-panel-h-on":""),attrs:{_i:"4-"+s},on:{click:function(e){return t.triggerCollapse(i)}}},[n("text",{staticClass:t._$s("5-"+s,"sc","uni-panel-text"),attrs:{_i:"5-"+s}},[t._v(t._$s("5-"+s,"t0-0",t._s(e.name)))]),n("text",{staticClass:t._$s("6-"+s,"sc","uni-panel-icon uni-icon"),class:t._$s("6-"+s,"c",e.open?"uni-panel-icon-on":""),attrs:{_i:"6-"+s}},[t._v(t._$s("6-"+s,"t0-0",t._s(e.pages?"\ue581":"\ue470")))])]),t._$s("7-"+s,"i",e.open)?n("view",{staticClass:t._$s("7-"+s,"sc","uni-panel-c"),attrs:{_i:"7-"+s}},t._l(t._$s("8-"+s,"f",{forItems:e.pages}),(function(e,i,a,r){return n("view",{key:t._$s("8-"+s,"f",{forIndex:a,key:i}),staticClass:t._$s("8-"+s+"-"+r,"sc","uni-navigate-item"),attrs:{_i:"8-"+s+"-"+r},on:{click:function(n){return t.goDetailPage(e.url)}}},[n("text",{staticClass:t._$s("9-"+s+"-"+r,"sc","uni-navigate-text"),attrs:{_i:"9-"+s+"-"+r}},[t._v(t._$s("9-"+s+"-"+r,"t0-0",t._s(e.name?e.name:e)))]),n("text",{staticClass:t._$s("10-"+s+"-"+r,"sc","uni-navigate-icon uni-icon"),attrs:{_i:"10-"+s+"-"+r}})])})),0):t._e()])})),n("view",{staticClass:t._$s(11,"sc","uni-panel"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","uni-panel-h"),attrs:{_i:12},on:{click:function(e){return t.testScanCancle()}}}),n("view",{staticClass:t._$s(13,"sc","uni-panel-h"),attrs:{_i:13},on:{click:function(e){return t.goScan()}}}),n("view",{staticClass:t._$s(14,"sc","uni-panel-h"),attrs:{_i:14},on:{click:function(e){return t.goBallList()}}})])],2)},s=[]},"40fd":function(t,e,n){"use strict";n.r(e);var i=n("4422"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},4422:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{optionQuery:{},ballList:[],page:1,pageTotal:1,isShowBtn:!1}},onLoad:function(t){t.stadium_id,t.brand_id},onReachBottom:function(){},methods:{returnBtn:function(){uni.navigateBack()},getList:function(e){var n=this,i=e.page,a=void 0===i?1:i,s=e.page_size,r=void 0===s?10:s,o=this.optionQuery;util.showLoad(),servers.post({url:API.tidList,data:{brand_id:o.brand_id,stadium_id:o.stadium_id,goods_name:"\u7bee\u7403\u5f55\u5165",page:a,page_size:r},failMsg:"\u52a0\u8f7d\u5931\u8d25\uff01"}).then((function(e){util.hideLoad(),n.pageTotal=Math.ceil(e.total/10);var i=e.list||[];return t("log","\u6b66\u6c49\u51e1\u8c37\uff1a",JSON.stringify(e)," at pages/index/ball_list.vue:102"),1==a?(i.length>0&&(n.isShowBtn=!0),n.ballList=i):i.length<=0?util.showNone("\u6ca1\u6709\u66f4\u591a\uff01"):(n.page=a,void(n.ballList=i))})).catch((function(e){t("error","\u7bee\u7403\u5217\u8868-err\uff1f",e," at pages/index/ball_list.vue:116")}))}}};e.default=n}).call(this,n("0de9")["default"])},5215:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{id:"ext-module",name:"\u6269\u5c55 module\u6d4b\u8bd5\u5217\u8868",open:!1,url:"/pages/sample/ext-module"},{id:"ext-component",name:"\u6269\u5c55 component",open:!1,url:"/pages/sample/ext-component"},{id:"richAlert",name:"\u63d2\u4ef6\u793a\u4f8bRichAlert",open:!1,url:"/pages/sample/richAlert"}],navigateFlag:!1}},onLoad:function(){},methods:{goScan:function(){t("log",111," at pages/index/index.vue:59"),uni.navigateTo({url:"./scan"})},goBallList:function(){t("log",111," at pages/index/index.vue:66"),uni.navigateTo({url:"./ball_list"})},testScanCancle:function(){uni.scanCode({onlyFromCamera:!0,success:function(e){t("log","\u6761\u7801\u7c7b\u578b\uff1a"+e.scanType," at pages/index/index.vue:76"),t("log","\u6761\u7801\u5185\u5bb9\uff1a"+e.result," at pages/index/index.vue:77")}}),setTimeout((function(){t("log","\u6267\u884c\u8fd4\u56de"," at pages/index/index.vue:81"),uni.navigateBack(),uni.navigateBack()}),3e3)},triggerCollapse:function(t){if(this.list[t].pages)for(var e=0;euni-app \u662f\u4e00\u4e2a\u4f7f\u7528 Vue.js \u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u524d\u7aef\u6846\u67b6!\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d",contentAlign:"left",checkBox:{title:"\u4e0d\u518d\u63d0\u793a",isSelected:!0},buttons:[{title:"\u53d6\u6d88"},{title:"\u5426"},{title:"\u786e\u8ba4",titleColor:"#3F51B5"}]},(function(e){var i=JSON.stringify(e);switch(n.toast({message:i,duration:1.5}),e.type){case"button":t("log","callback---button--"+e.index," at pages/sample/richAlert.vue:50");break;case"checkBox":t("log","callback---checkBox--"+e.isSelected," at pages/sample/richAlert.vue:53");break;case"a":t("log","callback---a--"+JSON.stringify(e)," at pages/sample/richAlert.vue:56");break;case"backCancel":t("log","callback---backCancel--"," at pages/sample/richAlert.vue:59");break}}))}}};e.default=a}).call(this,n("0de9")["default"])},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,a,s,r,o,c,l){var u,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var _ in c)d.call(c,_)&&!d.call(f.components,_)&&(f.components[_]=c[_])}if(l&&((l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(f.mixins||(f.mixins=[])).push(l)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),s&&(f._scopeId="data-v-"+s),r?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},f._ssrRegister=u):a&&(u=o?function(){a.call(this,this.$root.$options.shadowRoot)}:a),u)if(f.functional){f._injectStyles=u;var p=f.render;f.render=function(t,e){return u.call(e),p(t,e)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,u):[u]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},f608:function(t,e,n){"use strict";n.r(e);var i=n("0d6a"),a=n("bc8b");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r,o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports}},[["5a57","app-config"]]]); \ No newline at end of file +(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"00f8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("af3c"),s=uni.requireNativePlugin("Zmt-Module"),a=uni.requireNativePlugin("TestModule"),r=uni.requireNativePlugin("uniplugin_module_ox"),o=uni.requireNativePlugin("Face-Module"),c=uni.requireNativePlugin("modal"),u={onLoad:function(){this.initAPPListener()},onReady:function(){this.logs.push("\u5f53\u524d\u65f6\u95f4:"+this.getTime())},data:function(){return{logs:["LOG VIEW"]}},methods:{initAPPListener:function(){var t=this;plus.globalEvent.addEventListener("myEvent",(function(e){c.toast({message:"TestEvent\u6536\u5230\uff1a"+JSON.stringify(e),duration:3.5}),t.log("\u5168\u5c40\u4e8b\u4ef6\u63a5\u6536:"+JSON.stringify(e))}))},faceAsyncFunc:function(){var t=this;this.log("\u6267\u884cfaceModule.faceAsyncFunc"),o.faceAsyncFunc({name:"unimp",age:1},(function(e){c.toast({message:e,duration:1.5}),t.log(JSON.stringify(e))}))},tcpAsyncFunc:function(){var t=this;this.log("\u5f00\u542fTcp Server."),s.tcpAsyncFunc({port:"16666",name:"unimp",age:1},(function(e){c.toast({message:e,duration:2}),t.log("invoke:"+JSON.stringify(e))}))},testFun2:function(){var t=s.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc:function(){a.testAsyncFunc({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=a.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc2:function(){r.testAsyncFunc2({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=r.testSyncFunc2({name:"unimp",age:1});c.toast({message:t,duration:1.5})},log:function(t){this.logs.push(this.getTime()+" ".concat(t))},getTime:function(){return(0,i.timeFormat)(new Date,"mm/dd hh:MM:ss")},gotoNativePage:function(){a.gotoNativePage()}}};e.default=u},"0101":function(t,e,n){"use strict";n.r(e);var i=n("e219"),s=n("b505");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0348":function(t,e,n){"use strict";n.r(e);var i=n("585a"),s=n("4aaa");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","button-sp-area"),attrs:{_i:0}},[n("button",{attrs:{_i:1},on:{click:function(e){return t.showRichAlert()}}})])},a=[]},"0de9":function(t,e,n){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function s(){return"string"===typeof __channelId__&&__channelId__}function a(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1){var u=o.pop();c=o.join("---COMMA---"),0===u.indexOf(" at ")?c+=u:c+="---COMMA---"+u}else c=o[0];console[r](c)}n.r(e),n.d(e,"log",(function(){return r})),n.d(e,"default",(function(){return o}))},"40fd":function(t,e,n){"use strict";n.r(e);var i=n("4422"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},4422:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{optionQuery:{},ballList:[],page:1,pageTotal:1,isShowBtn:!1}},onLoad:function(t){t.stadium_id,t.brand_id},onReachBottom:function(){},methods:{returnBtn:function(){uni.navigateBack()},getList:function(e){var n=this,i=e.page,s=void 0===i?1:i,a=e.page_size,r=void 0===a?10:a,o=this.optionQuery;util.showLoad(),servers.post({url:API.tidList,data:{brand_id:o.brand_id,stadium_id:o.stadium_id,goods_name:"\u7bee\u7403\u5f55\u5165",page:s,page_size:r},failMsg:"\u52a0\u8f7d\u5931\u8d25\uff01"}).then((function(e){util.hideLoad(),n.pageTotal=Math.ceil(e.total/10);var i=e.list||[];return t("log","\u6b66\u6c49\u51e1\u8c37\uff1a",JSON.stringify(e)," at pages/index/ball_list.vue:102"),1==s?(i.length>0&&(n.isShowBtn=!0),n.ballList=i):i.length<=0?util.showNone("\u6ca1\u6709\u66f4\u591a\uff01"):(n.page=s,void(n.ballList=i))})).catch((function(e){t("error","\u7bee\u7403\u5217\u8868-err\uff1f",e," at pages/index/ball_list.vue:116")}))}}};e.default=n}).call(this,n("0de9")["default"])},"4aaa":function(t,e,n){"use strict";n.r(e);var i=n("00f8"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},5215:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{id:"ext-module",name:"\u6269\u5c55 module\u6d4b\u8bd5\u5217\u8868",open:!1,url:"/pages/sample/ext-module-vue"},{id:"ext-component",name:"\u6269\u5c55 component",open:!1,url:"/pages/sample/ext-component"},{id:"richAlert",name:"\u63d2\u4ef6\u793a\u4f8bRichAlert",open:!1,url:"/pages/sample/richAlert"}],navigateFlag:!1}},onLoad:function(){},methods:{goScan:function(){t("log",111," at pages/index/index.vue:59"),uni.navigateTo({url:"./scan"})},goBallList:function(){t("log",111," at pages/index/index.vue:66"),uni.navigateTo({url:"./ball_list"})},testScanCancle:function(){uni.scanCode({onlyFromCamera:!0,success:function(e){t("log","\u6761\u7801\u7c7b\u578b\uff1a"+e.scanType," at pages/index/index.vue:76"),t("log","\u6761\u7801\u5185\u5bb9\uff1a"+e.result," at pages/index/index.vue:77")}}),setTimeout((function(){t("log","\u6267\u884c\u8fd4\u56de"," at pages/index/index.vue:81"),uni.navigateBack(),uni.navigateBack()}),3e3)},triggerCollapse:function(t){if(this.list[t].pages)for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),"string"==typeof t&&t.indexOf("-")>0&&(t=t.replace(/\-/g,"/")),10==t.toString().length&&(t*=1e3);var n,i=new Date(t),s={"y+":i.getFullYear().toString(),"m+":(i.getMonth()+1).toString(),"d+":i.getDate().toString(),"h+":i.getHours().toString(),"M+":i.getMinutes().toString(),"s+":i.getSeconds().toString()};for(var a in s)n=new RegExp("("+a+")").exec(e),n&&(e=e.replace(n[1],1==n[1].length?s[a]:s[a].padStart(n[1].length,"0")));return e}function s(t){var e="",n=parseInt(t/3600),i=parseInt(t%3600/60),s=parseInt(t%3600%60);return n>0&&(n=n<10?"0"+n:n,e+=n+":"),i=i<10?"0"+i:i,s=s<10?"0"+s:s,e+=i+":"+s,e}Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormat=i,e.getDurationTime=s,String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);var i=t-n.length,s=Math.ceil(i/e.length);while(s>>=1)e+=e,1===s&&(e+=e);return e.slice(0,i)+n})},b354:function(t,e,n){"use strict";n.r(e);var i=n("d479"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},b505:function(t,e,n){"use strict";n.r(e);var i=n("5215"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},bc8b:function(t,e,n){"use strict";n.r(e);var i=n("e10d"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},d479:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=n}).call(this,n("0de9")["default"])},e10d:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=uni.requireNativePlugin("modal"),i=uni.requireNativePlugin("DCloud-RichAlert"),s={data:function(){return{title:""}},onLoad:function(){},methods:{showRichAlert:function(){i.show({position:"bottom",title:"\u63d0\u793a\u4fe1\u606f",titleColor:"#FF0000",content:"uni-app \u662f\u4e00\u4e2a\u4f7f\u7528 Vue.js \u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u524d\u7aef\u6846\u67b6!\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d",contentAlign:"left",checkBox:{title:"\u4e0d\u518d\u63d0\u793a",isSelected:!0},buttons:[{title:"\u53d6\u6d88"},{title:"\u5426"},{title:"\u786e\u8ba4",titleColor:"#3F51B5"}]},(function(e){var i=JSON.stringify(e);switch(n.toast({message:i,duration:1.5}),e.type){case"button":t("log","callback---button--"+e.index," at pages/sample/richAlert.vue:50");break;case"checkBox":t("log","callback---checkBox--"+e.isSelected," at pages/sample/richAlert.vue:53");break;case"a":t("log","callback---a--"+JSON.stringify(e)," at pages/sample/richAlert.vue:56");break;case"backCancel":t("log","callback---backCancel--"," at pages/sample/richAlert.vue:59");break}}))}}};e.default=s}).call(this,n("0de9")["default"])},e219:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-container"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-hello-text"),attrs:{_i:1}},[n("text",{staticClass:t._$s(2,"sc","hello-text"),attrs:{_i:2}})]),t._l(t._$s(3,"f",{forItems:t.list}),(function(e,i,s,a){return n("view",{key:t._$s(3,"f",{forIndex:s,key:e.id}),staticClass:t._$s("3-"+a,"sc","uni-panel"),attrs:{_i:"3-"+a}},[n("view",{staticClass:t._$s("4-"+a,"sc","uni-panel-h"),class:t._$s("4-"+a,"c",e.open?"uni-panel-h-on":""),attrs:{_i:"4-"+a},on:{click:function(e){return t.triggerCollapse(i)}}},[n("text",{staticClass:t._$s("5-"+a,"sc","uni-panel-text"),attrs:{_i:"5-"+a}},[t._v(t._$s("5-"+a,"t0-0",t._s(e.name)))]),n("text",{staticClass:t._$s("6-"+a,"sc","uni-panel-icon uni-icon"),class:t._$s("6-"+a,"c",e.open?"uni-panel-icon-on":""),attrs:{_i:"6-"+a}},[t._v(t._$s("6-"+a,"t0-0",t._s(e.pages?"\ue581":"\ue470")))])]),t._$s("7-"+a,"i",e.open)?n("view",{staticClass:t._$s("7-"+a,"sc","uni-panel-c"),attrs:{_i:"7-"+a}},t._l(t._$s("8-"+a,"f",{forItems:e.pages}),(function(e,i,s,r){return n("view",{key:t._$s("8-"+a,"f",{forIndex:s,key:i}),staticClass:t._$s("8-"+a+"-"+r,"sc","uni-navigate-item"),attrs:{_i:"8-"+a+"-"+r},on:{click:function(n){return t.goDetailPage(e.url)}}},[n("text",{staticClass:t._$s("9-"+a+"-"+r,"sc","uni-navigate-text"),attrs:{_i:"9-"+a+"-"+r}},[t._v(t._$s("9-"+a+"-"+r,"t0-0",t._s(e.name?e.name:e)))]),n("text",{staticClass:t._$s("10-"+a+"-"+r,"sc","uni-navigate-icon uni-icon"),attrs:{_i:"10-"+a+"-"+r}})])})),0):t._e()])})),n("view",{staticClass:t._$s(11,"sc","uni-panel"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","uni-panel-h"),attrs:{_i:12},on:{click:function(e){return t.testScanCancle()}}}),n("view",{staticClass:t._$s(13,"sc","uni-panel-h"),attrs:{_i:13},on:{click:function(e){return t.goScan()}}}),n("view",{staticClass:t._$s(14,"sc","uni-panel-h"),attrs:{_i:14},on:{click:function(e){return t.goBallList()}}})])],2)},a=[]},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,s,a,r,o,c,u){var l,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var _ in c)d.call(c,_)&&!d.call(f.components,_)&&(f.components[_]=c[_])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},f._ssrRegister=l):s&&(l=o?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(f.functional){f._injectStyles=l;var p=f.render;f.render=function(t,e){return l.call(e),p(t,e)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},f608:function(t,e,n){"use strict";n.r(e);var i=n("0d6a"),s=n("bc8b");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports}},[["5a57","app-config"]]]); \ No newline at end of file diff --git a/app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js b/app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js index 59e9ffd..e02d950 100644 --- a/app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js +++ b/app/src/main/assets/apps/__UNI__2B9497D/www/app-view.js @@ -1 +1 @@ -(function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s="5a57")})({"0101":function(t,e,n){"use strict";n.r(e);var i=n("242c"),r=n("b505");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("e52d");var a,s=n("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);e["default"]=l.exports},"0353":function(t,e,n){var i=n("7757");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("50970dee",i,!0,{sourceMap:!1,shadowMode:!1})},"06b2":function(t,e,n){var i=n("1575");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("b2f7858c",i,!0,{sourceMap:!1,shadowMode:!1})},"0962":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{wxsProps:{}}},components:{}};e.default=i},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[n("v-uni-button",{attrs:{type:"primary",plain:"true",_i:1},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("\u70b9\u51fb\u663e\u793a\u5f39\u7a97")])],1)},o=[]},1524:function(t,e,n){var i=n("7905");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("312004cf",i,!0,{sourceMap:!1,shadowMode:!1})},1575:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"uni-button{margin-top:30upx;margin-bottom:30upx}.button-sp-area{margin:0 auto;width:60%}.content{text-align:center;height:400upx}.wrapper{flex-direction:column;justify-content:center}.button{width:200px;margin-top:30px;margin-left:20px;padding-top:20px;padding-bottom:20px;border-width:2px;border-style:solid;border-color:#458b00;background-color:#458b00}.text{font-size:30px;color:#666;text-align:center}",""]),t.exports=e},2332:function(t,e,n){"use strict";var i=n("06b2"),r=n.n(i);r.a},"242c":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[n("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[n("v-uni-text",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v("uni\u539f\u751f\u63d2\u4ef6\u793a\u4f8b1")])],1),t._l(t._$g(3,"f"),(function(e,i,r,o){return n("v-uni-view",{key:e,staticClass:t._$g("3-"+o,"sc"),attrs:{_i:"3-"+o}},[n("v-uni-view",{staticClass:t._$g("4-"+o,"sc"),class:t._$g("4-"+o,"c"),attrs:{_i:"4-"+o},on:{click:function(e){return t.$handleViewEvent(e)}}},[n("v-uni-text",{staticClass:t._$g("5-"+o,"sc"),attrs:{_i:"5-"+o}},[t._v(t._$g("5-"+o,"t0-0"))]),n("v-uni-text",{staticClass:t._$g("6-"+o,"sc"),class:t._$g("6-"+o,"c"),attrs:{_i:"6-"+o}},[t._v(t._$g("6-"+o,"t0-0"))])],1),t._$g("7-"+o,"i")?n("v-uni-view",{staticClass:t._$g("7-"+o,"sc"),attrs:{_i:"7-"+o}},t._l(t._$g("8-"+o,"f"),(function(e,i,r,a){return n("v-uni-view",{key:e,staticClass:t._$g("8-"+o+"-"+a,"sc"),attrs:{_i:"8-"+o+"-"+a},on:{click:function(e){return t.$handleViewEvent(e)}}},[n("v-uni-text",{staticClass:t._$g("9-"+o+"-"+a,"sc"),attrs:{_i:"9-"+o+"-"+a}},[t._v(t._$g("9-"+o+"-"+a,"t0-0"))]),n("v-uni-text",{staticClass:t._$g("10-"+o+"-"+a,"sc"),attrs:{_i:"10-"+o+"-"+a}},[t._v("\ue470")])],1)})),1):t._e()],1)})),n("v-uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[n("v-uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("testScanCancle")]),n("v-uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("goScan")]),n("v-uni-view",{staticClass:t._$g(14,"sc"),attrs:{_i:14},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("goBallList")])],1)],2)},o=[]},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"===typeof btoa){var o=r(i),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o uni-view:first-child{color:#1a1a1a;font-size:44rpx;line-height:60rpx;font-weight:700}.ball-list .bl-line > uni-view:nth-child(2){color:#009874;font-size:28rpx;line-height:40rpx}.ball-list .bl-tab{margin:0 24rpx;border-top-left-radius:10rpx;border-top-right-radius:10rpx;background-color:#ddd;display:flex;align-items:center;justify-content:flex-start}.ball-list .bl-tab > uni-view{width:174rpx;height:110rpx;color:#1a1a1a;font-size:28rpx;line-height:40rpx;text-align:center;border-right:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-tab > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-scroll{height:850rpx}.ball-list .bl-list{height:auto}.ball-list .bl-list .bll-item{margin:0 24rpx;display:flex;align-items:center;justify-content:flex-start;background-color:#fff;width:700rpx}.ball-list .bl-list .bll-item > uni-view{padding:0 4rpx;width:174rpx;height:100%;color:#1a1a1a;font-size:24rpx;text-align:center;line-height:34rpx;background-color:#fff;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;display:flex;align-items:center;justify-content:center;flex-direction:row}.ball-list .bl-list .bll-item > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-list .bll-item > uni-view:not(:last-child){border-bottom:1rpx solid red}.ball-list .bl-list .info-list{margin:0 24rpx;margin-top:30rpx;margin-bottom:50rpx;width:700rpx;height:auto;background:#fff;border-radius:10rpx;font-size:28rpx}.ball-list .bl-list .info-list .i-item{display:flex;align-items:center;justify-content:center;align-items:stretch}.ball-list .bl-list .info-list .i-item .i-box{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:26rpx 10rpx;width:176rpx;height:auto}.ball-list .bl-list .info-list .i-item .i-box:nth-child(2){border:1rpx solid #f2f2f7;border-bottom:none;border-top:none;word-break:break-all}.ball-list .bl-list .info-list .i-item .i-box:nth-child(3){border:1rpx solid #f2f2f7;border-bottom:none;flex-grow:1}.ball-list .bl-list .info-list .i-item .i-box:last-child{flex-grow:1}.ball-list .bl-list .info-list .i-item:not(:last-child){border-bottom:1rpx solid #f2f2f7}.ball-list .bl-btn{position:fixed;bottom:0;left:0;padding:12rpx 0;width:750rpx;background-color:#fff;border-top:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-btn > uni-view{font-size:28rpx;line-height:40rpx;text-align:center}.ball-list .bl-btn > uni-view:first-child{padding:12rpx 0;width:180rpx;color:#009874;background-color:#fff;border:2rpx solid #009874;border-radius:6rpx}.ball-list .bl-btn > uni-view:nth-child(2){margin:0 50rpx}.ball-list .bl-btn > uni-view:nth-child(2) > uni-text{margin:0 2rpx;color:#009874}.ball-list .bl-btn > uni-view:nth-child(3){padding:12rpx 0;width:180rpx;color:#fff;background-color:#009874;border:2rpx solid #009874;border-radius:6rpx}',""]),t.exports=e},"7f7e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;rn.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r uni-view:first-child{color:#1a1a1a;font-size:44rpx;line-height:60rpx;font-weight:700}.ball-list .bl-line > uni-view:nth-child(2){color:#009874;font-size:28rpx;line-height:40rpx}.ball-list .bl-tab{margin:0 24rpx;border-top-left-radius:10rpx;border-top-right-radius:10rpx;background-color:#ddd;display:flex;align-items:center;justify-content:flex-start}.ball-list .bl-tab > uni-view{width:174rpx;height:110rpx;color:#1a1a1a;font-size:28rpx;line-height:40rpx;text-align:center;border-right:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-tab > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-scroll{height:850rpx}.ball-list .bl-list{height:auto}.ball-list .bl-list .bll-item{margin:0 24rpx;display:flex;align-items:center;justify-content:flex-start;background-color:#fff;width:700rpx}.ball-list .bl-list .bll-item > uni-view{padding:0 4rpx;width:174rpx;height:100%;color:#1a1a1a;font-size:24rpx;text-align:center;line-height:34rpx;background-color:#fff;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;display:flex;align-items:center;justify-content:center;flex-direction:row}.ball-list .bl-list .bll-item > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-list .bll-item > uni-view:not(:last-child){border-bottom:1rpx solid red}.ball-list .bl-list .info-list{margin:0 24rpx;margin-top:30rpx;margin-bottom:50rpx;width:700rpx;height:auto;background:#fff;border-radius:10rpx;font-size:28rpx}.ball-list .bl-list .info-list .i-item{display:flex;align-items:center;justify-content:center;align-items:stretch}.ball-list .bl-list .info-list .i-item .i-box{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:26rpx 10rpx;width:176rpx;height:auto}.ball-list .bl-list .info-list .i-item .i-box:nth-child(2){border:1rpx solid #f2f2f7;border-bottom:none;border-top:none;word-break:break-all}.ball-list .bl-list .info-list .i-item .i-box:nth-child(3){border:1rpx solid #f2f2f7;border-bottom:none;flex-grow:1}.ball-list .bl-list .info-list .i-item .i-box:last-child{flex-grow:1}.ball-list .bl-list .info-list .i-item:not(:last-child){border-bottom:1rpx solid #f2f2f7}.ball-list .bl-btn{position:fixed;bottom:0;left:0;padding:12rpx 0;width:750rpx;background-color:#fff;border-top:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-btn > uni-view{font-size:28rpx;line-height:40rpx;text-align:center}.ball-list .bl-btn > uni-view:first-child{padding:12rpx 0;width:180rpx;color:#009874;background-color:#fff;border:2rpx solid #009874;border-radius:6rpx}.ball-list .bl-btn > uni-view:nth-child(2){margin:0 50rpx}.ball-list .bl-btn > uni-view:nth-child(2) > uni-text{margin:0 2rpx;color:#009874}.ball-list .bl-btn > uni-view:nth-child(3){padding:12rpx 0;width:180rpx;color:#fff;background-color:#009874;border:2rpx solid #009874;border-radius:6rpx}',""]),t.exports=n},"7c39":function(t,n,e){var i=e("527d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=e("7f7e").default;r("53dca976",i,!0,{sourceMap:!1,shadowMode:!1})},"7f7e":function(t,n,e){"use strict";function i(t,n){for(var e=[],i={},r=0;re.parts.length&&(i.parts.length=e.parts.length)}else{var a=[];for(r=0;r1?e-1:0),o=1;o1){var u=c.pop();l=c.join("---COMMA---"),0===u.indexOf(" at ")?l+=u:l+="---COMMA---"+u}else l=c[0];console[a](l)}},,,function(t,e,n){"use strict";var o=n(18),i=n(13),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"79a49d92",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(21).default,this.options.style):Object.assign(this.options.style,n(21).default)}).call(a),e.default=a.exports},,,,,,function(t,e,n){"use strict";var o=n(14),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={onLoad:function(){},data:function(){return{fil:[0,2,1]}},methods:{toback:function(){var t=this;setTimeout((function(){t.tocancel(),uni.navigateBack()}),3e3)},success1:function(e){t("log","success1:"+JSON.stringify(e)," at pages/index/scan.nvue:40")},fail1:function(e){t("log","fail1:"+JSON.stringify(e)," at pages/index/scan.nvue:43")},toStart:function(){this.$refs.barcode.start({conserve:!0,filename:"_doc/barcode/"})},tocancel:function(){this.$refs.barcode.cancel()},toFlash:function(){this.$refs.barcode.setFlash(!0)},toscan:function(){t("log","scan:"," at pages/index/scan.nvue:59"),n("barcodeScan").scan("/static/barcode1.png",(function(e){t("log","scan_error:"+JSON.stringify(e)," at pages/index/scan.nvue:63")}))}}};e.default=o}).call(this,n(4).default,n(19).default)},function(t,e){t.exports={"@VERSION":2}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["main"]},[n("button",{staticClass:["btn"],on:{click:t.toStart}},[t._v("\n\t\t\t\u5f00\u59cb\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.tocancel}},[t._v("\u53d6\u6d88\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.toFlash}},[t._v("\u5f00\u542f\u95ea\u5149\u706f")]),n("button",{staticClass:["btn"],on:{click:t.toscan}},[t._v("\u9884\u89c8")]),n("button",{staticClass:["btn"],on:{click:t.toback}},[n("view",{staticClass:["dot"]}),t._v("\n\t\t\t3s\u540e\u8fd4\u56de")]),n("view",{staticClass:["bottom-dot"]})],1)])},i=[]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},,function(t,e,n){"use strict";n.r(e);var o=n(15),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(7);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/index/scan",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=25)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,c,l,u){var s,f="function"==typeof t?t.options:t;if(l){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in l)d.call(l,p)&&!d.call(f.components,p)&&(f.components[p]=l[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),o&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),a?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=s):i&&(s=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(f.functional){f._injectStyles=s;var g=f.render;f.render=function(t,e){return s.call(e),g(t,e)}}else{var _=f.beforeCreate;f.beforeCreate=_?[].concat(_,s):[s]}return{exports:t,options:f}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";var o=n(17),i=n(12),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"79a49d92",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(21).default,this.options.style):Object.assign(this.options.style,n(21).default)}).call(a),e.default=a.exports},,,,,,function(t,e,n){"use strict";var o=n(13),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={onLoad:function(){},data:function(){return{fil:[0,2,1]}},methods:{toback:function(){var t=this;setTimeout((function(){t.tocancel(),uni.navigateBack()}),3e3)},success1:function(e){t("log","success1:"+JSON.stringify(e)," at pages/index/scan.nvue:40")},fail1:function(e){t("log","fail1:"+JSON.stringify(e)," at pages/index/scan.nvue:43")},toStart:function(){this.$refs.barcode.start({conserve:!0,filename:"_doc/barcode/"})},tocancel:function(){this.$refs.barcode.cancel()},toFlash:function(){this.$refs.barcode.setFlash(!0)},toscan:function(){t("log","scan:"," at pages/index/scan.nvue:59"),n("barcodeScan").scan("/static/barcode1.png",(function(e){t("log","scan_error:"+JSON.stringify(e)," at pages/index/scan.nvue:63")}))}}};e.default=o}).call(this,n(18).default,n(19).default)},function(t,e){t.exports={"@VERSION":2}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["main"]},[n("button",{staticClass:["btn"],on:{click:t.toStart}},[t._v("\n\t\t\t\u5f00\u59cb\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.tocancel}},[t._v("\u53d6\u6d88\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.toFlash}},[t._v("\u5f00\u542f\u95ea\u5149\u706f")]),n("button",{staticClass:["btn"],on:{click:t.toscan}},[t._v("\u9884\u89c8")]),n("button",{staticClass:["btn"],on:{click:t.toback}},[n("view",{staticClass:["dot"]}),t._v("\n\t\t\t3s\u540e\u8fd4\u56de")]),n("view",{staticClass:["bottom-dot"]})],1)])},i=[]},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"==typeof __channelId__&&__channelId__}function r(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var u=c.pop();l=c.join("---COMMA---"),0===u.indexOf(" at ")?l+=u:l+="---COMMA---"+u}else l=c[0];console[a](l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},,function(t,e,n){"use strict";n.r(e);var o=n(14),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(6);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/index/scan",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file diff --git a/app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-component.js b/app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-component.js index 4f3c92d..6a1570f 100644 --- a/app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-component.js +++ b/app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-component.js @@ -1 +1 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,l,u,c){var f,d="function"==typeof t?t.options:t;if(u){d.components||(d.components={});var p=Object.prototype.hasOwnProperty;for(var s in u)p.call(u,s)&&!p.call(d.components,s)&&(d.components[s]=u[s])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=f):r&&(f=l?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(d.functional){d._injectStyles=f;var g=d.render;d.render=function(t,e){return f.call(e),g(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:d}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e.default=r.a},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"==typeof __channelId__&&__channelId__}function i(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var c=l.pop();u=l.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=l[0];console[a](u)}},function(t,e,n){"use strict";var o=n(16),r=n(8),i=n(1),a=Object(i.a)(r.default,o.b,o.c,!1,null,null,"ccd8f580",!1,o.a,void 0);e.default=a.exports},,,function(t,e,n){"use strict";var o=n(9),r=n.n(o);e.default=r.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},onLoad:function(){},methods:{onTel:function(e){t("log","onTel="+e.detail.tel," at pages/sample/ext-component.nvue:17")},myTextClick:function(t){this.$refs.telText.clearTel()}}};e.default=n}).call(this,n(4).default)},,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[e("div",[e("myText",{ref:"telText",staticStyle:{width:"200",height:"100"},attrs:{tel:"12305"},on:{onTel:this.onTel,click:this.myTextClick}})],1)])},r=[]},,,,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(5);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-component",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,l,u,c){var f,d="function"==typeof t?t.options:t;if(u){d.components||(d.components={});var p=Object.prototype.hasOwnProperty;for(var s in u)p.call(u,s)&&!p.call(d.components,s)&&(d.components[s]=u[s])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=f):r&&(f=l?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(d.functional){d._injectStyles=f;var g=d.render;d.render=function(t,e){return f.call(e),g(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:d}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e.default=r.a},function(t,e,n){"use strict";var o=n(15),r=n(7),i=n(1),a=Object(i.a)(r.default,o.b,o.c,!1,null,null,"ccd8f580",!1,o.a,void 0);e.default=a.exports},,,function(t,e,n){"use strict";var o=n(8),r=n.n(o);e.default=r.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},onLoad:function(){},methods:{onTel:function(e){t("log","onTel="+e.detail.tel," at pages/sample/ext-component.nvue:17")},myTextClick:function(t){this.$refs.telText.clearTel()}}};e.default=n}).call(this,n(18).default)},,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[e("div",[e("myText",{ref:"telText",staticStyle:{width:"200",height:"100"},attrs:{tel:"12305"},on:{onTel:this.onTel,click:this.myTextClick}})],1)])},r=[]},,,function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"==typeof __channelId__&&__channelId__}function i(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var c=l.pop();u=l.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=l[0];console[a](u)}},,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(4);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-component",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file diff --git a/app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-module.js b/app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-module.js index 1f7bf8c..641ee37 100644 --- a/app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-module.js +++ b/app/src/main/assets/apps/__UNI__2B9497D/www/pages/sample/ext-module.js @@ -1 +1 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,u,c,s){var l,p="function"==typeof t?t.options:t;if(c){p.components||(p.components={});var f=Object.prototype.hasOwnProperty;for(var d in c)f.call(c,d)&&!f.call(p.components,d)&&(p.components[d]=c[d])}if(s&&((s.beforeCreate||(s.beforeCreate=[])).unshift((function(){this[s.__module]=this})),(p.mixins||(p.mixins=[])).push(s)),e&&(p.render=e,p.staticRenderFns=n,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},p._ssrRegister=l):i&&(l=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(p.functional){p._injectStyles=l;var g=p.render;p.render=function(t,e){return l.call(e),g(t,e)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,l):[l]}return{exports:t,options:p}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"==typeof __channelId__&&__channelId__}function r(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var s=u.pop();c=u.join("---COMMA---"),0===s.indexOf(" at ")?c+=s:c+="---COMMA---"+s}else c=u[0];console[a](c)}},,function(t,e,n){"use strict";var o=n(17),i=n(10),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"56be5383",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(20).default,this.options.style):Object.assign(this.options.style,n(20).default)}).call(a),e.default=a.exports},,,,function(t,e,n){"use strict";var o=n(11),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t("Zmt-Module"),i=t("TestModule"),r=t("uniplugin_module_ox"),a=t("Face-Module"),u=t("modal"),c={onLoad:function(){this.initAPPListener()},methods:{initAPPListener:function(){plus.globalEvent.addEventListener("TestEvent",(function(t){u.toast({message:"TestEvent\u6536\u5230\uff1a"+t.msg,duration:1.5})}))},faceAsyncFunc:function(){n("log","\u6d4b\u8bd5\u5f00\u59cbfaceAsyncFunc"," at pages/sample/ext-module.nvue:54"),a.faceAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},tcpAsyncFunc:function(){o.tcpAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testFun2:function(){var t=o.testSyncFunc({name:"unimp",age:1});u.toast({message:t,duration:1.5})},testAsyncFunc:function(){i.testAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=i.testSyncFunc({name:"unimp",age:1});u.toast({message:t,duration:1.5})},testAsyncFunc2:function(){r.testAsyncFunc2({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=r.testSyncFunc2({name:"unimp",age:1});u.toast({message:t,duration:1.5})},gotoNativePage:function(){i.gotoNativePage()}}};e.default=c}).call(this,n(19).default,n(4).default)},function(t,e){t.exports={btn:{marginTop:"3",marginRight:"3",marginBottom:"3",marginLeft:"3"},tips:{fontSize:"11",color:"#808080",fontWeight:"800"},"@VERSION":2}},,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("div",{staticClass:["content"]},[n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.gotoNativePage}},[t._v("\u8df3\u8f6c\u539f\u751fActivity")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.tcpAsyncFunc}},[t._v("[\u5f00\u542fTcpServer]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u5f00\u542fTcpServer. \u672c\u673aIP: 192.168.1.64 \u7aef\u53e3\uff1a16666\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.faceAsyncFunc}},[t._v("[\u767e\u5ea6\u4eba\u8138SDK\u6388\u6743]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u8fdb\u884c\u767e\u5ea6\u4eba\u8138SDK\u521d\u59cb\u5316\u53ca\u6388\u6743\u7533\u8bf7,\u8be5\u6388\u6743\u7801\u5199\u6b7b\u5728Android\u7aefzmt_module\u5185faceClass,\u56e0\u5df2\u4f7f\u7528\u8fc7,\u5c06\u8fd4\u56de\u5df2\u88ab\u5360\u7528\u63d0\u793a.\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc2}},[t._v("uniplugin_module_ox testAsyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc2}},[t._v("uniplugin_module_ox testSyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc}},[t._v("uniplugin_module testAsyncFunc")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc}},[t._v("uniplugin_module testSyncFunc")])],1)])},i=[]},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},function(t,e,n){"use strict";n.r(e);var o=n(12),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(6);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-module",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,u,s,c){var l,p="function"==typeof t?t.options:t;if(s){p.components||(p.components={});var d=Object.prototype.hasOwnProperty;for(var f in s)d.call(s,f)&&!d.call(p.components,f)&&(p.components[f]=s[f])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(p.mixins||(p.mixins=[])).push(c)),e&&(p.render=e,p.staticRenderFns=n,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},p._ssrRegister=l):i&&(l=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(p.functional){p._injectStyles=l;var g=p.render;p.render=function(t,e){return l.call(e),g(t,e)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,l):[l]}return{exports:t,options:p}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,function(t,e,n){"use strict";var o=n(16),i=n(9),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"56be5383",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(20).default,this.options.style):Object.assign(this.options.style,n(20).default)}).call(a),e.default=a.exports},,,,function(t,e,n){"use strict";var o=n(10),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(24),i=t("Zmt-Module"),r=t("TestModule"),a=t("uniplugin_module_ox"),u=t("Face-Module"),s=t("modal"),c={onLoad:function(){this.initAPPListener()},onReady:function(){this.logs.push("\u5f53\u524d\u65f6\u95f4:"+this.getTime())},data:function(){return{logs:["LOG VIEW"]}},methods:{initAPPListener:function(){plus.globalEvent.addEventListener("TestEvent",(function(t){s.toast({message:"TestEvent\u6536\u5230\uff1a"+t.msg,duration:1.5})}))},faceAsyncFunc:function(){var t=this;this.log("\u6267\u884cfaceModule.faceAsyncFunc"),u.faceAsyncFunc({name:"unimp",age:1},(function(e){s.toast({message:e,duration:1.5}),t.log(JSON.stringify(e))}))},tcpAsyncFunc:function(){var t=this;this.log("\u5f00\u542fTcp Server."),i.tcpAsyncFunc({name:"unimp",age:1},(function(e){s.toast({message:e,duration:2}),t.log("tcp\u63a5\u6536:"+e.code)}))},testFun2:function(){var t=i.testSyncFunc({name:"unimp",age:1});s.toast({message:t,duration:1.5})},testAsyncFunc:function(){r.testAsyncFunc({name:"unimp",age:1},(function(t){s.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=r.testSyncFunc({name:"unimp",age:1});s.toast({message:t,duration:1.5})},testAsyncFunc2:function(){a.testAsyncFunc2({name:"unimp",age:1},(function(t){s.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=a.testSyncFunc2({name:"unimp",age:1});s.toast({message:t,duration:1.5})},log:function(t){this.logs.push(this.getTime()+" ".concat(t))},getTime:function(){return(0,o.timeFormat)(new Date,"mm/dd hh:MM:ss")},gotoNativePage:function(){r.gotoNativePage()}}};e.default=c}).call(this,n(19).default)},function(t,e){t.exports={content:{fontSize:"12"},btn:{marginTop:"3",marginRight:"3",marginBottom:"3",marginLeft:"3"},tips:{fontSize:"11",color:"#808080",fontWeight:"800"},console:{backgroundColor:"#D3D3D3",paddingTop:"20rpx",paddingRight:"20rpx",paddingBottom:"20rpx",paddingLeft:"20rpx"},log:{color:"#8B0000",fontSize:"11",fontWeight:"800"},"@VERSION":2}},,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("div",{staticClass:["content"]},[n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.gotoNativePage}},[t._v("\u8df3\u8f6c\u539f\u751fActivity")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.tcpAsyncFunc}},[t._v("[\u5f00\u542fTcpServer]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u5f00\u542fTcpServer. \u672c\u673aIP: 192.168.1.64 \u7aef\u53e3\uff1a16666\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.faceAsyncFunc}},[t._v("[\u767e\u5ea6\u4eba\u8138SDK\u6388\u6743]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u8fdb\u884c\u767e\u5ea6\u4eba\u8138SDK\u521d\u59cb\u5316\u53ca\u6388\u6743\u7533\u8bf7,\u8be5\u6388\u6743\u7801\u5199\u6b7b\u5728Android\u7aefzmt_module\u5185faceClass,\u56e0\u5df2\u4f7f\u7528\u8fc7,\u5c06\u8fd4\u56de\u5df2\u88ab\u5360\u7528\u63d0\u793a.\n\t")]),n("view",{staticClass:["console"]},t._l(t.logs,(function(e){return n("u-text",{staticClass:["log"],appendAsTree:!0,attrs:{append:"tree"}},[t._v(t._s(e))])})),0),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc2}},[t._v("uniplugin_module_ox testAsyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc2}},[t._v("uniplugin_module_ox testSyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc}},[t._v("uniplugin_module testAsyncFunc")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc}},[t._v("uniplugin_module testSyncFunc")])],1)])},i=[]},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},function(t,e,n){"use strict";n.r(e);var o=n(11),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(5);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-module",o.default.el="#root",new Vue(o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormat=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date));"string"==typeof t&&t.indexOf("-")>0&&(t=t.replace(/\-/g,"/"));10==t.toString().length&&(t*=1e3);var n,o=new Date(t),i={"y+":o.getFullYear().toString(),"m+":(o.getMonth()+1).toString(),"d+":o.getDate().toString(),"h+":o.getHours().toString(),"M+":o.getMinutes().toString(),"s+":o.getSeconds().toString()};for(var r in i)(n=new RegExp("("+r+")").exec(e))&&(e=e.replace(n[1],1==n[1].length?i[r]:i[r].padStart(n[1].length,"0")));return e},e.getDurationTime=function(t){var e="",n=parseInt(t/3600),o=parseInt(t%3600/60),i=parseInt(t%3600%60);n>0&&(e+=(n=n<10?"0"+n:n)+":");return e+=(o=o<10?"0"+o:o)+":"+(i=i<10?"0"+i:i)},String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);for(var o=t-n.length,i=Math.ceil(o/e.length);i>>=1;)e+=e,1===i&&(e+=e);return e.slice(0,o)+n})}]); \ No newline at end of file diff --git a/build.gradle b/build.gradle index 5120ad2..ac22645 100755 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - + repositories { google() jcenter() diff --git a/face_module/src/main/java/com/appdev/face_module/MyManager.java b/face_module/src/main/java/com/appdev/face_module/MyManager.java index 3672d9c..5555aec 100644 --- a/face_module/src/main/java/com/appdev/face_module/MyManager.java +++ b/face_module/src/main/java/com/appdev/face_module/MyManager.java @@ -40,7 +40,7 @@ public class MyManager { System.out.println(TAG+"initSDK"); faceAuth = new FaceAuth(); - System.out.println(TAG+"FaceAuth"); + System.out.println(TAG+"FaceAuth Device ID:"+faceAuth.getDeviceId(mContext)); // boolean isConfigExit = GateConfigUtils.isConfigExit(); // boolean isInitConfig = GateConfigUtils.initConfig(); diff --git a/gradle.properties b/gradle.properties index e8277d5..d57911c 100755 --- a/gradle.properties +++ b/gradle.properties @@ -10,6 +10,7 @@ android.enableJetifier=true android.useAndroidX=true org.gradle.jvmargs=-Xmx1536m android.useDeprecatedNdk=true +#startParameter.offline = false # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects diff --git a/uniapp示例工程源码/unipluginDemo/manifest.json b/uniapp示例工程源码/unipluginDemo/manifest.json index b12706c..f7052f8 100755 --- a/uniapp示例工程源码/unipluginDemo/manifest.json +++ b/uniapp示例工程源码/unipluginDemo/manifest.json @@ -7,6 +7,9 @@ "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { + "compatible":{ + "ignoreVersion":true //true,忽略版本检测提示 + }, "usingComponents" : true, "nvueCompiler" : "uni-app", "compilerVersion" : 3, diff --git a/uniapp示例工程源码/unipluginDemo/pages.json b/uniapp示例工程源码/unipluginDemo/pages.json index a274b75..3e20501 100755 --- a/uniapp示例工程源码/unipluginDemo/pages.json +++ b/uniapp示例工程源码/unipluginDemo/pages.json @@ -1,6 +1,11 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - + { + "path": "pages/sample/ext-module-vue", + "style": { + "navigationBarTitleText": "扩展 module vue" + } + }, { "path": "pages/index/index", "style": { @@ -22,9 +27,10 @@ { "path": "pages/sample/ext-module", "style": { - "navigationBarTitleText": "扩展 module" + "navigationBarTitleText": "扩展 module nvue" } - }, + }, + { "path": "pages/sample/ext-component", "style": { diff --git a/uniapp示例工程源码/unipluginDemo/pages/index/index.vue b/uniapp示例工程源码/unipluginDemo/pages/index/index.vue index 00d3e9f..3c70797 100755 --- a/uniapp示例工程源码/unipluginDemo/pages/index/index.vue +++ b/uniapp示例工程源码/unipluginDemo/pages/index/index.vue @@ -33,7 +33,7 @@ id: 'ext-module', name: '扩展 module测试列表', open: false, - url: '/pages/sample/ext-module' + url: '/pages/sample/ext-module-vue' }, { id: 'ext-component', diff --git a/uniapp示例工程源码/unipluginDemo/pages/sample/ext-module-vue.vue b/uniapp示例工程源码/unipluginDemo/pages/sample/ext-module-vue.vue new file mode 100755 index 0000000..7da5efa --- /dev/null +++ b/uniapp示例工程源码/unipluginDemo/pages/sample/ext-module-vue.vue @@ -0,0 +1,215 @@ + + + + \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/pages/sample/ext-module.nvue b/uniapp示例工程源码/unipluginDemo/pages/sample/ext-module.nvue index 155c8b0..5e943a2 100755 --- a/uniapp示例工程源码/unipluginDemo/pages/sample/ext-module.nvue +++ b/uniapp示例工程源码/unipluginDemo/pages/sample/ext-module.nvue @@ -14,6 +14,9 @@ 点击后将进行百度人脸SDK初始化及授权申请,该授权码写死在Android端zmt_module内faceClass,因已使用过,将返回已被占用提示. + + {{i}} + @@ -32,9 +35,21 @@ const modal = uni.requireNativePlugin('modal'); // #endif + import {timeFormat} from "../../utils/timeFormat.js" + export default { onLoad() { - this.initAPPListener() + this.initAPPListener() + + + }, + onReady() { + this.logs.push("当前时间:"+this.getTime()) + }, + data() { + return { + logs:["LOG VIEW"] + } }, methods: { @@ -51,7 +66,7 @@ }, //百度人脸SDK,初始化,并申请授权(授权码写死在android端 faceClass) faceAsyncFunc() { - console.log("测试开始faceAsyncFunc"); + this.log("执行faceModule.faceAsyncFunc"); // 调用异步方法 faceModule.faceAsyncFunc({ 'name': 'unimp', @@ -62,10 +77,12 @@ message: ret, duration: 1.5 }); + this.log(JSON.stringify(ret)) }) }, tcpAsyncFunc(){ // 调用异步方法 + this.log("开启Tcp Server.") zmtModule.tcpAsyncFunc({ 'name': 'unimp', 'age': 1 @@ -73,8 +90,10 @@ (ret) => { modal.toast({ message: ret, - duration: 1.5 + duration: 2 }); + // this.logs.push(this.getTime()+" tcp接收:"+ret.code) + this.log("tcp接收:"+ret.code) }) }, testFun2(){ @@ -137,6 +156,14 @@ duration: 1.5 }); }, + //在Log View打印txt + log(txt){ + this.logs.push(this.getTime()+` ${txt}`) + }, + //返回当前时间 + getTime(){ + return timeFormat(new Date(),'mm/dd hh:MM:ss') + }, gotoNativePage() { testModule.gotoNativePage(); } @@ -144,6 +171,7 @@ } \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-config-service.js b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-config-service.js index 411e973..26df71f 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-config-service.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-config-service.js @@ -1,8 +1,8 @@ var isReady=false;var onReadyCallbacks=[]; var isServiceReady=false;var onServiceReadyCallbacks=[]; -var __uniConfig = {"pages":["pages/index/index","pages/index/ball_list","pages/index/scan","pages/sample/ext-module","pages/sample/ext-component","pages/sample/richAlert"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"unipluginDemo","compilerVersion":"3.3.11","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; -var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/ball_list","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/scan","meta":{"isNVue":true},"window":{"navigationBarTitleText":"22222"}},{"path":"/pages/sample/ext-module","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 module"}},{"path":"/pages/sample/ext-component","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 component"}},{"path":"/pages/sample/richAlert","meta":{},"window":{"navigationBarTitleText":"RichAlert"}}]; +var __uniConfig = {"pages":["pages/sample/ext-module-vue","pages/index/index","pages/index/ball_list","pages/index/scan","pages/sample/ext-module","pages/sample/ext-component","pages/sample/richAlert"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"unipluginDemo","compilerVersion":"3.3.11","entryPagePath":"pages/sample/ext-module-vue","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; +var __uniRoutes = [{"path":"/pages/sample/ext-module-vue","meta":{"isQuit":true},"window":{"navigationBarTitleText":"扩展 module vue"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/ball_list","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/scan","meta":{"isNVue":true},"window":{"navigationBarTitleText":"22222"}},{"path":"/pages/sample/ext-module","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 module nvue"}},{"path":"/pages/sample/ext-component","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 component"}},{"path":"/pages/sample/richAlert","meta":{},"window":{"navigationBarTitleText":"RichAlert"}}]; __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-service.js b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-service.js index 2b7f69b..a6b1018 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-service.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-service.js @@ -1 +1 @@ -(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0101":function(t,e,n){"use strict";n.r(e);var i=n("242c"),a=n("b505");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r,o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","button-sp-area"),attrs:{_i:0}},[n("button",{attrs:{_i:1},on:{click:function(e){return t.showRichAlert()}}})])},s=[]},"0de9":function(t,e,n){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function a(){return"string"===typeof __channelId__&&__channelId__}function s(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1){var l=o.pop();c=o.join("---COMMA---"),0===l.indexOf(" at ")?c+=l:c+="---COMMA---"+l}else c=o[0];console[r](c)}n.r(e),n.d(e,"log",(function(){return r})),n.d(e,"default",(function(){return o}))},"242c":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-container"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-hello-text"),attrs:{_i:1}},[n("text",{staticClass:t._$s(2,"sc","hello-text"),attrs:{_i:2}})]),t._l(t._$s(3,"f",{forItems:t.list}),(function(e,i,a,s){return n("view",{key:t._$s(3,"f",{forIndex:a,key:e.id}),staticClass:t._$s("3-"+s,"sc","uni-panel"),attrs:{_i:"3-"+s}},[n("view",{staticClass:t._$s("4-"+s,"sc","uni-panel-h"),class:t._$s("4-"+s,"c",e.open?"uni-panel-h-on":""),attrs:{_i:"4-"+s},on:{click:function(e){return t.triggerCollapse(i)}}},[n("text",{staticClass:t._$s("5-"+s,"sc","uni-panel-text"),attrs:{_i:"5-"+s}},[t._v(t._$s("5-"+s,"t0-0",t._s(e.name)))]),n("text",{staticClass:t._$s("6-"+s,"sc","uni-panel-icon uni-icon"),class:t._$s("6-"+s,"c",e.open?"uni-panel-icon-on":""),attrs:{_i:"6-"+s}},[t._v(t._$s("6-"+s,"t0-0",t._s(e.pages?"\ue581":"\ue470")))])]),t._$s("7-"+s,"i",e.open)?n("view",{staticClass:t._$s("7-"+s,"sc","uni-panel-c"),attrs:{_i:"7-"+s}},t._l(t._$s("8-"+s,"f",{forItems:e.pages}),(function(e,i,a,r){return n("view",{key:t._$s("8-"+s,"f",{forIndex:a,key:i}),staticClass:t._$s("8-"+s+"-"+r,"sc","uni-navigate-item"),attrs:{_i:"8-"+s+"-"+r},on:{click:function(n){return t.goDetailPage(e.url)}}},[n("text",{staticClass:t._$s("9-"+s+"-"+r,"sc","uni-navigate-text"),attrs:{_i:"9-"+s+"-"+r}},[t._v(t._$s("9-"+s+"-"+r,"t0-0",t._s(e.name?e.name:e)))]),n("text",{staticClass:t._$s("10-"+s+"-"+r,"sc","uni-navigate-icon uni-icon"),attrs:{_i:"10-"+s+"-"+r}})])})),0):t._e()])})),n("view",{staticClass:t._$s(11,"sc","uni-panel"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","uni-panel-h"),attrs:{_i:12},on:{click:function(e){return t.testScanCancle()}}}),n("view",{staticClass:t._$s(13,"sc","uni-panel-h"),attrs:{_i:13},on:{click:function(e){return t.goScan()}}}),n("view",{staticClass:t._$s(14,"sc","uni-panel-h"),attrs:{_i:14},on:{click:function(e){return t.goBallList()}}})])],2)},s=[]},"40fd":function(t,e,n){"use strict";n.r(e);var i=n("4422"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},4422:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{optionQuery:{},ballList:[],page:1,pageTotal:1,isShowBtn:!1}},onLoad:function(t){t.stadium_id,t.brand_id},onReachBottom:function(){},methods:{returnBtn:function(){uni.navigateBack()},getList:function(e){var n=this,i=e.page,a=void 0===i?1:i,s=e.page_size,r=void 0===s?10:s,o=this.optionQuery;util.showLoad(),servers.post({url:API.tidList,data:{brand_id:o.brand_id,stadium_id:o.stadium_id,goods_name:"\u7bee\u7403\u5f55\u5165",page:a,page_size:r},failMsg:"\u52a0\u8f7d\u5931\u8d25\uff01"}).then((function(e){util.hideLoad(),n.pageTotal=Math.ceil(e.total/10);var i=e.list||[];return t("log","\u6b66\u6c49\u51e1\u8c37\uff1a",JSON.stringify(e)," at pages/index/ball_list.vue:102"),1==a?(i.length>0&&(n.isShowBtn=!0),n.ballList=i):i.length<=0?util.showNone("\u6ca1\u6709\u66f4\u591a\uff01"):(n.page=a,void(n.ballList=i))})).catch((function(e){t("error","\u7bee\u7403\u5217\u8868-err\uff1f",e," at pages/index/ball_list.vue:116")}))}}};e.default=n}).call(this,n("0de9")["default"])},5215:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{id:"ext-module",name:"\u6269\u5c55 module\u6d4b\u8bd5\u5217\u8868",open:!1,url:"/pages/sample/ext-module"},{id:"ext-component",name:"\u6269\u5c55 component",open:!1,url:"/pages/sample/ext-component"},{id:"richAlert",name:"\u63d2\u4ef6\u793a\u4f8bRichAlert",open:!1,url:"/pages/sample/richAlert"}],navigateFlag:!1}},onLoad:function(){},methods:{goScan:function(){t("log",111," at pages/index/index.vue:59"),uni.navigateTo({url:"./scan"})},goBallList:function(){t("log",111," at pages/index/index.vue:66"),uni.navigateTo({url:"./ball_list"})},testScanCancle:function(){uni.scanCode({onlyFromCamera:!0,success:function(e){t("log","\u6761\u7801\u7c7b\u578b\uff1a"+e.scanType," at pages/index/index.vue:76"),t("log","\u6761\u7801\u5185\u5bb9\uff1a"+e.result," at pages/index/index.vue:77")}}),setTimeout((function(){t("log","\u6267\u884c\u8fd4\u56de"," at pages/index/index.vue:81"),uni.navigateBack(),uni.navigateBack()}),3e3)},triggerCollapse:function(t){if(this.list[t].pages)for(var e=0;euni-app \u662f\u4e00\u4e2a\u4f7f\u7528 Vue.js \u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u524d\u7aef\u6846\u67b6!\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d",contentAlign:"left",checkBox:{title:"\u4e0d\u518d\u63d0\u793a",isSelected:!0},buttons:[{title:"\u53d6\u6d88"},{title:"\u5426"},{title:"\u786e\u8ba4",titleColor:"#3F51B5"}]},(function(e){var i=JSON.stringify(e);switch(n.toast({message:i,duration:1.5}),e.type){case"button":t("log","callback---button--"+e.index," at pages/sample/richAlert.vue:50");break;case"checkBox":t("log","callback---checkBox--"+e.isSelected," at pages/sample/richAlert.vue:53");break;case"a":t("log","callback---a--"+JSON.stringify(e)," at pages/sample/richAlert.vue:56");break;case"backCancel":t("log","callback---backCancel--"," at pages/sample/richAlert.vue:59");break}}))}}};e.default=a}).call(this,n("0de9")["default"])},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,a,s,r,o,c,l){var u,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var _ in c)d.call(c,_)&&!d.call(f.components,_)&&(f.components[_]=c[_])}if(l&&((l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(f.mixins||(f.mixins=[])).push(l)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),s&&(f._scopeId="data-v-"+s),r?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},f._ssrRegister=u):a&&(u=o?function(){a.call(this,this.$root.$options.shadowRoot)}:a),u)if(f.functional){f._injectStyles=u;var p=f.render;f.render=function(t,e){return u.call(e),p(t,e)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,u):[u]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},f608:function(t,e,n){"use strict";n.r(e);var i=n("0d6a"),a=n("bc8b");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r,o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports}},[["5a57","app-config"]]]); \ No newline at end of file +(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"00f8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("af3c"),s=uni.requireNativePlugin("Zmt-Module"),a=uni.requireNativePlugin("TestModule"),r=uni.requireNativePlugin("uniplugin_module_ox"),o=uni.requireNativePlugin("Face-Module"),c=uni.requireNativePlugin("modal"),u={onLoad:function(){this.initAPPListener()},onReady:function(){this.logs.push("\u5f53\u524d\u65f6\u95f4:"+this.getTime())},data:function(){return{logs:["LOG VIEW"]}},methods:{initAPPListener:function(){var t=this;plus.globalEvent.addEventListener("myEvent",(function(e){c.toast({message:"TestEvent\u6536\u5230\uff1a"+JSON.stringify(e),duration:3.5}),t.log("\u5168\u5c40\u4e8b\u4ef6\u63a5\u6536:"+JSON.stringify(e))}))},faceAsyncFunc:function(){var t=this;this.log("\u6267\u884cfaceModule.faceAsyncFunc"),o.faceAsyncFunc({name:"unimp",age:1},(function(e){c.toast({message:e,duration:1.5}),t.log(JSON.stringify(e))}))},tcpAsyncFunc:function(){var t=this;this.log("\u5f00\u542fTcp Server."),s.tcpAsyncFunc({port:"16666",name:"unimp",age:1},(function(e){c.toast({message:e,duration:2}),t.log("invoke:"+JSON.stringify(e))}))},testFun2:function(){var t=s.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc:function(){a.testAsyncFunc({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=a.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc2:function(){r.testAsyncFunc2({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=r.testSyncFunc2({name:"unimp",age:1});c.toast({message:t,duration:1.5})},log:function(t){this.logs.push(this.getTime()+" ".concat(t))},getTime:function(){return(0,i.timeFormat)(new Date,"mm/dd hh:MM:ss")},gotoNativePage:function(){a.gotoNativePage()}}};e.default=u},"0101":function(t,e,n){"use strict";n.r(e);var i=n("e219"),s=n("b505");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0348":function(t,e,n){"use strict";n.r(e);var i=n("585a"),s=n("4aaa");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","button-sp-area"),attrs:{_i:0}},[n("button",{attrs:{_i:1},on:{click:function(e){return t.showRichAlert()}}})])},a=[]},"0de9":function(t,e,n){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function s(){return"string"===typeof __channelId__&&__channelId__}function a(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1){var u=o.pop();c=o.join("---COMMA---"),0===u.indexOf(" at ")?c+=u:c+="---COMMA---"+u}else c=o[0];console[r](c)}n.r(e),n.d(e,"log",(function(){return r})),n.d(e,"default",(function(){return o}))},"40fd":function(t,e,n){"use strict";n.r(e);var i=n("4422"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},4422:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{optionQuery:{},ballList:[],page:1,pageTotal:1,isShowBtn:!1}},onLoad:function(t){t.stadium_id,t.brand_id},onReachBottom:function(){},methods:{returnBtn:function(){uni.navigateBack()},getList:function(e){var n=this,i=e.page,s=void 0===i?1:i,a=e.page_size,r=void 0===a?10:a,o=this.optionQuery;util.showLoad(),servers.post({url:API.tidList,data:{brand_id:o.brand_id,stadium_id:o.stadium_id,goods_name:"\u7bee\u7403\u5f55\u5165",page:s,page_size:r},failMsg:"\u52a0\u8f7d\u5931\u8d25\uff01"}).then((function(e){util.hideLoad(),n.pageTotal=Math.ceil(e.total/10);var i=e.list||[];return t("log","\u6b66\u6c49\u51e1\u8c37\uff1a",JSON.stringify(e)," at pages/index/ball_list.vue:102"),1==s?(i.length>0&&(n.isShowBtn=!0),n.ballList=i):i.length<=0?util.showNone("\u6ca1\u6709\u66f4\u591a\uff01"):(n.page=s,void(n.ballList=i))})).catch((function(e){t("error","\u7bee\u7403\u5217\u8868-err\uff1f",e," at pages/index/ball_list.vue:116")}))}}};e.default=n}).call(this,n("0de9")["default"])},"4aaa":function(t,e,n){"use strict";n.r(e);var i=n("00f8"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},5215:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{id:"ext-module",name:"\u6269\u5c55 module\u6d4b\u8bd5\u5217\u8868",open:!1,url:"/pages/sample/ext-module-vue"},{id:"ext-component",name:"\u6269\u5c55 component",open:!1,url:"/pages/sample/ext-component"},{id:"richAlert",name:"\u63d2\u4ef6\u793a\u4f8bRichAlert",open:!1,url:"/pages/sample/richAlert"}],navigateFlag:!1}},onLoad:function(){},methods:{goScan:function(){t("log",111," at pages/index/index.vue:59"),uni.navigateTo({url:"./scan"})},goBallList:function(){t("log",111," at pages/index/index.vue:66"),uni.navigateTo({url:"./ball_list"})},testScanCancle:function(){uni.scanCode({onlyFromCamera:!0,success:function(e){t("log","\u6761\u7801\u7c7b\u578b\uff1a"+e.scanType," at pages/index/index.vue:76"),t("log","\u6761\u7801\u5185\u5bb9\uff1a"+e.result," at pages/index/index.vue:77")}}),setTimeout((function(){t("log","\u6267\u884c\u8fd4\u56de"," at pages/index/index.vue:81"),uni.navigateBack(),uni.navigateBack()}),3e3)},triggerCollapse:function(t){if(this.list[t].pages)for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),"string"==typeof t&&t.indexOf("-")>0&&(t=t.replace(/\-/g,"/")),10==t.toString().length&&(t*=1e3);var n,i=new Date(t),s={"y+":i.getFullYear().toString(),"m+":(i.getMonth()+1).toString(),"d+":i.getDate().toString(),"h+":i.getHours().toString(),"M+":i.getMinutes().toString(),"s+":i.getSeconds().toString()};for(var a in s)n=new RegExp("("+a+")").exec(e),n&&(e=e.replace(n[1],1==n[1].length?s[a]:s[a].padStart(n[1].length,"0")));return e}function s(t){var e="",n=parseInt(t/3600),i=parseInt(t%3600/60),s=parseInt(t%3600%60);return n>0&&(n=n<10?"0"+n:n,e+=n+":"),i=i<10?"0"+i:i,s=s<10?"0"+s:s,e+=i+":"+s,e}Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormat=i,e.getDurationTime=s,String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);var i=t-n.length,s=Math.ceil(i/e.length);while(s>>=1)e+=e,1===s&&(e+=e);return e.slice(0,i)+n})},b354:function(t,e,n){"use strict";n.r(e);var i=n("d479"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},b505:function(t,e,n){"use strict";n.r(e);var i=n("5215"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},bc8b:function(t,e,n){"use strict";n.r(e);var i=n("e10d"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},d479:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=n}).call(this,n("0de9")["default"])},e10d:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=uni.requireNativePlugin("modal"),i=uni.requireNativePlugin("DCloud-RichAlert"),s={data:function(){return{title:""}},onLoad:function(){},methods:{showRichAlert:function(){i.show({position:"bottom",title:"\u63d0\u793a\u4fe1\u606f",titleColor:"#FF0000",content:"uni-app \u662f\u4e00\u4e2a\u4f7f\u7528 Vue.js \u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u524d\u7aef\u6846\u67b6!\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d",contentAlign:"left",checkBox:{title:"\u4e0d\u518d\u63d0\u793a",isSelected:!0},buttons:[{title:"\u53d6\u6d88"},{title:"\u5426"},{title:"\u786e\u8ba4",titleColor:"#3F51B5"}]},(function(e){var i=JSON.stringify(e);switch(n.toast({message:i,duration:1.5}),e.type){case"button":t("log","callback---button--"+e.index," at pages/sample/richAlert.vue:50");break;case"checkBox":t("log","callback---checkBox--"+e.isSelected," at pages/sample/richAlert.vue:53");break;case"a":t("log","callback---a--"+JSON.stringify(e)," at pages/sample/richAlert.vue:56");break;case"backCancel":t("log","callback---backCancel--"," at pages/sample/richAlert.vue:59");break}}))}}};e.default=s}).call(this,n("0de9")["default"])},e219:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-container"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-hello-text"),attrs:{_i:1}},[n("text",{staticClass:t._$s(2,"sc","hello-text"),attrs:{_i:2}})]),t._l(t._$s(3,"f",{forItems:t.list}),(function(e,i,s,a){return n("view",{key:t._$s(3,"f",{forIndex:s,key:e.id}),staticClass:t._$s("3-"+a,"sc","uni-panel"),attrs:{_i:"3-"+a}},[n("view",{staticClass:t._$s("4-"+a,"sc","uni-panel-h"),class:t._$s("4-"+a,"c",e.open?"uni-panel-h-on":""),attrs:{_i:"4-"+a},on:{click:function(e){return t.triggerCollapse(i)}}},[n("text",{staticClass:t._$s("5-"+a,"sc","uni-panel-text"),attrs:{_i:"5-"+a}},[t._v(t._$s("5-"+a,"t0-0",t._s(e.name)))]),n("text",{staticClass:t._$s("6-"+a,"sc","uni-panel-icon uni-icon"),class:t._$s("6-"+a,"c",e.open?"uni-panel-icon-on":""),attrs:{_i:"6-"+a}},[t._v(t._$s("6-"+a,"t0-0",t._s(e.pages?"\ue581":"\ue470")))])]),t._$s("7-"+a,"i",e.open)?n("view",{staticClass:t._$s("7-"+a,"sc","uni-panel-c"),attrs:{_i:"7-"+a}},t._l(t._$s("8-"+a,"f",{forItems:e.pages}),(function(e,i,s,r){return n("view",{key:t._$s("8-"+a,"f",{forIndex:s,key:i}),staticClass:t._$s("8-"+a+"-"+r,"sc","uni-navigate-item"),attrs:{_i:"8-"+a+"-"+r},on:{click:function(n){return t.goDetailPage(e.url)}}},[n("text",{staticClass:t._$s("9-"+a+"-"+r,"sc","uni-navigate-text"),attrs:{_i:"9-"+a+"-"+r}},[t._v(t._$s("9-"+a+"-"+r,"t0-0",t._s(e.name?e.name:e)))]),n("text",{staticClass:t._$s("10-"+a+"-"+r,"sc","uni-navigate-icon uni-icon"),attrs:{_i:"10-"+a+"-"+r}})])})),0):t._e()])})),n("view",{staticClass:t._$s(11,"sc","uni-panel"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","uni-panel-h"),attrs:{_i:12},on:{click:function(e){return t.testScanCancle()}}}),n("view",{staticClass:t._$s(13,"sc","uni-panel-h"),attrs:{_i:13},on:{click:function(e){return t.goScan()}}}),n("view",{staticClass:t._$s(14,"sc","uni-panel-h"),attrs:{_i:14},on:{click:function(e){return t.goBallList()}}})])],2)},a=[]},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,s,a,r,o,c,u){var l,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var _ in c)d.call(c,_)&&!d.call(f.components,_)&&(f.components[_]=c[_])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},f._ssrRegister=l):s&&(l=o?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(f.functional){f._injectStyles=l;var p=f.render;f.render=function(t,e){return l.call(e),p(t,e)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},f608:function(t,e,n){"use strict";n.r(e);var i=n("0d6a"),s=n("bc8b");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports}},[["5a57","app-config"]]]); \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-view.js b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-view.js index 59e9ffd..e02d950 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-view.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/app-view.js @@ -1 +1 @@ -(function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s="5a57")})({"0101":function(t,e,n){"use strict";n.r(e);var i=n("242c"),r=n("b505");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("e52d");var a,s=n("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);e["default"]=l.exports},"0353":function(t,e,n){var i=n("7757");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("50970dee",i,!0,{sourceMap:!1,shadowMode:!1})},"06b2":function(t,e,n){var i=n("1575");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("b2f7858c",i,!0,{sourceMap:!1,shadowMode:!1})},"0962":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{wxsProps:{}}},components:{}};e.default=i},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[n("v-uni-button",{attrs:{type:"primary",plain:"true",_i:1},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("\u70b9\u51fb\u663e\u793a\u5f39\u7a97")])],1)},o=[]},1524:function(t,e,n){var i=n("7905");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("312004cf",i,!0,{sourceMap:!1,shadowMode:!1})},1575:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"uni-button{margin-top:30upx;margin-bottom:30upx}.button-sp-area{margin:0 auto;width:60%}.content{text-align:center;height:400upx}.wrapper{flex-direction:column;justify-content:center}.button{width:200px;margin-top:30px;margin-left:20px;padding-top:20px;padding-bottom:20px;border-width:2px;border-style:solid;border-color:#458b00;background-color:#458b00}.text{font-size:30px;color:#666;text-align:center}",""]),t.exports=e},2332:function(t,e,n){"use strict";var i=n("06b2"),r=n.n(i);r.a},"242c":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[n("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[n("v-uni-text",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v("uni\u539f\u751f\u63d2\u4ef6\u793a\u4f8b1")])],1),t._l(t._$g(3,"f"),(function(e,i,r,o){return n("v-uni-view",{key:e,staticClass:t._$g("3-"+o,"sc"),attrs:{_i:"3-"+o}},[n("v-uni-view",{staticClass:t._$g("4-"+o,"sc"),class:t._$g("4-"+o,"c"),attrs:{_i:"4-"+o},on:{click:function(e){return t.$handleViewEvent(e)}}},[n("v-uni-text",{staticClass:t._$g("5-"+o,"sc"),attrs:{_i:"5-"+o}},[t._v(t._$g("5-"+o,"t0-0"))]),n("v-uni-text",{staticClass:t._$g("6-"+o,"sc"),class:t._$g("6-"+o,"c"),attrs:{_i:"6-"+o}},[t._v(t._$g("6-"+o,"t0-0"))])],1),t._$g("7-"+o,"i")?n("v-uni-view",{staticClass:t._$g("7-"+o,"sc"),attrs:{_i:"7-"+o}},t._l(t._$g("8-"+o,"f"),(function(e,i,r,a){return n("v-uni-view",{key:e,staticClass:t._$g("8-"+o+"-"+a,"sc"),attrs:{_i:"8-"+o+"-"+a},on:{click:function(e){return t.$handleViewEvent(e)}}},[n("v-uni-text",{staticClass:t._$g("9-"+o+"-"+a,"sc"),attrs:{_i:"9-"+o+"-"+a}},[t._v(t._$g("9-"+o+"-"+a,"t0-0"))]),n("v-uni-text",{staticClass:t._$g("10-"+o+"-"+a,"sc"),attrs:{_i:"10-"+o+"-"+a}},[t._v("\ue470")])],1)})),1):t._e()],1)})),n("v-uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[n("v-uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("testScanCancle")]),n("v-uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("goScan")]),n("v-uni-view",{staticClass:t._$g(14,"sc"),attrs:{_i:14},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("goBallList")])],1)],2)},o=[]},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"===typeof btoa){var o=r(i),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o uni-view:first-child{color:#1a1a1a;font-size:44rpx;line-height:60rpx;font-weight:700}.ball-list .bl-line > uni-view:nth-child(2){color:#009874;font-size:28rpx;line-height:40rpx}.ball-list .bl-tab{margin:0 24rpx;border-top-left-radius:10rpx;border-top-right-radius:10rpx;background-color:#ddd;display:flex;align-items:center;justify-content:flex-start}.ball-list .bl-tab > uni-view{width:174rpx;height:110rpx;color:#1a1a1a;font-size:28rpx;line-height:40rpx;text-align:center;border-right:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-tab > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-scroll{height:850rpx}.ball-list .bl-list{height:auto}.ball-list .bl-list .bll-item{margin:0 24rpx;display:flex;align-items:center;justify-content:flex-start;background-color:#fff;width:700rpx}.ball-list .bl-list .bll-item > uni-view{padding:0 4rpx;width:174rpx;height:100%;color:#1a1a1a;font-size:24rpx;text-align:center;line-height:34rpx;background-color:#fff;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;display:flex;align-items:center;justify-content:center;flex-direction:row}.ball-list .bl-list .bll-item > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-list .bll-item > uni-view:not(:last-child){border-bottom:1rpx solid red}.ball-list .bl-list .info-list{margin:0 24rpx;margin-top:30rpx;margin-bottom:50rpx;width:700rpx;height:auto;background:#fff;border-radius:10rpx;font-size:28rpx}.ball-list .bl-list .info-list .i-item{display:flex;align-items:center;justify-content:center;align-items:stretch}.ball-list .bl-list .info-list .i-item .i-box{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:26rpx 10rpx;width:176rpx;height:auto}.ball-list .bl-list .info-list .i-item .i-box:nth-child(2){border:1rpx solid #f2f2f7;border-bottom:none;border-top:none;word-break:break-all}.ball-list .bl-list .info-list .i-item .i-box:nth-child(3){border:1rpx solid #f2f2f7;border-bottom:none;flex-grow:1}.ball-list .bl-list .info-list .i-item .i-box:last-child{flex-grow:1}.ball-list .bl-list .info-list .i-item:not(:last-child){border-bottom:1rpx solid #f2f2f7}.ball-list .bl-btn{position:fixed;bottom:0;left:0;padding:12rpx 0;width:750rpx;background-color:#fff;border-top:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-btn > uni-view{font-size:28rpx;line-height:40rpx;text-align:center}.ball-list .bl-btn > uni-view:first-child{padding:12rpx 0;width:180rpx;color:#009874;background-color:#fff;border:2rpx solid #009874;border-radius:6rpx}.ball-list .bl-btn > uni-view:nth-child(2){margin:0 50rpx}.ball-list .bl-btn > uni-view:nth-child(2) > uni-text{margin:0 2rpx;color:#009874}.ball-list .bl-btn > uni-view:nth-child(3){padding:12rpx 0;width:180rpx;color:#fff;background-color:#009874;border:2rpx solid #009874;border-radius:6rpx}',""]),t.exports=e},"7f7e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;rn.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r uni-view:first-child{color:#1a1a1a;font-size:44rpx;line-height:60rpx;font-weight:700}.ball-list .bl-line > uni-view:nth-child(2){color:#009874;font-size:28rpx;line-height:40rpx}.ball-list .bl-tab{margin:0 24rpx;border-top-left-radius:10rpx;border-top-right-radius:10rpx;background-color:#ddd;display:flex;align-items:center;justify-content:flex-start}.ball-list .bl-tab > uni-view{width:174rpx;height:110rpx;color:#1a1a1a;font-size:28rpx;line-height:40rpx;text-align:center;border-right:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-tab > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-scroll{height:850rpx}.ball-list .bl-list{height:auto}.ball-list .bl-list .bll-item{margin:0 24rpx;display:flex;align-items:center;justify-content:flex-start;background-color:#fff;width:700rpx}.ball-list .bl-list .bll-item > uni-view{padding:0 4rpx;width:174rpx;height:100%;color:#1a1a1a;font-size:24rpx;text-align:center;line-height:34rpx;background-color:#fff;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;display:flex;align-items:center;justify-content:center;flex-direction:row}.ball-list .bl-list .bll-item > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-list .bll-item > uni-view:not(:last-child){border-bottom:1rpx solid red}.ball-list .bl-list .info-list{margin:0 24rpx;margin-top:30rpx;margin-bottom:50rpx;width:700rpx;height:auto;background:#fff;border-radius:10rpx;font-size:28rpx}.ball-list .bl-list .info-list .i-item{display:flex;align-items:center;justify-content:center;align-items:stretch}.ball-list .bl-list .info-list .i-item .i-box{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:26rpx 10rpx;width:176rpx;height:auto}.ball-list .bl-list .info-list .i-item .i-box:nth-child(2){border:1rpx solid #f2f2f7;border-bottom:none;border-top:none;word-break:break-all}.ball-list .bl-list .info-list .i-item .i-box:nth-child(3){border:1rpx solid #f2f2f7;border-bottom:none;flex-grow:1}.ball-list .bl-list .info-list .i-item .i-box:last-child{flex-grow:1}.ball-list .bl-list .info-list .i-item:not(:last-child){border-bottom:1rpx solid #f2f2f7}.ball-list .bl-btn{position:fixed;bottom:0;left:0;padding:12rpx 0;width:750rpx;background-color:#fff;border-top:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-btn > uni-view{font-size:28rpx;line-height:40rpx;text-align:center}.ball-list .bl-btn > uni-view:first-child{padding:12rpx 0;width:180rpx;color:#009874;background-color:#fff;border:2rpx solid #009874;border-radius:6rpx}.ball-list .bl-btn > uni-view:nth-child(2){margin:0 50rpx}.ball-list .bl-btn > uni-view:nth-child(2) > uni-text{margin:0 2rpx;color:#009874}.ball-list .bl-btn > uni-view:nth-child(3){padding:12rpx 0;width:180rpx;color:#fff;background-color:#009874;border:2rpx solid #009874;border-radius:6rpx}',""]),t.exports=n},"7c39":function(t,n,e){var i=e("527d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=e("7f7e").default;r("53dca976",i,!0,{sourceMap:!1,shadowMode:!1})},"7f7e":function(t,n,e){"use strict";function i(t,n){for(var e=[],i={},r=0;re.parts.length&&(i.parts.length=e.parts.length)}else{var a=[];for(r=0;r","","","","","","","","","","","","","","","","","","","","",""]},"apple":{},"plugins":{"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.3.11","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}} \ No newline at end of file +{"@platforms":["android","iPhone","iPad"],"id":"__UNI__2B9497D","name":"unipluginDemo","version":{"name":"1.0.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueCompiler":"uni-app","compilerVersion":3,"distribute":{"google":{"permissions":["","","","","","","","","","","","","","","","","","","","","",""]},"apple":{},"plugins":{"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.3.11","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}} \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/index/scan.js b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/index/scan.js index 504f840..8bd4824 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/index/scan.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/index/scan.js @@ -1 +1 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=24)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,c,l,u){var s,f="function"==typeof t?t.options:t;if(l){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in l)d.call(l,p)&&!d.call(f.components,p)&&(f.components[p]=l[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),o&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),a?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=s):i&&(s=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(f.functional){f._injectStyles=s;var g=f.render;f.render=function(t,e){return s.call(e),g(t,e)}}else{var _=f.beforeCreate;f.beforeCreate=_?[].concat(_,s):[s]}return{exports:t,options:f}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"==typeof __channelId__&&__channelId__}function r(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var u=c.pop();l=c.join("---COMMA---"),0===u.indexOf(" at ")?l+=u:l+="---COMMA---"+u}else l=c[0];console[a](l)}},,,function(t,e,n){"use strict";var o=n(18),i=n(13),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"79a49d92",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(21).default,this.options.style):Object.assign(this.options.style,n(21).default)}).call(a),e.default=a.exports},,,,,,function(t,e,n){"use strict";var o=n(14),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={onLoad:function(){},data:function(){return{fil:[0,2,1]}},methods:{toback:function(){var t=this;setTimeout((function(){t.tocancel(),uni.navigateBack()}),3e3)},success1:function(e){t("log","success1:"+JSON.stringify(e)," at pages/index/scan.nvue:40")},fail1:function(e){t("log","fail1:"+JSON.stringify(e)," at pages/index/scan.nvue:43")},toStart:function(){this.$refs.barcode.start({conserve:!0,filename:"_doc/barcode/"})},tocancel:function(){this.$refs.barcode.cancel()},toFlash:function(){this.$refs.barcode.setFlash(!0)},toscan:function(){t("log","scan:"," at pages/index/scan.nvue:59"),n("barcodeScan").scan("/static/barcode1.png",(function(e){t("log","scan_error:"+JSON.stringify(e)," at pages/index/scan.nvue:63")}))}}};e.default=o}).call(this,n(4).default,n(19).default)},function(t,e){t.exports={"@VERSION":2}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["main"]},[n("button",{staticClass:["btn"],on:{click:t.toStart}},[t._v("\n\t\t\t\u5f00\u59cb\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.tocancel}},[t._v("\u53d6\u6d88\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.toFlash}},[t._v("\u5f00\u542f\u95ea\u5149\u706f")]),n("button",{staticClass:["btn"],on:{click:t.toscan}},[t._v("\u9884\u89c8")]),n("button",{staticClass:["btn"],on:{click:t.toback}},[n("view",{staticClass:["dot"]}),t._v("\n\t\t\t3s\u540e\u8fd4\u56de")]),n("view",{staticClass:["bottom-dot"]})],1)])},i=[]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},,function(t,e,n){"use strict";n.r(e);var o=n(15),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(7);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/index/scan",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=25)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,c,l,u){var s,f="function"==typeof t?t.options:t;if(l){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in l)d.call(l,p)&&!d.call(f.components,p)&&(f.components[p]=l[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),o&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),a?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=s):i&&(s=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(f.functional){f._injectStyles=s;var g=f.render;f.render=function(t,e){return s.call(e),g(t,e)}}else{var _=f.beforeCreate;f.beforeCreate=_?[].concat(_,s):[s]}return{exports:t,options:f}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";var o=n(17),i=n(12),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"79a49d92",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(21).default,this.options.style):Object.assign(this.options.style,n(21).default)}).call(a),e.default=a.exports},,,,,,function(t,e,n){"use strict";var o=n(13),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={onLoad:function(){},data:function(){return{fil:[0,2,1]}},methods:{toback:function(){var t=this;setTimeout((function(){t.tocancel(),uni.navigateBack()}),3e3)},success1:function(e){t("log","success1:"+JSON.stringify(e)," at pages/index/scan.nvue:40")},fail1:function(e){t("log","fail1:"+JSON.stringify(e)," at pages/index/scan.nvue:43")},toStart:function(){this.$refs.barcode.start({conserve:!0,filename:"_doc/barcode/"})},tocancel:function(){this.$refs.barcode.cancel()},toFlash:function(){this.$refs.barcode.setFlash(!0)},toscan:function(){t("log","scan:"," at pages/index/scan.nvue:59"),n("barcodeScan").scan("/static/barcode1.png",(function(e){t("log","scan_error:"+JSON.stringify(e)," at pages/index/scan.nvue:63")}))}}};e.default=o}).call(this,n(18).default,n(19).default)},function(t,e){t.exports={"@VERSION":2}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["main"]},[n("button",{staticClass:["btn"],on:{click:t.toStart}},[t._v("\n\t\t\t\u5f00\u59cb\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.tocancel}},[t._v("\u53d6\u6d88\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.toFlash}},[t._v("\u5f00\u542f\u95ea\u5149\u706f")]),n("button",{staticClass:["btn"],on:{click:t.toscan}},[t._v("\u9884\u89c8")]),n("button",{staticClass:["btn"],on:{click:t.toback}},[n("view",{staticClass:["dot"]}),t._v("\n\t\t\t3s\u540e\u8fd4\u56de")]),n("view",{staticClass:["bottom-dot"]})],1)])},i=[]},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"==typeof __channelId__&&__channelId__}function r(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var u=c.pop();l=c.join("---COMMA---"),0===u.indexOf(" at ")?l+=u:l+="---COMMA---"+u}else l=c[0];console[a](l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},,function(t,e,n){"use strict";n.r(e);var o=n(14),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(6);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/index/scan",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-component.js b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-component.js index 4f3c92d..6a1570f 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-component.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-component.js @@ -1 +1 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,l,u,c){var f,d="function"==typeof t?t.options:t;if(u){d.components||(d.components={});var p=Object.prototype.hasOwnProperty;for(var s in u)p.call(u,s)&&!p.call(d.components,s)&&(d.components[s]=u[s])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=f):r&&(f=l?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(d.functional){d._injectStyles=f;var g=d.render;d.render=function(t,e){return f.call(e),g(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:d}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e.default=r.a},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"==typeof __channelId__&&__channelId__}function i(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var c=l.pop();u=l.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=l[0];console[a](u)}},function(t,e,n){"use strict";var o=n(16),r=n(8),i=n(1),a=Object(i.a)(r.default,o.b,o.c,!1,null,null,"ccd8f580",!1,o.a,void 0);e.default=a.exports},,,function(t,e,n){"use strict";var o=n(9),r=n.n(o);e.default=r.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},onLoad:function(){},methods:{onTel:function(e){t("log","onTel="+e.detail.tel," at pages/sample/ext-component.nvue:17")},myTextClick:function(t){this.$refs.telText.clearTel()}}};e.default=n}).call(this,n(4).default)},,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[e("div",[e("myText",{ref:"telText",staticStyle:{width:"200",height:"100"},attrs:{tel:"12305"},on:{onTel:this.onTel,click:this.myTextClick}})],1)])},r=[]},,,,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(5);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-component",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,l,u,c){var f,d="function"==typeof t?t.options:t;if(u){d.components||(d.components={});var p=Object.prototype.hasOwnProperty;for(var s in u)p.call(u,s)&&!p.call(d.components,s)&&(d.components[s]=u[s])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=f):r&&(f=l?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(d.functional){d._injectStyles=f;var g=d.render;d.render=function(t,e){return f.call(e),g(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:d}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e.default=r.a},function(t,e,n){"use strict";var o=n(15),r=n(7),i=n(1),a=Object(i.a)(r.default,o.b,o.c,!1,null,null,"ccd8f580",!1,o.a,void 0);e.default=a.exports},,,function(t,e,n){"use strict";var o=n(8),r=n.n(o);e.default=r.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},onLoad:function(){},methods:{onTel:function(e){t("log","onTel="+e.detail.tel," at pages/sample/ext-component.nvue:17")},myTextClick:function(t){this.$refs.telText.clearTel()}}};e.default=n}).call(this,n(18).default)},,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[e("div",[e("myText",{ref:"telText",staticStyle:{width:"200",height:"100"},attrs:{tel:"12305"},on:{onTel:this.onTel,click:this.myTextClick}})],1)])},r=[]},,,function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"==typeof __channelId__&&__channelId__}function i(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var c=l.pop();u=l.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=l[0];console[a](u)}},,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(4);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-component",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-module.js b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-module.js index 1f7bf8c..641ee37 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-module.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/dist/build/app-plus/pages/sample/ext-module.js @@ -1 +1 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,u,c,s){var l,p="function"==typeof t?t.options:t;if(c){p.components||(p.components={});var f=Object.prototype.hasOwnProperty;for(var d in c)f.call(c,d)&&!f.call(p.components,d)&&(p.components[d]=c[d])}if(s&&((s.beforeCreate||(s.beforeCreate=[])).unshift((function(){this[s.__module]=this})),(p.mixins||(p.mixins=[])).push(s)),e&&(p.render=e,p.staticRenderFns=n,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},p._ssrRegister=l):i&&(l=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(p.functional){p._injectStyles=l;var g=p.render;p.render=function(t,e){return l.call(e),g(t,e)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,l):[l]}return{exports:t,options:p}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"==typeof __channelId__&&__channelId__}function r(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var s=u.pop();c=u.join("---COMMA---"),0===s.indexOf(" at ")?c+=s:c+="---COMMA---"+s}else c=u[0];console[a](c)}},,function(t,e,n){"use strict";var o=n(17),i=n(10),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"56be5383",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(20).default,this.options.style):Object.assign(this.options.style,n(20).default)}).call(a),e.default=a.exports},,,,function(t,e,n){"use strict";var o=n(11),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t("Zmt-Module"),i=t("TestModule"),r=t("uniplugin_module_ox"),a=t("Face-Module"),u=t("modal"),c={onLoad:function(){this.initAPPListener()},methods:{initAPPListener:function(){plus.globalEvent.addEventListener("TestEvent",(function(t){u.toast({message:"TestEvent\u6536\u5230\uff1a"+t.msg,duration:1.5})}))},faceAsyncFunc:function(){n("log","\u6d4b\u8bd5\u5f00\u59cbfaceAsyncFunc"," at pages/sample/ext-module.nvue:54"),a.faceAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},tcpAsyncFunc:function(){o.tcpAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testFun2:function(){var t=o.testSyncFunc({name:"unimp",age:1});u.toast({message:t,duration:1.5})},testAsyncFunc:function(){i.testAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=i.testSyncFunc({name:"unimp",age:1});u.toast({message:t,duration:1.5})},testAsyncFunc2:function(){r.testAsyncFunc2({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=r.testSyncFunc2({name:"unimp",age:1});u.toast({message:t,duration:1.5})},gotoNativePage:function(){i.gotoNativePage()}}};e.default=c}).call(this,n(19).default,n(4).default)},function(t,e){t.exports={btn:{marginTop:"3",marginRight:"3",marginBottom:"3",marginLeft:"3"},tips:{fontSize:"11",color:"#808080",fontWeight:"800"},"@VERSION":2}},,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("div",{staticClass:["content"]},[n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.gotoNativePage}},[t._v("\u8df3\u8f6c\u539f\u751fActivity")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.tcpAsyncFunc}},[t._v("[\u5f00\u542fTcpServer]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u5f00\u542fTcpServer. \u672c\u673aIP: 192.168.1.64 \u7aef\u53e3\uff1a16666\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.faceAsyncFunc}},[t._v("[\u767e\u5ea6\u4eba\u8138SDK\u6388\u6743]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u8fdb\u884c\u767e\u5ea6\u4eba\u8138SDK\u521d\u59cb\u5316\u53ca\u6388\u6743\u7533\u8bf7,\u8be5\u6388\u6743\u7801\u5199\u6b7b\u5728Android\u7aefzmt_module\u5185faceClass,\u56e0\u5df2\u4f7f\u7528\u8fc7,\u5c06\u8fd4\u56de\u5df2\u88ab\u5360\u7528\u63d0\u793a.\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc2}},[t._v("uniplugin_module_ox testAsyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc2}},[t._v("uniplugin_module_ox testSyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc}},[t._v("uniplugin_module testAsyncFunc")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc}},[t._v("uniplugin_module testSyncFunc")])],1)])},i=[]},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},function(t,e,n){"use strict";n.r(e);var o=n(12),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(6);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-module",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,u,s,c){var l,p="function"==typeof t?t.options:t;if(s){p.components||(p.components={});var d=Object.prototype.hasOwnProperty;for(var f in s)d.call(s,f)&&!d.call(p.components,f)&&(p.components[f]=s[f])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(p.mixins||(p.mixins=[])).push(c)),e&&(p.render=e,p.staticRenderFns=n,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},p._ssrRegister=l):i&&(l=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(p.functional){p._injectStyles=l;var g=p.render;p.render=function(t,e){return l.call(e),g(t,e)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,l):[l]}return{exports:t,options:p}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,function(t,e,n){"use strict";var o=n(16),i=n(9),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"56be5383",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(20).default,this.options.style):Object.assign(this.options.style,n(20).default)}).call(a),e.default=a.exports},,,,function(t,e,n){"use strict";var o=n(10),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(24),i=t("Zmt-Module"),r=t("TestModule"),a=t("uniplugin_module_ox"),u=t("Face-Module"),s=t("modal"),c={onLoad:function(){this.initAPPListener()},onReady:function(){this.logs.push("\u5f53\u524d\u65f6\u95f4:"+this.getTime())},data:function(){return{logs:["LOG VIEW"]}},methods:{initAPPListener:function(){plus.globalEvent.addEventListener("TestEvent",(function(t){s.toast({message:"TestEvent\u6536\u5230\uff1a"+t.msg,duration:1.5})}))},faceAsyncFunc:function(){var t=this;this.log("\u6267\u884cfaceModule.faceAsyncFunc"),u.faceAsyncFunc({name:"unimp",age:1},(function(e){s.toast({message:e,duration:1.5}),t.log(JSON.stringify(e))}))},tcpAsyncFunc:function(){var t=this;this.log("\u5f00\u542fTcp Server."),i.tcpAsyncFunc({name:"unimp",age:1},(function(e){s.toast({message:e,duration:2}),t.log("tcp\u63a5\u6536:"+e.code)}))},testFun2:function(){var t=i.testSyncFunc({name:"unimp",age:1});s.toast({message:t,duration:1.5})},testAsyncFunc:function(){r.testAsyncFunc({name:"unimp",age:1},(function(t){s.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=r.testSyncFunc({name:"unimp",age:1});s.toast({message:t,duration:1.5})},testAsyncFunc2:function(){a.testAsyncFunc2({name:"unimp",age:1},(function(t){s.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=a.testSyncFunc2({name:"unimp",age:1});s.toast({message:t,duration:1.5})},log:function(t){this.logs.push(this.getTime()+" ".concat(t))},getTime:function(){return(0,o.timeFormat)(new Date,"mm/dd hh:MM:ss")},gotoNativePage:function(){r.gotoNativePage()}}};e.default=c}).call(this,n(19).default)},function(t,e){t.exports={content:{fontSize:"12"},btn:{marginTop:"3",marginRight:"3",marginBottom:"3",marginLeft:"3"},tips:{fontSize:"11",color:"#808080",fontWeight:"800"},console:{backgroundColor:"#D3D3D3",paddingTop:"20rpx",paddingRight:"20rpx",paddingBottom:"20rpx",paddingLeft:"20rpx"},log:{color:"#8B0000",fontSize:"11",fontWeight:"800"},"@VERSION":2}},,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("div",{staticClass:["content"]},[n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.gotoNativePage}},[t._v("\u8df3\u8f6c\u539f\u751fActivity")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.tcpAsyncFunc}},[t._v("[\u5f00\u542fTcpServer]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u5f00\u542fTcpServer. \u672c\u673aIP: 192.168.1.64 \u7aef\u53e3\uff1a16666\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.faceAsyncFunc}},[t._v("[\u767e\u5ea6\u4eba\u8138SDK\u6388\u6743]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u8fdb\u884c\u767e\u5ea6\u4eba\u8138SDK\u521d\u59cb\u5316\u53ca\u6388\u6743\u7533\u8bf7,\u8be5\u6388\u6743\u7801\u5199\u6b7b\u5728Android\u7aefzmt_module\u5185faceClass,\u56e0\u5df2\u4f7f\u7528\u8fc7,\u5c06\u8fd4\u56de\u5df2\u88ab\u5360\u7528\u63d0\u793a.\n\t")]),n("view",{staticClass:["console"]},t._l(t.logs,(function(e){return n("u-text",{staticClass:["log"],appendAsTree:!0,attrs:{append:"tree"}},[t._v(t._s(e))])})),0),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc2}},[t._v("uniplugin_module_ox testAsyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc2}},[t._v("uniplugin_module_ox testSyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc}},[t._v("uniplugin_module testAsyncFunc")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc}},[t._v("uniplugin_module testSyncFunc")])],1)])},i=[]},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},function(t,e,n){"use strict";n.r(e);var o=n(11),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(5);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-module",o.default.el="#root",new Vue(o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormat=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date));"string"==typeof t&&t.indexOf("-")>0&&(t=t.replace(/\-/g,"/"));10==t.toString().length&&(t*=1e3);var n,o=new Date(t),i={"y+":o.getFullYear().toString(),"m+":(o.getMonth()+1).toString(),"d+":o.getDate().toString(),"h+":o.getHours().toString(),"M+":o.getMinutes().toString(),"s+":o.getSeconds().toString()};for(var r in i)(n=new RegExp("("+r+")").exec(e))&&(e=e.replace(n[1],1==n[1].length?i[r]:i[r].padStart(n[1].length,"0")));return e},e.getDurationTime=function(t){var e="",n=parseInt(t/3600),o=parseInt(t%3600/60),i=parseInt(t%3600%60);n>0&&(e+=(n=n<10?"0"+n:n)+":");return e+=(o=o<10?"0"+o:o)+":"+(i=i<10?"0"+i:i)},String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);for(var o=t-n.length,i=Math.ceil(o/e.length);i>>=1;)e+=e,1===i&&(e+=e);return e.slice(0,o)+n})}]); \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-config-service.js b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-config-service.js index 411e973..26df71f 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-config-service.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-config-service.js @@ -1,8 +1,8 @@ var isReady=false;var onReadyCallbacks=[]; var isServiceReady=false;var onServiceReadyCallbacks=[]; -var __uniConfig = {"pages":["pages/index/index","pages/index/ball_list","pages/index/scan","pages/sample/ext-module","pages/sample/ext-component","pages/sample/richAlert"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"unipluginDemo","compilerVersion":"3.3.11","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; -var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/ball_list","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/scan","meta":{"isNVue":true},"window":{"navigationBarTitleText":"22222"}},{"path":"/pages/sample/ext-module","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 module"}},{"path":"/pages/sample/ext-component","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 component"}},{"path":"/pages/sample/richAlert","meta":{},"window":{"navigationBarTitleText":"RichAlert"}}]; +var __uniConfig = {"pages":["pages/sample/ext-module-vue","pages/index/index","pages/index/ball_list","pages/index/scan","pages/sample/ext-module","pages/sample/ext-component","pages/sample/richAlert"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"nvueCompiler":"uni-app","nvueStyleCompiler":"weex","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"unipluginDemo","compilerVersion":"3.3.11","entryPagePath":"pages/sample/ext-module-vue","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}}; +var __uniRoutes = [{"path":"/pages/sample/ext-module-vue","meta":{"isQuit":true},"window":{"navigationBarTitleText":"扩展 module vue"}},{"path":"/pages/index/index","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/ball_list","meta":{},"window":{"navigationBarTitleText":"uni-app"}},{"path":"/pages/index/scan","meta":{"isNVue":true},"window":{"navigationBarTitleText":"22222"}},{"path":"/pages/sample/ext-module","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 module nvue"}},{"path":"/pages/sample/ext-component","meta":{"isNVue":true},"window":{"navigationBarTitleText":"扩展 component"}},{"path":"/pages/sample/richAlert","meta":{},"window":{"navigationBarTitleText":"RichAlert"}}]; __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}}); diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-service.js b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-service.js index 2b7f69b..a6b1018 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-service.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-service.js @@ -1 +1 @@ -(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0101":function(t,e,n){"use strict";n.r(e);var i=n("242c"),a=n("b505");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r,o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","button-sp-area"),attrs:{_i:0}},[n("button",{attrs:{_i:1},on:{click:function(e){return t.showRichAlert()}}})])},s=[]},"0de9":function(t,e,n){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function a(){return"string"===typeof __channelId__&&__channelId__}function s(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1){var l=o.pop();c=o.join("---COMMA---"),0===l.indexOf(" at ")?c+=l:c+="---COMMA---"+l}else c=o[0];console[r](c)}n.r(e),n.d(e,"log",(function(){return r})),n.d(e,"default",(function(){return o}))},"242c":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-container"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-hello-text"),attrs:{_i:1}},[n("text",{staticClass:t._$s(2,"sc","hello-text"),attrs:{_i:2}})]),t._l(t._$s(3,"f",{forItems:t.list}),(function(e,i,a,s){return n("view",{key:t._$s(3,"f",{forIndex:a,key:e.id}),staticClass:t._$s("3-"+s,"sc","uni-panel"),attrs:{_i:"3-"+s}},[n("view",{staticClass:t._$s("4-"+s,"sc","uni-panel-h"),class:t._$s("4-"+s,"c",e.open?"uni-panel-h-on":""),attrs:{_i:"4-"+s},on:{click:function(e){return t.triggerCollapse(i)}}},[n("text",{staticClass:t._$s("5-"+s,"sc","uni-panel-text"),attrs:{_i:"5-"+s}},[t._v(t._$s("5-"+s,"t0-0",t._s(e.name)))]),n("text",{staticClass:t._$s("6-"+s,"sc","uni-panel-icon uni-icon"),class:t._$s("6-"+s,"c",e.open?"uni-panel-icon-on":""),attrs:{_i:"6-"+s}},[t._v(t._$s("6-"+s,"t0-0",t._s(e.pages?"\ue581":"\ue470")))])]),t._$s("7-"+s,"i",e.open)?n("view",{staticClass:t._$s("7-"+s,"sc","uni-panel-c"),attrs:{_i:"7-"+s}},t._l(t._$s("8-"+s,"f",{forItems:e.pages}),(function(e,i,a,r){return n("view",{key:t._$s("8-"+s,"f",{forIndex:a,key:i}),staticClass:t._$s("8-"+s+"-"+r,"sc","uni-navigate-item"),attrs:{_i:"8-"+s+"-"+r},on:{click:function(n){return t.goDetailPage(e.url)}}},[n("text",{staticClass:t._$s("9-"+s+"-"+r,"sc","uni-navigate-text"),attrs:{_i:"9-"+s+"-"+r}},[t._v(t._$s("9-"+s+"-"+r,"t0-0",t._s(e.name?e.name:e)))]),n("text",{staticClass:t._$s("10-"+s+"-"+r,"sc","uni-navigate-icon uni-icon"),attrs:{_i:"10-"+s+"-"+r}})])})),0):t._e()])})),n("view",{staticClass:t._$s(11,"sc","uni-panel"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","uni-panel-h"),attrs:{_i:12},on:{click:function(e){return t.testScanCancle()}}}),n("view",{staticClass:t._$s(13,"sc","uni-panel-h"),attrs:{_i:13},on:{click:function(e){return t.goScan()}}}),n("view",{staticClass:t._$s(14,"sc","uni-panel-h"),attrs:{_i:14},on:{click:function(e){return t.goBallList()}}})])],2)},s=[]},"40fd":function(t,e,n){"use strict";n.r(e);var i=n("4422"),a=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},4422:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{optionQuery:{},ballList:[],page:1,pageTotal:1,isShowBtn:!1}},onLoad:function(t){t.stadium_id,t.brand_id},onReachBottom:function(){},methods:{returnBtn:function(){uni.navigateBack()},getList:function(e){var n=this,i=e.page,a=void 0===i?1:i,s=e.page_size,r=void 0===s?10:s,o=this.optionQuery;util.showLoad(),servers.post({url:API.tidList,data:{brand_id:o.brand_id,stadium_id:o.stadium_id,goods_name:"\u7bee\u7403\u5f55\u5165",page:a,page_size:r},failMsg:"\u52a0\u8f7d\u5931\u8d25\uff01"}).then((function(e){util.hideLoad(),n.pageTotal=Math.ceil(e.total/10);var i=e.list||[];return t("log","\u6b66\u6c49\u51e1\u8c37\uff1a",JSON.stringify(e)," at pages/index/ball_list.vue:102"),1==a?(i.length>0&&(n.isShowBtn=!0),n.ballList=i):i.length<=0?util.showNone("\u6ca1\u6709\u66f4\u591a\uff01"):(n.page=a,void(n.ballList=i))})).catch((function(e){t("error","\u7bee\u7403\u5217\u8868-err\uff1f",e," at pages/index/ball_list.vue:116")}))}}};e.default=n}).call(this,n("0de9")["default"])},5215:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{id:"ext-module",name:"\u6269\u5c55 module\u6d4b\u8bd5\u5217\u8868",open:!1,url:"/pages/sample/ext-module"},{id:"ext-component",name:"\u6269\u5c55 component",open:!1,url:"/pages/sample/ext-component"},{id:"richAlert",name:"\u63d2\u4ef6\u793a\u4f8bRichAlert",open:!1,url:"/pages/sample/richAlert"}],navigateFlag:!1}},onLoad:function(){},methods:{goScan:function(){t("log",111," at pages/index/index.vue:59"),uni.navigateTo({url:"./scan"})},goBallList:function(){t("log",111," at pages/index/index.vue:66"),uni.navigateTo({url:"./ball_list"})},testScanCancle:function(){uni.scanCode({onlyFromCamera:!0,success:function(e){t("log","\u6761\u7801\u7c7b\u578b\uff1a"+e.scanType," at pages/index/index.vue:76"),t("log","\u6761\u7801\u5185\u5bb9\uff1a"+e.result," at pages/index/index.vue:77")}}),setTimeout((function(){t("log","\u6267\u884c\u8fd4\u56de"," at pages/index/index.vue:81"),uni.navigateBack(),uni.navigateBack()}),3e3)},triggerCollapse:function(t){if(this.list[t].pages)for(var e=0;euni-app \u662f\u4e00\u4e2a\u4f7f\u7528 Vue.js \u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u524d\u7aef\u6846\u67b6!\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d",contentAlign:"left",checkBox:{title:"\u4e0d\u518d\u63d0\u793a",isSelected:!0},buttons:[{title:"\u53d6\u6d88"},{title:"\u5426"},{title:"\u786e\u8ba4",titleColor:"#3F51B5"}]},(function(e){var i=JSON.stringify(e);switch(n.toast({message:i,duration:1.5}),e.type){case"button":t("log","callback---button--"+e.index," at pages/sample/richAlert.vue:50");break;case"checkBox":t("log","callback---checkBox--"+e.isSelected," at pages/sample/richAlert.vue:53");break;case"a":t("log","callback---a--"+JSON.stringify(e)," at pages/sample/richAlert.vue:56");break;case"backCancel":t("log","callback---backCancel--"," at pages/sample/richAlert.vue:59");break}}))}}};e.default=a}).call(this,n("0de9")["default"])},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,a,s,r,o,c,l){var u,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var _ in c)d.call(c,_)&&!d.call(f.components,_)&&(f.components[_]=c[_])}if(l&&((l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(f.mixins||(f.mixins=[])).push(l)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),s&&(f._scopeId="data-v-"+s),r?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},f._ssrRegister=u):a&&(u=o?function(){a.call(this,this.$root.$options.shadowRoot)}:a),u)if(f.functional){f._injectStyles=u;var p=f.render;f.render=function(t,e){return u.call(e),p(t,e)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,u):[u]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},f608:function(t,e,n){"use strict";n.r(e);var i=n("0d6a"),a=n("bc8b");for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var r,o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports}},[["5a57","app-config"]]]); \ No newline at end of file +(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"00f8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("af3c"),s=uni.requireNativePlugin("Zmt-Module"),a=uni.requireNativePlugin("TestModule"),r=uni.requireNativePlugin("uniplugin_module_ox"),o=uni.requireNativePlugin("Face-Module"),c=uni.requireNativePlugin("modal"),u={onLoad:function(){this.initAPPListener()},onReady:function(){this.logs.push("\u5f53\u524d\u65f6\u95f4:"+this.getTime())},data:function(){return{logs:["LOG VIEW"]}},methods:{initAPPListener:function(){var t=this;plus.globalEvent.addEventListener("myEvent",(function(e){c.toast({message:"TestEvent\u6536\u5230\uff1a"+JSON.stringify(e),duration:3.5}),t.log("\u5168\u5c40\u4e8b\u4ef6\u63a5\u6536:"+JSON.stringify(e))}))},faceAsyncFunc:function(){var t=this;this.log("\u6267\u884cfaceModule.faceAsyncFunc"),o.faceAsyncFunc({name:"unimp",age:1},(function(e){c.toast({message:e,duration:1.5}),t.log(JSON.stringify(e))}))},tcpAsyncFunc:function(){var t=this;this.log("\u5f00\u542fTcp Server."),s.tcpAsyncFunc({port:"16666",name:"unimp",age:1},(function(e){c.toast({message:e,duration:2}),t.log("invoke:"+JSON.stringify(e))}))},testFun2:function(){var t=s.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc:function(){a.testAsyncFunc({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=a.testSyncFunc({name:"unimp",age:1});c.toast({message:t,duration:1.5})},testAsyncFunc2:function(){r.testAsyncFunc2({name:"unimp",age:1},(function(t){c.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=r.testSyncFunc2({name:"unimp",age:1});c.toast({message:t,duration:1.5})},log:function(t){this.logs.push(this.getTime()+" ".concat(t))},getTime:function(){return(0,i.timeFormat)(new Date,"mm/dd hh:MM:ss")},gotoNativePage:function(){a.gotoNativePage()}}};e.default=u},"0101":function(t,e,n){"use strict";n.r(e);var i=n("e219"),s=n("b505");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0348":function(t,e,n){"use strict";n.r(e);var i=n("585a"),s=n("4aaa");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","button-sp-area"),attrs:{_i:0}},[n("button",{attrs:{_i:1},on:{click:function(e){return t.showRichAlert()}}})])},a=[]},"0de9":function(t,e,n){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function s(){return"string"===typeof __channelId__&&__channelId__}function a(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1){var u=o.pop();c=o.join("---COMMA---"),0===u.indexOf(" at ")?c+=u:c+="---COMMA---"+u}else c=o[0];console[r](c)}n.r(e),n.d(e,"log",(function(){return r})),n.d(e,"default",(function(){return o}))},"40fd":function(t,e,n){"use strict";n.r(e);var i=n("4422"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},4422:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{optionQuery:{},ballList:[],page:1,pageTotal:1,isShowBtn:!1}},onLoad:function(t){t.stadium_id,t.brand_id},onReachBottom:function(){},methods:{returnBtn:function(){uni.navigateBack()},getList:function(e){var n=this,i=e.page,s=void 0===i?1:i,a=e.page_size,r=void 0===a?10:a,o=this.optionQuery;util.showLoad(),servers.post({url:API.tidList,data:{brand_id:o.brand_id,stadium_id:o.stadium_id,goods_name:"\u7bee\u7403\u5f55\u5165",page:s,page_size:r},failMsg:"\u52a0\u8f7d\u5931\u8d25\uff01"}).then((function(e){util.hideLoad(),n.pageTotal=Math.ceil(e.total/10);var i=e.list||[];return t("log","\u6b66\u6c49\u51e1\u8c37\uff1a",JSON.stringify(e)," at pages/index/ball_list.vue:102"),1==s?(i.length>0&&(n.isShowBtn=!0),n.ballList=i):i.length<=0?util.showNone("\u6ca1\u6709\u66f4\u591a\uff01"):(n.page=s,void(n.ballList=i))})).catch((function(e){t("error","\u7bee\u7403\u5217\u8868-err\uff1f",e," at pages/index/ball_list.vue:116")}))}}};e.default=n}).call(this,n("0de9")["default"])},"4aaa":function(t,e,n){"use strict";n.r(e);var i=n("00f8"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},5215:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{list:[{id:"ext-module",name:"\u6269\u5c55 module\u6d4b\u8bd5\u5217\u8868",open:!1,url:"/pages/sample/ext-module-vue"},{id:"ext-component",name:"\u6269\u5c55 component",open:!1,url:"/pages/sample/ext-component"},{id:"richAlert",name:"\u63d2\u4ef6\u793a\u4f8bRichAlert",open:!1,url:"/pages/sample/richAlert"}],navigateFlag:!1}},onLoad:function(){},methods:{goScan:function(){t("log",111," at pages/index/index.vue:59"),uni.navigateTo({url:"./scan"})},goBallList:function(){t("log",111," at pages/index/index.vue:66"),uni.navigateTo({url:"./ball_list"})},testScanCancle:function(){uni.scanCode({onlyFromCamera:!0,success:function(e){t("log","\u6761\u7801\u7c7b\u578b\uff1a"+e.scanType," at pages/index/index.vue:76"),t("log","\u6761\u7801\u5185\u5bb9\uff1a"+e.result," at pages/index/index.vue:77")}}),setTimeout((function(){t("log","\u6267\u884c\u8fd4\u56de"," at pages/index/index.vue:81"),uni.navigateBack(),uni.navigateBack()}),3e3)},triggerCollapse:function(t){if(this.list[t].pages)for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),"string"==typeof t&&t.indexOf("-")>0&&(t=t.replace(/\-/g,"/")),10==t.toString().length&&(t*=1e3);var n,i=new Date(t),s={"y+":i.getFullYear().toString(),"m+":(i.getMonth()+1).toString(),"d+":i.getDate().toString(),"h+":i.getHours().toString(),"M+":i.getMinutes().toString(),"s+":i.getSeconds().toString()};for(var a in s)n=new RegExp("("+a+")").exec(e),n&&(e=e.replace(n[1],1==n[1].length?s[a]:s[a].padStart(n[1].length,"0")));return e}function s(t){var e="",n=parseInt(t/3600),i=parseInt(t%3600/60),s=parseInt(t%3600%60);return n>0&&(n=n<10?"0"+n:n,e+=n+":"),i=i<10?"0"+i:i,s=s<10?"0"+s:s,e+=i+":"+s,e}Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormat=i,e.getDurationTime=s,String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);var i=t-n.length,s=Math.ceil(i/e.length);while(s>>=1)e+=e,1===s&&(e+=e);return e.slice(0,i)+n})},b354:function(t,e,n){"use strict";n.r(e);var i=n("d479"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},b505:function(t,e,n){"use strict";n.r(e);var i=n("5215"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},bc8b:function(t,e,n){"use strict";n.r(e);var i=n("e10d"),s=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},d479:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=n}).call(this,n("0de9")["default"])},e10d:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=uni.requireNativePlugin("modal"),i=uni.requireNativePlugin("DCloud-RichAlert"),s={data:function(){return{title:""}},onLoad:function(){},methods:{showRichAlert:function(){i.show({position:"bottom",title:"\u63d0\u793a\u4fe1\u606f",titleColor:"#FF0000",content:"uni-app \u662f\u4e00\u4e2a\u4f7f\u7528 Vue.js \u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u524d\u7aef\u6846\u67b6!\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u514d\u8d39\u7684\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d",contentAlign:"left",checkBox:{title:"\u4e0d\u518d\u63d0\u793a",isSelected:!0},buttons:[{title:"\u53d6\u6d88"},{title:"\u5426"},{title:"\u786e\u8ba4",titleColor:"#3F51B5"}]},(function(e){var i=JSON.stringify(e);switch(n.toast({message:i,duration:1.5}),e.type){case"button":t("log","callback---button--"+e.index," at pages/sample/richAlert.vue:50");break;case"checkBox":t("log","callback---checkBox--"+e.isSelected," at pages/sample/richAlert.vue:53");break;case"a":t("log","callback---a--"+JSON.stringify(e)," at pages/sample/richAlert.vue:56");break;case"backCancel":t("log","callback---backCancel--"," at pages/sample/richAlert.vue:59");break}}))}}};e.default=s}).call(this,n("0de9")["default"])},e219:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","uni-container"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","uni-hello-text"),attrs:{_i:1}},[n("text",{staticClass:t._$s(2,"sc","hello-text"),attrs:{_i:2}})]),t._l(t._$s(3,"f",{forItems:t.list}),(function(e,i,s,a){return n("view",{key:t._$s(3,"f",{forIndex:s,key:e.id}),staticClass:t._$s("3-"+a,"sc","uni-panel"),attrs:{_i:"3-"+a}},[n("view",{staticClass:t._$s("4-"+a,"sc","uni-panel-h"),class:t._$s("4-"+a,"c",e.open?"uni-panel-h-on":""),attrs:{_i:"4-"+a},on:{click:function(e){return t.triggerCollapse(i)}}},[n("text",{staticClass:t._$s("5-"+a,"sc","uni-panel-text"),attrs:{_i:"5-"+a}},[t._v(t._$s("5-"+a,"t0-0",t._s(e.name)))]),n("text",{staticClass:t._$s("6-"+a,"sc","uni-panel-icon uni-icon"),class:t._$s("6-"+a,"c",e.open?"uni-panel-icon-on":""),attrs:{_i:"6-"+a}},[t._v(t._$s("6-"+a,"t0-0",t._s(e.pages?"\ue581":"\ue470")))])]),t._$s("7-"+a,"i",e.open)?n("view",{staticClass:t._$s("7-"+a,"sc","uni-panel-c"),attrs:{_i:"7-"+a}},t._l(t._$s("8-"+a,"f",{forItems:e.pages}),(function(e,i,s,r){return n("view",{key:t._$s("8-"+a,"f",{forIndex:s,key:i}),staticClass:t._$s("8-"+a+"-"+r,"sc","uni-navigate-item"),attrs:{_i:"8-"+a+"-"+r},on:{click:function(n){return t.goDetailPage(e.url)}}},[n("text",{staticClass:t._$s("9-"+a+"-"+r,"sc","uni-navigate-text"),attrs:{_i:"9-"+a+"-"+r}},[t._v(t._$s("9-"+a+"-"+r,"t0-0",t._s(e.name?e.name:e)))]),n("text",{staticClass:t._$s("10-"+a+"-"+r,"sc","uni-navigate-icon uni-icon"),attrs:{_i:"10-"+a+"-"+r}})])})),0):t._e()])})),n("view",{staticClass:t._$s(11,"sc","uni-panel"),attrs:{_i:11}},[n("view",{staticClass:t._$s(12,"sc","uni-panel-h"),attrs:{_i:12},on:{click:function(e){return t.testScanCancle()}}}),n("view",{staticClass:t._$s(13,"sc","uni-panel-h"),attrs:{_i:13},on:{click:function(e){return t.goScan()}}}),n("view",{staticClass:t._$s(14,"sc","uni-panel-h"),attrs:{_i:14},on:{click:function(e){return t.goBallList()}}})])],2)},a=[]},f0c5:function(t,e,n){"use strict";function i(t,e,n,i,s,a,r,o,c,u){var l,f="function"===typeof t?t.options:t;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var _ in c)d.call(c,_)&&!d.call(f.components,_)&&(f.components[_]=c[_])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),r?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},f._ssrRegister=l):s&&(l=o?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(f.functional){f._injectStyles=l;var p=f.render;f.render=function(t,e){return l.call(e),p(t,e)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},f608:function(t,e,n){"use strict";n.r(e);var i=n("0d6a"),s=n("bc8b");for(var a in s)"default"!==a&&function(t){n.d(e,t,(function(){return s[t]}))}(a);var r,o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=c.exports}},[["5a57","app-config"]]]); \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-view.js b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-view.js index 59e9ffd..e02d950 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-view.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/app-view.js @@ -1 +1 @@ -(function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s="5a57")})({"0101":function(t,e,n){"use strict";n.r(e);var i=n("242c"),r=n("b505");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("e52d");var a,s=n("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);e["default"]=l.exports},"0353":function(t,e,n){var i=n("7757");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("50970dee",i,!0,{sourceMap:!1,shadowMode:!1})},"06b2":function(t,e,n){var i=n("1575");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("b2f7858c",i,!0,{sourceMap:!1,shadowMode:!1})},"0962":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{wxsProps:{}}},components:{}};e.default=i},"0d6a":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[n("v-uni-button",{attrs:{type:"primary",plain:"true",_i:1},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("\u70b9\u51fb\u663e\u793a\u5f39\u7a97")])],1)},o=[]},1524:function(t,e,n){var i=n("7905");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("7f7e").default;r("312004cf",i,!0,{sourceMap:!1,shadowMode:!1})},1575:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,"uni-button{margin-top:30upx;margin-bottom:30upx}.button-sp-area{margin:0 auto;width:60%}.content{text-align:center;height:400upx}.wrapper{flex-direction:column;justify-content:center}.button{width:200px;margin-top:30px;margin-left:20px;padding-top:20px;padding-bottom:20px;border-width:2px;border-style:solid;border-color:#458b00;background-color:#458b00}.text{font-size:30px;color:#666;text-align:center}",""]),t.exports=e},2332:function(t,e,n){"use strict";var i=n("06b2"),r=n.n(i);r.a},"242c":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[n("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[n("v-uni-text",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v("uni\u539f\u751f\u63d2\u4ef6\u793a\u4f8b1")])],1),t._l(t._$g(3,"f"),(function(e,i,r,o){return n("v-uni-view",{key:e,staticClass:t._$g("3-"+o,"sc"),attrs:{_i:"3-"+o}},[n("v-uni-view",{staticClass:t._$g("4-"+o,"sc"),class:t._$g("4-"+o,"c"),attrs:{_i:"4-"+o},on:{click:function(e){return t.$handleViewEvent(e)}}},[n("v-uni-text",{staticClass:t._$g("5-"+o,"sc"),attrs:{_i:"5-"+o}},[t._v(t._$g("5-"+o,"t0-0"))]),n("v-uni-text",{staticClass:t._$g("6-"+o,"sc"),class:t._$g("6-"+o,"c"),attrs:{_i:"6-"+o}},[t._v(t._$g("6-"+o,"t0-0"))])],1),t._$g("7-"+o,"i")?n("v-uni-view",{staticClass:t._$g("7-"+o,"sc"),attrs:{_i:"7-"+o}},t._l(t._$g("8-"+o,"f"),(function(e,i,r,a){return n("v-uni-view",{key:e,staticClass:t._$g("8-"+o+"-"+a,"sc"),attrs:{_i:"8-"+o+"-"+a},on:{click:function(e){return t.$handleViewEvent(e)}}},[n("v-uni-text",{staticClass:t._$g("9-"+o+"-"+a,"sc"),attrs:{_i:"9-"+o+"-"+a}},[t._v(t._$g("9-"+o+"-"+a,"t0-0"))]),n("v-uni-text",{staticClass:t._$g("10-"+o+"-"+a,"sc"),attrs:{_i:"10-"+o+"-"+a}},[t._v("\ue470")])],1)})),1):t._e()],1)})),n("v-uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[n("v-uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("testScanCancle")]),n("v-uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("goScan")]),n("v-uni-view",{staticClass:t._$g(14,"sc"),attrs:{_i:14},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("goBallList")])],1)],2)},o=[]},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"===typeof btoa){var o=r(i),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o uni-view:first-child{color:#1a1a1a;font-size:44rpx;line-height:60rpx;font-weight:700}.ball-list .bl-line > uni-view:nth-child(2){color:#009874;font-size:28rpx;line-height:40rpx}.ball-list .bl-tab{margin:0 24rpx;border-top-left-radius:10rpx;border-top-right-radius:10rpx;background-color:#ddd;display:flex;align-items:center;justify-content:flex-start}.ball-list .bl-tab > uni-view{width:174rpx;height:110rpx;color:#1a1a1a;font-size:28rpx;line-height:40rpx;text-align:center;border-right:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-tab > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-scroll{height:850rpx}.ball-list .bl-list{height:auto}.ball-list .bl-list .bll-item{margin:0 24rpx;display:flex;align-items:center;justify-content:flex-start;background-color:#fff;width:700rpx}.ball-list .bl-list .bll-item > uni-view{padding:0 4rpx;width:174rpx;height:100%;color:#1a1a1a;font-size:24rpx;text-align:center;line-height:34rpx;background-color:#fff;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;display:flex;align-items:center;justify-content:center;flex-direction:row}.ball-list .bl-list .bll-item > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-list .bll-item > uni-view:not(:last-child){border-bottom:1rpx solid red}.ball-list .bl-list .info-list{margin:0 24rpx;margin-top:30rpx;margin-bottom:50rpx;width:700rpx;height:auto;background:#fff;border-radius:10rpx;font-size:28rpx}.ball-list .bl-list .info-list .i-item{display:flex;align-items:center;justify-content:center;align-items:stretch}.ball-list .bl-list .info-list .i-item .i-box{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:26rpx 10rpx;width:176rpx;height:auto}.ball-list .bl-list .info-list .i-item .i-box:nth-child(2){border:1rpx solid #f2f2f7;border-bottom:none;border-top:none;word-break:break-all}.ball-list .bl-list .info-list .i-item .i-box:nth-child(3){border:1rpx solid #f2f2f7;border-bottom:none;flex-grow:1}.ball-list .bl-list .info-list .i-item .i-box:last-child{flex-grow:1}.ball-list .bl-list .info-list .i-item:not(:last-child){border-bottom:1rpx solid #f2f2f7}.ball-list .bl-btn{position:fixed;bottom:0;left:0;padding:12rpx 0;width:750rpx;background-color:#fff;border-top:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-btn > uni-view{font-size:28rpx;line-height:40rpx;text-align:center}.ball-list .bl-btn > uni-view:first-child{padding:12rpx 0;width:180rpx;color:#009874;background-color:#fff;border:2rpx solid #009874;border-radius:6rpx}.ball-list .bl-btn > uni-view:nth-child(2){margin:0 50rpx}.ball-list .bl-btn > uni-view:nth-child(2) > uni-text{margin:0 2rpx;color:#009874}.ball-list .bl-btn > uni-view:nth-child(3){padding:12rpx 0;width:180rpx;color:#fff;background-color:#009874;border:2rpx solid #009874;border-radius:6rpx}',""]),t.exports=e},"7f7e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;rn.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r uni-view:first-child{color:#1a1a1a;font-size:44rpx;line-height:60rpx;font-weight:700}.ball-list .bl-line > uni-view:nth-child(2){color:#009874;font-size:28rpx;line-height:40rpx}.ball-list .bl-tab{margin:0 24rpx;border-top-left-radius:10rpx;border-top-right-radius:10rpx;background-color:#ddd;display:flex;align-items:center;justify-content:flex-start}.ball-list .bl-tab > uni-view{width:174rpx;height:110rpx;color:#1a1a1a;font-size:28rpx;line-height:40rpx;text-align:center;border-right:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-tab > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-scroll{height:850rpx}.ball-list .bl-list{height:auto}.ball-list .bl-list .bll-item{margin:0 24rpx;display:flex;align-items:center;justify-content:flex-start;background-color:#fff;width:700rpx}.ball-list .bl-list .bll-item > uni-view{padding:0 4rpx;width:174rpx;height:100%;color:#1a1a1a;font-size:24rpx;text-align:center;line-height:34rpx;background-color:#fff;word-wrap:break-word;word-break:break-all;white-space:pre-wrap;display:flex;align-items:center;justify-content:center;flex-direction:row}.ball-list .bl-list .bll-item > uni-view:last-child{border-right:0rpx solid #f2f2f7}.ball-list .bl-list .bll-item > uni-view:not(:last-child){border-bottom:1rpx solid red}.ball-list .bl-list .info-list{margin:0 24rpx;margin-top:30rpx;margin-bottom:50rpx;width:700rpx;height:auto;background:#fff;border-radius:10rpx;font-size:28rpx}.ball-list .bl-list .info-list .i-item{display:flex;align-items:center;justify-content:center;align-items:stretch}.ball-list .bl-list .info-list .i-item .i-box{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:26rpx 10rpx;width:176rpx;height:auto}.ball-list .bl-list .info-list .i-item .i-box:nth-child(2){border:1rpx solid #f2f2f7;border-bottom:none;border-top:none;word-break:break-all}.ball-list .bl-list .info-list .i-item .i-box:nth-child(3){border:1rpx solid #f2f2f7;border-bottom:none;flex-grow:1}.ball-list .bl-list .info-list .i-item .i-box:last-child{flex-grow:1}.ball-list .bl-list .info-list .i-item:not(:last-child){border-bottom:1rpx solid #f2f2f7}.ball-list .bl-btn{position:fixed;bottom:0;left:0;padding:12rpx 0;width:750rpx;background-color:#fff;border-top:2rpx solid #f2f2f7;display:flex;align-items:center;justify-content:center}.ball-list .bl-btn > uni-view{font-size:28rpx;line-height:40rpx;text-align:center}.ball-list .bl-btn > uni-view:first-child{padding:12rpx 0;width:180rpx;color:#009874;background-color:#fff;border:2rpx solid #009874;border-radius:6rpx}.ball-list .bl-btn > uni-view:nth-child(2){margin:0 50rpx}.ball-list .bl-btn > uni-view:nth-child(2) > uni-text{margin:0 2rpx;color:#009874}.ball-list .bl-btn > uni-view:nth-child(3){padding:12rpx 0;width:180rpx;color:#fff;background-color:#009874;border:2rpx solid #009874;border-radius:6rpx}',""]),t.exports=n},"7c39":function(t,n,e){var i=e("527d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=e("7f7e").default;r("53dca976",i,!0,{sourceMap:!1,shadowMode:!1})},"7f7e":function(t,n,e){"use strict";function i(t,n){for(var e=[],i={},r=0;re.parts.length&&(i.parts.length=e.parts.length)}else{var a=[];for(r=0;r1?e-1:0),o=1;o1){var u=c.pop();l=c.join("---COMMA---"),0===u.indexOf(" at ")?l+=u:l+="---COMMA---"+u}else l=c[0];console[a](l)}},,,function(t,e,n){"use strict";var o=n(18),i=n(13),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"79a49d92",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(21).default,this.options.style):Object.assign(this.options.style,n(21).default)}).call(a),e.default=a.exports},,,,,,function(t,e,n){"use strict";var o=n(14),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={onLoad:function(){},data:function(){return{fil:[0,2,1]}},methods:{toback:function(){var t=this;setTimeout((function(){t.tocancel(),uni.navigateBack()}),3e3)},success1:function(e){t("log","success1:"+JSON.stringify(e)," at pages/index/scan.nvue:40")},fail1:function(e){t("log","fail1:"+JSON.stringify(e)," at pages/index/scan.nvue:43")},toStart:function(){this.$refs.barcode.start({conserve:!0,filename:"_doc/barcode/"})},tocancel:function(){this.$refs.barcode.cancel()},toFlash:function(){this.$refs.barcode.setFlash(!0)},toscan:function(){t("log","scan:"," at pages/index/scan.nvue:59"),n("barcodeScan").scan("/static/barcode1.png",(function(e){t("log","scan_error:"+JSON.stringify(e)," at pages/index/scan.nvue:63")}))}}};e.default=o}).call(this,n(4).default,n(19).default)},function(t,e){t.exports={"@VERSION":2}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["main"]},[n("button",{staticClass:["btn"],on:{click:t.toStart}},[t._v("\n\t\t\t\u5f00\u59cb\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.tocancel}},[t._v("\u53d6\u6d88\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.toFlash}},[t._v("\u5f00\u542f\u95ea\u5149\u706f")]),n("button",{staticClass:["btn"],on:{click:t.toscan}},[t._v("\u9884\u89c8")]),n("button",{staticClass:["btn"],on:{click:t.toback}},[n("view",{staticClass:["dot"]}),t._v("\n\t\t\t3s\u540e\u8fd4\u56de")]),n("view",{staticClass:["bottom-dot"]})],1)])},i=[]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},,function(t,e,n){"use strict";n.r(e);var o=n(15),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(7);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/index/scan",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=25)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,c,l,u){var s,f="function"==typeof t?t.options:t;if(l){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in l)d.call(l,p)&&!d.call(f.components,p)&&(f.components[p]=l[p])}if(u&&((u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),o&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),a?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=s):i&&(s=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(f.functional){f._injectStyles=s;var g=f.render;f.render=function(t,e){return s.call(e),g(t,e)}}else{var _=f.beforeCreate;f.beforeCreate=_?[].concat(_,s):[s]}return{exports:t,options:f}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";var o=n(17),i=n(12),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"79a49d92",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(21).default,this.options.style):Object.assign(this.options.style,n(21).default)}).call(a),e.default=a.exports},,,,,,function(t,e,n){"use strict";var o=n(13),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={onLoad:function(){},data:function(){return{fil:[0,2,1]}},methods:{toback:function(){var t=this;setTimeout((function(){t.tocancel(),uni.navigateBack()}),3e3)},success1:function(e){t("log","success1:"+JSON.stringify(e)," at pages/index/scan.nvue:40")},fail1:function(e){t("log","fail1:"+JSON.stringify(e)," at pages/index/scan.nvue:43")},toStart:function(){this.$refs.barcode.start({conserve:!0,filename:"_doc/barcode/"})},tocancel:function(){this.$refs.barcode.cancel()},toFlash:function(){this.$refs.barcode.setFlash(!0)},toscan:function(){t("log","scan:"," at pages/index/scan.nvue:59"),n("barcodeScan").scan("/static/barcode1.png",(function(e){t("log","scan_error:"+JSON.stringify(e)," at pages/index/scan.nvue:63")}))}}};e.default=o}).call(this,n(18).default,n(19).default)},function(t,e){t.exports={"@VERSION":2}},,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["main"]},[n("button",{staticClass:["btn"],on:{click:t.toStart}},[t._v("\n\t\t\t\u5f00\u59cb\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.tocancel}},[t._v("\u53d6\u6d88\u626b\u7801\u8bc6\u522b")]),n("button",{staticClass:["btn"],on:{click:t.toFlash}},[t._v("\u5f00\u542f\u95ea\u5149\u706f")]),n("button",{staticClass:["btn"],on:{click:t.toscan}},[t._v("\u9884\u89c8")]),n("button",{staticClass:["btn"],on:{click:t.toback}},[n("view",{staticClass:["dot"]}),t._v("\n\t\t\t3s\u540e\u8fd4\u56de")]),n("view",{staticClass:["bottom-dot"]})],1)])},i=[]},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"==typeof __channelId__&&__channelId__}function r(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var u=c.pop();l=c.join("---COMMA---"),0===u.indexOf(" at ")?l+=u:l+="---COMMA---"+u}else l=c[0];console[a](l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},,function(t,e,n){"use strict";n.r(e);var o=n(14),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(6);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/index/scan",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-component.js b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-component.js index 4f3c92d..6a1570f 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-component.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-component.js @@ -1 +1 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,l,u,c){var f,d="function"==typeof t?t.options:t;if(u){d.components||(d.components={});var p=Object.prototype.hasOwnProperty;for(var s in u)p.call(u,s)&&!p.call(d.components,s)&&(d.components[s]=u[s])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=f):r&&(f=l?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(d.functional){d._injectStyles=f;var g=d.render;d.render=function(t,e){return f.call(e),g(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:d}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e.default=r.a},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"==typeof __channelId__&&__channelId__}function i(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var c=l.pop();u=l.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=l[0];console[a](u)}},function(t,e,n){"use strict";var o=n(16),r=n(8),i=n(1),a=Object(i.a)(r.default,o.b,o.c,!1,null,null,"ccd8f580",!1,o.a,void 0);e.default=a.exports},,,function(t,e,n){"use strict";var o=n(9),r=n.n(o);e.default=r.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},onLoad:function(){},methods:{onTel:function(e){t("log","onTel="+e.detail.tel," at pages/sample/ext-component.nvue:17")},myTextClick:function(t){this.$refs.telText.clearTel()}}};e.default=n}).call(this,n(4).default)},,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[e("div",[e("myText",{ref:"telText",staticStyle:{width:"200",height:"100"},attrs:{tel:"12305"},on:{onTel:this.onTel,click:this.myTextClick}})],1)])},r=[]},,,,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(5);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-component",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=22)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,l,u,c){var f,d="function"==typeof t?t.options:t;if(u){d.components||(d.components={});var p=Object.prototype.hasOwnProperty;for(var s in u)p.call(u,s)&&!p.call(d.components,s)&&(d.components[s]=u[s])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=f):r&&(f=l?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(d.functional){d._injectStyles=f;var g=d.render;d.render=function(t,e){return f.call(e),g(t,e)}}else{var h=d.beforeCreate;d.beforeCreate=h?[].concat(h,f):[f]}return{exports:t,options:d}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e.default=r.a},function(t,e,n){"use strict";var o=n(15),r=n(7),i=n(1),a=Object(i.a)(r.default,o.b,o.c,!1,null,null,"ccd8f580",!1,o.a,void 0);e.default=a.exports},,,function(t,e,n){"use strict";var o=n(8),r=n.n(o);e.default=r.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},onLoad:function(){},methods:{onTel:function(e){t("log","onTel="+e.detail.tel," at pages/sample/ext-component.nvue:17")},myTextClick:function(t){this.$refs.telText.clearTel()}}};e.default=n}).call(this,n(18).default)},,,,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[e("div",[e("myText",{ref:"telText",staticStyle:{width:"200",height:"100"},attrs:{tel:"12305"},on:{onTel:this.onTel,click:this.myTextClick}})],1)])},r=[]},,,function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"==typeof __channelId__&&__channelId__}function i(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var c=l.pop();u=l.join("---COMMA---"),0===c.indexOf(" at ")?u+=c:u+="---COMMA---"+c}else u=l[0];console[a](u)}},,,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(4);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-component",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-module.js b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-module.js index 1f7bf8c..641ee37 100644 --- a/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-module.js +++ b/uniapp示例工程源码/unipluginDemo/unpackage/resources/__UNI__2B9497D/www/pages/sample/ext-module.js @@ -1 +1 @@ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,u,c,s){var l,p="function"==typeof t?t.options:t;if(c){p.components||(p.components={});var f=Object.prototype.hasOwnProperty;for(var d in c)f.call(c,d)&&!f.call(p.components,d)&&(p.components[d]=c[d])}if(s&&((s.beforeCreate||(s.beforeCreate=[])).unshift((function(){this[s.__module]=this})),(p.mixins||(p.mixins=[])).push(s)),e&&(p.render=e,p.staticRenderFns=n,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},p._ssrRegister=l):i&&(l=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(p.functional){p._injectStyles=l;var g=p.render;p.render=function(t,e){return l.call(e),g(t,e)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,l):[l]}return{exports:t,options:p}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},function(t,e,n){"use strict";function o(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"==typeof __channelId__&&__channelId__}function r(t,e){switch(o(e)){case"Function":return"function() { [native code] }";default:return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o1){var s=u.pop();c=u.join("---COMMA---"),0===s.indexOf(" at ")?c+=s:c+="---COMMA---"+s}else c=u[0];console[a](c)}},,function(t,e,n){"use strict";var o=n(17),i=n(10),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"56be5383",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(20).default,this.options.style):Object.assign(this.options.style,n(20).default)}).call(a),e.default=a.exports},,,,function(t,e,n){"use strict";var o=n(11),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t("Zmt-Module"),i=t("TestModule"),r=t("uniplugin_module_ox"),a=t("Face-Module"),u=t("modal"),c={onLoad:function(){this.initAPPListener()},methods:{initAPPListener:function(){plus.globalEvent.addEventListener("TestEvent",(function(t){u.toast({message:"TestEvent\u6536\u5230\uff1a"+t.msg,duration:1.5})}))},faceAsyncFunc:function(){n("log","\u6d4b\u8bd5\u5f00\u59cbfaceAsyncFunc"," at pages/sample/ext-module.nvue:54"),a.faceAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},tcpAsyncFunc:function(){o.tcpAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testFun2:function(){var t=o.testSyncFunc({name:"unimp",age:1});u.toast({message:t,duration:1.5})},testAsyncFunc:function(){i.testAsyncFunc({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=i.testSyncFunc({name:"unimp",age:1});u.toast({message:t,duration:1.5})},testAsyncFunc2:function(){r.testAsyncFunc2({name:"unimp",age:1},(function(t){u.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=r.testSyncFunc2({name:"unimp",age:1});u.toast({message:t,duration:1.5})},gotoNativePage:function(){i.gotoNativePage()}}};e.default=c}).call(this,n(19).default,n(4).default)},function(t,e){t.exports={btn:{marginTop:"3",marginRight:"3",marginBottom:"3",marginLeft:"3"},tips:{fontSize:"11",color:"#808080",fontWeight:"800"},"@VERSION":2}},,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("div",{staticClass:["content"]},[n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.gotoNativePage}},[t._v("\u8df3\u8f6c\u539f\u751fActivity")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.tcpAsyncFunc}},[t._v("[\u5f00\u542fTcpServer]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u5f00\u542fTcpServer. \u672c\u673aIP: 192.168.1.64 \u7aef\u53e3\uff1a16666\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.faceAsyncFunc}},[t._v("[\u767e\u5ea6\u4eba\u8138SDK\u6388\u6743]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u8fdb\u884c\u767e\u5ea6\u4eba\u8138SDK\u521d\u59cb\u5316\u53ca\u6388\u6743\u7533\u8bf7,\u8be5\u6388\u6743\u7801\u5199\u6b7b\u5728Android\u7aefzmt_module\u5185faceClass,\u56e0\u5df2\u4f7f\u7528\u8fc7,\u5c06\u8fd4\u56de\u5df2\u88ab\u5360\u7528\u63d0\u793a.\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc2}},[t._v("uniplugin_module_ox testAsyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc2}},[t._v("uniplugin_module_ox testSyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc}},[t._v("uniplugin_module testAsyncFunc")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc}},[t._v("uniplugin_module testSyncFunc")])],1)])},i=[]},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},function(t,e,n){"use strict";n.r(e);var o=n(12),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(6);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-module",o.default.el="#root",new Vue(o.default)}]); \ No newline at end of file +!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}([function(t,e){t.exports={"uni-icon":{fontFamily:"uniicons",fontWeight:"normal"},"uni-bg-red":{backgroundColor:"#F76260",color:"#FFFFFF"},"uni-bg-green":{backgroundColor:"#09BB07",color:"#FFFFFF"},"uni-bg-blue":{backgroundColor:"#007AFF",color:"#FFFFFF"},"uni-container":{flex:1,paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",backgroundColor:"#f8f8f8"},"uni-padding-lr":{paddingLeft:"15",paddingRight:"15"},"uni-padding-tb":{paddingTop:"15",paddingBottom:"15"},"uni-header-logo":{paddingTop:"15",paddingRight:"15",paddingBottom:"15",paddingLeft:"15",flexDirection:"column",justifyContent:"center",alignItems:"center",marginTop:"10upx"},"uni-header-image":{width:"80",height:"80"},"uni-hello-text":{marginBottom:"20"},"hello-text":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"hello-link":{color:"#7A7E83",fontSize:"14",lineHeight:"20"},"uni-panel":{marginBottom:"12"},"uni-panel-h":{backgroundColor:"#ffffff",flexDirection:"row",alignItems:"center",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12"},"uni-panel-h-on":{backgroundColor:"#f0f0f0"},"uni-panel-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-panel-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal",transform:"rotate(0deg)",transitionDuration:0,transitionProperty:"transform"},"uni-panel-icon-on":{transform:"rotate(180deg)"},"uni-navigate-item":{flexDirection:"row",alignItems:"center",backgroundColor:"#FFFFFF",borderTopStyle:"solid",borderTopColor:"#f0f0f0",borderTopWidth:"1",paddingTop:"12",paddingRight:"12",paddingBottom:"12",paddingLeft:"12","backgroundColor:active":"#f8f8f8"},"uni-navigate-text":{flex:1,color:"#000000",fontSize:"14",fontWeight:"normal"},"uni-navigate-icon":{marginLeft:"15",color:"#999999",fontSize:"14",fontWeight:"normal"},"uni-list-cell":{position:"relative",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},"uni-list-cell-pd":{paddingTop:"22upx",paddingRight:"30upx",paddingBottom:"22upx",paddingLeft:"30upx"},"flex-r":{flexDirection:"row"},"flex-c":{flexDirection:"column"},"a-i-c":{alignItems:"center"},"j-c-c":{justifyContent:"center"},"list-item":{flexDirection:"row",paddingTop:"10",paddingRight:"10",paddingBottom:"10",paddingLeft:"10"},"@VERSION":2}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,u,s,c){var l,p="function"==typeof t?t.options:t;if(s){p.components||(p.components={});var d=Object.prototype.hasOwnProperty;for(var f in s)d.call(s,f)&&!d.call(p.components,f)&&(p.components[f]=s[f])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(p.mixins||(p.mixins=[])).push(c)),e&&(p.render=e,p.staticRenderFns=n,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},p._ssrRegister=l):i&&(l=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(p.functional){p._injectStyles=l;var g=p.render;p.render=function(t,e){return l.call(e),g(t,e)}}else{var m=p.beforeCreate;p.beforeCreate=m?[].concat(m,l):[l]}return{exports:t,options:p}}n.d(e,"a",(function(){return o}))},function(t,e,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(3).default,Vue.prototype.__$appStyle__)},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,function(t,e,n){"use strict";var o=n(16),i=n(9),r=n(1);var a=Object(r.a)(i.default,o.b,o.c,!1,null,null,"56be5383",!1,o.a,void 0);(function(t){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(20).default,this.options.style):Object.assign(this.options.style,n(20).default)}).call(a),e.default=a.exports},,,,function(t,e,n){"use strict";var o=n(10),i=n.n(o);e.default=i.a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(24),i=t("Zmt-Module"),r=t("TestModule"),a=t("uniplugin_module_ox"),u=t("Face-Module"),s=t("modal"),c={onLoad:function(){this.initAPPListener()},onReady:function(){this.logs.push("\u5f53\u524d\u65f6\u95f4:"+this.getTime())},data:function(){return{logs:["LOG VIEW"]}},methods:{initAPPListener:function(){plus.globalEvent.addEventListener("TestEvent",(function(t){s.toast({message:"TestEvent\u6536\u5230\uff1a"+t.msg,duration:1.5})}))},faceAsyncFunc:function(){var t=this;this.log("\u6267\u884cfaceModule.faceAsyncFunc"),u.faceAsyncFunc({name:"unimp",age:1},(function(e){s.toast({message:e,duration:1.5}),t.log(JSON.stringify(e))}))},tcpAsyncFunc:function(){var t=this;this.log("\u5f00\u542fTcp Server."),i.tcpAsyncFunc({name:"unimp",age:1},(function(e){s.toast({message:e,duration:2}),t.log("tcp\u63a5\u6536:"+e.code)}))},testFun2:function(){var t=i.testSyncFunc({name:"unimp",age:1});s.toast({message:t,duration:1.5})},testAsyncFunc:function(){r.testAsyncFunc({name:"unimp",age:1},(function(t){s.toast({message:t,duration:1.5})}))},testSyncFunc:function(){var t=r.testSyncFunc({name:"unimp",age:1});s.toast({message:t,duration:1.5})},testAsyncFunc2:function(){a.testAsyncFunc2({name:"unimp",age:1},(function(t){s.toast({message:t,duration:1.5})}))},testSyncFunc2:function(){var t=a.testSyncFunc2({name:"unimp",age:1});s.toast({message:t,duration:1.5})},log:function(t){this.logs.push(this.getTime()+" ".concat(t))},getTime:function(){return(0,o.timeFormat)(new Date,"mm/dd hh:MM:ss")},gotoNativePage:function(){r.gotoNativePage()}}};e.default=c}).call(this,n(19).default)},function(t,e){t.exports={content:{fontSize:"12"},btn:{marginTop:"3",marginRight:"3",marginBottom:"3",marginLeft:"3"},tips:{fontSize:"11",color:"#808080",fontWeight:"800"},console:{backgroundColor:"#D3D3D3",paddingTop:"20rpx",paddingRight:"20rpx",paddingBottom:"20rpx",paddingLeft:"20rpx"},log:{color:"#8B0000",fontSize:"11",fontWeight:"800"},"@VERSION":2}},,,,,function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("div",{staticClass:["content"]},[n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.gotoNativePage}},[t._v("\u8df3\u8f6c\u539f\u751fActivity")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.tcpAsyncFunc}},[t._v("[\u5f00\u542fTcpServer]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u5f00\u542fTcpServer. \u672c\u673aIP: 192.168.1.64 \u7aef\u53e3\uff1a16666\n\t")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.faceAsyncFunc}},[t._v("[\u767e\u5ea6\u4eba\u8138SDK\u6388\u6743]")]),n("u-text",{staticClass:["tips"],appendAsTree:!0,attrs:{append:"tree"}},[t._v("\n\t\t\u70b9\u51fb\u540e\u5c06\u8fdb\u884c\u767e\u5ea6\u4eba\u8138SDK\u521d\u59cb\u5316\u53ca\u6388\u6743\u7533\u8bf7,\u8be5\u6388\u6743\u7801\u5199\u6b7b\u5728Android\u7aefzmt_module\u5185faceClass,\u56e0\u5df2\u4f7f\u7528\u8fc7,\u5c06\u8fd4\u56de\u5df2\u88ab\u5360\u7528\u63d0\u793a.\n\t")]),n("view",{staticClass:["console"]},t._l(t.logs,(function(e){return n("u-text",{staticClass:["log"],appendAsTree:!0,attrs:{append:"tree"}},[t._v(t._s(e))])})),0),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc2}},[t._v("uniplugin_module_ox testAsyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc2}},[t._v("uniplugin_module_ox testSyncFunc2")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testAsyncFunc}},[t._v("uniplugin_module testAsyncFunc")]),n("button",{staticClass:["btn"],attrs:{type:"primary"},on:{click:t.testSyncFunc}},[t._v("uniplugin_module testSyncFunc")])],1)])},i=[]},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return weex.requireModule(t)}},function(t,e,n){"use strict";n.r(e);var o=n(11),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},,,function(t,e,n){"use strict";n.r(e);n(2);var o=n(5);"undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),o.default.mpType="page",o.default.route="pages/sample/ext-module",o.default.el="#root",new Vue(o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timeFormat=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date));"string"==typeof t&&t.indexOf("-")>0&&(t=t.replace(/\-/g,"/"));10==t.toString().length&&(t*=1e3);var n,o=new Date(t),i={"y+":o.getFullYear().toString(),"m+":(o.getMonth()+1).toString(),"d+":o.getDate().toString(),"h+":o.getHours().toString(),"M+":o.getMinutes().toString(),"s+":o.getSeconds().toString()};for(var r in i)(n=new RegExp("("+r+")").exec(e))&&(e=e.replace(n[1],1==n[1].length?i[r]:i[r].padStart(n[1].length,"0")));return e},e.getDurationTime=function(t){var e="",n=parseInt(t/3600),o=parseInt(t%3600/60),i=parseInt(t%3600%60);n>0&&(e+=(n=n<10?"0"+n:n)+":");return e+=(o=o<10?"0"+o:o)+":"+(i=i<10?"0"+i:i)},String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);for(var o=t-n.length,i=Math.ceil(o/e.length);i>>=1;)e+=e,1===i&&(e+=e);return e.slice(0,o)+n})}]); \ No newline at end of file diff --git a/uniapp示例工程源码/unipluginDemo/utils/timeFormat.js b/uniapp示例工程源码/unipluginDemo/utils/timeFormat.js new file mode 100644 index 0000000..81d6dd3 --- /dev/null +++ b/uniapp示例工程源码/unipluginDemo/utils/timeFormat.js @@ -0,0 +1,70 @@ +// padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序 +// 所以这里做一个兼容polyfill的兼容处理 +if (!String.prototype.padStart) { + // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解 + String.prototype.padStart = function(maxLength, fillString = ' ') { + if (Object.prototype.toString.call(fillString) !== "[object String]") throw new TypeError( + 'fillString must be String') + let str = this + // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉 + if (str.length >= maxLength) return String(str) + + let fillLength = maxLength - str.length, + times = Math.ceil(fillLength / fillString.length) + while (times >>= 1) { + fillString += fillString + if (times === 1) { + fillString += fillString + } + } + return fillString.slice(0, fillLength) + str; + } +} + +// 其他更多是格式化有如下: +// yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 +function timeFormat(dateTime = null, fmt = 'yyyy-mm-dd') { + // 如果为null,则格式化当前时间 + if (!dateTime) dateTime = Number(new Date()); + //兼容IOS + if(typeof(dateTime)=="string"&&dateTime.indexOf("-")>0) dateTime = dateTime.replace(/\-/g,'/') + // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式 + if (dateTime.toString().length == 10) dateTime *= 1000; + let date = new Date(dateTime); + let ret; + let opt = { + "y+": date.getFullYear().toString(), // 年 + "m+": (date.getMonth() + 1).toString(), // 月 + "d+": date.getDate().toString(), // 日 + "h+": date.getHours().toString(), // 时 + "M+": date.getMinutes().toString(), // 分 + "s+": date.getSeconds().toString() // 秒 + // 有其他格式化字符需求可以继续添加,必须转化成字符串 + }; + for (let k in opt) { + ret = new RegExp("(" + k + ")").exec(fmt); + if (ret) { + fmt = fmt.replace(ret[1], (ret[1].length == 1) ? (opt[k]) : (opt[k].padStart(ret[1].length, "0"))) + }; + }; + return fmt; +} + +//计算视频分钟时长,如(180s视频) a=180 返回03:00 +function getDurationTime(a){ + var b = "" + var h = parseInt(a/3600), + m = parseInt(a%3600/60), + s = parseInt(a%3600%60); + if(h>0){ + h = h<10 ? '0'+h : h + b += h+":" + } + m = m<10 ? '0'+m : m + s = s<10 ? '0'+s : s + b+=m+":"+s + // console.log(b); + return b; +} + +export {timeFormat,getDurationTime} diff --git a/zmt_module/src/main/java/io/dcloud/zmt_module/AsyncTask.java b/zmt_module/src/main/java/io/dcloud/zmt_module/AsyncTask.java new file mode 100644 index 0000000..84ed786 --- /dev/null +++ b/zmt_module/src/main/java/io/dcloud/zmt_module/AsyncTask.java @@ -0,0 +1,56 @@ +package io.dcloud.zmt_module; + +import com.alibaba.fastjson.JSONObject; + +import io.dcloud.feature.uniapp.AbsSDKInstance; + +public class AsyncTask { + + String TAG = "zmt_module_AsyncTask "; + + public interface MyTcpCallback{ + void callback(Object object); + } + +// TCP task + public void task(final MyTcpCallback myCallback, final Integer port){ + // Android 4.0 之后不能在主线程中请求HTTP请求 + Thread thread = new Thread(new Runnable() { + @Override + public void run() { + System.out.println("AsyncTask thread running... port:"+port); + + TcpServer server = new TcpServer(); +// server.initSocket((Integer.parseInt("16666"))); + server.initSocket(port); + + while (true){ + String tcp_receive_message = server.receiveMessage(SocketConfig.UTF_8);//接收消息 + System.out.println(TAG+"接收消息:"+tcp_receive_message); + String send_msg = "App received tcp message!"; //回发socket消息,确认接收 + send_msg = SocketHelper.getMessageByReadLine(send_msg); + server.sendMessage(send_msg,SocketConfig.UTF_8);//回发消息 + + JSONObject data = new JSONObject(); + data.put("threadID", Thread.currentThread().getId()); + data.put("threadName", Thread.currentThread().getName()); +// data.put("message", server.); +// data.put("message", tcp_receive_message); + data.put("message", tcp_receive_message); + myCallback.callback(data);//回调到zmtClass给uni端 + + try { + Thread.sleep(1000); //定义休眠时间 + } catch (InterruptedException e) { + e.printStackTrace(); + } + + } + + } + }); + thread.setDaemon(true);//开启守护线程 + thread.start(); + } + +} diff --git a/zmt_module/src/main/java/io/dcloud/zmt_module/PermissionCheck.java b/zmt_module/src/main/java/io/dcloud/zmt_module/PermissionCheck.java new file mode 100644 index 0000000..39e8689 --- /dev/null +++ b/zmt_module/src/main/java/io/dcloud/zmt_module/PermissionCheck.java @@ -0,0 +1,62 @@ +package io.dcloud.zmt_module; + +import android.Manifest; +import android.app.Activity; +import android.content.Context; +import android.content.pm.PackageManager; +import android.os.Build; +import android.util.Log; + +import androidx.core.app.ActivityCompat; +import androidx.core.content.PermissionChecker; + +public class PermissionCheck extends Activity { + private static final String TAG = "MainActivity"; + private final int ACCESS_LOCATION=1; + /** + * 获取权限,可以与其他项目的权限进行统一处理 + */ + private void getPermission() { + if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) { + int permissionCheck = 0; + permissionCheck = this.checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION); //允许一个程序访问精良位置(如GPS) + permissionCheck += this.checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION); //允许一个程序访问CellID或WiFi热点来获取粗略的位置 + permissionCheck += this.checkSelfPermission(Manifest.permission.CAMERA); //请求访问使用照相设备 + + if (permissionCheck != PackageManager.PERMISSION_GRANTED) { //未获得权限 + ActivityCompat.requestPermissions( + this,// 请求授权 + new String[]{Manifest.permission.ACCESS_FINE_LOCATION, + Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.CAMERA},ACCESS_LOCATION);// 自定义常量,任意整型 + } + } + } + + /** + * 请求权限的结果回调。每次调用 requestpermissions(string[],int)时都会调用此方法。 + * @param requestCode 传入的请求代码 + * @param permissions 传入permissions的要求 + * @param grantResults 相应权限的授予结果:PERMISSION_GRANTED 或 PERMISSION_DENIED + */ + @Override + public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { + switch (requestCode) { + case ACCESS_LOCATION: + if (hasAllPermissionGranted(grantResults)) { + Log.i(TAG, "onRequestPermissionsResult: 用户允许权限"); + } else { + Log.i(TAG, "onRequestPermissionsResult: 拒绝搜索设备权限"); + } + break; + } + } + + private boolean hasAllPermissionGranted(int[] grantResults) { + for (int grantResult : grantResults) { + if (grantResult == PackageManager.PERMISSION_DENIED) { + return false; + } + } + return true; + } +} diff --git a/zmt_module/src/main/java/io/dcloud/zmt_module/TcpServer.java b/zmt_module/src/main/java/io/dcloud/zmt_module/TcpServer.java index 41e38d9..47e8bc0 100644 --- a/zmt_module/src/main/java/io/dcloud/zmt_module/TcpServer.java +++ b/zmt_module/src/main/java/io/dcloud/zmt_module/TcpServer.java @@ -78,6 +78,9 @@ public class TcpServer { } } + public interface MySocketCallback{ + void callback(Object object); + } private String getIPAddressForNetwork() throws SocketException { String address = null; diff --git a/zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java b/zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java index f6d1386..3bf9090 100644 --- a/zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java +++ b/zmt_module/src/main/java/io/dcloud/zmt_module/zmtClass.java @@ -3,67 +3,111 @@ package io.dcloud.zmt_module; import com.alibaba.fastjson.JSONObject; import com.tencent.iot.hub.device.android.core.gateway.TXGatewayConnection; +import io.dcloud.feature.uniapp.AbsSDKInstance; +import io.dcloud.feature.uniapp.UniSDKInstance; import io.dcloud.feature.uniapp.annotation.UniJSMethod; import io.dcloud.feature.uniapp.bridge.UniJSCallback; import io.dcloud.feature.uniapp.common.UniModule; import android.util.Log; +import java.util.HashMap; +import java.util.Map; + public class zmtClass extends UniModule { String TAG = "zmt---"; + final AbsSDKInstance uniSDK = this.mUniSDKInstance;//定义uniSDK //run ui thread @UniJSMethod(uiThread = true) public void tcpAsyncFunc(JSONObject options, final UniJSCallback callback) { Log.e(TAG, "tcpAsyncFunc--zmt:"+options); - //启动线程 -// MyThread mt = new MyThread(); -// mt.run(); if(callback != null) { JSONObject data = new JSONObject(); - data.put("code", "已开启服务,等待接收数据"); -// callback.invoke(data); + data.put("msg", "已接收参数,处理中..."+options.toJSONString()); + callback.invokeAndKeepAlive(data); } + Integer port = 16666;//默认端口,当uni传递port参数时,采用传递port初始化tcp + String s_port = options.getString("port"); + if (!s_port.isEmpty()){ + Log.e(TAG, "tcpAsyncFunc--port:"+s_port); + port = Integer.parseInt(s_port); + } - // Android 4.0 之后不能在主线程中请求HTTP请求 - new Thread(new Runnable(){ + new AsyncTask().task(new AsyncTask.MyTcpCallback() { @Override - public void run() { - System.out.println("MyThread thread running..."); - - TcpServer server = new TcpServer(); - server.initSocket((Integer.parseInt("16666"))); - - while (true){ - String message = server.receiveMessage(SocketConfig.UTF_8); - System.out.println(TAG+"接收消息:"+message); - - JSONObject data = new JSONObject(); - data.put("code", message); + public void callback(Object object) { +// JSONObject data = new JSONObject(); +// data.put("code", object); // callback.invoke(data); - callback.invokeAndKeepAlive(data); - - String send_msg = "1111111111111"; - - send_msg = SocketHelper.getMessageByReadLine(send_msg); - server.sendMessage(send_msg,SocketConfig.UTF_8); - try { - Thread.sleep(1000); - } catch (InterruptedException e) { - e.printStackTrace(); - } - - } + Map params=new HashMap<>(); + params.put("key","你好啊大家"); + uniSDK.fireGlobalEventCallback("myEvent", params);//发送全局参数直接回调 + callback.invokeAndKeepAlive(object);//使用jsCallback回调 } - }).start(); + },port); - } + // Android 4.0 之后不能在主线程中请求HTTP请求 +// new Thread(new Runnable(){ +// @Override +// public void run() { +// System.out.println("MyThread thread running..."); +// +// TcpServer server = new TcpServer(); +// server.initSocket((Integer.parseInt("16666"))); +// +// while (true){ +// String message = server.receiveMessage(SocketConfig.UTF_8); +// System.out.println(TAG+"接收消息:"+message); +// +// JSONObject data = new JSONObject(); +// data.put("code", message); +//// callback.invoke(data); +// callback.invokeAndKeepAlive(data); +// +// String send_msg = "1111111111111"; +// +// send_msg = SocketHelper.getMessageByReadLine(send_msg); +// server.sendMessage(send_msg,SocketConfig.UTF_8); +// try { +// Thread.sleep(1000); +// } catch (InterruptedException e) { +// e.printStackTrace(); +// } +// +// } +// +// } +// }).start(); + } + //定义MyTcpCallback + public interface MyTcpCallback{ + void callback(Object object); + } +// public void task(final AsyncTask.MyCallback myCallback){ +// Thread thread = new Thread(new Runnable() { +// @Override +// public void run() { +// try{ +// Thread.sleep(3000); +// }catch (InterruptedException e){ +// e.printStackTrace(); +// } +// int sum = 0; +// for(int i=0;sum<99;sum++){ +// sum+=i; +// } +// myCallback.callback(sum); +// } +// }); +// thread.start(); +// } // @UniJSMethod(uiThread = true) // public void testAsyncFunc(JSONObject options, UniJSCallback callback) { // Log.e(TAG, "testAsyncFunc--zmt:"+options);