bztang-admin/addons/yun_shop/static/app/js/chunk-2062b332.bb043ac8.js

1 line
17 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2062b332"],{"253a":function(t,e,i){t.exports=i.p+"static/app/img/img_default.a608a24a.png"},"720b":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#transHome[data-v-50a1fe40]{background:#f6f6f6;--swipe-height--:15rem;--notices-height--:3rem;--block-title-height--:1.5rem;--uniform-yellow--:#fed84f}#transHome .m-swipe[data-v-50a1fe40]{width:100%;margin:0;padding:0;height:var(--swipe-height--);position:relative;margin-bottom:calc(var(--notices-height--)/2)}#transHome .m-swipe .notices[data-v-50a1fe40]{height:var(--notices-height--);line-height:var(--notices-height--);width:90%;padding:.2rem;-webkit-box-shadow:-.125rem 0 .2813rem .0313rem rgba(0,0,0,.06),0 .125rem .2813rem .0313rem rgba(0,0,0,.06);box-shadow:-.125rem 0 .2813rem .0313rem rgba(0,0,0,.06),0 .125rem .2813rem .0313rem rgba(0,0,0,.06);border-radius:.5rem;background-color:#fff;position:absolute;bottom:calc(0rem - var(--notices-height--)/2);left:5%}#transHome .m-swipe .notice_title[data-v-50a1fe40],#transHome .m-swipe .notices[data-v-50a1fe40]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#transHome .m-swipe .notice_title[data-v-50a1fe40]{line-height:1.5rem;-webkit-box-flex:0;-webkit-flex:0 0 19rem;-ms-flex:0 0 19rem;flex:0 0 19rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#transHome .m-swipe .notice_title .notice_prefix[data-v-50a1fe40]{margin:.3rem 0;padding:0 .3rem;border-right:.05rem solid #ccc}#transHome .m-swipe .notice_title .notice_prefix .prefix_new[data-v-50a1fe40]{color:#f1691d;display:block;padding:0;margin:0;height:1rem;line-height:1rem;font-size:.6rem;font-style:oblique}#transHome .m-swipe .notice_title .notice_prefix .prefix_info[data-v-50a1fe40]{display:block;padding:0;margin:0;height:1rem;line-height:1rem;font-weight:bolder;font-size:.9rem;padding-left:.3rem}#transHome .m-swipe .notice_title .notice_marquee[data-v-50a1fe40]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#transHome .m-swipe .notice_title .icon-notice[data-v-50a1fe40]{font-size:1.25rem;color:#f7a145}#transHome .m-swipe .notice_more[data-v-50a1fe40]{text-align:right;color:#8c8c8c;-webkit-box-flex:1rem;-webkit-flex:1rem;-ms-flex:1rem;flex:1rem}#transHome .m-swipe .notice_more[data-v-50a1fe40],#transHome .m-swipe .notice_more p[data-v-50a1fe40]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#transHome .m-swipe .notice_more p[data-v-50a1fe40]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#transHome .swiper[data-v-50a1fe40]{height:100%}#transHome .swiper .swipe-img[data-v-50a1fe40]{width:100%;height:100%}#transHome .other[data-v-50a1fe40]{width:90%;margin:0 5%;display:inline-block}#transHome .other .block-title[data-v-50a1fe40]{height:var(--block-title-height--);line-height:var(--block-title-height--);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;border-left:.3rem solid #ccc;padding-left:.5rem;margin:1rem 0}#transHome .other .block-title .block-title-left[data-v-50a1fe40]{font-weight:700;font-size:1rem}#transHome .other .block-title .block-title-right .right-button[data-v-50a1fe40]{border-radius:1rem;background:var(--uniform-yellow--);padding:0 .8rem;font-size:.8rem}#transHome .other .statistics[data-v-50a1fe40]{background-color:#fff;border-radius:.5rem;-webkit-box-shadow:-.125rem 0 .2813rem .0313rem rgba(0,0,0,.06),0 .125rem .2813rem .0313rem rgba(0,0,0,.06);box-shadow:-.125rem 0 .2813rem .0313rem rgba(0,0,0,.06),0 .125rem .2813rem .0313rem rgba(0,0,0,.06);padding:1rem}#transHome .other .statistics .my-assets[data-v-50a1fe40]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-bottom:1rem}#transHome .other .statistics .my-assets i[data-v-50a1fe40]{color:var(--uniform-yellow--);margin-right:.2rem}#transHome .other .statistics .assets-list[data-v-50a1fe40]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}#transHome .other .statistics .assets-list .assets-list-block[data-v-50a1fe40]{width:33%;border-right:.1rem solid #ccc}#transHome .other .statistics .assets-list .assets-list-block .assets-list-block-money[data-v-50a1fe40]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:1rem;font-weight:700}#transHome .other .statistics .assets-list .assets-list-block[data-v-50a1fe40]:last-child{border:none}#transHome .other .assets-class[data-v-50a1fe40]{--block-width--:22.5vw;width:100%;margin:0;padding:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#transHome .other .assets-class .assets-class-block[data-v-50a1fe40]{--block-padding--:0.5rem;padding:var(--block-padding--);width:var(--block-width--);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#transHome .other .assets-class .assets-class-block img[data-v-50a1fe40]{width:calc(var(--block-width--) - var(--block-padding--)*2);height:calc(var(--block-width--) - var(--block-padding--)*2);border-radius:50%}#transHome .other .assets-class .assets-class-block p[data-v-50a1fe40]{display:inline-block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:1.5rem;line-height:1.5rem;font-size:.7rem;font-weight:600}#transHome .other .hot-list .hot-list-block[data-v-50a1fe40]{background-color:#fff;border-radius:.5rem;-webkit-box-shadow:-.125rem 0 .2813rem .0313rem rgba(0,0,0,.06),0 .125rem .2813rem .0313rem rgba(0,0,0,.06);box-shadow:-.125rem 0 .2813rem .0313rem rgba(0,0,0,.06),0 .125rem .2813rem .0313rem rgba(0,0,0,.06);padding:1rem;margin-bottom:1rem}#transHome .other .hot-list .hot-list-block .block-top[data-v-50a1fe40]{height:1.5rem;line-height:1.5rem;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding:1rem 0}#transHome .other .hot-list .hot-list-block .block-top[data-v-50a1fe40],#transHome .other .hot-list .hot-list-block .block-top .block-top-left[data-v-50a1fe40]{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#transHome .other .hot-list .hot-list-block .block-top .block-top-left[data-v-50a1fe40]{font-size:.8rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#transHome .other .hot-list .hot-list-block .block-top .block-top-left .block-top-left-spot[data-v-50a1fe40]{width:.3rem;height:.3rem;display:inline-block;background-color:var(--uniform-yellow--);border-radius:50%;margin-right:.8rem}#transHome .other .hot-list .hot-list-block .block-top .block-top-right[data-v-50a1fe40]{border-radius:1rem;background:var(--uniform-yellow--);padding:0 .8rem;font-size:.8rem}#transHome .other .hot-list .hot-list-block .block-info[data-v-50a1fe40]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding:.5rem 0}#transHome .other .hot-list .hot-list-block .block-info .block-info-block[data-v-50a1fe40]{width:calc(33.33333% - .16667rem)}#transHome .other .hot-list .hot-list-block .block-info .block-info-block .block-info-block-money[data-v-50a1fe40]{font-weight:700;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;margin-bottom:.5rem}#transHome .other .hot-list .hot-list-block .block-info .block-info-block .block-info-block-text[data-v-50a1fe40]{color:#ccc;font-size:.7rem}#transHome .other .hot-list .hot-list-block .block-info .block-info-block[data-v-50a1fe40]:first-child{border-right:1px solid #ccc}#transHome .other .hot-list .hot-list-block .block-info .block-info-block:first-child .block-info-block-money[data-v-50a1fe40]{color:#f74b0d;font-size:1rem}#transHome .other .hot-list .hot-list-block .block-info i[data-v-50a1fe40]{font-size:1.5rem;color:#ccc;width:.5rem;height:100%}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,s=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b667:function(t,e,i){"use strict";i("e141")},b96d:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"transHome"}},[a("c-title",{attrs:{hide:!1,text:t.lang.asset_name||" "}}),t.banner.length>0?a("div",{staticClass:"m-swipe"},[""!==t.banner?a("c-myswipe",{attrs:{"pagination-visible":!1,slides:t.banner,repeating:!0,auto:3e3}},t._l(t.banner,(function(e,s){return a("div",{key:s},[e.thumb_url?a("a",{attrs:{href:t._f("href_filters")(e.link)}},[a("img",{staticClass:"swipe-img",attrs:{src:e.thumb_url}})]):t._e(),e.imgurl?t._e():a("a",{attrs:{href:"javascript:;"}},[a("img",{staticClass:"swipe-img",attrs:{src:i("253a")}})])])})),0):t._e(),a("div",{staticClass:"notices",on:{click:t.toMore}},[a("div",{staticClass:"notice_title"},[t._m(0),a("marquee",{staticClass:"notice_marquee",attrs:{scrollamount:"3"}},[t._v(t._s(t.noticeData.title)+" - "+t._s(t.noticeData.author))])],1),t._m(1)])],1):t._e(),a("div",{staticClass:"other"},[a("div",{staticClass:"block-title"},[a("div",{staticClass:"block-title-left"},[t._v(t._s(t.recommend_asset.name)+t._s(t.lang.digitization_name))]),a("div",{staticClass:"block-title-right"},[a("div",{staticClass:"right-button",on:{click:function(e){return t.toBuy(t.recommend_asset.id)}}},[t._v("我要兑换")])])]),a("div",{staticClass:"statistics"},[a("div",{staticClass:"my-assets"},[a("div",{on:{click:t.toTradingHall}},[a("i",{staticClass:"icon i-tongqian"}),t._v("我的"+t._s(t.lang.capital_name)+" ")])]),a("div",{staticClass:"assets-list"},[a("div",{staticClass:"assets-list-block"},[a("div",{staticClass:"assets-list-block-money"},[t._v(t._s(t.recommend_asset.bonus_amount))]),a("div",[t._v("累计"+t._s(t.lang.bonus_name))])]),a("div",{staticClass:"assets-list-block"},[a("div",{staticClass:"assets-list-block-money"},[t._v(t._s(t.recommend_asset.total))]),a("div",[t._v(t._s(t.lang.capital_name)+"发行")])]),a("div",{staticClass:"assets-list-block"},[a("div",{staticClass:"assets-list-block-money"},[t._v(t._s(t.recommend_asset.publish))]),a("div",[t._v("已认购"+t._s(t.lang.capital_name))])])])]),a("div",{staticClass:"block-title"},[a("div",{staticClass:"block-title-left"},[t._v("企业"+t._s(t.lang.capital_name))])]),a("div",{staticClass:"assets-class"},t._l(t.classify,(function(e,i){return a("div",{key:i,staticClass:"assets-class-block",on:{click:function(i){return t.toClass(e)}}},[a("img",{attrs:{src:e.thumb_url,alt:"分类图片"}}),a("p",[t._v(t._s(e.name))])])})),0),a("div",{staticClass:"block-title"},[a("div",{staticClass:"block-title-left"},[t._v("热门"+t._s(t.lang.capital_name))])]),a("div",{staticClass:"hot-list"},t._l(t.companyList,(function(e,i){return a("div",{key:i,staticClass:"hot-list-block"},[a("div",{staticClass:"block-top"},[a("div",{staticClass:"block-top-left"},[a("span",{staticClass:"block-top-left-spot"}),t._v(t._s(e.name)+" ")]),a("div",{staticClass:"block-top-right",on:{click:function(i){return t.toBuy(e.id)}}},[t._v("我要兑换")])]),a("div",{staticClass:"block-info"},[a("div",{staticClass:"block-info-block"},[a("div",{staticClass:"block-info-block-money"},[t._v(t._s(e.bonus_amount))]),a("div",{staticClass:"block-info-block-text"},[t._v(t._s(t.lang.bonus_name)+"数量")])]),a("div",{staticClass:"block-info-block"},[a("div",{staticClass:"block-info-block-money"},[t._v(t._s(e.total))]),a("div",{staticClass:"block-info-block-text"},[t._v("发行总量")])]),a("div",{staticClass:"block-info-block"},[a("div",{staticClass:"block-info-block-money"},[t._v(t._s(e.publish))]),a("div",{staticClass:"block-info-block-text"},[t._v("认购数量")])]),a("i",{staticClass:"fa fa-angle-right",on:{click:function(i){return t.toCompany(e)}}})])])})),0)])],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"notice_prefix"},[i("span",{staticClass:"prefix_new"},[t._v("最新")]),i("span",{staticClass:"prefix_info"},[t._v("信息")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"notice_more"},[i("p",[i("i",{staticClass:"fa fa-angle-right"})])])}],o=(i("e7e5"),i("d399")),l=(i("e9c4"),i("99af"),i("6968")),n=i("c992"),r=i("ac0d"),c={mixins:[r["a"]],data:function(){return{banner:[],noticeData:{},recommend_asset:{},classify:[],companyList:[],lang:{},isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getLang(),this.getData(),this.getList()},methods:{getLang:function(){var t=this;$http.get("plugin.asset.Frontend.Controllers.Lang.index",{},"加载中...").then((function(e){1===e.result?(t.lang=e.data,t.fun.setWXTitle(t.lang.asset_name),t.$store.commit("setBlockchainLang",t.lang),window.localStorage.setItem("blockchainLang",JSON.stringify(t.lang))):Object(o["a"])(e.msg)})).catch((function(t){}))},getData:function(){var t=this;$http.get("plugin.asset.Frontend.Controllers.api.infoCollection",{},"加载中...").then((function(e){if(1===e.result){var i=e.data;t.banner=i.banner,t.noticeData=i.notice,t.recommend_asset=i.recommend_asset,t.classify=i.category}else Object(o["a"])(e.msg)})).catch((function(t){}))},getList:function(){var t=this;this.isLoadMore=!1,this.page=1,$http.get("plugin.asset.Frontend.Controllers.api.getAssetList",{},"加载中...").then((function(e){if(1===e.result){var i=e.data;t.isLoadMore=!0,t.total_page=i.last_page,t.companyList=i.data}else Object(o["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.asset.Frontend.Controllers.api.getAssetList",{page:t.page},"加载中...").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data;t.companyList=t.companyList.concat(i.data)})))},toCompany:function(t){this.$router.push(this.fun.getUrl("Assessment",{asset_id:t.id}))},toTradingHall:function(t){this.$router.push(this.fun.getUrl("MyAsset"))},toMore:function(){this.$router.push(this.fun.getUrl("TransNotice"))},toClass:function(t){this.$router.push(this.fun.getUrl("ClassifiedSearch",{class_id:t.id}))},toBuy:function(t){this.$router.push(this.fun.getUrl("Buying",{asset_id:t}))}},components:{cTitle:l["a"],cMyswipe:n["a"]}},d=c,m=d,f=(i("b667"),i("2877")),b=Object(f["a"])(m,a,s,!1,null,"50a1fe40",null);e["default"]=b.exports},e141:function(t,e,i){var a=i("720b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("4bc95c6c",a,!0,{sourceMap:!1,shadowMode:!1})}}]);