bztang-admin/addons/yun_shop/static/app/js/chunk-0d307458.ab5d62f3.js

1 line
4.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d307458"],{"0000":function(t,e,o){"use strict";o("4074")},4074:function(t,e,o){var i=o("569a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=o("499e").default;s("2e07bee5",i,!0,{sourceMap:!1,shadowMode:!1})},"4b29":function(t,e,o){t.exports=o.p+"static/app/img/energytank_blank@2x.98d5ecd8.png"},"569a":function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,"#right_good .noData[data-v-4c7bbffb]{padding:2rem;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-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#right_good .noData .noData_imgs[data-v-4c7bbffb]{width:100%;margin:0}#right_good .noData .text[data-v-4c7bbffb]{padding:3rem 0;color:#999;font-size:1rem}#right_good .goods_box[data-v-4c7bbffb]{background:#fff;padding:.625rem}#right_good .goods_box .goods[data-v-4c7bbffb]{border-radius:.25rem;border:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-bottom:.625rem}#right_good .goods_box .goods .goods_img[data-v-4c7bbffb]{width:7.5rem;height:7.5rem;background:#f2f2f2;border-radius:.25rem 0 0 .25rem;overflow:hidden}#right_good .goods_box .goods .goods_img img[data-v-4c7bbffb]{width:100%;height:100%}#right_good .goods_box .goods .name_price[data-v-4c7bbffb]{width:14.5625rem;padding:.625rem;position:relative}#right_good .goods_box .goods .name_price .name[data-v-4c7bbffb]{text-align:left;font-size:16px;line-height:1.5rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}#right_good .goods_box .goods .name_price .price[data-v-4c7bbffb]{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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute;bottom:.625rem;padding-right:1.25rem}#right_good .goods_box .goods .name_price .price .sum[data-v-4c7bbffb]{font-size:18px;color:#f15353}#right_good .goods_box .goods .name_price .price .sum font[data-v-4c7bbffb]{font-size:12px}#right_good .goods_box .goods .name_price .price .goods_btn[data-v-4c7bbffb]{background:#3b3b4f;font-size:12px;color:#fff;width:4.5rem;height:1.625rem;border-radius:2rem;border:none}#right_good .goods_box .goods[data-v-4c7bbffb]:last-child{margin:0}",""]),t.exports=e},d47d: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:"right_good"}},[o("c-title",{attrs:{hide:!1,text:"权益商品"}}),o("div",{staticClass:"goods_box"},[t._l(t.goodList,(function(e,i){return o("div",{directives:[{name:"show",rawName:"v-show",value:!t.fun.isTextEmpty(e.id),expression:"!fun.isTextEmpty(item.id)"}],key:i,staticClass:"goods"},[o("div",{staticClass:"goods_img"},[o("img",{attrs:{src:e.thumb}})]),o("ul",{staticClass:"name_price"},[o("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(e.title)+" ")]),o("li",{staticClass:"price"},[o("span",{staticClass:"sum"},[o("font",[t._v(t._s(t.$i18n.t("money")))]),t._v(t._s(e.price))],1),o("button",{staticClass:"goods_btn",attrs:{type:"button"},on:{click:function(o){return t.buy(e.id)}}},[t._v(" 立即购买 ")])])])])})),t.goodList.length<=0||t.fun.isTextEmpty(t.goodList[0].id)?[t._m(0)]:t._e()],2)],1)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"noData"},[i("img",{staticClass:"noData_imgs",attrs:{src:o("4b29"),alt:""}}),i("p",{staticClass:"text"},[t._v("暂无指定商品")])])}],a=o("6968"),d={data:function(){return{goodList:[]}},activated:function(){this.level_id=this.$route.params.level_id,this.getGoodData()},methods:{getGoodData:function(){var t=this;$http.get("member.member-level.getLevelsGoods",{id:this.level_id}).then((function(e){1===e.result&&(t.goodList=e.data)})).catch((function(t){}))},buy:function(t){this.$router.push(this.fun.getUrl("goods",{id:t}))}},components:{cTitle:a["a"]}},n=d,r=n,b=(o("0000"),o("2877")),c=Object(b["a"])(r,i,s,!1,null,"4c7bbffb",null);e["default"]=c.exports}}]);