You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.3 KiB
1 lines
4.3 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/AI/addAiList"],{3700:function(t,e,n){"use strict";n.r(e);var a=n("41d9"),i=n("a7c2");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("7aa4");var c=n("828b"),r=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=r.exports},"41d9":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},i=[]},"7aa4":function(t,e,n){"use strict";var a=n("c747"),i=n.n(a);i.a},a7c2:function(t,e,n){"use strict";n.r(e);var a=n("c1ef"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},c1ef:function(t,e,n){"use strict";(function(t){var a=n("3b2d");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!==typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&Object.prototype.hasOwnProperty.call(t,r)){var s=c?Object.getOwnPropertyDescriptor(t,r):null;s&&(s.get||s.set)?Object.defineProperty(i,r,s):i[r]=t[r]}i.default=t,n&&n.set(t,i);return i}(n("b37f"));function o(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}var c={data:function(){return{imgData:"",bufferData:[],str:""}},components:{kkPrinter:function(){Promise.all([n.e("common/vendor"),n.e("components/kk-printer/index")]).then(function(){return resolve(n("6e81"))}.bind(null,n)).catch(n.oe)}},onShow:function(){},onLoad:function(t){this.getToken()},methods:{clearImage:function(){this.imgData="",this.$forceUpdate()},getImage16:function(){var e=this,n=t.createCanvasContext("myCanvas1",this);t.getImageInfo({src:this.imgData,success:function(a){e.canvasWidth=a.width,e.canvasHeight=a.height,n.setFillStyle("#fff"),n.fillRect(0,0,e.canvasWidth,e.canvasHeight),n.drawImage(a.path,0,0,a.width,a.height),n.draw();var o;a.width,a.height;setTimeout((function(n){t.canvasGetImageData({canvasId:"myCanvas1",x:0,y:0,width:a.width,height:a.height,success:function(t){o=t.data,e.str=i.addCPCLImageCmd(a.width,a.height,{width:a.width,height:a.height,imageData:o}),console.log("222",e.str)}})}),2e3)}})},onPrintSmall1:function(){var t=this,e="";e=i.CreatCPCLPage(1080,500,1,0,0),e+=t.str,e+=i.addCPCLPrint(),t.bufferData.push(e),setTimeout((function(e){t.bufferData=[]}),5e3)},successRes:function(){},getToken:function(){t.login({provider:"weixin",success:function(e){console.log(e),t.getUserInfo({provider:"weixin",success:function(t){console.log(t)}})}})},getOpenId:function(e,n){var a=this;this.tui.request("/user/login","post",{jsCode:e,customId:t.getStorageSync("id"),wechatName:n,userType:t.getStorageSync("wayValue")},!1,!1).then((function(t){a.status="nomore",200==t.code||a.tui.toast(t.message)})).catch((function(t){}))},getUserInfo:function(t){var e=this;this.tui.request("","post",{openId:t},!1,!1).then((function(t){e.status="nomore",200==t.code||e.tui.toast(t.message)})).catch((function(t){}))},sendMessage:function(){var t=this;this.tui.request("/social/wechat/sendWechatTempMessage","post",{touser:"",tempId:"M45X8AmPi58c16M9YVTMEOhwEVEa9s5md-6i3TwjpRQ",title:"测试",content:"{'thing3':'快石科技','time2':'2014-02-01'}",categoryId:"",userId:"",pagePath:"package1/index/shareStyle"},!1,!1).then((function(e){t.status="nomore",200==e.code||t.tui.toast(e.message)})).catch((function(t){}))},sendMessageUpNew:function(){var t=this;this.tui.request("","post",{wxList:{template_id:"",miniprogram:{appid:"wxa0749c7edd4cc96f",pagepath:""},data:{keyword1:{value:"巧克力"},keyword2:{value:"39.8元"},keyword3:{value:"2014年9月22日"}}},categoryId:""},!1,!1).then((function(e){t.status="nomore",200==e.code||t.tui.toast(e.message)})).catch((function(t){}))}}};e.default=c}).call(this,n("df3c")["default"])},c747:function(t,e,n){},dc40:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("82ca");a(n("3240"));var i=a(n("3700"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["dc40","common/runtime","common/vendor"]]]);
|