bztang-admin/addons/yun_shop/static/app/js/chunk-687d3de0.ab08dc49.js

1 line
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-687d3de0"],{"08a9":function(e,t,o){"use strict";o("76ea")},"42fd":function(e,t,o){var i=o("24fb"),s=o("1de5"),a=o("fefd");t=i(!1);var d=s(a);t.push([e.i,"#card_goods[data-v-68d849fe]{padding-top:2.5rem;padding-bottom:3.75rem}#card_goods .tips_box[data-v-68d849fe]{background:#fff;border-radius:.375rem;height:10.5rem}#card_goods .tips_box .text[data-v-68d849fe]{padding:2.25rem .875rem;font-size:1rem}#card_goods .tips_box button[data-v-68d849fe]{border:none;color:#50a6f9;font-size:1rem;width:100%;height:2.875rem;line-height:2.875rem;border-top:.0625rem solid #ebebeb}#card_goods .search_box[data-v-68d849fe]{position:fixed;top:0;z-index:100;width:100%;background:#fff;height:2.75rem;line-height:2.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#card_goods .search_box .fa[data-v-68d849fe]{font-size:1.5rem;color:#333;width:2.5rem}#card_goods .search_box .text_box[data-v-68d849fe]{width:17.5rem;border-radius:1rem;height:1.75rem;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;background:#f2f2f2;padding:0 .625rem}#card_goods .search_box .text_box .iconfont[data-v-68d849fe]{font-size:1rem;color:#999;margin-right:.625rem}#card_goods .search_box .text_box form[data-v-68d849fe]{width:100%}#card_goods .search_box .text_box input[data-v-68d849fe]{border:none;width:90%}#card_goods .search_box span[data-v-68d849fe]{width:3.75rem;font-size:.9375rem}#card_goods .title[data-v-68d849fe]{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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.5rem}#card_goods .title .line-right[data-v-68d849fe],#card_goods .title .line_left[data-v-68d849fe]{width:6.25rem;height:.0625rem;background:#ebebeb}#card_goods .title h1[data-v-68d849fe]{font-size:.9375rem;color:#999;margin:0 .875rem}#card_goods .goods_list[data-v-68d849fe]{padding:.625rem .9375rem;background:#f5f5f5}#card_goods .goods_list .goods_box[data-v-68d849fe]{background:#fff;padding:.625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.625rem;border:.0625rem solid #fff}#card_goods .goods_list .goods_box .goods_img[data-v-68d849fe]{width:3.75rem;height:3.75rem;overflow:hidden;margin-right:.78rem;background:#f2f2f2}#card_goods .goods_list .goods_box .goods_img img[data-v-68d849fe]{width:100%}#card_goods .goods_list .goods_box .goods_text[data-v-68d849fe]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;position:relative}#card_goods .goods_list .goods_box .goods_text .name[data-v-68d849fe]{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;font-size:.9375rem;text-align:left}#card_goods .goods_list .goods_box .goods_text .sum[data-v-68d849fe]{position:absolute;bottom:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;line-height:1.5rem;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#card_goods .goods_list .goods_box .goods_text .sum span[data-v-68d849fe]{color:#f15353;font-size:1rem}#card_goods .goods_list .goods_box .goods_text .sum span font[data-v-68d849fe]{font-size:.75rem}#card_goods .goods_list .goods_box .goods_text .sum .icon[data-v-68d849fe]{font-size:.875rem;color:#fff;width:1.5rem;height:1.5rem;line-height:1.5rem;background-image:url("+d+");background-size:cover}#card_goods .goods_list .goods_box .goods_text .sum .no_current[data-v-68d849fe]{font-size:.875rem;color:#ccc;width:1.5rem;height:1.5rem;line-height:1.5rem;border:.0625rem solid #ccc;border-radius:2rem;background:#fff}#card_goods .goods_list .cg[data-v-68d849fe]{border:.0625rem solid #f15353}#card_goods .noMoes img[data-v-68d849fe]{width:5rem;height:5rem;overflow:hidden}#card_goods .card_goods_btm[data-v-68d849fe]{position:fixed;bottom:0;width:100%;height:3.0625rem;border-top:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fff}#card_goods .card_goods_btm p[data-v-68d849fe]{padding:0 .625rem;font-size:1rem}#card_goods .card_goods_btm p span[data-v-68d849fe]{color:#f15353;margin:0 .25rem}#card_goods .card_goods_btm button[data-v-68d849fe]{border:none;background:#f15353;color:#fff;border-radius:.25rem;width:auto;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.5rem;font-size:1rem;margin:0 .94rem}#card_goods .noG button[data-v-68d849fe]{background:rgba(0,0,0,.4)}",""]),e.exports=t},"49ad":function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"card_goods"}},[i("div",{staticClass:"search_box",style:{width:3==e.fun.getPhoneEnv()?"375px":""}},[i("i",{staticClass:"fa fa-angle-left",on:{click:e.goBack}}),i("div",{staticClass:"text_box"},[i("i",{staticClass:"iconfont icon-sousuo1"}),i("form",{attrs:{action:"#"},on:{submit:function(e){e.preventDefault()}}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.inputs,expression:"inputs"}],attrs:{type:"search",placeholder:"搜索商品标题"},domProps:{value:e.inputs},on:{keypress:e.enterSearch,input:function(t){t.target.composing||(e.inputs=t.target.value)}}})])]),i("span",{on:{click:e.getData}},[e._v("搜索")])]),e._m(0),this.fun.isTextEmpty(this.goodList)?e._e():i("div",{staticClass:"goods_list"},e._l(e.goodList,(function(t,o){return i("div",{key:o,staticClass:"goods_box",class:{cg:t.id==e.chooseGoods},on:{click:function(o){return e.chooseGood(t.id)}}},[i("div",{staticClass:"goods_img"},[i("img",{attrs:{src:t.thumb}})]),i("ul",{staticClass:"goods_text"},[i("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[e._v(" "+e._s(e._f("escapeTitle")(t.title))+" ")]),i("li",{staticClass:"sum"},[i("span",[i("font",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.price)+" ")],1),t.id==e.chooseGoods?i("i",{staticClass:"icon"}):e._e()])])])})),0),this.fun.isTextEmpty(this.goodList)?i("div",{staticClass:"noMoes"},[i("img",{attrs:{src:o("8798"),alt:""}})]):e._e(),i("div",{staticClass:"card_goods_btm",class:{noG:e.fun.isTextEmpty(this.chooseGoods)},style:{width:3==e.fun.getPhoneEnv()?"375px":""}},[i("button",{attrs:{type:"button"},on:{click:e.gotoRelease}},[e._v("确定选择")])])])},s=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"title"},[o("div",{staticClass:"line_left"}),o("h1",[e._v("搜索结果")]),o("div",{staticClass:"line-right"})])}],a=(o("99af"),o("ac1f"),o("5319"),o("14d9"),o("6968")),d=o("ac0d"),r={mixins:[d["a"]],data:function(){return{show1:!1,inputs:"",goodList:[],chooseGoods:null,isLoadMore:!0,page:1,total_page:0}},activated:function(){this.initData(),this.getRecommendGoods()},methods:{initData:function(){this.inputs="",this.show1=!1,this.goodList=[],this.chooseGoods=null,this.isLoadMore=!0,this.page=1,this.total_page=0},getRecommendGoods:function(){var e=this;$http.get("plugin.video-share.frontend.goods.getRecommendGoods",{page:1}).then((function(t){1==t.result?(e.goodList=t.data.list.data,e.total_page=t.data.list.last_page):e.$dialog.alert({message:t.msg})}))},getData:function(){var e=this;$http.get("plugin.video-share.frontend.goods.getGoodsByKeyword",{keyword:this.inputs}).then((function(t){1==t.result?(e.goodList=t.data.list.data,e.total_page=t.data.list.last_page):e.$dialog.alert({message:t.msg})}))},getMoreData:function(){var e=this,t="plugin.circle.frontend.circle-invitation.search-goods";if(e.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var o=this.inputs?{page:e.page,keyword:this.inputs}:{page:e.page};$http.get(t,o,"加载中").then((function(t){if(e.isLoadMore=!0,1!==t.result)return e.page=e.page-1,void(e.isLoadMore=!1);var o=[];o=t.data.list?t.data.list.data:t.data.data,e.goodList=e.goodList.concat(o)}),(function(e){}))}},chooseGood:function(e){this.chooseGoods=e},gotoRelease:function(){this.fun.isTextEmpty(this.chooseGoods)?this.$dialog.alert({message:"选择的商品为空"}):this.$router.replace(this.fun.getUrl("circlereleaseVideo",{},{goods_id:this.chooseGoods,circle_id:this.$route.query.circle_id}))},enterSearch:function(e){13===e.keyCode&&(e.preventDefault(),this.getData())},goBack:function(){this.$router.push(this.fun.getUrl("circlereleaseVideo",{},{goods_id:this.chooseGoods}))}},components:{cTitle:a["a"]}},n=r,c=n,l=(o("08a9"),o("2877")),g=Object(l["a"])(c,i,s,!1,null,"68d849fe",null);t["default"]=g.exports},"76ea":function(e,t,o){var i=o("42fd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=o("499e").default;s("4ce77b55",i,!0,{sourceMap:!1,shadowMode:!1})},8798:function(e,t,o){e.exports=o.p+"static/app/img/no-more-product.f4632785.png"},ac0d:function(e,t,o){"use strict";o.d(t,"a",(function(){return a}));var i=document.documentElement,s=document.body,a={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:s&&(e=s.scrollTop),e},getClientHeight:function(){var e=0;return e=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(s.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},fefd:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQkJFMjIwNkE4NzMxMUU5OUU1RkQxQTU2QThFRjAxRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQkJFMjIwN0E4NzMxMUU5OUU1RkQxQTU2QThFRjAx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