bztang-admin/addons/yun_shop/static/app/js/chunk-51a2ff32.a9db72ec.js

1 line
9.8 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51a2ff32","chunk-2d0d83d6"],{2684:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"course"}},[o("c-title",{attrs:{hide:!1,text:"会员升级"}}),o("div",{staticClass:"content"},[o("div",{staticClass:"top"},[o("div",{staticClass:"left"},[o("img",{attrs:{src:t.course_goods.goods_thumb}})]),o("div",{staticClass:"right"},[o("div",{staticClass:"title"},[o("div",[t._v(t._s(t.course_goods.goods_title))]),o("div",{staticClass:"num"},[t._v("共"+t._s(t.course_goods.course_chapter_num)+"节")])]),o("div",{staticClass:"teacher"},[t._v("讲师:"+t._s(t.course_goods.lecturer_name))])])]),o("div",{staticClass:"bottom"},[o("span",{staticClass:"tit"},[t._v("以下等级可以免费观看")]),2==t.level_type?t._l(t.level_data,(function(e,a){return o("div",{key:a,staticClass:"good-wrap"},[o("div",{staticClass:"good-item"},[o("div",{staticClass:"good-tit"},[t._v(t._s(e.level_name))]),t._l(e.goods,(function(e,a){return o("div",{key:a,staticClass:"good",on:{click:function(o){return t.gotoBuy(e.id)}}},[o("div",{staticClass:"img"},[o("img",{attrs:{src:e.thumb}})]),o("div",{staticClass:"bt"},[o("div",{staticClass:"head"},[t._v(t._s(e.title))]),o("div",{staticClass:"cash"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.price))])])])}))],2)])})):t._e(),2!=t.level_type?[o("div",{staticClass:"wrap"},t._l(t.level_data,(function(e,a){return o("div",{key:a,staticClass:"item"},[o("div",{staticClass:"level"},[t._v(t._s(e.level_name))]),o("div",{staticClass:"al"},[0==t.level_type||1==t.level_type?o("span",[t._v("订单")]):t._e(),3==t.level_type?o("span",[t._v("团队")]):t._e(),1==t.level_type?o("span",[t._v("数量")]):t._e(),0==t.level_type?o("span",[t._v("金额")]):t._e(),3==t.level_type?o("span",[t._v("业绩")]):t._e(),4==t.level_type?o("span",[t._v("余额充值一次性")]):t._e(),o("span",[t._v("满")])]),o("div",{staticClass:"amount"},[0==t.level_type?o("span",{staticClass:"num"},[t._v(t._s(e.order_money))]):t._e(),1==t.level_type?o("span",{staticClass:"num"},[t._v(t._s(e.order_count))]):t._e(),3==t.level_type?o("span",{staticClass:"num"},[t._v(t._s(e.team_performance))]):t._e(),4==t.level_type?o("span",{staticClass:"num"},[t._v(t._s(e.balance_recharge))]):t._e(),1==t.level_type?o("span",[t._v("个")]):t._e(),0==t.level_type||3==t.level_type?o("span",[t._v("元")]):t._e()]),4!=t.level_type?o("div",{staticClass:"yel"},[o("div",{staticClass:"first"},[t._v(" 您的"),0==t.level_type||1==t.level_type?o("span",[t._v("订单")]):t._e(),3==t.level_type?o("span",[t._v("团队")]):t._e(),1==t.level_type?o("span",[t._v("数量")]):t._e(),0==t.level_type?o("span",[t._v("金额")]):t._e(),3==t.level_type?o("span",[t._v("业绩")]):t._e(),t._v("还差 ")]),o("div",{staticClass:"second"},[0==t.level_type?o("span",{staticClass:"num"},[t._v(t._s(e.member_order_money))]):t._e(),1==t.level_type?o("span",{staticClass:"num"},[t._v(t._s(e.member_order_count))]):t._e(),3==t.level_type?o("span",{staticClass:"num"},[t._v(t._s(e.member_team_performance))]):t._e(),1==t.level_type?o("span",[t._v("个")]):t._e(),0==t.level_type||3==t.level_type?o("span",[t._v("元")]):t._e()])]):t._e(),4==t.level_type?o("div",{staticClass:"btn-recharge",on:{click:function(o){return o.stopPropagation(),t.toRecharge(e.balance_recharge)}}},[t._v(" 充值 ")]):t._e()])})),0),t.level_data.length>0?o("div",{staticClass:"toBuy",on:{click:t.goto}},[t._v("去购买")]):o("yz-blank",{attrs:{datas:t.level_data,text:"什么也没有"}})]:t._e()],2)])],1)},i=[],s=o("6968"),r=o("eb17"),n={data:function(){return{course_goods:{},level_data:[],level_type:""}},mounted:function(){},methods:{getMemberUpdate:function(){var t=this;$http.get("plugin.video-demand.api.watch-level.condition",{goods_id:this.$route.params.goods}).then((function(e){1==e.result?t.fun.isTextEmpty(e.data)||(t.course_goods=e.data.course_goods,t.level_data=e.data.level_data,t.level_type=e.data.level_type):t.$dialog.alert({message:e.msg})})).catch((function(t){}))},goto:function(){this.$router.push(this.fun.getUrl("home"))},gotoBuy:function(t){this.$router.push(this.fun.getUrl("goods",{id:t}))},toRecharge:function(t){this.$router.push(this.fun.getUrl("balance_recharge",{num:t}))}},activated:function(){this.course_goods={},this.level_data=[],this.level_type="",this.getMemberUpdate()},components:{cTitle:s["a"],yzBlank:r["default"]}},l=n,d=l,c=(o("9508"),o("2877")),p=Object(c["a"])(d,a,i,!1,null,"3a267272",null);e["default"]=p.exports},"5da9d":function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,"#course[data-v-3a267272]{padding:0 .75rem}#course .content .top[data-v-3a267272]{margin-top:.5rem;margin-bottom:1.125rem;padding:.625rem .375rem;background-color:#fff;-webkit-box-shadow:0 0 .4375rem 0 hsla(0,0%,76.1%,.31);box-shadow:0 0 .4375rem 0 hsla(0,0%,76.1%,.31)}#course .content .top[data-v-3a267272],#course .content .top .left[data-v-3a267272]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-radius:.3125rem}#course .content .top .left[data-v-3a267272]{width:6.3125rem;height:6.3125rem;-webkit-box-sizing:border-box;box-sizing:border-box}#course .content .top .left img[data-v-3a267272]{border-radius:.3125rem;width:100%;height:100%}#course .content .top .right[data-v-3a267272]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:1.25rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#course .content .top .right .title[data-v-3a267272]{color:#000;font-size:14px;text-align:left}#course .content .top .right .title .num[data-v-3a267272]{color:#999;font-size:14px;margin-top:.8rem;text-align:left}#course .content .top .right .teacher[data-v-3a267272]{color:#999;font-size:12px;text-align:left}#course .content .bottom[data-v-3a267272]{text-align:left}#course .content .bottom .tit[data-v-3a267272]{font-size:14px;color:#333}#course .content .bottom .wrap[data-v-3a267272]{margin-top:1.125rem;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#course .content .bottom .wrap .item[data-v-3a267272]{background-color:#fff;border-radius:.875rem;border:.0625rem solid #ccc;margin:0 2% .5rem 0;width:31%;padding-top:1.3125rem;padding-left:.25rem;padding-right:.25rem;padding-bottom:.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center}#course .content .bottom .wrap .item .level[data-v-3a267272]{color:#000;font-size:16px}#course .content .bottom .wrap .item .al[data-v-3a267272]{margin-top:1rem;font-size:12px}#course .content .bottom .wrap .item .amount[data-v-3a267272]{margin-top:.6875rem;color:#ff7200;font-size:12px}#course .content .bottom .wrap .item .amount .num[data-v-3a267272]{font-size:18px}#course .content .bottom .wrap .item .yel[data-v-3a267272]{margin-top:.5rem;width:6.125rem;height:2.75rem;background-color:#fffbf3;border-radius:5px;-webkit-box-sizing:border-box;box-sizing:border-box;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:12px;color:#ff7200;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#course .content .bottom .wrap .item .yel .first[data-v-3a267272]{color:#333}#course .content .bottom .wrap .item .btn-recharge[data-v-3a267272]{display:inline-block;color:#fff;margin-top:.5rem;padding:0 .8rem;background-color:#ff7200;border-radius:.5rem}#course .content .bottom .wrap .item[data-v-3a267272]:last-child{margin-right:0}#course .content .bottom .toBuy[data-v-3a267272]{width:16.9375rem;height:3rem;background-color:#ff8b00;border-radius:1.5rem;margin:0 auto;margin-top:2.5rem;font-size:18px;color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box}#course .content .bottom .good-wrap[data-v-3a267272]{margin-top:1.125rem;width:100%}#course .content .bottom .good-wrap .good-item[data-v-3a267272]{border-radius:.3125rem;padding:.75rem .25rem;background-color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}#course .content .bottom .good-wrap .good-item .good-tit[data-v-3a267272]{font-size:16px;color:#000}#course .content .bottom .good-wrap .good-item .good[data-v-3a267272]{margin-top:.75rem;display:inline-block;width:48%;margin-right:4%;-webkit-box-shadow:0 4px 4px 0 hsla(0,0%,52.2%,.1);box-shadow:0 4px 4px 0 hsla(0,0%,52.2%,.1);border-radius:.3125rem}#course .content .bottom .good-wrap .good-item .good .img[data-v-3a267272]{width:100%;height:10.25rem}#course .content .bottom .good-wrap .good-item .good .img img[data-v-3a267272]{width:100%;height:100%}#course .content .bottom .good-wrap .good-item .good .bt[data-v-3a267272]{background-color:#fff;border-radius:.3125rem}#course .content .bottom .good-wrap .good-item .good .bt .head[data-v-3a267272]{color:#000}#course .content .bottom .good-wrap .good-item .good .bt .cash[data-v-3a267272]{margin-top:.75rem;color:#e20606;font-size:12px}#course .content .bottom .good-wrap .good-item .good[data-v-3a267272]:nth-child(2n-1){margin-right:0}",""]),t.exports=e},"79db":function(t,e,o){t.exports=o.p+"static/app/img/empty-image-search.ef236a93.png"},9508:function(t,e,o){"use strict";o("d7f3")},d7f3:function(t,e,o){var a=o("5da9d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=o("499e").default;i("51f415b8",a,!0,{sourceMap:!1,shadowMode:!1})}}]);