1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08d9d885"],{3109:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".phoneBillRechargeHome[data-v-02662e42]{min-height:100vh;background:#fff}.detailBox .top_title[data-v-02662e42]{font-size:.94rem;font-weight:400;margin:1.5rem 1.25rem}.detailBox .recordBox[data-v-02662e42]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.detailBox .recordBox[data-v-02662e42],.detailBox .recordBox .record[data-v-02662e42]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.detailBox .recordBox .record[data-v-02662e42]{margin-bottom:1.25rem;width:33%;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.detailBox .recordBox .record .record_t[data-v-02662e42]{font-size:.75rem;margin-bottom:.75rem}.detailBox .recordBox .record .record_c[data-v-02662e42]{font-size:1rem;font-weight:500;margin-bottom:.5rem}.detailBox .recordBox .record .record_b[data-v-02662e42]{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;color:#ff8924;font-size:.75rem}.detailBox .detail[data-v-02662e42]{margin:0 .94rem;padding:.75rem;-webkit-box-sizing:border-box;box-sizing:border-box;-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;-ms-flex-pack:center}.detailBox .detail[data-v-02662e42],.detailBox .detail .line[data-v-02662e42]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.detailBox .detail .line[data-v-02662e42]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-ms-flex-pack:center;font-size:.88rem;color:#6e6e79;margin-bottom:.75rem}.detailBox .detail .line .line_l[data-v-02662e42]{margin-right:.75rem}.detailBox .detail .line .line_r[data-v-02662e42]{color:#282828}.cellBox[data-v-02662e42]{margin-top:2rem}.posbtn[data-v-02662e42]{position:fixed;bottom:1.34rem;left:0;width:100%}.posbtn .btn[data-v-02662e42]{margin:0 .75rem;border-radius:1.28rem;height:2.5rem;background:#ff8924;line-height:2.5rem;text-align:center;color:#fff;font-size:.88rem}.list[data-v-02662e42]{margin:.63rem .75rem;margin-bottom:0;overflow:hidden;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}.list .lis[data-v-02662e42]{padding:.75rem;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:.63rem}.list .lis .phoneNumber[data-v-02662e42]{font-size:1rem;text-align:left}.list .lis .line[data-v-02662e42]{margin-top:.75rem;width:100%;height:1px;background:#f2f2f2}.list .lis .btn[data-v-02662e42]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;margin-top:.75rem;color:#6e6e79;font-size:.88rem}.list .lis .btn[data-v-02662e42],.list .lis .btn .btn_box[data-v-02662e42]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.list .lis .btn .btn_box[data-v-02662e42]{-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;-ms-flex-align:center;border-right:1px solid #f2f2f2}.list .lis .btn .btn_box .iconfont[data-v-02662e42]{margin-right:.25rem}.list .lis .btn .btn_box[data-v-02662e42]:last-child{border-right:0}.topbox[data-v-02662e42]{height:7.38rem;width:100%;padding-left:.75rem;overflow:hidden;-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;background:#ff8924}.topbox .img[data-v-02662e42]{width:3.44rem;height:3.44rem;border-radius:50%}.topbox .img img[data-v-02662e42]{width:100%;height:100%;border-radius:50%}.topbox .name[data-v-02662e42]{font-size:1rem;color:#fff;margin-left:.41rem}",""]),t.exports=e},"5d24":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",{staticClass:"phoneBillRechargeHome"},[i("c-title",{attrs:{hide:!1,text:"话费充值"}}),i("div",{staticClass:"topbox"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.member.avatar_image,alt:""}})]),i("div",{staticClass:"name"},[t._v(t._s(t.member.nickname))])]),i("div",{staticClass:"list"},t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"lis"},[i("div",{staticClass:"phoneNumber"},[t._v(t._s(e.mobile))]),i("div",{staticClass:"line"}),i("div",{staticClass:"btn"},[e.card_package&&1==e.type?i("div",{staticClass:"btn_box",on:{click:function(i){return t.detailShowTap(e.card_package.product_id,e.mobile)}}},[i("i",{staticClass:"iconfont icon-wodedingdan0101"}),i("div",{staticClass:"name"},[t._v("套餐详情")])]):t._e(),2==e.type?i("div",{staticClass:"btn_box",on:{click:function(i){return t.taoEditPhone(e)}}},[i("i",{staticClass:"iconfont icon-fontclass-bianji"}),i("div",{staticClass:"name"},[t._v("编辑")])]):t._e(),2==e.type?i("div",{staticClass:"btn_box",on:{click:function(i){return t.deletBtn(e)}}},[i("i",{staticClass:"iconfont icon-ht_operation_delete"}),i("div",{staticClass:"name"},[t._v("删除")])]):t._e(),i("div",{staticClass:"btn_box",on:{click:t.rechargeBtn}},[i("i",{staticClass:"iconfont icon-tixian"}),i("div",{staticClass:"name"},[t._v("充值")])])])])})),0),i("div",{staticClass:"posbtn set-pc-style"},[i("div",{staticClass:"btn",on:{click:t.phone_newTap}},[t._v("新增手机号")])]),i("van-popup",{style:{height:"30%"},attrs:{position:"bottom",round:"","close-on-click-overlay":!1},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("van-nav-bar",{attrs:{title:"新增手机号"},on:{"click-left":t.onClickLeft,"click-right":t.onClickRight_new}},[i("div",{staticStyle:{color:"#aaaab3"},attrs:{slot:"left"},slot:"left"},[t._v("取消")]),i("div",{attrs:{slot:"right"},slot:"right"},[t._v("确定")])]),i("div",{staticClass:"cellBox"},[i("van-field",{attrs:{type:"tel",label:"手机号",placeholder:"请输入手机号"},model:{value:t.mobile,callback:function(e){t.mobile=e},expression:"mobile"}})],1)],1),i("van-popup",{style:{height:"30%"},attrs:{position:"bottom",round:"","close-on-click-overlay":!1},model:{value:t.editshow,callback:function(e){t.editshow=e},expression:"editshow"}},[i("van-nav-bar",{attrs:{title:"编辑手机号"},on:{"click-left":t.onClickLeft,"click-right":t.onClickRight}},[i("div",{staticStyle:{color:"#aaaab3"},attrs:{slot:"left"},slot:"left"},[t._v("取消")]),i("div",{attrs:{slot:"right"},slot:"right"},[t._v("确定")])]),i("div",{staticClass:"cellBox"},[i("van-field",{attrs:{type:"tel",label:"手机号",placeholder:"请输入手机号"},model:{value:t.mobile,callback:function(e){t.mobile=e},expression:"mobile"}})],1)],1),i("van-popup",{style:{height:"65%"},attrs:{closeable:"",position:"bottom",round:"","close-on-click-overlay":!1},model:{value:t.detailShow,callback:function(e){t.detailShow=e},expression:"detailShow"}},[i("div",{staticClass:"detailBox"},[i("div",{staticClass:"top_title"},[t._v("套餐详情")]),i("div",{staticClass:"detail"},[t.detailInfo.package?i("div",{staticClass:"line"},[i("div",{staticClass:"line_l"},[t._v("套餐名称:")]),i("div",{staticClass:"line_r"},[t._v(t._s(t.detailInfo.package.product_name))])]):t._e(),t.detailInfo.package?i("div",{staticClass:"line"},[i("div",{staticClass:"line_l"},[t._v("套餐月租:")]),i("div",{staticClass:"line_r"},[t._v(t._s(t.detailInfo.package.monthly_rent)+"元/月")])]):t._e(),t.detailInfo.package?i("div",{staticClass:"line"},[i("div",{staticClass:"line_l"},[t._v("返还余额:")]),i("div",{staticClass:"line_r"},[t._v(t._s(t.detailInfo.package.return_monthly))])]):t._e(),t.detailInfo.package?i("div",{staticClass:"line"},[i("div",{staticClass:"line_l"},[t._v("返还时间:")]),i("div",{staticClass:"line_r"},[t._v(t._s(t.detailInfo.package.return_msg))])]):t._e()]),t.detailInfo?i("div",{staticClass:"recordBox"},[i("div",{staticClass:"record"},[i("div",{staticClass:"record_t"},[t._v("累计充值金额")]),i("div",{staticClass:"record_c"},[t._v(t._s(t.detailInfo.cumulative_recharge_amount))]),i("div",{staticClass:"record_b",on:{click:function(e){return t.toIndex("",2)}}},[t._v(" 查看明细 "),i("van-icon",{attrs:{name:"arrow"}})],1)]),i("div",{staticClass:"record"},[i("div",{staticClass:"record_t"},[t._v("充值期数")]),i("div",{staticClass:"record_c"},[t._v(t._s(t.detailInfo.return_periods))])]),i("div",{staticClass:"record"},[i("div",{staticClass:"record_t"},[t._v("已充值的期数")]),i("div",{staticClass:"record_c"},[t._v(t._s(t.detailInfo.already_return_period))]),i("div",{staticClass:"record_b",on:{click:function(e){return t.toIndex(t.detailInfo.return_balance_id,2)}}},[t._v(" 查看明细 "),i("van-icon",{attrs:{name:"arrow"}})],1)]),i("div",{staticClass:"record"},[i("div",{staticClass:"record_t"},[t._v("剩余未充值期数")]),i("div",{staticClass:"record_c"},[t._v(t._s(t.detailInfo.surplus_return_period))]),i("div",{staticClass:"record_b",on:{click:function(e){return t.toUrl(t.detailInfo.return_balance_id,"0")}}},[t._v(" 查看明细 "),i("van-icon",{attrs:{name:"arrow"}})],1)]),i("div",{staticClass:"record"},[i("div",{staticClass:"record_t"},[t._v("累计已返佣金")]),i("div",{staticClass:"record_c"},[t._v(t._s(t.detailInfo.return_amount))]),i("div",{staticClass:"record_b",on:{click:function(e){return t.toUrl(t.detailInfo.return_balance_id,"1")}}},[t._v(" 查看明细 "),i("van-icon",{attrs:{name:"arrow"}})],1)]),i("div",{staticClass:"record"},[i("div",{staticClass:"record_t"},[t._v("剩余未返佣金")]),i("div",{staticClass:"record_c"},[t._v(t._s(t.detailInfo.un_return_amount))]),i("div",{staticClass:"record_b",on:{click:function(e){return t.toUrl(t.detailInfo.return_balance_id,"2")}}},[t._v(" 查看明细 "),i("van-icon",{attrs:{name:"arrow"}})],1)])]):t._e()])])],1)},o=[],l=(i("99af"),i("14d9"),i("ac0d")),n={mixins:[l["a"]],data:function(){return{show:!1,mobile:"",Editid:"",detailShow:!1,editshow:!1,detailInfo:[],list:[],page:1,total_page:0,isLoadMore:!0,recharge_url:"",member:[]}},activated:function(){this.fun.setWXTitle("话费充值"),this.init(),this.getData()},methods:{getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.post("plugin.phone-bill-recharge.frontend.member-phone.index",{page:this.page},"加载中").then((function(e){t.isLoadMore=!0,1===e.result?t.list=t.list.concat(e.data.records.data):(t.page=t.page-1,t.isLoadMore=!1)}),(function(t){})))},init:function(){this.page=0,this.detailShow=!1,this.list=[],this.total_page=0,this.isLoadMore=!0,this.detailShow=!1,this.editshow=!1,this.Editid=""},toIndex:function(t){t?this.$router.push(this.fun.getUrl("phoneBillRecharge",{status:2,rid:t})):this.$router.push(this.fun.getUrl("phoneBillRecharge",{status:2}))},toUrl:function(t,e){this.$router.push(this.fun.getUrl("phoneBillRechargeRecord",{id:t,ind:e}))},onClickLeft:function(){this.show=!1,this.Editid="",this.mobile="",this.editshow=!1},onClickRight:function(){var t=this;this.mobile?$http.get("plugin.phone-bill-recharge.frontend.member-phone.update",{mobile:this.mobile,id:this.Editid},"加载中...").then((function(e){1===e.result?(t.$toast(e.msg),t.editshow=!1,t.Editid="",t.mobile="",t.getData()):t.$toast(e.msg)}),(function(t){})):this.$toast("请填写编辑的手机号码")},deletBtn:function(t){var e=this;$http.get("plugin.phone-bill-recharge.frontend.member-phone.unbind",{mobile:t.mobile},"加载中...").then((function(t){1===t.result?(e.$toast(t.msg),e.getData()):e.$toast(t.msg)}),(function(t){}))},taoEditPhone:function(t){this.mobile=t.mobile,this.Editid=t.id,this.editshow=!0},phone_newTap:function(){this.show=!0},onClickRight_new:function(){var t=this;this.mobile?$http.get("plugin.phone-bill-recharge.frontend.member-phone.bind",{mobile:this.mobile},"加载中...").then((function(e){1===e.result?(t.$toast(e.msg),t.show=!1,t.getData()):t.$toast(e.msg)}),(function(t){})):this.$toast("请填写新增的手机号码")},rechargeBtn:function(){this.$router.push(this.fun.getUrl("recharge_phone_bill",{status:"recharge_phone_bill",url:this.recharge_url}))},getData:function(){var t=this;$http.get("plugin.phone-bill-recharge.frontend.member-phone.index",{},"加载中...").then((function(e){1===e.result?(t.isLoadMore=!0,t.list=e.data.records.data,t.total_page=e.data.records.last_page,t.total_page||(t.total_page=0),t.recharge_url=e.data.recharge_url,t.member=e.data.member):t.$toast(e.msg)}),(function(t){}))},detailShowTap:function(t,e){var i=this;$http.get("plugin.phone-bill-recharge.frontend.member-phone.package-detail",{product_id:t,mobile:e},"加载中...").then((function(t){1===t.result?(i.detailShow=!0,i.detailInfo=t.data):i.$toast(t.msg)}),(function(t){}))}}},s=n,r=(i("8ccd"),i("2877")),c=Object(r["a"])(s,a,o,!1,null,"02662e42",null);e["default"]=c.exports},"8ccd":function(t,e,i){"use strict";i("9431")},9431:function(t,e,i){var a=i("3109");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("d3469a32",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var a=document.documentElement,o=document.body,l={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}}}]); |