bztang-admin/addons/yun_shop/static/app/js/chunk-9130eef4.e2d7109d.js

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9130eef4","chunk-2d0d83d6"],{2684:function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"course"}},[o("c-title",{attrs:{hide:!1,text:"会员升级"}}),o("div",{staticClass:"member"},[o("div",{staticClass:"header-avatar"},[o("img",{attrs:{src:e.member_info.avatar,alt:""}})]),o("div",{staticClass:"user-info"},[o("div",{staticClass:"user-name-box"},[e._v(e._s(e.member_info.nickname))]),o("div",{staticClass:"user-level"},[e._v(e._s(e.member_info.level_name))])])]),o("div",{staticClass:"content"},[o("div",{staticClass:"content-top-box"},[o("div",{staticClass:"center",staticStyle:{height:"0.9375rem","line-height":"0.9375rem"}},[o("div",{staticStyle:{"font-size":"0.9375rem","font-weight":"400"}},[e._v("会员尊享特权")]),o("div",{staticClass:"tips"},[e._v(""+e._s(e.level_name)+"可免费观看)")])]),o("div",{staticClass:"top"},[o("div",{staticClass:"left"},[o("img",{attrs:{src:e.course_goods.goods_thumb}})]),o("div",{staticClass:"right"},[o("div",{staticClass:"title"},[o("div",{staticClass:"fz-30 text-overflow"},[e._v(e._s(e.course_goods.goods_title))])]),o("div",{staticClass:"right-box"},[o("div",{staticClass:"teacher"},[o("img",{staticClass:"teacher-img",attrs:{src:e.course_goods.lecturer_avatar,alt:""}}),o("span",[e._v(e._s(e.course_goods.lecturer_name))])]),o("div",{staticClass:"num"},[e._v("共"+e._s(e.course_goods.course_chapter_num)+"节")])]),o("div",{staticClass:"right-price"},[o("span",{staticClass:"free"},[e._v(e._s(e.$i18n.t("money"))+"0.00")]),o("span",{staticStyle:{color:"#999","font-size":"0.75rem","text-decoration":"line-through"}},[e._v(e._s(e.$i18n.t("money"))+e._s(e.price))])])])])]),o("div",{staticClass:"bottom"},[2==e.level_type?[o("div",{staticClass:"levle-type-2"},[e._m(0),o("div",{staticStyle:{padding:"0 0.75rem .75rem"}},e._l(e.level_data,(function(t,i){return o("div",{key:i,staticClass:"good-wrap"},[o("div",{staticClass:"good-tit"},[e._v(e._s(t.level_name))]),e._l(t.goods,(function(t,i){return o("div",{key:i,staticClass:"good"},[o("div",{staticClass:"img"},[o("img",{attrs:{src:t.thumb}})]),o("div",{staticClass:"bt"},[o("div",{staticClass:"head"},[e._v(e._s(t.title))]),o("div",{staticClass:"center",staticStyle:{"justify-content":"space-between","align-items":"baseline"}},[o("div",{staticClass:"cash"},[o("span",{staticStyle:{"font-size":"0.6875rem","margin-right":"0.3125rem"}},[e._v(e._s(e.$i18n.t("money")))]),o("span",{staticStyle:{"font-size":"1.125rem"}},[e._v(e._s(t.price))])]),o("button",{on:{click:function(o){return e.gotoBuy(t.id)}}},[e._v("立即购买")])])])])}))],2)})),0)])]:e._e(),2!=e.level_type?[o("div",{staticClass:"level-type"},[o("div",{staticStyle:{"font-size":"0.9375rem",color:"#333",height:"0.9375rem","line-height":"0.9375rem"}},[e._v("会员套餐")]),o("div",{staticClass:"wrap"},e._l(e.level_data,(function(t,i){return o("div",{key:i,staticClass:"item",class:{current:e.current_index==i},on:{click:function(t){return e.choose(i)}}},[4!=e.level_type?[o("div",{staticClass:"card"},[o("div",{staticClass:"level"},[e._v(e._s(t.level_name))]),o("div",{staticClass:"amount"},[0==e.level_type?o("span",{staticClass:"num"},[e._v(e._s(t.order_money)+"元")]):e._e(),1==e.level_type?o("span",{staticClass:"num"},[e._v(e._s(t.order_count)+"个")]):e._e(),3==e.level_type?o("span",{staticClass:"num"},[e._v(e._s(t.team_performance)+"元")]):e._e()]),o("div",{staticClass:"al"},[0==e.level_type||1==e.level_type?o("span",[e._v("订单")]):e._e(),3==e.level_type?o("span",[e._v("团队")]):e._e(),1==e.level_type?o("span",[e._v("数量")]):e._e(),0==e.level_type?o("span",[e._v("金额")]):e._e(),3==e.level_type?o("span",[e._v("业绩")]):e._e(),o("span",[e._v("满")])])]),o("div",{staticClass:"yel"},[o("div",{staticClass:"first"},[0==e.level_type?o("span",[e._v("订单金额")]):e._e(),1==e.level_type?o("span",[e._v("订单数量")]):e._e(),3==e.level_type?o("span",[e._v("团队业绩")]):e._e(),e._v("还差 ")]),o("div",{staticClass:"second"},[0==e.level_type?o("span",[e._v(e._s(t.member_order_money.toFixed(2))+"元")]):e._e(),1==e.level_type?o("span",[e._v(e._s(t.member_order_count)+"个")]):e._e(),3==e.level_type?o("span",[e._v(e._s(t.member_team_performance.toFixed(2))+"元")]):e._e()])])]:o("div",{staticClass:"level-4"},[o("div",[o("div",{staticClass:"level"},[e._v(e._s(t.level_name))]),o("div",{staticClass:"balance-recharge"},[e._v(e._s(t.balance_recharge)+"元")])]),o("div",{staticClass:"btn-recharge",class:e.current_index==i?"heigh-light":"",on:{click:function(o){return o.stopPropagation(),e.toRecharge(t.balance_recharge)}}},[e._v(" 立即充值 ")])])],2)})),0)]),e.level_data.length>0&&4!==Number(e.level_type)?o("div",{class:3==e.fun.getPhoneEnv()?"pcStyle":"bottom-buy"},[o("div",{staticClass:"toBuy",on:{click:e.goto}},[e._v("立即购买")])]):o("yz-blank",{attrs:{datas:e.level_data,text:"什么也没有"}})]:e._e()],2)])],1)},a=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"center",staticStyle:{padding:"0.75rem","border-bottom":"1px solid #F7F8FB"}},[o("div",{staticStyle:{"font-size":"0.9375rem",color:"#333"}},[e._v("会员套餐")]),o("div",{staticClass:"tips"},[e._v("(购买指定商品成为会员)")])])}],r=(o("d3b7"),o("159b"),o("14d9"),o("6968")),s=o("eb17"),n={data:function(){return{course_goods:{},level_data:[],level_type:"",member_info:{},price:0,current_index:0}},computed:{level_name:function(){var e=this,t="";return this.level_data.forEach((function(o,i){i+1!==e.level_data.length?t+=o.level_name+"、":t+=o.level_name})),t}},methods:{choose:function(e){this.current_index=e},getMemberUpdate:function(){var e=this;$http.get("plugin.video-demand.api.watch-level.condition",{goods_id:this.$route.params.goods}).then((function(t){1==t.result?e.fun.isTextEmpty(t.data)||(e.course_goods=t.data.course_goods,e.level_data=t.data.level_data,e.level_type=t.data.level_type):e.$dialog.alert({message:t.msg})})).catch((function(e){}))},goto:function(){this.$router.push(this.fun.getUrl("home"))},gotoBuy:function(e){this.$router.push(this.fun.getUrl("goods",{id:e}))},toRecharge:function(e){this.$router.push(this.fun.getUrl("balance_recharge",{num:e}))},getMemberInfo:function(){var e=this;$http.get("member.member.member-data",{basic_info:1,v:2}).then((function(t){if(1!==t.result)return e.$toast(t.msg);var o=t.data.member_info;e.member_info=o}))},getGoods:function(){var e=this;$http.get("plugin.video-demand.api.video-course-goods.get-course-goods-detail",{goods_id:this.$route.params.goods}).then((function(t){if(1!==t.result)return e.$toast(t.msg);var o=t.data.has_one_goods;e.price=o.price}))}},activated:function(){this.course_goods={},this.level_data=[],this.level_type="",this.getMemberUpdate(),this.getMemberInfo(),this.getGoods()},components:{cTitle:r["a"],yzBlank:s["default"]}},c=n,d=c,l=(o("5fa2"),o("2877")),m=Object(l["a"])(d,i,a,!1,null,"0d8c4017",null);t["default"]=m.exports},"5fa2":function(e,t,o){"use strict";o("7a93")},"79db":function(e,t,o){e.exports=o.p+"static/app/img/empty-image-search.ef236a93.png"},"7a93":function(e,t,o){var i=o("ed3f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=o("499e").default;a("57bd5bf1",i,!0,{sourceMap:!1,shadowMode:!1})},ed3f:function(e,t,o){var i=o("24fb");t=i(!1),t.push([e.i,'[data-v-0d8c4017] .van-nav-bar__left .van-button--default{background-color:#fe5e56}[data-v-0d8c4017] .van-nav-bar .van-icon{color:#fff;font-weight:700;font-size:1.125rem}[data-v-0d8c4017] .van-nav-bar{background-color:#fe5e56;border-bottom:1px solid #fe5e56}[data-v-0d8c4017] .van-nav-bar__title{color:#fff;font-weight:400;font-size:1.125rem}#course[data-v-0d8c4017]{padding-bottom:.75rem}#course .text-overflow[data-v-0d8c4017]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#course .levle-type-2[data-v-0d8c4017]{background:#fff;border-radius:.625rem;overflow:hidden}#course .level-4[data-v-0d8c4017]{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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:100%;background:#f6fafd;padding-bottom:.75rem}#course .level-4 .balance-recharge[data-v-0d8c4017]{margin-top:.9375rem;font-size:1.125rem;color:#f15353}#course .card[data-v-0d8c4017]{background:#f6fafd;border-top-left-radius:.3125rem;border-top-right-radius:.3125rem}#course .current[data-v-0d8c4017]{border:1px solid #fe5e56!important}#course .current .card[data-v-0d8c4017],#course .current .level-4[data-v-0d8c4017]{background-color:#fff!important}#course .current .yel[data-v-0d8c4017]{background-color:#f15353}#course .current .first[data-v-0d8c4017],#course .current .second[data-v-0d8c4017]{color:#fff!important}#course .free[data-v-0d8c4017]{font-size:1.125rem;color:#f15353;margin-right:.5rem;font-weight:500}#course .right-price[data-v-0d8c4017]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-top:.4688rem;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end}#course .right-price[data-v-0d8c4017],#course .user-info[data-v-0d8c4017]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#course .user-info[data-v-0d8c4017]{-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;margin-left:.4063rem}#course .user-name-box[data-v-0d8c4017]{font-size:1rem;color:#fff;font-weight:700;text-align:left}#course .user-level[data-v-0d8c4017]{min-width:4rem;background:#fff;border-radius:.625rem;height:1.25rem;line-height:1.25rem;text-align:center;font-size:.6875rem;padding:0 .5rem;color:#fe5e56}#course .header-avatar[data-v-0d8c4017]{width:3.4375rem;height:3.4375rem;border-radius:100px;overflow:hidden}#course .header-avatar img[data-v-0d8c4017]{width:100%;height:100%}#course .member[data-v-0d8c4017]{padding:1.5rem .9375rem .75rem;background-color:#fe5e56;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#course .tips[data-v-0d8c4017]{font-size:.75rem;color:#999;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;white-space:nowrap;overflow-x:scroll;text-align:left}#course .tips[data-v-0d8c4017]::-webkit-scrollbar{display:none}#course .tit[data-v-0d8c4017]{font-size:.875rem;color:#333;margin-right:.4688rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#course .content-top-box[data-v-0d8c4017]{padding:.875rem .75rem .75rem;background:#fff;border-radius:.625rem;margin-bottom:.625rem;margin-top:.625rem}#course .center[data-v-0d8c4017]{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}#course .content[data-v-0d8c4017]{padding:0 .75rem}#course .content .fz-30[data-v-0d8c4017]{font-size:.9375rem}#course .content .top[data-v-0d8c4017]{margin-top:.75rem}#course .content .top[data-v-0d8c4017],#course .content .top .left[data-v-0d8c4017]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#course .content .top .left[data-v-0d8c4017]{width:6.3125rem;height:6.3125rem;border-radius:.3125rem;-webkit-box-sizing:border-box;box-sizing:border-box}#course .content .top .left img[data-v-0d8c4017]{border-radius:.3125rem;width:100%;height:100%}#course .content .top .right[data-v-0d8c4017]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.7813rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#course .content .top .right[data-v-0d8c4017],#course .content .top .right .right-box[data-v-0d8c4017]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#course .content .top .right .right-box[data-v-0d8c4017]{position:relative;-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;color:#4b6aa7;font-size:.75rem;margin-top:.5rem;padding:.125rem .75rem .125rem .375rem;z-index:2}#course .content .top .right .right-box[data-v-0d8c4017]:after{position:absolute;content:"";left:0;right:0;top:0;bottom:0;background:rgba(75,106,167,.05);border-radius:.125rem;z-index:1}#course .content .top .right .title[data-v-0d8c4017]{color:#000;font-size:14px;text-align:left}#course .content .top .right .teacher[data-v-0d8c4017]{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}#course .content .top .right .teacher-img[data-v-0d8c4017]{width:1.375rem;height:1.375rem;border-radius:100px;margin-right:.25rem}#course .content .level-type[data-v-0d8c4017]{background:#fff;padding:.75rem .75rem 0;border-radius:.625rem;overflow:hidden}#course .content .level-type .num[data-v-0d8c4017]{font-size:1.125rem}#course .content .first[data-v-0d8c4017],#course .content .seconde[data-v-0d8c4017]{font-size:.75rem}#course .content .bottom[data-v-0d8c4017]{text-align:left}#course .content .bottom .wrap[data-v-0d8c4017]{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}#course .content .bottom .wrap .item[data-v-0d8c4017]{width:6.5625rem;min-height:7.0313rem;background-color:#fff;border-radius:.3125rem;overflow:hidden;margin:.75rem 2% .75rem 0;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;border:1px solid #f6fafd}#course .content .bottom .wrap .item .level[data-v-0d8c4017]{color:#000;font-size:.875rem;padding-top:.75rem}#course .content .bottom .wrap .item .al[data-v-0d8c4017]{margin-top:.5rem;font-size:.75rem;color:#6e6e79;padding-bottom:1.0313rem}#course .content .bottom .wrap .item .amount[data-v-0d8c4017]{margin-top:.6875rem;color:#f15353;font-size:1.125rem}#course .content .bottom .wrap .item .yel[data-v-0d8c4017]{min-height:2.75rem;position:relative;color:#999;-webkit-box-sizing:border-box;box-sizing:border-box;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.75rem;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;z-index:2}#course .content .bottom .wrap .item .yel[data-v-0d8c4017]:after{position:absolute;content:"";top:0;right:0;bottom:0;left:0;background-color:#999;opacity:.1;z-index:1;border-bottom-left-radius:.3125rem;border-bottom-right-radius:.3125rem}#course .content .bottom .wrap .item .heigh-light[data-v-0d8c4017]{color:#fff!important;background-color:#fe5e56!important}#course .content .bottom .wrap .item .btn-recharge[data-v-0d8c4017]{display:inline-block;color:#999;margin-top:1.0313rem;border-radius:1.0938rem;font-size:.75rem;width:4.6875rem;height:1.5rem;line-height:1.5rem;text-align:center;left:1.5rem;background-color:#edf1f3}#course .content .bottom .wrap .item[data-v-0d8c4017]:last-child{margin-right:0}#course .content .bottom .pcStyle[data-v-0d8c4017]{width:375px;position:fixed;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);background:#fff;padding:.2813rem .75rem}#course .content .bottom .bottom-buy[data-v-0d8c4017]{position:fixed;bottom:0;left:0;right:0;background:#fff;padding:.2813rem .75rem}#course .content .bottom .toBuy[data-v-0d8c4017]{width:100%;height:2.5rem;line-height:2.5rem;background-color:#fe5e56;border-radius:1.2813rem;font-size:.9375rem;color:#fff;text-align:center}#course .content .bottom .good-wrap[data-v-0d8c4017]{width:100%;padding:.75rem;background:#f6fafd;border-radius:.3125rem;margin-top:.75rem}#course .content .bottom .good-wrap .good-tit[data-v-0d8c4017]{font-size:.875rem;color:#000}#course .content .bottom .good-wrap .good[data-v-0d8c4017]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:.75rem}#course .content .bottom .good-wrap .good .img[data-v-0d8c4017]{width:4.375rem;height:4.375rem;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#course .content .bottom .good-wrap .good img[data-v-0d8c4017]{width:100%;height:100%;border-radius:.3125rem}#course .content .bottom .good-wrap .good .bt[data-v-0d8c4017]{margin-left:.75rem;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-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#course .content .bottom .good-wrap .good .bt button[data-v-0d8c4017]{border:none;width:4.6875rem;height:1.5rem;color:#fff;font-size:.75rem;background:#fe5e56;border-radius:1.0938rem}#course .content .bottom .good-wrap .good .bt .head[data-v-0d8c4017]{color:#000;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#course .content .bottom .good-wrap .good .bt .cash[data-v-0d8c4017]{margin-top:.75rem;color:#f15353}',""]),e.exports=t}}]);