1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d1added"],{1814:function(e,t,i){var o=i("9a1c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var n=i("499e").default;n("02ee54d7",o,!0,{sourceMap:!1,shadowMode:!1})},"9a1c":function(e,t,i){var o=i("24fb"),n=i("1de5"),s=i("e013");t=o(!1);var a=n(s);t.push([e.i,".shopShowTxt[data-v-ee81e648]{width:100%;text-align:center;font-size:1.06rem;color:#202020;padding-top:.97rem;margin-bottom:2rem}.flexCell[data-v-ee81e648]{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-ee81e648],.flexCell .right[data-v-ee81e648],.flexCell .right .pay[data-v-ee81e648]{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-ee81e648]{font-size:.75rem;color:#f14e4e}.btn[data-v-ee81e648]{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-ee81e648]{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-ee81e648]{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-ee81e648]{padding:.63rem .63rem;padding-bottom:4rem}.contenBox[data-v-ee81e648],.contenBox .contenlis[data-v-ee81e648]{-webkit-box-sizing:border-box;box-sizing:border-box}.contenBox .contenlis[data-v-ee81e648]{background-color:#fff;border-radius:.31rem;padding:.66rem .81rem;margin-bottom:.65rem}.contenBox .contenlis .cardRenew[data-v-ee81e648]{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-ee81e648]{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-ee81e648]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-top:1rem}.contenBox .contenlis .contenlis_lis[data-v-ee81e648],.contenBox .contenlis .contenlis_lis .contenlis_lisline[data-v-ee81e648]{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-ee81e648]{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-ee81e648]{-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-ee81e648],.contenBox .contenlis .contenlis_top .contenlis_topLeft[data-v-ee81e648]{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-ee81e648]{width:100%}.contenBox .contenlis .contenlis_top .contenlis_topLeft .shopBtn[data-v-ee81e648]{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-ee81e648]{-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-ee81e648]{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-ee81e648]{font-size:.63rem;color:#7e7e7e}.contenBox .contenlis .contenlis_top .contenlis_topLeft .img[data-v-ee81e648]{width:2.5rem;height:2.5rem;background-color:#b6b6b6;border-radius:1.25rem}.contenBox .contenlis .contenlis_top .contenlis_topLeft .img img[data-v-ee81e648]{width:100%;height:100%}.headTop[data-v-ee81e648]{width:23.44rem;background-image:url("+a+");background-size:cover;background-repeat:no-repeat;padding:1.41rem .94rem;padding-bottom:1.03rem}.headTop .headTopList[data-v-ee81e648]{-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-ee81e648],.headTop .headTopList .headTopLis[data-v-ee81e648]{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-ee81e648]{-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-ee81e648]{width:100%;font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.headTop .headTopList .headTopLis .txt[data-v-ee81e648]{font-size:.75rem}.headTop .ticket[data-v-ee81e648]{-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-ee81e648],.headTop .ticket[data-v-ee81e648]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.headTop .headImg .name[data-v-ee81e648]{margin-left:.66rem;font-size:1.06rem;color:#fff}.headTop .headImg .img[data-v-ee81e648]{width:3.56rem;height:3.56rem;background-color:#fff;border-radius:100%}.headTop .headImg .img img[data-v-ee81e648]{width:100%;height:100%;border-radius:100%}",""]),e.exports=t},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var o=document.documentElement,n=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return o&&o.scrollTop?e=o.scrollTop:n&&(e=n.scrollTop),e},getClientHeight:function(){var e=0;return e=n.clientHeight&&o.clientHeight?Math.min(n.clientHeight,o.clientHeight):Math.max(n.clientHeight,o.clientHeight),e},getScrollHeight:function(){return Math.max(n.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b4c9:function(e,t,i){"use strict";i("1814")},c92c:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"creditorindex"}},[i("c-title",{attrs:{hide:!1,text:"债权人"}}),e.userInfo.member?i("div",{staticClass:"headTop"},[i("div",{staticClass:"headImg"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.userInfo.member.avatar,alt:""}})]),i("div",{staticClass:"name"},[e._v(e._s(e.userInfo.member.nickname))])]),i("div",{staticClass:"ticket"},[i("div",{staticClass:"ticket_txt"},[e._v("总提货券")]),i("div",{staticClass:"ticket_price"},[e._v(" ¥"+e._s((e.userInfo.common_credit+e.userInfo.frozen_credit).toFixed(2))+" ")])]),i("div",{staticClass:"headTopList"},[i("div",{staticClass:"headTopLis"},[i("div",{staticClass:"price"},[e._v("¥"+e._s(e.userInfo.common_credit))]),i("div",{staticClass:"txt"},[e._v(e._s(e.plugin_setting?e.plugin_setting.common_credit_name:"消费账户"))])]),i("div",{staticClass:"headTopLis"},[i("div",{staticClass:"price"},[e._v("¥"+e._s(e.userInfo.frozen_credit))]),i("div",{staticClass:"txt"},[e._v("锁定账号")])]),i("div",{staticClass:"headTopLis"},[i("div",{staticClass:"price"},[e._v(e._s(e.userInfo.order_count))]),i("div",{staticClass:"txt"},[e._v("已完成订单数")])])])]):e._e(),i("div",{staticClass:"contenBox"},e._l(e.listData,(function(t,o){return i("div",{staticClass:"contenlis"},[i("div",{staticClass:"contenlis_top"},[i("div",{staticClass:"contenlis_topLeft"},[t.has_one_debtor_member?i("div",{staticClass:"img"},[i("img",{attrs:{src:t.has_one_debtor_member.avatar,alt:""}})]):e._e(),i("div",{staticClass:"user"},[i("div",{staticClass:"nameTxt"},[e._v(e._s(t.has_one_debtor.name))]),i("div",{staticClass:"time"},[e._v("化债期:"+e._s(t.end_time_str))])]),0==t.is_expire&&1==t.status?i("div",{staticClass:"shopBtn",on:{click:function(i){return e.toShop(t.has_one_debtor.id)}}},[e._v(" 进店 ")]):e._e()])]),i("div",{staticClass:"contenlis_lis"},[i("div",{staticClass:"contenlis_lisline"},[i("div",[e._v("总提货券:")]),i("div",{staticClass:"contenlis_lisline_Price"},[e._v(" ¥"+e._s(t.sum_credit)+" ")])]),i("div",{staticClass:"contenlis_lisline"},[i("div",[e._v(e._s(e.plugin_setting?e.plugin_setting.common_credit_name:"消费账户")+":")]),i("div",{staticClass:"contenlis_lisline_Price"},[e._v(" ¥"+e._s(t.common_credit)+" ")])]),i("div",{staticClass:"contenlis_lisline"},[i("div",[e._v(e._s(e.plugin_setting?e.plugin_setting.frozen_credit_name:"锁定账户")+":")]),i("div",{staticClass:"contenlis_lisline_Price"},[e._v(" ¥"+e._s(t.frozen_credit)+" ")])]),i("div",{staticClass:"contenlis_lisline"},[i("div",[e._v("订单数:")]),i("div",{staticClass:"contenlis_lisline_Price"},[e._v(" "+e._s(t.has_many_order_count)+" ")])])]),i("div",{staticClass:"cardRenew"},[t.has_one_owner?i("div",{staticClass:"cardRenewleft"},[e._v(" 身份有效期:"+e._s(t.has_one_owner.end_time_str)+" ")]):e._e(),!t.has_one_owner||"-1"!=t.has_one_owner.status&&"1"!=t.has_one_owner.status?e._e():i("div",{staticClass:"cardRenewRight",on:{click:function(i){return e.renewTap(t)}}},[e._v(" 续费 ")])])])})),0),i("div",{staticClass:"posBtn set-pc-style"},[i("div",{staticClass:"posBtnView",on:{click:e.toApply}},[e._v("债权人申请")])]),i("van-popup",{style:{height:"15.36rem",borderRadius:"0.31rem 0.31rem 0rem 0rem"},attrs:{position:"bottom",closeable:""},model:{value:e.RenewShow,callback:function(t){e.RenewShow=t},expression:"RenewShow"}},[i("div",{staticClass:"shopShowTxt"},[e._v("续费")]),i("div",{staticClass:"flexCell"},[i("div",[e._v("当前拥有商品数量:"+e._s(e.owner_goods_count))]),i("div",{staticClass:"right"},[i("div",{staticClass:"pay",on:{click:e.goGoods}},[e._v(" 购买商品 "),i("i",{staticClass:"iconfont icon-member_right"})])])]),i("div",{staticClass:"flexCell"},[i("div",[e._v("充值数量")]),i("div",{staticClass:"right"},[i("van-stepper",{staticClass:"pay",attrs:{theme:"round","button-size":"22"},model:{value:e.goodsTotal,callback:function(t){e.goodsTotal=t},expression:"goodsTotal"}})],1)]),i("div",{staticClass:"btn",on:{click:e.renewPost}},[e._v("续费")])])],1)},n=[],s=(i("e7e5"),i("d399")),a=(i("99af"),i("ac0d")),l={mixins:[a["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(e){this.$router.push(this.fun.getUrl("debtorShop",{kid:e,member_type:1}))},toApply:function(){this.$router.push(this.fun.getUrl("debtapply",{type:1}))},renewTap:function(e){this.RenewShow=!0,this.renewUserId=e.has_one_owner.id,this.getApplyData()},getdebtListInit:function(){this.isLoadMore=!0,this.page=1,this.total_page=0,this.listData=[]},renewPost:function(){var e=this;if(this.goodsTotal>this.owner_goods_count)Object(s["a"])("拥有商品数量不足");else{var t={id:this.renewUserId,count:this.goodsTotal},i="plugin.debt-shop.frontend.debt-member.rechargeDebtMemberTime";$http.get(i,t,"加载中").then((function(t){1===t.result?(e.RenewShow=!1,e.$dialog.alert({message:t.msg}).then((function(){e.getdebtListInit(),e.getData(),e.getdebtList()}))):Object(s["a"])(t.msg)})).catch((function(e){}))}},getApplyData:function(){var e=this;$http.get("plugin.debt-shop.frontend.debt-member.applyData",{},"加载中").then((function(t){1===t.result?(e.owner_goods_count=t.data.owner_goods_count,e.owner_goods_id=t.data.owner_goods_id,e.vip_goods_id=t.data.vip_goods_id,e.vip_goods_count=t.data.vip_goods_count):Object(s["a"])(t.msg)})).catch((function(e){}))},goGoods:function(){this.$router.push(this.fun.getUrl("goods",{id:this.owner_goods_id}))},getData:function(){var e=this;$http.get("plugin.debt-shop.frontend.debt-member.getDebtData",{member_type:1},"加载中").then((function(t){1===t.result?e.userInfo=t.data:Object(s["a"])(t.msg)})).catch((function(e){}))},getdebtList:function(){var e=this;$http.post("plugin.debt-shop.frontend.owner.debtorList",{},"加载中").then((function(t){1===t.result?(e.isLoadMore=!0,e.page=1,e.total_page=t.data.last_page,e.total_page||(e.total_page=0),e.listData=t.data.data):Object(s["a"])(t.msg)})).catch((function(e){}))},getMoreData:function(){var e=this,t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.post("plugin.debt-shop.frontend.owner.debtorList",{page:t.page},"加载中").then((function(t){if(e.isLoadMore=!0,1!==t.result)return e.page=e.page-1,void(e.isLoadMore=!1);var i=t.data.data;e.listData=e.listData.concat(i)}),(function(e){})))}}},r=l,c=(i("b4c9"),i("2877")),d=Object(c["a"])(r,o,n,!1,null,"ee81e648",null);t["default"]=d.exports},e013:function(e,t,i){e.exports=i.p+"static/app/img/debtb2.fa45655a.png"}}]); |