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