bztang-admin/addons/yun_shop/static/app/js/chunk-3a0a7719.bf830562.js

1 line
14 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a0a7719","chunk-2d0d83d6"],{1046:function(t,e,i){var a=i("aa2b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("7fc09a06",a,!0,{sourceMap:!1,shadowMode:!1})},"218d4":function(t,e,i){"use strict";i("1046")},"4faa":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"grab_group_home"}},[i("c-title",{attrs:{hide:!1,text:"抢团"}}),i("div",{staticClass:"top-search"},[i("div",{staticClass:"search-box"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.serch_title,expression:"serch_title"}],attrs:{type:"text",placeholder:"搜索商品"},domProps:{value:t.serch_title},on:{input:function(e){e.target.composing||(t.serch_title=e.target.value)}}}),i("div",{staticClass:"search-btn",on:{click:function(e){return e.stopPropagation(),t.onRefresh()}}},[t._v("搜索")])]),i("div",{staticClass:"text",on:{click:function(e){e.stopPropagation(),t.show=!0}}},[t._v("活动说明")])]),t.fun.isTextEmpty(t.Banner)?t._e():i("div",{staticClass:"banner"},[i("van-swipe",{attrs:{autoplay:4e3,"indicator-color":"#f94c3b",width:3==t.fun.getPhoneEnv()?375:t.clientWidth}},t._l(t.Banner,(function(e,a){return i("van-swipe-item",{key:a},[i("img",{staticStyle:{padding:"0.5rem 0.875rem","border-radius":"1.5rem",width:"100%"},attrs:{src:e.thumb},on:{click:function(i){return i.stopPropagation(),t.gotoLink(e.thumb_link)}}})])})),1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isquest,expression:"isquest"}],staticClass:"list-box"},[i("van-tabs",{attrs:{sticky:"",ellipsis:!1,swipeable:""},on:{change:t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.titleArr,(function(e,a){return i("van-tab",{key:a,attrs:{title:e.name}},[i("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[t.dataList[a]&&!t.fun.isTextEmpty(t.dataList[a].list)?i("ul",{staticClass:"content"},t._l(t.dataList[a].list,(function(e){return i("li",{key:e.goods_id,staticClass:"li",on:{click:function(i){return i.stopPropagation(),t.gotoGoods(e.activity_id,e.goods_id)}}},[i("div",{staticClass:"img-box"},[i("img",{attrs:{src:e.thumb,alt:""}})]),i("div",{staticClass:"goods-info"},[i("div",{staticClass:"title"},[t._v(t._s(e.goods_name))]),i("div",{staticClass:"m-prices"},[t._v("原价:"+t._s(t.$i18n.t("money"))+t._s(e.market_price))]),i("div",{staticClass:"prices"},[i("div",{staticClass:"small"},[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(e.price)+" ")])]),e.transport_reward>0?i("div",{staticClass:"other-info"},[i("div",{staticClass:"other-info-box"},[i("div",[t._v(t._s(e.limit_num)+"人拼团1人拼中")]),i("div",[t._v("未拼中得"+t._s(e.transport_reward)+"红包")])])]):t._e()])})),0):t._e(),t.dataList[a]?[i("yz-blank",{attrs:{datas:t.dataList[a].list,text:"该分类暂无活动信息",isBtn:!1}})]:t._e()],2)],1)})),1)],1),i("div",{staticClass:"float-btn"},[i("i",{staticClass:"iconfont icon-qt_button_groupbbuy",on:{click:function(e){return e.stopPropagation(),t.gotoMy()}}})]),i("van-popup",{staticClass:"text-popup",style:{height:"50%",width:"80%"},attrs:{closeable:"",round:""},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("h2",[t._v("活动规则")]),t.fun.isTextEmpty(t.explain)?i("p",[t._v("暂无活动说明")]):i("p",{domProps:{innerHTML:t._s(t.explain)}})])],1)},o=[],n=(i("e7e5"),i("d399")),r=(i("99af"),i("d3b7"),i("159b"),i("6968")),s=i("ac0d"),l=i("eb17"),c={mixins:[s["a"]],data:function(){return{show:!1,explain:null,clientWidth:document.body.clientWidth,Banner:[],serch_title:"",activeName:0,dataList:[],titleArr:[{id:0,name:"全部"}],isLoadMore:!0,isLoading:!1,isquest:!1}},activated:function(){this.init(),this.getData(!0)},components:{cTitle:r["a"],yzBlank:l["default"]},computed:{},methods:{init:function(){this.isquest=!1,this.isLoading=!1,this.serch_title="",this.dataList=[],this.isLoadMore=!0},handleClick:function(){this.getData(!1)},onRefresh:function(){this.dataList[this.activeName].list=[],this.getData(!1)},gotoLink:function(t){t&&(window.location.href=t)},getData:function(t){var e=this;$http.post("plugin.snatch-regiment.api.index.getSnatchData",{art:"index",title:this.serch_title||0,cate_id:this.titleArr[this.activeName]?this.titleArr[this.activeName].id:0},"").then((function(i){e.isquest=!0,1===i.result?(e.isLoading=!1,t&&(e.Banner=i.data.index.slide,e.titleArr=e.titleArr.concat(i.data.index.category),e.explain=i.data.index.explain,e.titleArr.forEach((function(t,i){e.dataList.push({isLoadMore:!0,page:1,total_page:0,list:[]})}))),e.setListData(i.data.index.goods),e.fun.wxShare("",{mid:e.fun.getKeyByMid(),goods_id:e.goods_id},{})):Object(n["a"])(i.msg)})).catch((function(t){}))},setListData:function(t){var e=this;this.fun.isTextEmpty(this.dataList[e.activeName].list)?(e.isLoadMore=!0,e.$set(this.dataList[e.activeName],"isLoadMore",!0),e.$set(this.dataList[e.activeName],"total_page",t.last_page),this.dataList[e.activeName].total_page||(e.$set(this.dataList[e.activeName],"total_page",0),this.dataList[e.activeName].total_page=0),e.$set(this.dataList[e.activeName],"list",t.data)):e.isLoadMore=this.dataList[e.activeName].isLoadMore},getMoreData:function(){var t=this;if(!this.fun.isTextEmpty(this.dataList[t.activeName])&&(t.dataList[t.activeName].isLoadMore=!1,t.isLoadMore=!1,!(t.dataList[t.activeName].page>=t.dataList[t.activeName].total_page))){var e={art:"index",title:this.serch_title||0,cate_id:this.titleArr[this.activeName].id};t.dataList[t.activeName].page=t.dataList[t.activeName].page+1,e.page=t.dataList[t.activeName].page,$http.get("plugin.snatch-regiment.api.index.getSnatchData",e,"").then((function(e){if(t.isLoadMore=!0,t.dataList[t.activeName].isLoadMore=!0,1===e.result){var i=e.data.index.goods.data;t.dataList[t.activeName].list=t.dataList[t.activeName].list.concat(i)}else t.dataList[t.activeName].page=t.dataList[t.activeName].page-1,t.dataList[t.activeName].isLoadMore=!1,t.isLoadMore=!1}),(function(t){}))}},gotoGoods:function(t,e){this.$router.push(this.fun.getUrl("grab_group",{id:e}))},gotoMy:function(){this.$router.push(this.fun.getUrl("grab_group_my",{}))},getShare:function(t){var e=this;$http.get("plugin.snatch-regiment.api.index.getSnatchData",{art:"getShare"}).then((function(i){1===i.result?e.share(i.data.getShare,t):Object(n["a"])(i.msg)}),(function(t){}))},initShare:function(){var t=this,e={url:"android"===this.fun.isIosOrAndroid()?window.location.href:window.initUrl,mid:this.fun.getKeyByMid(),goods_id:this.goods_id};$http.post("member.member.wxJsSdkConfig",e).then((function(e){1===e.result&&e.data.config&&t.getShare(e.data)}),(function(t){}))},share:function(t,e){var i=this;wx.config(e.config);var a=document.location.href;a=i.fun.isMid(a,e.info.uid);var o,r,s=null;try{o=this.fun.isTextEmpty(t.share_title)?"":t.share_title}catch(l){o="分享"}try{r=this.fun.isTextEmpty(t.share_img)?"":t.share_img}catch(l){r=""}try{s=this.fun.isTextEmpty(t.share_describe)?"":t.share_describe}catch(l){s=""}wx.ready((function(){wx.showOptionMenu(),wx.onMenuShareTimeline({title:o,link:a,imgUrl:r,success:function(){Object(n["a"])("分享成功")},cancel:function(){Object(n["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:o,desc:s,link:a,imgUrl:r,success:function(){Object(n["a"])("分享成功")},cancel:function(){Object(n["a"])("取消分享")}})}))}}},d=c,f=(i("218d4"),i("2877")),h=Object(f["a"])(d,a,o,!1,null,"fcf81722",null);e["default"]=h.exports},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},aa2b:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'#grab_group_home[data-v-fcf81722]{padding:40px 0;padding-top:0;background:#fff}#grab_group_home .top-search[data-v-fcf81722]{padding:0 1rem;margin:.625rem 0;height:1.875rem;line-height:1.875rem;text-align:center}#grab_group_home .top-search[data-v-fcf81722],#grab_group_home .top-search .search-box[data-v-fcf81722]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#grab_group_home .top-search .search-box[data-v-fcf81722]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f7f8fa;border-radius:1rem}#grab_group_home .top-search .search-box input[data-v-fcf81722]{padding-left:1rem;text-align:left;border:none;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#grab_group_home .top-search .search-box .search-btn[data-v-fcf81722]{width:3.75rem;background-image:-webkit-gradient(linear,right top,left top,from(#ff4946),to(#ff8a66)),-webkit-gradient(linear,left top,left bottom,from(#ff2c29),to(#ff2c29));background-image:-webkit-linear-gradient(right,#ff4946,#ff8a66),-webkit-linear-gradient(#ff2c29,#ff2c29);background-image:linear-gradient(270deg,#ff4946,#ff8a66),linear-gradient(#ff2c29,#ff2c29);background-blend-mode:normal,normal;border-radius:.953rem;color:#fff}#grab_group_home .top-search .text[data-v-fcf81722]{font-size:.75rem;color:#636363;margin-left:.5rem}#grab_group_home .list-box .content[data-v-fcf81722]{width:100%;padding:.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-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#grab_group_home .list-box .content .li[data-v-fcf81722]{width:48%;border:1px solid #e2e2e2;background-color:#fff;border-radius:.5rem;overflow:hidden;margin-bottom:.625rem}#grab_group_home .list-box .content .li .img-box[data-v-fcf81722]{width:100%;padding-bottom:100%;height:0;position:relative}#grab_group_home .list-box .content .li .img-box img[data-v-fcf81722]{width:100%;height:100%;max-height:50vh;position:absolute;left:0}#grab_group_home .list-box .content .li .goods-info[data-v-fcf81722]{padding:.625rem;width:100%;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;text-align:left;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#grab_group_home .list-box .content .li .goods-info .title[data-v-fcf81722]{height:2.25rem;line-height:1.125rem;text-align:left;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#grab_group_home .list-box .content .li .goods-info .prices[data-v-fcf81722]{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;font-size:1rem;color:#f94c3b}#grab_group_home .list-box .content .li .goods-info .prices .small[data-v-fcf81722]{font-size:.75rem}#grab_group_home .list-box .content .li .goods-info .m-prices[data-v-fcf81722]{font-size:.75rem;margin:.25rem 0;color:#999;text-decoration:line-through}#grab_group_home .list-box .content .li .other-info[data-v-fcf81722]{padding:0 .5rem .5rem}#grab_group_home .list-box .content .li .other-info .other-info-box[data-v-fcf81722]{position:relative;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:100%;height:2.5rem;padding:0 .8rem;color:#fff;font-size:.75rem;background-color:#ff4848;border-radius:.5rem}#grab_group_home .list-box .content .li .other-info .other-info-box[data-v-fcf81722]:before{left:0;border-radius:0 .5rem .5rem 0}#grab_group_home .list-box .content .li .other-info .other-info-box[data-v-fcf81722]:after,#grab_group_home .list-box .content .li .other-info .other-info-box[data-v-fcf81722]:before{content:"";position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:block;width:.25rem;height:.5rem;background:#fff}#grab_group_home .list-box .content .li .other-info .other-info-box[data-v-fcf81722]:after{right:0;border-radius:.5rem 0 0 .5rem}#grab_group_home .float-btn[data-v-fcf81722]{position:fixed;bottom:6rem;right:50%;-webkit-transform:translateX(10rem);transform:translateX(10rem);width:3.25rem;height:3.25rem;line-height:3.25rem;z-index:99999;color:#fff;border-radius:100%;background-image:-webkit-gradient(linear,left bottom,left top,from(#fc9f88),to(#fe6159)),-webkit-gradient(linear,left top,left bottom,from(#ededed),to(#ededed));background-image:-webkit-linear-gradient(bottom,#fc9f88,#fe6159),-webkit-linear-gradient(#ededed,#ededed);background-image:linear-gradient(0deg,#fc9f88,#fe6159),linear-gradient(#ededed,#ededed);background-blend-mode:normal,normal;-webkit-box-shadow:0 .125rem .406rem 0 rgba(255,64,60,.35);box-shadow:0 .125rem .406rem 0 rgba(255,64,60,.35)}#grab_group_home .float-btn i[data-v-fcf81722]{font-size:1.5rem}#grab_group_home .text-popup[data-v-fcf81722]{padding:0 .875rem .875rem}#grab_group_home .text-popup h2[data-v-fcf81722]{height:3.5rem;line-height:3.5rem}#grab_group_home .text-popup p[data-v-fcf81722]{line-height:1.5rem;font-size:.75rem;color:#303030}',""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,o=document.body,n={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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}}}]);