(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/huiBen_record/index"],{6460:function(e,t,n){"use strict";n.r(t);var o=n("7b33"),a=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=a.a},7852:function(e,t,n){"use strict";var o=n("bedb"),a=n.n(o);a.a},"7b33":function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n("2eee")),u=o(n("c973")),i=n("e7b1"),r={data:function(){return{picBase:this.$picBase2,cusumerList:[]}},onLoad:function(){this.getConsumerRecord()},methods:{downPdf:function(e){var t=this;return(0,u.default)(a.default.mark((function n(){var o;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log("downPdf-------------"),n.next=3,(0,i.genPdf)({id:e});case 3:o=n.sent,console.log("获取pdfurl返回值--------2",o),0==o.code?(console.log("pdf地址：",o.data.url),t.download(o.data.url,1)):t.$toast(o.message);case 6:case"end":return n.stop()}}),n)})))()},toDetail:function(t){getApp().huibenDetail=t,e.navigateTo({url:"/pages/index/genRes/index"})},download:function(t,n){var o=this;e.showLoading({title:"下载中"}),e.downloadFile({url:t,success:function(t){if(200===t.statusCode){var a=t.tempFilePath;if(2==n)return e.hideLoading(),o.pictureReview(a);e.getFileSystemManager().saveFile({tempFilePath:a,success:function(t){console.log(t),e.openDocument({filePath:t.savedFilePath,showMenu:!0,success:function(t){e.hideLoading(),console.log(t)},fail:function(t){e.showToast({title:"打开失败",icon:"error"})}})}})}},fail:function(t){console.log(t,"文件下载失败"),e.showToast({title:"文件下载失败",icon:"error"})}})},getConsumerRecord:function(){var e=this;return(0,u.default)(a.default.mark((function t(){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,i.getConsumerRecord)();case 2:n=t.sent,console.log("绘画记录返回值--------2",n),0==n.code?e.cusumerList=n.data.data:e.$toast(n.message);case 5:case"end":return t.stop()}}),t)})))()}}};t.default=r}).call(this,n("543d")["default"])},9580:function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("1c90");o(n("66fd"));var a=o(n("9683"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},9683:function(e,t,n){"use strict";n.r(t);var o=n("b495"),a=n("6460");for(var u in a)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(u);n("7852");var i=n("f0c5"),r=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"53e1f27e",null,!1,o["a"],void 0);t["default"]=r.exports},b495:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return o}));var o={uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"b354"))}},a=function(){var e=this.$createElement,t=(this._self._c,this.cusumerList.length);this.$mp.data=Object.assign({},{$root:{g0:t}})},u=[]},bedb:function(e,t,n){}},[["9580","common/runtime","common/vendor"]]]);