bztang-admin/addons/yun_shop/static/app/js/chunk-ed9eac62.ea2d884b.js

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed9eac62"],{"1b61":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAANCAYAAACZ3F9/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NkM4Nzc5MDMyMjgyMTFFN0JCRDFBNkYyOTQwQTkyRUEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NkM4Nzc5MDQyMjgyMTFFN0JCRDFBNkYyOTQwQTkyRUEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2Qzg3NzkwMTIyODIxMUU3QkJEMUE2RjI5NDBBOTJFQSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2Qzg3NzkwMjIyODIxMUU3QkJEMUE2RjI5NDBBOTJFQSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmSE+HYAAAENSURBVHjajNIxSMJBFMfxs7IIScQ9m9wMA3MJycE1EASFhjZxE6S5sTGIBIc/BEW06dAQCLY4JU0NRQTOBeJQiC1B6PfiHTwk7P/gw3+4+/3v3t0FPM8zUgHkUUYaEbzhDmd4MaoW5LuGG5yijSxi2McIPdR0cElWukYQmxir8QEecIWOjJ27FUvYQnEmpOtJVj9B1AUPUMeXmV9d+UHBBVO4N/6qJ+38Bq0fn0E7b9EFn7HtM2h313dBe6JVLP8TSmIHTRe0R/2BC7mev2odLRzj3aj+7IuJS/P21MIS2MAhHuWnu1jVL2eIDC5xhE9M8Iqc3HFC2rlFSG/tGw2xYgelhYmasyc9VqYCDAAgLzWBjWiGsgAAAABJRU5ErkJggg=="},"4ecf":function(t,e,s){var i=s("9c9a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=s("499e").default;a("53e5705c",i,!0,{sourceMap:!1,shadowMode:!1})},"7e0d":function(t,e,s){"use strict";s("4ecf")},"9c9a":function(t,e,s){var i=s("24fb"),a=s("1de5"),o=s("1b61");e=i(!1);var l=a(o);e.push([t.i,"#assetClassify[data-v-fe737b4e]{background:#fff}#assetClassify .mint-cell[data-v-fe737b4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#assetClassify .mint-cell-wrapper[data-v-fe737b4e]{width:18rem}#assetClassify .mint-cell-value[data-v-fe737b4e],#assetClassify .mint-cell-wrapper[data-v-fe737b4e]{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}#assetClassify .mint-cell-value[data-v-fe737b4e]{background:#f5f5f5;border-radius:.9375rem;padding:.2rem .5rem;height:1.75rem}#assetClassify .mint-cell-value input[data-v-fe737b4e]{width:100%;line-height:1.75rem;border:none;color:#333}#assetClassify .classify[data-v-fe737b4e]{margin-left:.5rem;line-height:2.75rem}#assetClassify .classify1[data-v-fe737b4e]{margin:.2rem 0 0 1rem;font-size:16px;line-height:2.75rem}#assetClassify .search_icon[data-v-fe737b4e]{padding:0 .5rem 0 1rem;display:inline-block;width:1rem;height:1rem;background-image:url("+l+");background-repeat:no-repeat}#assetClassify .down[data-v-fe737b4e]{width:0;height:0;border-left:.375rem solid transparent;border-right:.375rem solid transparent;border-top:.375rem solid #333;position:relative;top:.75rem;left:.125rem}#assetClassify .popup-bg[data-v-fe737b4e]{position:fixed;top:3rem;left:0;right:0;width:100%;height:100%;background:rgba(0,0,0,.3);z-index:10}#assetClassify .popup-bg.pcStyle[data-v-fe737b4e]{width:375px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}#assetClassify .popup[data-v-fe737b4e]{position:absolute;top:0;right:.5rem;width:7rem;background-color:#333;opacity:.9}#assetClassify .up[data-v-fe737b4e]{position:absolute;right:.8rem;top:-.5rem;width:0;height:0;border-left:.375rem solid transparent;border-right:.375rem solid transparent;border-bottom:.5rem solid #333;-webkit-box-sizing:border-box;box-sizing:border-box;opacity:.9}#assetClassify .popups li[data-v-fe737b4e]{background-color:#333;opacity:.9;color:#fff;border-bottom:.0625rem solid #fff;line-height:2.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#assetClassify .popups li[data-v-fe737b4e]:first-child{border-radius:.3125rem .3125rem 0 0}#assetClassify .popups li[data-v-fe737b4e]:last-child{border-radius:0 0 .3125rem .3125rem}#assetClassify .popups .choose[data-v-fe737b4e]{color:#f7a145}#assetClassify .company_list[data-v-fe737b4e]{width:100%}#assetClassify .company_list .title[data-v-fe737b4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#333;padding:.5rem 0;border-top:.0625rem solid #ebebeb;border-bottom:.0625rem solid #ebebeb}#assetClassify .company_list .title p[data-v-fe737b4e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#assetClassify .company_list .title p i[data-v-fe737b4e]{color:#999}#assetClassify .company_list .title p .icon-down_arrow[data-v-fe737b4e]{margin-left:-.625rem}#assetClassify .company_list .title .icon[data-v-fe737b4e]{display:inline-block;width:.5rem;height:.8rem;background-color:#469de2}#assetClassify .company_list .company li[data-v-fe737b4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1rem 0;border-bottom:1px solid #ebebeb}#assetClassify .company_list .company li p[data-v-fe737b4e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#assetClassify .company_list .company .buy[data-v-fe737b4e]{color:#fff;padding:.3rem .8rem;background-color:#f7a145;border-radius:.19rem}",""]),t.exports=e},ac0d:function(t,e,s){"use strict";s.d(e,"a",(function(){return o}));var i=document.documentElement,a=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 i&&i.scrollTop?t=i.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&i.clientHeight?Math.min(a.clientHeight,i.clientHeight):Math.max(a.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,i.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(){}}}},db94a:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"assetClassify"}},[s("div",{staticClass:"m-t-10"},[s("a",{staticClass:"mint-cell mint-field"},[s("div",{staticClass:"mint-cell-wrapper"},[s("div",{staticStyle:{"padding-right":"0.5rem"},on:{click:t.goback}},[s("i",{staticClass:"iconfont icon-back"})]),s("div",{staticClass:"mint-cell-value",staticStyle:{"font-size":"14px"}},[s("form",{staticStyle:{width:"100%"},attrs:{action:"#"},on:{submit:function(t){t.preventDefault()}}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.address_detail,expression:"address_detail"}],staticClass:"mint-field-core text-right",attrs:{type:"search",placeholder:"输入关键字搜索"},domProps:{value:t.address_detail},on:{keypress:t.searchGoods,input:function(e){e.target.composing||(t.address_detail=e.target.value)}}})]),s("i",{staticClass:"search_icon",on:{click:t.searchAsset}})])]),s("div",{staticClass:"classify",on:{click:t.showClass}},[s("span",[t._v("全部分类")]),s("i",{staticClass:"iconfont icon-down"})])])]),s("transition",{attrs:{name:"fade"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],staticClass:"popup-bg",class:[3==t.fun.getPhoneEnv()?"pcStyle":""],on:{click:function(e){t.showPopup=!1},touchmove:function(t){t.preventDefault()}}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopup,expression:"showPopup"}],staticClass:"popup"},[s("div",{staticClass:"up"}),s("div",{ref:"cartWrapper",staticClass:"cartWrapper",staticStyle:{"max-height":"23rem",overflow:"hidden","border-top":"solid 0.0625rem #ebebeb"}},[s("ul",{staticClass:"popups"},t._l(t.classify,(function(e,i){return s("li",{key:i,class:t.chooseID===i?"choose":"",on:{click:function(s){return t.chooseClassify(i,e)}}},[t._v(" "+t._s(e.name)+" ")])})),0)])])])]),s("div",{staticClass:"space",staticStyle:{height:"0.5rem",background:"#f5f5f5"}}),s("div",{staticClass:"company_list"},[s("div",{staticClass:"title"},[s("p",[t._v(t._s(t.lang.capital_name)+"信息")]),s("p",{on:{click:function(e){return t.toggle("1")}}},[t._v("数量 "),s("i",{staticClass:"iconfont icon-up_arrow",style:1===t.sortNum&&t.one_up?"color: #f15353":""}),s("i",{staticClass:"iconfont icon-down_arrow",style:1!==t.sortNum||t.one_up?"":"color: #f15353"})]),s("p",{on:{click:function(e){return t.toggle("2")}}},[t._v("单价 "),s("i",{staticClass:"iconfont icon-up_arrow",style:2===t.sortNum&&t.two_up?"color: #f15353":""}),s("i",{staticClass:"iconfont icon-down_arrow",style:2!==t.sortNum||t.two_up?"":"color: #f15353"})]),s("p",[t._v("操作")])]),s("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[s("ul",{staticClass:"company"},t._l(t.companyList,(function(e,i){return s("li",{key:i},[s("p",{on:{click:function(s){return t.toCompany(e)}}},[t._v(t._s(e.asset_name))]),s("p",[t._v(t._s(e.total))]),s("p",[t._v(t._s(t.$i18n.t("money"))+t._s(e.price))]),s("p",[s("span",{staticClass:"buy",on:{click:function(s){return t.toBuying(e)}}},[t._v(t._s(t.lang.buy_name))])])])})),0)])],1)],1)},a=[],o=(s("e7e5"),s("d399")),l=(s("4e82"),s("14d9"),s("99af"),s("6968")),n=s("1fba"),r=s("ac0d"),c={mixins:[r["a"]],data:function(){return{address_detail:"",showPopup:!1,classify:[],companyList:[],chooseID:-1,sortNum:0,one_up:!1,two_up:!1,sort:"",sort_field:"",category_id:"",asset_name:"",lang:{},isLoadMore:!0,page:1,total_page:0,isLoading:!1}},activated:function(){this.initData(),this.getLang(),this.getData()},methods:{getLang:function(){var t=this;$http.get("plugin.asset.Frontend.Controllers.Lang.index",{},"加载中...").then((function(e){1===e.result?t.lang=e.data:Object(o["a"])(e.msg)})).catch((function(t){}))},searchGoods:function(t){13==t.keyCode&&(t.preventDefault(),this.getData())},initData:function(){this.address_detail="",this.showPopup=!1,this.companyList=[],this.chooseID=-1,this.sortNum=0,this.one_up=!1,this.two_up=!1,this.sort="",this.sort_field="",this.category_id="",this.asset_name="",this.isLoadMore=!0,this.page=1,this.total_page=0},_initScrollCart:function(){this.cartScroll=new n["a"](this.$refs.cartWrapper,{click:!0})},showClass:function(){var t=this;this.showPopup=!this.showPopup,this.$nextTick((function(){t.cartScroll?t.cartScroll.refresh():t._initScrollCart()}))},toggle:function(t){switch(String(t)){case"1":this.sortNum=1,this.one_up=!this.one_up,this.one_up?this.sort="asc":this.sort="desc",this.sort_field="total";break;case"2":this.sortNum=2,this.two_up=!this.two_up,this.two_up?this.sort="asc":this.sort="desc",this.sort_field="price ";break;default:this.sortNum=1,this.one_up=!this.one_up,this.one_up?this.sort="asc":this.sort="desc",this.sort_field="total";break}this.getData()},searchAsset:function(){this.getData()},toCompany:function(t){this.$router.push(this.fun.getUrl("Assessment",{asset_id:t.asset_id}))},goback:function(){this.$router.go(-1)},toBuying:function(t){this.$router.push(this.fun.getUrl("Buying",{asset_id:t.id},{name:"buy"}))},chooseClassify:function(t,e){this.category_id=e.id,this.chooseID=t,this.showPopup=!1,this.getData()},loadTop:function(){this.initData(),this.getData(),this.$refs.loadmore.onTopLoaded()},getData:function(){var t=this;this.isLoadMore=!1,this.page=1;var e={sort:this.sort,sort_field:this.sort_field,category_id:this.category_id,asset_name:this.address_detail};$http.get("plugin.asset.Frontend.Modules.Trading.Controllers.records.index",e,"加载中...").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.sell_list.last_page,t.total_page||(t.total_page=0),t.companyList=e.data.sell_list.data,t.classify=e.data.category_list,t.isLoading=!1):(t.isLoading=!1,Object(o["a"])(e.msg))})).catch((function(t){}))},getMoreData:function(){var t=this,e={sort:this.sort,sort_field:this.sort_field,category_id:this.category_id,asset_name:this.address_detail};t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,e.page=this.page,$http.get("plugin.asset.Frontend.Modules.Trading.Controllers.records.index",e,"加载中...").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var s=e.data.sell_list.data;t.companyList=t.companyList.concat(s)}),(function(t){})))}},components:{cTitle:l["a"]}},d=c,p=d,h=(s("7e0d"),s("2877")),f=Object(h["a"])(p,i,a,!1,null,"fe737b4e",null);e["default"]=f.exports}}]);