(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/tuiguangHaibao/index"],{"013c":function(e,t,o){"use strict";(function(e,t){var n=o("4ea4");o("1c90");n(o("66fd"));var i=n(o("dd73"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(i.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},3684:function(e,t,o){"use strict";var n=o("396a"),i=o.n(n);i.a},"396a":function(e,t,o){},7080:function(e,t,o){"use strict";(function(e,n){var i=o("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=i(o("2eee")),a=i(o("c973")),r=o("e7b1"),c={data:function(){return{picBase:this.$picBase2,isLoading:!0,tobheight:45,showAuthModal:!0,empty:!1,pages:1,currentTab:0,hasAuth:!0,commissionLv:{name:"合伙人"},commissionWallet:null,agentFrom:null,showLv:!0,loadStatus:"loadmore",currentPage:1,lastPage:1,logMap:{system:this.$IMG_URL+"/imgs/commission/commission_base_notice.png",admin:this.$IMG_URL+"/imgs/commission/commission_base_avatar.png"},showTerm:!0,showGoodsTerm:!1,showMoneyTerm:!1,goodsTermList:[],moneyTermNum:0,authNotice:{},showPoster:!1,posterObj:{},posterfff:"您好,我是AI语言模型,可以帮助你做很多事情。例如:\n- 回答你的问题\n- 给你提供某些信息\n- 帮你搜索网页\n- 聊天和闲聊\n- 玩一些小游戏\n- 计算数学题\n- 翻译语言\n- 生成文本\n等等.....\n如果你有任何问题或需要帮助,请随时告诉我。",spmplatform:0,is_examine:1,commission_price:0,posterheight:0,poster_bg_img_path:"",commission_alias:"",info:{commission_alias:"",commission_price:"0",extract_min_price:"100",first:"50",instructions:"满100可以提现,48小时到账",intro:'
入驻说明,加入分销商需要沟通买399年卡会员.
联系客服开通!
',is_commission:"1",is_examine:"2",is_ranking:"1",is_self_buy:"2",is_self_buy_commission:"2",level:"2",poster_bg_width:"700",poster_bg_height:"1100",poster_bg_img:"1671",poster_qrcode_x:"270",poster_qrcode_y:"858",poster_qrcode_width:"160",poster_bg_img_filename:"推广海报.jpg",poster_bg_img_path:"",poster_qrcode_width_filename:"tmp_c1537e2c3beb0a3d14f87a63da8b84cc548ea7871f918188.jpg",poster_qrcode_width_path:"https://nywhcm.com/addons/wike_aging/public/static/storage/20230322/17859fbc20087bd430f224905f5d9370.jpg",second:"10",third:"0"},haibaoUrl:"",qrcode:""}},onLoad:function(){this.getCode()},methods:{getCode:function(){var e=this;return(0,a.default)(s.default.mark((function t(){var o;return s.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,r.getCode)();case 2:o=t.sent,console.log("邀请码返回值--------2",o),0==o.code?(e.qrcode=o.data.url,e.getPosterBg()):e.$toast(o.message);case 5:case"end":return t.stop()}}),t)})))()},getPosterBg:function(){var e=this;return(0,a.default)(s.default.mark((function t(){var o;return s.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,r.getPosterBg)({key:"promotion_background"});case 2:o=t.sent,console.log("海报背景图返回值--------2",o,e.$ossBaseUrl+o.data.value),0==o.code?(e.info.poster_bg_img_path=e.$ossBaseUrl+o.data.value,e.createPoster()):e.$toast(o.message);case 5:case"end":return t.stop()}}),t)})))()},toSave:function(){e.showLoading({title:"海报生成中"}),this.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(t){n.showShareImageMenu({path:t.tempFilePath,success:function(t){console.log("r--------------",t),e.showToast({title:"操作成功",icon:"success"})}}),e.hideLoading()}})},getdownload:function(t){return new Promise((function(o,i){e.request({url:t,method:"GET",responseType:"arraybuffer",success:function(e){var t=n.arrayBufferToBase64(e.data);t="data:image/jpeg;base64,"+t,o(t)},fail:function(e){o("fail")}})}))},posterSuccess:function(){e.hideLoading()},test:function(){console.log("1212232323---------",this.commissionLv)},revertUrl:function(){var e=this;this.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(t){e.haibaoUrl=t.tempFilePath,console.log("this.haibaoUrl",e.haibaoUrl)}})},createPoster:function(t){var o=this;return(0,a.default)(s.default.mark((function t(){var n,i,a;return s.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=o,i="",e.showLoading({title:"海报渲染中"}),console.log("1212232323---------",n.info),!(n.info.poster_bg_img_path.indexOf("https")<0)){t.next=10;break}return t.next=7,n.getdownload(n.info.poster_bg_img_path.replace("http:","https:"));case 7:i=t.sent,t.next=13;break;case 10:return t.next=12,n.getdownload(n.info.poster_bg_img_path);case 12:i=t.sent;case 13:if("fail"!=i){t.next=17;break}return e.hideLoading(),e.showToast({title:"生成失败",icon:"none"}),t.abrupt("return");case 17:a=o.info.poster_bg_width/e.$u.sys().windowWidth,o.posterObj={width:o.info.poster_bg_width/a+"px",height:o.info.poster_bg_height/a+"px",background:"#fff",borderRadius:"16rpx",views:[{src:i,type:"image",css:{width:o.info.poster_bg_width/a+"px",height:o.info.poster_bg_height/a+"px"}},{type:"view",css:{left:o.info.poster_qrcode_x/a+"px",top:o.info.poster_qrcode_y/a+"px",position:"fixed"},views:[{type:"image",src:o.qrcode,css:{width:o.info.poster_qrcode_width/a+"px",height:o.info.poster_qrcode_width/a+"px",background:"#fff"}}]}]},o.showPoster=!0,setTimeout((function(){n.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(e){n.haibaoUrl=e.tempFilePath,console.log("that.haibaoUrl",n.haibaoUrl)}})}),1e3);case 19:case"end":return t.stop()}}),t)})))()}}};t.default=c}).call(this,o("543d")["default"],o("bc2e")["default"])},"88e5":function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){return n}));var n={wikePainter:function(){return Promise.all([o.e("common/vendor"),o.e("components/wike-painter/wike-painter")]).then(o.bind(null,"ab8c"))}},i=function(){var e=this.$createElement;this._self._c},s=[]},dd73:function(e,t,o){"use strict";o.r(t);var n=o("88e5"),i=o("ec6d");for(var s in i)["default"].indexOf(s)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(s);o("3684");var a=o("f0c5"),r=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"6c028722",null,!1,n["a"],void 0);t["default"]=r.exports},ec6d:function(e,t,o){"use strict";o.r(t);var n=o("7080"),i=o.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a}},[["013c","common/runtime","common/vendor"]]]);