bztang-admin/addons/yun_shop/static/app/js/chunk-514394a8.ef04a7b1.js

1 line
9.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-514394a8"],{5562: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:"cpxindex"}},[o("div",{staticClass:"headTop set-pc-styleLeft"},[o("div",{staticClass:"left"},[o("div",{staticClass:"img"},[o("img",{attrs:{src:t.info.shop_logo,alt:""}})]),o("div",[t._v(t._s(t.info.shop_name))])]),o("a",{staticClass:"loadbtn",attrs:{href:t.info.download_url}},[t._v("APP下载")])]),o("div",{staticStyle:{width:"100%",height:"2.78rem"}}),o("div",{staticClass:"shoplist"},[o("div",{staticClass:"shopimg"},[t.info.images?o("van-swipe",{staticClass:"my-swipe",attrs:{"show-indicators":!1}},t._l(t.info.images,(function(t,e){return o("van-swipe-item",{key:e},[o("img",{attrs:{src:t,alt:""}})])})),1):t._e()],1),o("div",{staticClass:"conten_bottom"},[o("div",{staticClass:"conten_bottom_one"},[o("div",{staticClass:"conten_bottom_left"},[t._v(t._s(t.info.title))]),o("div",{staticClass:"coupon"},[o("div",{staticClass:"coupon_o"},[t._v("¥"+t._s(t.info.coupon_money))]),o("div",{staticClass:"line"}),o("div",{staticClass:"coupon_t"},[t._v("券")])])]),o("div",{staticClass:"price"},[o("div",{staticClass:"first_money"},[o("span",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(t.info.discount_price)+" ")]),o("div",{staticClass:"lose_money"},[t._v(t._s(t.$i18n.t("money"))+t._s(t.info.price))])])]),o("div",{staticClass:"gopayBtn",on:{click:t.playBtn}},[t._v("去购买")])]),o("van-popup",{style:{height:"17.6rem"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[o("div",[o("div",{staticClass:"popBox"},[o("div",{staticClass:"txt"},[t._v(t._s(t.info.tkl))]),o("div",{staticClass:"title"},[t._v("复制文字-在某宝中打开")]),o("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.info.tkl,expression:"info.tkl",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}],staticClass:"copyBtn"},[t._v(" 复制 ")]),o("div",{staticClass:"lineS"})]),o("div",{staticClass:"lineT"}),o("i",{staticClass:"iconfont icon-adsystem_icon_cancle newicon",on:{click:function(e){return e.stopPropagation(),t.closeGb.apply(null,arguments)}}})])])],1)},n=[],a=(o("e7e5"),o("d399")),s=o("ac0d"),r={mixins:[s["a"]],data:function(){return{show:!1,item_id:"",platform_id:"",info:[]}},mounted:function(){},methods:{playBtn:function(){1==this.platform_id?this.show=!0:window.location.href=this.info.click_url},closeGb:function(){this.show=!1},onCopy:function(t){Object(a["a"])({message:"复制成功",duration:1e3})},onError:function(t){Object(a["a"])({message:"复制失败",duration:1e3})},getdata:function(){var t=this,e=this;$http.get("plugin.aggregation-cps.api.goods",{item_id:this.item_id,platform_id:this.platform_id},"").then((function(o){1==o.result?(t.info=o.data,t.fun.setWXTitle(e.info.shop_name)):Object(a["a"])(o.msg)}),(function(t){Object(a["a"])(t)})).catch((function(t){}))}},activated:function(){this.item_id=this.$route.query.item_id,this.platform_id=this.$route.query.platform_id,this.getdata()},components:{}},d=r,c=(o("81a2"),o("2877")),l=Object(c["a"])(d,i,n,!1,null,"30496de0",null);e["default"]=l.exports},"81a2":function(t,e,o){"use strict";o("a7a4")},a7a4:function(t,e,o){var i=o("f7813");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("499e").default;n("3dfa5d86",i,!0,{sourceMap:!1,shadowMode:!1})},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(){}}}},f7813:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'#cpxindex .van-popup[data-v-30496de0]{background:transparent!important}#cpxindex .lineS[data-v-30496de0]{position:absolute;width:.13rem;height:1.6rem;left:9.7rem;bottom:-1.65rem;background:#fff}#cpxindex .lineT[data-v-30496de0]{height:1.38rem;width:100%}#cpxindex .newicon[data-v-30496de0]{color:#fff;font-size:1.66rem}#cpxindex .popBox[data-v-30496de0]{width:19.56rem;height:14.22rem;background:#fff;border-radius:.63rem;position:relative;padding:2.53rem 0 1.97rem 0}#cpxindex .popBox .txt[data-v-30496de0]{width:11.56rem;height:2.19rem;background-color:#d5d5d5;margin:0 auto;margin-bottom:1.09rem;background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(.25,#033),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,#033),color-stop(.75,#033),color-stop(.75,transparent),to(transparent));background-size:20px 20px;text-align:center;font-size:19px;line-height:2.19rem}#cpxindex .popBox .title[data-v-30496de0]{margin-bottom:2.63rem;font-size:1rem}#cpxindex .popBox .copyBtn[data-v-30496de0]{width:12.63rem;height:2.81rem;background-color:#f14e4e;border-radius:1.41rem;margin:0 auto;text-align:center;line-height:2.81rem;color:#fff}#cpxindex .shoplist[data-v-30496de0]{background:#fff;margin-top:.34rem;overflow:hidden;padding-bottom:2.6rem}#cpxindex .shoplist .gopayBtn[data-v-30496de0]{width:19.47rem;height:2.84rem;background-color:#f14e4e;border-radius:1.42rem;margin:0 auto;text-align:center;color:#fff;line-height:2.84rem;font-size:1.13rem}#cpxindex .shoplist .conten_bottom[data-v-30496de0]{padding:0 .94rem;padding-top:1.34rem}#cpxindex .shoplist .conten_bottom .price[data-v-30496de0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#cpxindex .shoplist .conten_bottom .price .first_money[data-v-30496de0]{color:#f14e4e;font-size:1.75rem}#cpxindex .shoplist .conten_bottom .price .first_money span[data-v-30496de0]{font-size:.81rem}#cpxindex .shoplist .conten_bottom .price .lose_money[data-v-30496de0]{text-decoration:line-through;color:silver;font-size:1rem;line-height:3rem;margin-left:1.03rem}#cpxindex .shoplist .conten_bottom .conten_bottom_one[data-v-30496de0]{width:100%;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}#cpxindex .shoplist .conten_bottom .conten_bottom_one .coupon[data-v-30496de0]:before{content:"";background:#fff;width:.62rem;height:.3rem;position:absolute;top:.8rem;left:-.31rem;border-radius:50%}#cpxindex .shoplist .conten_bottom .conten_bottom_one .coupon[data-v-30496de0]:after{content:"";background:#fff;width:.62rem;height:.3rem;position:absolute;top:.8rem;right:-.31rem;border-radius:50%}#cpxindex .shoplist .conten_bottom .conten_bottom_one .coupon[data-v-30496de0]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:#f14e4e;height:1.91rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-radius:.25rem;position:relative;max-width:30%;min-width:4.78rem}#cpxindex .shoplist .conten_bottom .conten_bottom_one .coupon .coupon_o[data-v-30496de0]{font-size:.81rem;color:#fff;margin-left:.69rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#cpxindex .shoplist .conten_bottom .conten_bottom_one .coupon .line[data-v-30496de0]{width:1px;border:1px dashed #fff;height:100%;margin-left:.56rem}#cpxindex .shoplist .conten_bottom .conten_bottom_one .coupon .coupon_t[data-v-30496de0]{font-size:.81rem;color:#fff;margin-left:.34rem;margin-right:.55rem}#cpxindex .shoplist .conten_bottom .conten_bottom_one .conten_bottom_left[data-v-30496de0]{font-size:1rem;width:13.25rem;line-height:1.5rem;text-align:left;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#cpxindex .shoplist .shopimg[data-v-30496de0]{width:23.44rem;height:23.44rem;background:#c9c9c9}#cpxindex .shoplist .shopimg img[data-v-30496de0]{width:100%;height:100%}#cpxindex .headTop[data-v-30496de0]{width:100%;height:2.78rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .94rem 0 .91rem;position:fixed;top:0;left:0;background:#f6f6f6;z-index:999}#cpxindex .headTop[data-v-30496de0],#cpxindex .headTop .left[data-v-30496de0]{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}#cpxindex .headTop .left .img[data-v-30496de0]{width:2.19rem;height:2.19rem;background-color:#fff;border-radius:50%;margin-right:.5rem}#cpxindex .headTop .left .img img[data-v-30496de0]{width:100%;height:100%;border-radius:50%}#cpxindex .headTop .loadbtn[data-v-30496de0]{padding:.44rem .69rem .47rem .75rem;background-color:#f14e4e;border-radius:1rem;font-size:.81rem;color:#fff}',""]),t.exports=e}}]);