| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-trade-collection"],{"11ca":function(e,t,a){"use strict";a.r(t);var n=a("3423"),i=a("1585");for(var o in i)"default"!==o&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("1c24");var c,s=a("f0c5"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"1d253eea",null,!1,n["a"],c);t["default"]=r.exports},1585:function(e,t,a){"use strict";a.r(t);var n=a("c766"),i=a.n(n);for(var o in n)"default"!==o&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},"1c24":function(e,t,a){"use strict";var n=a("e98c"),i=a.n(n);i.a},3423:function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"main"},[a("v-uni-view",{staticClass:"collection"},[a("v-uni-view",{staticClass:"head"},[a("v-uni-view",{staticClass:"title"},[e._v(e._s(e.lang.link_name))]),a("v-uni-view",{staticClass:"links"},[a("v-uni-text",{class:"btn trc"+("trc"==e.type?" active":""),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.type="trc"}}},[e._v("TRC20")]),a("v-uni-text",{class:"btn erc"+("erc"==e.type?" active":""),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.type="erc"}}},[e._v("ERC20")])],1),a("v-uni-text",{staticClass:"btn-link",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.gotoPage("/pages/account/collection")}}},[e._v(e._s(e.lang.detailed))])],1),"trc"==e.type?a("v-uni-view",{staticClass:"qrcode-box"},[a("v-uni-view",{staticClass:"title"},[e._v(e._s(e.lang.collection_address))]),a("v-uni-view",{staticClass:"address"},[a("v-uni-text",{staticClass:"text"},[e._v(e._s(e.userInfo.trc_address))]),a("v-uni-image",{staticClass:"icon cppy",attrs:{src:"/static/icons/copy_icon.png",mode:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.copy(e.userInfo.trc_address)}}})],1),a("v-uni-view",{staticClass:"qrcode"},[a("v-uni-image",{staticClass:"qrcode-img",attrs:{src:e.userInfo.trc_qrcode,mode:""}})],1),a("v-uni-view",{staticClass:"op"},[a("v-uni-text",{staticClass:"btn save",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.savePic()}}},[e._v(e._s(e.lang.save_pic))]),a("v-uni-text",{staticClass:"btn share",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sharePic()}}},[e._v(e._s(e.lang.share_address))])],1)],1):"erc"==e.type?a("v-uni-view",{staticClass:"qrcode-box"},[a("v-uni-view",{staticClass:"title"},[e._v(e._s(e.lang.collection_address))]),a("v-uni-view",{staticClass:"address"},[a("v-uni-text",{staticClass:"text"},[e._v(e._s(e.userInfo.erc_hexaddress))]),a("v-uni-image",{staticClass:"icon cppy",attrs:{src:"/static/icons/copy_icon.png",mode:""},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.copy(e.userInfo.erc_hexaddress)}}})],1),a("v-uni-view",{staticClass:"qrcode"},[a("v-uni-image",{staticClass:"qrcode-img",attrs:{src:e.userInfo.erc_qrcode,mode:""}})],1),a("v-uni-view",{staticClass:"op"},[a("v-uni-text",{staticClass:"btn save",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.savePic()}}},[e._v(e._s(e.lang.save_pic))]),a("v-uni-text",{staticClass:"btn share",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sharePic()}}},[e._v(e._s(e.lang.share_address))])],1)],1):e._e(),a("v-uni-view",{staticClass:"intro"},["trc"==e.type?a("v-uni-view",{staticClass:"head",domProps:{innerHTML:e._s(e.lang.collection_intro_trc_head)}}):"erc"==e.type?a("v-uni-view",{staticClass:"head",domProps:{innerHTML:e._s(e.lang.collection_intro_erc_head)}}):e._e(),a("v-uni-view",{staticClass:"info",domProps:{innerHTML:e._s(e.lang.collection_intro_info)}})],1)],1)],1)},o=[]},"94f6":function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.collection[data-v-1d253eea]{margin:%?19?% %?38?% %?38?%;color:#6e6c6b}.collection .head[data-v-1d253eea]{position:relative}.collection .head .title[data-v-1d253eea]{margin:%?28?% 0}.collection .head .links[data-v-1d253eea]{margin:%?28?% 0}.collection .head .links .btn[data-v-1d253eea]{padding:%?6?% %?16?%;border:%?2?% solid #bb955e;border-radius:%?14?%;margin-right:%?28?%;color:#bb955e;font-weight:700}.collection .head .links .btn.active[data-v-1d253eea]{color:#333;background-color:#bb955e}.collection .head .btn-link[data-v-1d253eea]{float:right;color:#bb955e;padding:%?8?% %?10?%;position:fixed;top:%?26?%;right:%?28?%;z-index:998}.collection .qrcode-box .title[data-v-1d253eea]{margin:%?28?% 0}.collection .qrcode-box .address[data-v-1d253eea]{margin-bottom:%?38?%;color:#bb955e;font-weight:700}.collection .qrcode-box .address .text[data-v-1d253eea]{display:inline-block;max-width:90%;word-wrap:break-word}.collection .qrcode-box .address .icon[data-v-1d253eea]{width:%?36?%;height:%?36?%;float:right;margin-right:%?19?%;vertical-align:middle}.collection .qrcode-box .qrcode[data-v-1d253eea]{width:%?360?%;height:%?360?%;text-align:center;margin:0 auto %?28?%}.collection .qrcode-box .qrcode .qrcode-img[data-v-1d253eea]{width:100%;height:100%;border-radius:%?4?%}.collection .qrcode-box .op[data-v-1d253eea]{text-align:center;margin:%?28?% auto;padding-top:%?28?%}.collection .qrcode-box .op .btn[data-v-1d253eea]{color:#bb955e;padding:%?12?% %?38?%;border:%?2?% solid #bb955e;border-radius:%?14?%;margin:0 %?28?%}.collection .intro[data-v-1d253eea]{line-height:%?44?%}.collection .intro .head[data-v-1d253eea]{border-bottom:%?2?% solid rgba(249,244,241,.2);padding:%?76?% 0 %?19?%}.collection .intro .info[data-v-1d253eea]{padding:%?19?% 0}',""]),e.exports=t},c766:function(e,t,a){"use strict";a("ace4"),a("d3b7"),a("ac1f"),a("1276"),a("5cc6"),a("9a8c"),a("a975"),a("735e"),a("c1ac"),a("d139"),a("3a7b"),a("d5d6"),a("82f8"),a("e91f"),a("60bd"),a("5f96"),a("3280"),a("3fcc"),a("ca91"),a("25a1"),a("cd26"),a("2954"),a("649e"),a("219c"),a("b39a"),a("72f7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{type:"trc",formData:{addr:"",amount:0,trade_type:1},userInfo:{}}},onLoad:function(e){var t="undefined"!=typeof e.addr?optons.addr:"";this.formData.addr=t,this.getUserInfo(),uni.setNavigationBarTitle({title:this.lang.collection_title})},methods:{copy:function(e){var t=this;uni.setClipboardData({data:e,success:function(){t.$u.toast(t.lang.copy_success)}})},savePic:function(){var e=this,t="trc"==e.type?e.userInfo.trc_qrcode:e.userInfo.erc_qrcode;if(console.log("保存二维码:"+t),console.log("保存二维码:"+t),window.navigator.msSaveOrOpenBlob){var a=atob(t.split(",")[1]),n=a.length,i=new Uint8Array(n);while(n--)i[n]=a.charCodeAt(n);var o=new Blob([i]);window.navigator.msSaveOrOpenBlob(o,"chart-download.png")}else{var c=document.createElement("a");c.href=t,c.setAttribute("download","chart-download"),c.click()}H5},sharePic:function(){var e=this,t="trc"==e.type?e.userInfo.trc_qrcode:e.userInfo.erc_qrcode;console.log("分享二维码:"+t),e.$u.toast(e.lang.no_support),H5,uni.share({provider:"weixin",scene:"WXSceneSession",type:0,href:"#",title:this.userInfo.username_text+"的钱包二维码",summary:"邀请您给他转账或交易",imageUrl:t,success:function(t){e.$u.toast(e.lang.share_success),console.log("success:"+JSON.stringify(t))},fail:function(t){e.$u.toast(e.lang.share_fail),console.log("fail:"+JSON.stringify(t))}})},getUserInfo:function(){var e=this;this.$request.sendToken("/api/user/info",{},"POST").then((function(t){1==t.success?e.userInfo=t.data:(e.$u.toast(t.msg),setTimeout((function(){uni.navigateTo({url:"/pages/login/login"})}),2e3))}))}}};t.default=n},e98c:function(e,t,a){var n=a("94f6");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("2c6a3a48",n,!0,{sourceMap:!1,shadowMode:!1})}}]);
|