1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ede6949"],{5198:function(t,e,i){"use strict";i("b108")},"92cb":function(t,e,i){var o=i("24fb"),n=i("1de5"),a=i("e013");e=o(!1);var s=n(a);e.push([t.i,".shopShowTxt[data-v-73dab914]{width:100%;text-align:center;font-size:1.06rem;color:#202020;padding-top:.97rem;margin-bottom:2rem}.flexCell[data-v-73dab914]{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-73dab914],.flexCell .right[data-v-73dab914],.flexCell .right .pay[data-v-73dab914]{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-73dab914]{font-size:.75rem;color:#f14e4e}.btn[data-v-73dab914]{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}.posBtn[data-v-73dab914]{position:fixed;bottom:0;left:0;width:100%;height:3.44rem;background-color:#fff;-webkit-box-shadow:0 -.06rem .66rem 0 hsla(0,0%,80.8%,.42);box-shadow:0 -.06rem .66rem 0 hsla(0,0%,80.8%,.42);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}.posBtn .posBtnView[data-v-73dab914]{width:19.13rem;height:2.5rem;background-color:#f15353;border-radius:1.25rem;font-size:.94rem;color:#fff;text-align:center;line-height:2.5rem}.contenBox[data-v-73dab914]{padding:.63rem .63rem;padding-bottom:4rem}.contenBox[data-v-73dab914],.contenBox .contenlis[data-v-73dab914]{-webkit-box-sizing:border-box;box-sizing:border-box}.contenBox .contenlis[data-v-73dab914]{background-color:#fff;border-radius:.31rem;padding:.66rem .81rem;margin-bottom:.65rem}.contenBox .contenlis .cardRenew[data-v-73dab914]{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;color:#7e7e7e;font-size:.69rem}.contenBox .contenlis .cardRenew .cardRenewRight[data-v-73dab914]{width:4.09rem;height:1.78rem;background-color:#f15353;border-radius:.88rem;font-size:.69rem;color:#fff;text-align:center;line-height:1.78rem}.contenBox .contenlis .contenlis_lis[data-v-73dab914]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:1rem}.contenBox .contenlis .contenlis_lis[data-v-73dab914],.contenBox .contenlis .contenlis_lis .contenlis_lisline[data-v-73dab914]{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}.contenBox .contenlis .contenlis_lis .contenlis_lisline[data-v-73dab914]{width:50%;margin-bottom:.78rem;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;font-size:.69rem;color:#393939}.contenBox .contenlis .contenlis_lis .contenlis_lisline .contenlis_lisline_Price[data-v-73dab914]{-webkit-box-flex:.8;-webkit-flex:.8;-ms-flex:.8;flex:.8;text-align:left;color:#f14e4e;font-size:.69rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contenBox .contenlis .contenlis_top[data-v-73dab914],.contenBox .contenlis .contenlis_top .contenlis_topLeft[data-v-73dab914]{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}.contenBox .contenlis .contenlis_top .contenlis_topLeft[data-v-73dab914]{width:100%}.contenBox .contenlis .contenlis_top .contenlis_topLeft .shopBtn[data-v-73dab914]{width:3.13rem;height:1.44rem;background-color:#f15353;font-size:.63rem;color:#fff;border-radius:.72rem;text-align:center;line-height:1.44rem}.contenBox .contenlis .contenlis_top .contenlis_topLeft .user[data-v-73dab914]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;overflow:hidden}.contenBox .contenlis .contenlis_top .contenlis_topLeft .user .nameTxt[data-v-73dab914]{color:#2f2f2f;font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:left}.contenBox .contenlis .contenlis_top .contenlis_topLeft .user .time[data-v-73dab914]{font-size:.63rem;color:#7e7e7e}.contenBox .contenlis .contenlis_top .contenlis_topLeft .img[data-v-73dab914]{width:2.5rem;height:2.5rem;background-color:#b6b6b6;border-radius:1.25rem}.contenBox .contenlis .contenlis_top .contenlis_topLeft .img img[data-v-73dab914]{width:100%;height:100%}.headTop[data-v-73dab914]{width:23.44rem;background-image:url("+s+");background-size:cover;background-repeat:no-repeat;padding:1.41rem .94rem;padding-bottom:1.03rem}.headTop .headTopList[data-v-73dab914]{-ms-flex-align:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:.9rem}.headTop .headTopList[data-v-73dab914],.headTop .headTopList .headTopLis[data-v-73dab914]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.headTop .headTopList .headTopLis[data-v-73dab914]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;color:#fff;overflow:hidden}.headTop .headTopList .headTopLis .price[data-v-73dab914]{width:100%;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.headTop .headTopList .headTopLis .txt[data-v-73dab914]{font-size:.75rem}.headTop .ticket[data-v-73dab914]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;font-size:.94rem;color:#fff;padding-bottom:.63rem;border-bottom:1px solid #91ccf4;margin-top:.8rem}.headTop .headImg[data-v-73dab914],.headTop .ticket[data-v-73dab914]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.headTop .headImg .name[data-v-73dab914]{margin-left:.66rem;font-size:1.06rem;color:#fff}.headTop .headImg .img[data-v-73dab914]{width:3.56rem;height:3.56rem;background-color:#fff;border-radius:100%}.headTop .headImg .img img[data-v-73dab914]{width:100%;height:100%;border-radius:100%}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var o=document.documentElement,n=document.body,a={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&o.clientHeight?Math.min(n.clientHeight,o.clientHeight):Math.max(n.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b108:function(t,e,i){var o=i("92cb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("499e").default;n("b1088848",o,!0,{sourceMap:!1,shadowMode:!1})},c92c:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"creditorindex"}},[i("c-title",{attrs:{hide:!1,text:"债权人"}}),t.userInfo.member?i("div",{staticClass:"headTop"},[i("div",{staticClass:"headImg"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.userInfo.member.avatar,alt:""}})]),i("div",{staticClass:"name"},[t._v(t._s(t.userInfo.member.nickname))])]),i("div",{staticClass:"ticket"},[i("div",{staticClass:"ticket_txt"},[t._v("总提货券")]),i("div",{staticClass:"ticket_price"},[t._v(" ¥"+t._s((t.userInfo.common_credit+t.userInfo.frozen_credit).toFixed(2))+" ")])]),i("div",{staticClass:"headTopList"},[i("div",{staticClass:"headTopLis"},[i("div",{staticClass:"price"},[t._v("¥"+t._s(t.userInfo.common_credit))]),i("div",{staticClass:"txt"},[t._v(t._s(t.plugin_setting?t.plugin_setting.common_credit_name:"消费账户"))])]),i("div",{staticClass:"headTopLis"},[i("div",{staticClass:"price"},[t._v("¥"+t._s(t.userInfo.frozen_credit))]),i("div",{staticClass:"txt"},[t._v("锁定账号")])]),i("div",{staticClass:"headTopLis"},[i("div",{staticClass:"price"},[t._v(t._s(t.userInfo.order_count))]),i("div",{staticClass:"txt"},[t._v("已完成订单数")])])])]):t._e(),i("div",{staticClass:"contenBox"},t._l(t.listData,(function(e,o){return i("div",{staticClass:"contenlis"},[i("div",{staticClass:"contenlis_top"},[i("div",{staticClass:"contenlis_topLeft"},[e.has_one_debtor_member?i("div",{staticClass:"img"},[i("img",{attrs:{src:e.has_one_debtor_member.avatar,alt:""}})]):t._e(),i("div",{staticClass:"user"},[i("div",{staticClass:"nameTxt"},[t._v(t._s(e.has_one_debtor.name))]),i("div",{staticClass:"time"},[t._v("化债期:"+t._s(e.end_time_str))])]),0==e.is_expire&&1==e.status?i("div",{staticClass:"shopBtn",on:{click:function(i){return t.toShop(e.has_one_debtor.id)}}},[t._v(" 进店 ")]):t._e()])]),i("div",{staticClass:"contenlis_lis"},[i("div",{staticClass:"contenlis_lisline"},[i("div",[t._v("总提货券:")]),i("div",{staticClass:"contenlis_lisline_Price"},[t._v(" ¥"+t._s(e.sum_credit)+" ")])]),i("div",{staticClass:"contenlis_lisline"},[i("div",[t._v(t._s(t.plugin_setting?t.plugin_setting.common_credit_name:"消费账户")+":")]),i("div",{staticClass:"contenlis_lisline_Price"},[t._v(" ¥"+t._s(e.common_credit)+" ")])]),i("div",{staticClass:"contenlis_lisline"},[i("div",[t._v(t._s(t.plugin_setting?t.plugin_setting.frozen_credit_name:"锁定账户")+":")]),i("div",{staticClass:"contenlis_lisline_Price"},[t._v(" ¥"+t._s(e.frozen_credit)+" ")])]),i("div",{staticClass:"contenlis_lisline"},[i("div",[t._v("订单数:")]),i("div",{staticClass:"contenlis_lisline_Price"},[t._v(" "+t._s(e.has_many_order_count)+" ")])])]),i("div",{staticClass:"cardRenew"},[e.has_one_owner?i("div",{staticClass:"cardRenewleft"},[t._v(" 身份有效期:"+t._s(e.has_one_owner.end_time_str)+" ")]):t._e(),!e.has_one_owner||"-1"!=e.has_one_owner.status&&"1"!=e.has_one_owner.status?t._e():i("div",{staticClass:"cardRenewRight",on:{click:function(i){return t.renewTap(e)}}},[t._v(" 续费 ")])])])})),0),i("div",{staticClass:"posBtn set-pc-style"},[i("div",{staticClass:"posBtnView",on:{click:t.toApply}},[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.owner_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)},n=[],a=(i("e7e5"),i("d399")),s=(i("b64b"),i("14d9"),i("99af"),i("ac0d")),l={mixins:[s["a"]],data:function(){return{RenewShow:!1,listData:[],renewUserId:"",owner_goods_count:"",owner_goods_id:"",goodsTotal:1,userInfo:[],plugin_setting:{},isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getdebtListInit(),this.getData(),this.getdebtList(),this.plugin_setting=JSON.parse(localStorage.getItem("plugin_setting")).debt_shop,this.RenewShow=!1},methods:{toShop:function(t){this.$router.push(this.fun.getUrl("debtorShop",{kid:t,member_type:1}))},toApply:function(){this.$router.push(this.fun.getUrl("debtapply",{type:1}))},renewTap:function(t){this.RenewShow=!0,this.renewUserId=t.has_one_owner.id,this.getApplyData()},getdebtListInit:function(){this.isLoadMore=!0,this.page=1,this.total_page=0,this.listData=[]},renewPost:function(){var t=this;if(this.goodsTotal>this.owner_goods_count)Object(a["a"])("拥有商品数量不足");else{var e={id:this.renewUserId,count:this.goodsTotal},i="plugin.debt-shop.frontend.debt-member.rechargeDebtMemberTime";$http.get(i,e,"加载中").then((function(e){1===e.result?(t.RenewShow=!1,t.$dialog.alert({message:e.msg}).then((function(){t.getdebtListInit(),t.getData(),t.getdebtList()}))):Object(a["a"])(e.msg)})).catch((function(t){}))}},getApplyData:function(){var t=this;$http.get("plugin.debt-shop.frontend.debt-member.applyData",{},"加载中").then((function(e){1===e.result?(t.owner_goods_count=e.data.owner_goods_count,t.owner_goods_id=e.data.owner_goods_id,t.vip_goods_id=e.data.vip_goods_id,t.vip_goods_count=e.data.vip_goods_count):Object(a["a"])(e.msg)})).catch((function(t){}))},goGoods:function(){this.$router.push(this.fun.getUrl("goods",{id:this.owner_goods_id}))},getData:function(){var t=this;$http.get("plugin.debt-shop.frontend.debt-member.getDebtData",{member_type:1},"加载中").then((function(e){1===e.result?t.userInfo=e.data:Object(a["a"])(e.msg)})).catch((function(t){}))},getdebtList:function(){var t=this;$http.post("plugin.debt-shop.frontend.owner.debtorList",{},"加载中").then((function(e){1===e.result?(t.isLoadMore=!0,t.page=1,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.listData=e.data.data):Object(a["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this,e=this;e.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.post("plugin.debt-shop.frontend.owner.debtorList",{page:e.page},"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.listData=t.listData.concat(i)}),(function(t){})))}}},r=l,c=(i("5198"),i("2877")),d=Object(c["a"])(r,o,n,!1,null,"73dab914",null);e["default"]=d.exports},e013:function(t,e,i){t.exports=i.p+"static/app/img/debtb2.fa45655a.png"}}]); |