bztang-admin/addons/yun_shop/static/app/js/chunk-09a839d4.6c1a93bc.js

1 line
14 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-09a839d4"],{"0857":function(t,e,i){"use strict";i("66b6")},"0dae":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"vipIndex"}},[i("c-title",{attrs:{hide:!1,text:"VIP"}}),t.userInfo.member?i("div",{staticClass:"headtop"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.userInfo.member.avatar,alt:""}})]),i("div",{staticClass:"user"},[i("div",{staticClass:"name"},[t._v(t._s(t.userInfo.member.nickname))]),t.datainfo.has_one_vip?i("div",{staticClass:"time"},[t._v(" 有效期:"+t._s(t.datainfo.has_one_vip.end_time_str)+" ")]):t._e()]),!t.datainfo.has_one_vip||"-1"!=t.datainfo.has_one_vip.status&&"1"!=t.datainfo.has_one_vip.status?t._e():i("div",{staticClass:"typeBtn",on:{click:t.renewTap}},[t._v(" 续费 ")]),!t.datainfo.has_one_vip||"-2"!=t.datainfo.has_one_vip.status&&"-3"!=t.datainfo.has_one_vip.status?t._e():i("div",{staticClass:"typeBtn",on:{click:t.applyTap}},[t._v(" 申请 ")])]):t._e(),i("div",{staticClass:"detailBox"},[i("div",{staticClass:"account"},[i("div",{staticClass:"accountLeft"},[t._v(t._s(t.plugin_setting?t.plugin_setting.common_credit_name:"消费账户")+"")]),i("div",{staticClass:"accountRight"},[t._v("¥"+t._s(t.datainfo.common_credit))])]),i("div",{staticClass:"accountDetail"},[i("div",{staticClass:"accountDetailL"},[i("div",{staticClass:"text"},[t._v(t._s(t.userInfo.order_count))]),i("div",{staticClass:"txt"},[t._v("已完成订单数")])]),i("div",{staticClass:"accountDetailL"},[i("div",{staticClass:"text"},[t._v("¥"+t._s(t.userInfo.order_price))]),i("div",{staticClass:"txt"},[t._v("累计订单金额")])])])]),t.datainfo.has_one_vip&&"-2"!=t.datainfo.has_one_vip.status&&"-3"!=t.datainfo.has_one_vip.status?i("div",{staticClass:"removeBox"},[i("div",{staticClass:"toptxt"},[t._v("联名消费的债权人")]),t.datainfo.has_one_owner_member?i("div",{staticClass:"removelist"},[i("div",{staticClass:"removelis"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.datainfo.has_one_owner_member.avatar,alt:""}})]),i("div",{staticClass:"user"},[i("div",{staticClass:"name"},[t._v(t._s(t.datainfo.has_one_owner_member.nickname))]),i("div",{staticClass:"time"},[t._v("化债期:"+t._s(t.datainfo.end_time_str))])]),1==t.datainfo.bind_cancel_status?i("div",{staticClass:"removeBtnSHZ"},[t._v("解绑审核中")]):i("div",{staticClass:"removeBtn",on:{click:t.removeTap}},[t._v("解绑")])])]):t._e(),t.datainfo.has_one_debtor_member?i("div",{staticClass:"toptxt"},[t._v("联名消费的债务人")]):t._e(),t.datainfo.has_one_debtor_member?i("div",{staticClass:"removelist debt"},[i("div",{staticClass:"removelis"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.datainfo.has_one_debtor_member.avatar,alt:""}})]),i("div",{staticClass:"user"},[i("div",{staticClass:"name"},[t._v(" "+t._s(t.datainfo.has_one_debtor.name)+" ")]),i("div",{staticClass:"time"},[t._v("化债期:"+t._s(t.datainfo.end_time_str))])]),"0"==t.datainfo.is_expire&&1==t.datainfo.status?i("div",{staticClass:"removeBtn",on:{click:t.toShop}},[t._v(" 进店 ")]):t._e()])]):t._e()]):t._e(),i("div",{staticClass:"bottomBox"},[i("div",{staticClass:"bottomList",on:{click:t.toOrder}},[i("i",{staticClass:"iconfont icon-fontclass-shangpindingdan"}),i("div",{staticClass:"txt"},[t._v("订单管理")])]),i("div",{staticClass:"bottomList",on:{click:t.toDetail}},[i("i",{staticClass:"iconfont icon-fontclass-wenzhangzhongxin"}),i("div",{staticClass:"txt"},[t._v("提货券明细")])]),i("div",{staticClass:"bottomList",on:{click:t.toBindDetail}},[i("i",{staticClass:"iconfont icon-massage_order"}),i("div",{staticClass:"txt"},[t._v("绑定记录")])])]),i("van-popup",{style:{height:"15.36rem",borderRadius:"0.31rem 0.31rem 0rem 0rem"},attrs:{position:"bottom",closeable:""},model:{value:t.RenewShow,callback:function(e){t.RenewShow=e},expression:"RenewShow"}},[i("div",{staticClass:"shopShowTxt"},[t._v("续费")]),i("div",{staticClass:"flexCell"},[i("div",[t._v("当前拥有商品数量:"+t._s(t.vip_goods_count))]),i("div",{staticClass:"right"},[i("div",{staticClass:"pay",on:{click:t.goGoods}},[t._v(" 购买商品 "),i("i",{staticClass:"iconfont icon-member_right"})])])]),i("div",{staticClass:"flexCell"},[i("div",[t._v("充值数量")]),i("div",{staticClass:"right"},[i("van-stepper",{staticClass:"pay",attrs:{theme:"round","button-size":"22"},model:{value:t.goodsTotal,callback:function(e){t.goodsTotal=e},expression:"goodsTotal"}})],1)]),i("div",{staticClass:"btn",on:{click:t.renewPost}},[t._v("续费")])])],1)},o=[],s=(i("e7e5"),i("d399")),n={data:function(){return{userInfo:[],RenewShow:!1,datainfo:[],renewUserId:"",goodsTotal:1,vip_goods_count:"",vip_goods_id:"",plugin_setting:{}}},activated:function(){this.RenewShow=!1,this.getData(),this.getUser(),this.plugin_setting=JSON.parse(localStorage.getItem("plugin_setting")).debt_shop},methods:{goGoods:function(){this.$router.push(this.fun.getUrl("goods",{id:this.vip_goods_id}))},renewTap:function(){this.RenewShow=!0,this.renewUserId=this.datainfo.vip_id,this.getGoodsCount()},applyTap:function(){this.$router.push(this.fun.getUrl("debtapply",{type:3}))},getGoodsCount:function(){var t=this;$http.post("plugin.debt-shop.frontend.debt-member.applyData","加载中").then((function(e){1===e.result?(t.vip_goods_id=e.data.vip_goods_id,t.vip_goods_count=e.data.vip_goods_count):Object(s["a"])(e.msg)})).catch((function(t){}))},renewPost:function(){var t=this;if(this.goodsTotal>this.vip_goods_count)Object(s["a"])("拥有商品数量不足");else{var e={id:this.renewUserId,count:this.goodsTotal},i="plugin.debt-shop.frontend.debt-member.rechargeDebtMemberTime";$http.post(i,e,"加载中").then((function(e){1===e.result?(t.RenewShow=!1,t.$dialog.alert({message:e.msg}).then((function(){t.getData(),t.getUser()}))):Object(s["a"])(e.msg)})).catch((function(t){}))}},toOrder:function(){this.$router.push(this.fun.getUrl("debtOrder",{status:0,member_type:3}))},toDetail:function(){this.$router.push(this.fun.getUrl("purchaseDetailsVip",{vip:!0}))},toBindDetail:function(){this.$router.push(this.fun.getUrl("vipBindRecord",{}))},removeTap:function(){var t=this;this.$dialog.confirm({message:"是否确认解除绑定"}).then((function(){t.removePost()})).catch((function(){}))},removePost:function(){var t=this;$http.post("plugin.debt-shop.frontend.apply.deleteBindApply",{},"加载中").then((function(e){1===e.result?(Object(s["a"])(e.msg),t.getData(),t.getUser()):Object(s["a"])(e.msg)})).catch((function(t){}))},toShop:function(){this.$router.push(this.fun.getUrl("debtorShop",{kid:this.datainfo.debtor_id,member_type:3}))},getData:function(){var t=this;$http.get("plugin.debt-shop.frontend.vip.baseData",{},"加载中").then((function(e){1===e.result?t.datainfo=e.data:Object(s["a"])(e.msg)})).catch((function(t){}))},getUser:function(){var t=this;$http.get("plugin.debt-shop.frontend.debt-member.getDebtData",{member_type:3},"加载中").then((function(e){1===e.result?t.userInfo=e.data:Object(s["a"])(e.msg)})).catch((function(t){}))}}},r=n,d=(i("0857"),i("2877")),l=Object(d["a"])(r,a,o,!1,null,"11f09ef4",null);e["default"]=l.exports},"4b0e":function(t,e,i){var a=i("24fb"),o=i("1de5"),s=i("b5d2");e=a(!1);var n=o(s);e.push([t.i,"#vipIndex[data-v-11f09ef4]{min-height:100vh}#vipIndex .bottomBox[data-v-11f09ef4]{margin-top:.63rem;background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding-top:.78rem;height:50.5vh}#vipIndex .bottomBox .bottomList[data-v-11f09ef4]{width:25%}#vipIndex .bottomBox .bottomList .iconfont[data-v-11f09ef4]{font-size:2rem}#vipIndex .bottomBox .bottomList .icon-fontclass-shangpindingdan[data-v-11f09ef4]{color:#25a8ff}#vipIndex .bottomBox .bottomList .icon-fontclass-wenzhangzhongxin[data-v-11f09ef4]{color:#ff9620}#vipIndex .bottomBox .bottomList .icon-massage_order[data-v-11f09ef4]{color:#835fe5}#vipIndex .bottomBox .bottomList .txt[data-v-11f09ef4]{margin-top:.45rem}#vipIndex .removeBtnSHZ[data-v-11f09ef4]{height:1.44rem;background-color:#999;border-radius:.72rem;font-size:.63rem;color:#fff;padding:0 .65rem;line-height:1.44rem}#vipIndex .removeBox[data-v-11f09ef4]{margin:.63rem 0 0 0;padding:.91rem .94rem 0 .94rem;background:#fff}#vipIndex .removeBox .removelist[data-v-11f09ef4]{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;padding:1.2rem 0 0 0}#vipIndex .removeBox .removelist .removelis[data-v-11f09ef4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-bottom:1.5rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#vipIndex .removeBox .removelist .removelis .removeBtn[data-v-11f09ef4]{width:3.13rem;height:1.44rem;background-color:#f15353;border-radius:.72rem;font-size:.63rem;color:#fff;line-height:1.44rem}#vipIndex .removeBox .removelist .removelis .user[data-v-11f09ef4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.5rem;margin-left:.53rem;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:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden}#vipIndex .removeBox .removelist .removelis .user .name[data-v-11f09ef4]{width:100%;font-size:.88rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:left}#vipIndex .removeBox .removelist .removelis .user .time[data-v-11f09ef4]{font-size:.63rem;color:#7e7e7e}#vipIndex .removeBox .removelist .removelis .img[data-v-11f09ef4]{width:2.5rem;height:2.5rem;background-color:#b6b6b6;border-radius:100%}#vipIndex .removeBox .removelist .removelis .img img[data-v-11f09ef4]{width:100%;height:100%;border-radius:100%}#vipIndex .removeBox .toptxt[data-v-11f09ef4]{text-align:left;font-size:.75rem;color:#2f2f2f;font-weight:700}#vipIndex .detailBox[data-v-11f09ef4]{padding:.94rem .94rem 0 .94rem;background:#fff}#vipIndex .detailBox .accountDetail[data-v-11f09ef4]{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:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.91rem 0}#vipIndex .detailBox .accountDetail .accountDetailL[data-v-11f09ef4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#vipIndex .detailBox .accountDetail .accountDetailL .text[data-v-11f09ef4]{font-size:1rem;color:#202020;text-align:center}#vipIndex .detailBox .accountDetail .accountDetailL .txt[data-v-11f09ef4]{color:#797979;opacity:.8;font-size:.75rem;text-align:center;margin-top:.33rem}#vipIndex .detailBox .account[data-v-11f09ef4]{height:2.78rem;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;border-bottom:.03rem solid #f3f3f3;font-size:.94rem}#vipIndex .detailBox .account .accountRight[data-v-11f09ef4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}#vipIndex .headtop[data-v-11f09ef4]{height:6.25rem;background-color:#fd3a3a;padding:0 .94rem;background-image:url("+n+");background-size:cover;background-repeat:no-repeat;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#vipIndex .headtop[data-v-11f09ef4],#vipIndex .headtop .user[data-v-11f09ef4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#vipIndex .headtop .user[data-v-11f09ef4]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;margin-left:.66rem;color:#fff}#vipIndex .headtop .user .time[data-v-11f09ef4]{font-size:.69rem;color:#fff;opacity:.7}#vipIndex .headtop .user .name[data-v-11f09ef4]{margin-bottom:.38rem;font-size:1.06rem}#vipIndex .headtop .typeBtn[data-v-11f09ef4]{width:4.38rem;height:1.88rem;background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#fff)),-webkit-gradient(linear,left top,left bottom,from(#000),to(#000));background-image:-webkit-linear-gradient(#fff,#fff),-webkit-linear-gradient(#000,#000);background-image:linear-gradient(#fff,#fff),linear-gradient(#000,#000);background-blend-mode:normal,normal;border-radius:.94rem;font-size:.81rem;color:#fd3a3a;text-align:center;line-height:1.88rem}#vipIndex .headtop .img[data-v-11f09ef4]{width:3.56rem;border-radius:100%;height:3.56rem;background-color:#fff}#vipIndex .headtop .img img[data-v-11f09ef4]{width:100%;height:100%;border-radius:100%}.shopShowTxt[data-v-11f09ef4]{width:100%;text-align:center;font-size:1.06rem;color:#202020;padding-top:.97rem;margin-bottom:2rem}.flexCell[data-v-11f09ef4]{padding:0 .91rem 0 1.06rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:1.94rem}.flexCell[data-v-11f09ef4],.flexCell .right[data-v-11f09ef4],.flexCell .right .pay[data-v-11f09ef4]{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}.flexCell .right .pay[data-v-11f09ef4]{font-size:.75rem;color:#f14e4e}.btn[data-v-11f09ef4]{margin:0 auto;width:20.31rem;height:2.5rem;background-color:#f15353;border-radius:1.25rem;font-size:.88rem;color:#fff;text-align:center;line-height:2.5rem}",""]),t.exports=e},"66b6":function(t,e,i){var a=i("4b0e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("6f33d9c7",a,!0,{sourceMap:!1,shadowMode:!1})},b5d2:function(t,e,i){t.exports=i.p+"static/app/img/VIPbg.7cef1ee8.png"}}]);