bztang-admin/addons/yun_shop/static/app/js/chunk-9a62ad78.03d4fdf1.js

1 line
5.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9a62ad78"],{"457d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"choose_cycle"}},[a("c-title",{attrs:{hide:!1,text:"选择周期"}}),a("div",{attrs:{id:"content"}},[a("div",{staticClass:"header"},[a("div",{staticClass:"user"},[a("img",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.thumb?e.thumb:i("b17d")}})]),a("ul",{staticClass:"name"},[a("li",[e._v(e._s(e.nickname))]),a("li",[e._v("等级名称:"+e._s(e.level_name))])])]),e.isOpen?a("div",{staticClass:"time"},[a("i",{staticClass:"iconfont icon-naozhong"}),a("span",[e._v(e._s(e.date)+"到期,购买后有效期将顺延")])]):e._e(),a("div",{staticClass:"meal"},[a("h1",[e._v("会员套餐")]),a("ul",{staticClass:"meal_list"},e._l(e.priceArr,(function(t,i){return a("li",{key:i,class:{current:i==e.currentIndex},on:{click:function(a){return e.toggle(i,t)}}},[a("span",[a("i",{staticClass:"iconfont icon-submit"}),e._e(),e._v(e._s(t.time)+"天")]),a("span",[t.market_price!=t.price?a("font",[e._v(e._s(t.market_price)+e._s(e.$i18n.t("元")))]):e._e(),e._v(e._s(t.price)+e._s(e.$i18n.t("元")))],1)])})),0)]),a("div",{staticClass:"btn"},[a("button",{attrs:{type:"button"},on:{click:function(t){return e.open()}}},[e._v(e._s(e.isOpen?"立即续费":"立即开通"))])])])],1)},c=[],n=i("6968"),o="plugin.universal-card.api.home.get-goods",s={data:function(){return{nickname:"",thumb:"",level_name:"",priceArr:[],isOpen:!1,currentIndex:0,option_id:0,goods_id:0,date:""}},activated:function(){this.initData(),this.getData()},mounted:function(){},methods:{initData:function(){this.nickname="",this.thumb="",this.level_name="",this.priceArr=[],this.isOpen=!1,this.currentIndex=0,this.option_id=0,this.goods_id=0},getData:function(){var e=this,t={goods_id:this.$route.params.goods_id,level_id:this.$route.params.level_id};$http.get(o,t,"加载中").then((function(t){1==t.result&&(e.isOpen=!e.fun.isTextEmpty(t.data.expire_date),e.nickname=t.data.nickname,e.thumb=t.data.thumb,e.level_name=t.data.level_name,e.priceArr=t.data.level_date,e.goods_id=t.data.goods_id,e.option_id=t.data.level_date?t.data.level_date[0].option_id:"",e.date=t.data.expire_date)})).catch((function(e){}))},toggle:function(e,t){this.option_id=0,this.currentIndex=e,this.option_id=t.option_id},open:function(){this.$router.push(this.fun.getUrl("goodsorder",{},{tag:"-2",goodsId:this.goods_id,optionsId:this.option_id,total:1}))}},components:{cTitle:n["a"]}},d=s,l=d,r=(i("5447"),i("2877")),h=Object(r["a"])(l,a,c,!1,null,"b8cd65ac",null);t["default"]=h.exports},5447:function(e,t,i){"use strict";i("f2e7")},b17d:function(e,t,i){e.exports=i.p+"static/app/img/photo-mr.5cc2c462.jpg"},c803:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,"#choose_cycle #content .header[data-v-b8cd65ac]{background:#3b3b4f;padding:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#choose_cycle #content .header .user[data-v-b8cd65ac]{width:3.75rem;height:3.75rem;border-radius:1.875rem;border:.125rem solid #fff;overflow:hidden}#choose_cycle #content .header .user img[data-v-b8cd65ac]{width:100%}#choose_cycle #content .header .name[data-v-b8cd65ac]{text-align:left;color:#fff;margin-left:.625rem}#choose_cycle #content .header .name li[data-v-b8cd65ac]:first-child{line-height:1.875rem;font-size:18px;font-weight:700;max-width:15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#choose_cycle #content .header .name li[data-v-b8cd65ac]:last-child{font-size:14px;line-height:1.875rem}#choose_cycle #content .time[data-v-b8cd65ac]{height:2.25rem;line-height:2.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:left;padding:0 1.25rem;background:rgba(59,59,79,.8);color:#f5d59c;font-size:14px}#choose_cycle #content .time i[data-v-b8cd65ac]{font-size:1.125rem;color:#f5d59c;line-height:2.25rem;margin-right:.625rem}#choose_cycle #content .meal[data-v-b8cd65ac]{background:#fff}#choose_cycle #content .meal h1[data-v-b8cd65ac]{line-height:3.125rem;font-size:18px;padding:0 .875rem;text-align:left}#choose_cycle #content .meal .meal_list[data-v-b8cd65ac]{padding:.625rem .875rem}#choose_cycle #content .meal .meal_list li[data-v-b8cd65ac]{line-height:2.5rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .625rem;font-size:16px;margin:.375rem 0}#choose_cycle #content .meal .meal_list li[data-v-b8cd65ac],#choose_cycle #content .meal .meal_list li span[data-v-b8cd65ac]:first-child{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#choose_cycle #content .meal .meal_list li span:first-child i[data-v-b8cd65ac]{font-size:1.5rem;color:#ccc;line-height:2.5rem;margin-right:.625rem}#choose_cycle #content .meal .meal_list li span:last-child font[data-v-b8cd65ac]{text-decoration:line-through;color:#8c8c8c;margin-right:.625rem}#choose_cycle #content .meal .meal_list .current[data-v-b8cd65ac]{background:rgba(218,172,94,.1);border-radius:.1875rem}#choose_cycle #content .meal .meal_list .current span:first-child i[data-v-b8cd65ac]{color:#333}#choose_cycle #content .btn[data-v-b8cd65ac]{margin-top:1.25rem}#choose_cycle #content .btn button[data-v-b8cd65ac]{width:18.75rem;height:2.625rem;border-radius:.375rem;background:#3b3b4f;color:#fff;font-size:18px;border:none}",""]),e.exports=t},f2e7:function(e,t,i){var a=i("c803");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var c=i("499e").default;c("d7dc0b72",a,!0,{sourceMap:!1,shadowMode:!1})}}]);