bztang-admin/addons/yun_shop/static/app/js/chunk-729d6b16.83f8a7cb.js

1 line
7.4 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-729d6b16","chunk-2d0d83d6"],{3597:function(t,e,o){"use strict";o("4d71")},"4d71":function(t,e,o){var i=o("dfd3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("499e").default;n("2b219dbd",i,!0,{sourceMap:!1,shadowMode:!1})},"79db":function(t,e,o){t.exports=o.p+"static/app/img/empty-image-search.ef236a93.png"},ac0d:function(t,e,o){"use strict";o.d(e,"a",(function(){return a}));var i=document.documentElement,n=document.body,a={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:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}},c34f:function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"group_list"}},[o("c-title",{attrs:{hide:!1,text:"拼购列表"}}),o("div",{staticClass:"content"},[t._l(t.info,(function(e,i){return o("div",{key:i,staticClass:"goods_box"},[o("div",{staticClass:"goods_img"},[o("img",{attrs:{src:e.thumb}})]),o("ul",{staticClass:"goods_info"},[o("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(e.title)+" ")]),o("li",{staticClass:"left"},[t._e()],2),o("li",{staticClass:"number"},[o("div",{staticClass:"price"},[o("span",[t._v(t._s(t.$i18n.t("money"))+t._s(e.market_price))]),o("span",[o("em",{staticStyle:{"font-size":"0.75rem"}},[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(e.price))])]),o("div",{staticClass:"go_group",on:{click:function(o){return t.goGroup(e.activity_id,e.goods_id)}}},[o("span",[t._v("去拼购")])])])])])})),o("yz-blank",{attrs:{datas:t.info,text:"暂无拼购活动",isBtn:!0,btnText:"返回首页",tolink:"home"}})],2)],1)},n=[],a=(o("e7e5"),o("d399")),s=(o("99af"),o("6968")),r=o("ac0d"),l=o("eb17"),c={mixins:[r["a"]],data:function(){return{info:{},shareInfo:{},page:1,isLoadMore:!0,total_page:0}},activated:function(){this.init(),this.getData()},methods:{init:function(){this.info={},this.shareInfo={},this.isLoadMore=!0,this.total_page=0,this.page=1},getData:function(){var t=this;$http.get("plugin.together-purchase.api.index.getTogetherData",{art:"polymerization"},"加载中").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.polymerization.last_page,t.total_page||(t.total_page=0),t.info=e.data.polymerization.data,t.getShare()):Object(a["a"])(e.msg)}),(function(t){}))},getShare:function(){var t=this;$http.get("plugin.together-purchase.api.index.getTogetherData",{art:"getShare"}).then((function(e){1===e.result?t.share(e.data.getShare):Object(a["a"])(e.msg)}),(function(t){}))},share:function(t){var e=document.location.href,o=this.fun.isTextEmpty(t.share_title)?"":t.share_title,i=this.fun.isTextEmpty(t.share_img)?"":t.share_img,n=this.fun.isTextEmpty(t.share_describe)?"":t.share_describe;wx.ready((function(){wx.showOptionMenu(),wx.onMenuShareTimeline({title:o,link:e,imgUrl:i,success:function(){Object(a["a"])("分享成功")},cancel:function(){Object(a["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:o,desc:n,link:e,imgUrl:i,success:function(){Object(a["a"])("分享成功")},cancel:function(){Object(a["a"])("取消分享")}})}))},goGroup:function(t,e){this.$router.push(this.fun.getUrl("groupBuy",{aid:t,id:e}))},getMoreData:function(){this.isLoadMore=!1;var t=this;t.page>=t.total_page||(t.page+=1,$http.get("plugin.together-purchase.api.index.getTogetherData",{page:t.page,art:"polymerization"},"加载中").then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var o=e.data.polymerization.data;t.info=t.info.concat(o)})).catch((function(t){})))}},components:{cTitle:s["a"],yzBlank:l["default"]}},d=c,g=(o("3597"),o("2877")),f=Object(g["a"])(d,i,n,!1,null,"70e22eb3",null);e["default"]=f.exports},dfd3:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,"#group_list .content[data-v-70e22eb3]{padding-bottom:60px}#group_list .content .goods_box[data-v-70e22eb3]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:.75rem;padding:.5rem;background:#fff;border-radius:.375rem;overflow:hidden}#group_list .content .goods_box .goods_img[data-v-70e22eb3]{width:7.5rem;height:7.5rem;overflow:hidden;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;border-radius:.25rem;margin-right:.625rem}#group_list .content .goods_box .goods_img img[data-v-70e22eb3]{width:100%}#group_list .content .goods_box .goods_info[data-v-70e22eb3]{width:14.0625rem;text-align:left}#group_list .content .goods_box .goods_info .name[data-v-70e22eb3]{font-size:14px;line-height:1.25rem;height:2.5rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#000}#group_list .content .goods_box .goods_info .price[data-v-70e22eb3]{font-size:16px;color:#ff2c29;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;margin-top:-.5rem}#group_list .content .goods_box .goods_info .price span[data-v-70e22eb3]{font-size:1rem}#group_list .content .goods_box .goods_info .price span[data-v-70e22eb3]:first-child{color:#999;font-size:.75rem;text-decoration:line-through}#group_list .content .goods_box .goods_info .left[data-v-70e22eb3]{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;height:1.5rem}#group_list .content .goods_box .goods_info .left .iconfont[data-v-70e22eb3]{font-size:1rem;color:#ff2c29;margin-right:.375rem}#group_list .content .goods_box .goods_info .left span[data-v-70e22eb3]{color:#ff2c29;font-size:.75rem;border-left:.0625rem solid #ebebeb;padding-left:.375rem}#group_list .content .goods_box .goods_info .number[data-v-70e22eb3]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:1.625rem}#group_list .content .goods_box .goods_info .number[data-v-70e22eb3],#group_list .content .goods_box .goods_info .number .go_group[data-v-70e22eb3]{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}#group_list .content .goods_box .goods_info .number .go_group[data-v-70e22eb3]{width:4.75rem;height:1.5rem;line-height:1.5rem;border-radius:1rem;background:#ff2c29;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}#group_list .content .goods_box .goods_info .number .go_group span[data-v-70e22eb3]{color:#fff;font-size:.75rem}#group_list .content .goods_box .goods_info .number .go_group .fa[data-v-70e22eb3]{color:#fff;font-size:1rem;margin-left:.625rem}",""]),t.exports=e}}]);