1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-586178b2"],{"109d":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page",attrs:{id:"signLunch"}},[a("c-title",{attrs:{text:"合同中心"}}),t.showPage?a("div",{staticClass:"header"},[a("div",{staticClass:"face"},[a("img",{attrs:{src:t.details.avatar,alt:""}})]),a("div",{staticClass:"header-box"},[a("div",{staticClass:"nickname"},[t._v(t._s(t.details.nickname))]),a("div",{staticClass:"desc",on:{click:t.toSign}},[a("div",{staticClass:"name"},[t._v(t._s(t.details.name))]),a("div",{staticClass:"label"},[t._v(t._s(1==t.details.status?"已认证":"个人未认证"))])]),a("div",{staticClass:"desc",on:{click:t.toSign}},[a("div",{staticClass:"name"},[t._v(t._s(t.details.company_name))]),a("div",{staticClass:"label"},[t._v(t._s(1==t.details.company_status?"已认证":"企业未认证"))])])])]):t._e(),a("div",{staticClass:"container myContract"},[a("div",{staticClass:"container-title"},[t._v("我的合同")]),a("div",{staticClass:"container-box"},[a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("contractList",{},{status:0})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.all_count))]),a("div",{staticClass:"desc"},[t._v("全部合同")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("contractList",{},{status:3})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.self_no_sign))]),a("div",{staticClass:"desc"},[t._v("待我签署")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("contractList",{},{status:1})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.self_signed))]),a("div",{staticClass:"desc"},[t._v("我已签署")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("contractList",{},{status:2})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.finish_count))]),a("div",{staticClass:"desc"},[t._v("已完成")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("contractList",{},{status:4})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.over_time_count))]),a("div",{staticClass:"desc"},[t._v("已超时")])])])]),1==t.details.is_legal?a("div",{staticClass:"container companyContract"},[a("div",{staticClass:"container-title"},[t._v("公司合同")]),a("div",{staticClass:"container-box"},[a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("companyContractList",{},{status:0})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.all_company_contract))]),a("div",{staticClass:"desc"},[t._v("全部合同")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("companyContractList",{},{status:1})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.all_company_contract_ing))]),a("div",{staticClass:"desc"},[t._v("签署中")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("companyContractList",{},{status:2})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.all_company_contract_finish))]),a("div",{staticClass:"desc"},[t._v("已完成")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("companyContractList",{},{status:4})}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.all_company_contract_over_time))]),a("div",{staticClass:"desc"},[t._v("已超时")])])])]):t._e(),a("div",{staticClass:"container contractBill"},[a("div",{staticClass:"container-title"},[t._v("合同账单")]),a("div",{staticClass:"fixed-btn",on:{click:function(e){return t.gotoPages("searchAll")}}},[t._v("购买合同")]),a("div",{staticClass:"container-box"},[a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("contractBills")}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.contract_num_sum))]),a("div",{staticClass:"desc"},[t._v("购买数量")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("contractBills")}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.use_num_sum))]),a("div",{staticClass:"desc"},[t._v("已使用数量")])]),a("div",{staticClass:"container-flex",on:{click:function(e){return t.gotoPages("contractBills")}}},[a("div",{staticClass:"num"},[t._v(t._s(t.details.rest_num_sum))]),a("div",{staticClass:"desc"},[t._v("可使用数量")])])])]),t._e(),(1==t.details.is_legal||0==t.details.is_legal&&1==t.details.company_status)&&t.templateList.length>0?a("div",{staticClass:"container myTemplate"},[a("div",{staticClass:"container-title"},[t._v("我的模板")]),a("div",{staticClass:"myTemplate-box"},t._l(t.templateList,(function(e){return a("div",{key:e.id,staticClass:"myTemplate-flex"},[a("div",{staticClass:"number"},[t._v(t._s(e.id))]),a("div",{staticClass:"title"},[t._v(t._s(e.name))]),a("div",{staticClass:"sendBtn",on:{click:function(a){return t.gotoPages("signSeeTemplate",{},{tid:e.id})}}},[t._v("发起签署")])])})),0)]):t._e(),a("div",{staticStyle:{height:"2rem"}})],1)},n=[],s=(a("99af"),a("ac0d")),l={mixins:[s["a"]],data:function(){return{showPage:!1,details:{},templateList:[],cid:"",page:1,isLoadMore:!0,total_page:0}},activated:function(){this.$route.query.cid?this.cid=this.$route.query.cid:window.localStorage.getItem("sign_company_cid")&&(this.cid=window.localStorage.getItem("sign_company_cid")),this.getDetails()},methods:{initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0},toSign:function(){1!=this.details.status?this.$router.push(this.fun.getUrl("personBank")):1==this.details.status&&1!=this.details.company_status&&this.$router.push(this.fun.getUrl("signCompany"))},gotoPages:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$router.push(this.fun.getUrl(t,e,a))},getDetails:function(){var t=this;this.showPage=!1,$http.get("plugin.yun-sign.frontend.h5.member.get-info",{cid:this.cid},"loading").then((function(e){if(1!=e.result)return t.$toast(e.msg);t.details=e.data,(1==t.details.is_legal||0==t.details.is_legal&&1==t.details.company_status)&&t.getTemplateList(),t.showPage=!0}))},getTemplateList:function(){var t=this;this.initData(),$http.get("plugin.yun-sign.frontend.h5.template.getList").then((function(e){if(1!=e.result)return t.$toast(e.msg);t.isLoadMore=!0,t.templateList=e.data.list.data,t.total_page=e.data.list.last_page}))},getMoreData:function(){var t=this;1==this.details.is_legal&&(this.isLoadMore=!1,this.page>=this.total_page?this.isLoadMore=!1:(this.page+=1,$http.get("plugin.yun-sign.frontend.h5.template.getList",{page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.list.data;t.templateList=t.templateList.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}))))}}},o=l,c=(a("d916"),a("2877")),d=Object(c["a"])(o,i,n,!1,null,"5d7bbd54",null);e["default"]=d.exports},2570:function(t,e,a){var i=a("7970");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("5dff55f8",i,!0,{sourceMap:!1,shadowMode:!1})},7970:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'#signLunch .page[data-v-5d7bbd54]{background:#f9fbfc;min-height:100vh}#signLunch .container[data-v-5d7bbd54]{position:relative;width:21.563rem;padding:.65rem .56rem .906rem;margin:0 auto;background-color:#fff;border-radius:.469rem}#signLunch .container .container-title[data-v-5d7bbd54]{position:relative;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;font-weight:700;padding-left:.469rem;font-size:.813rem;color:#198bfb}#signLunch .container .container-title[data-v-5d7bbd54]:before{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);content:" ";display:block;width:.125rem;height:.7rem;background:#198bfb}#signLunch .templateInfo .templateInfo-item[data-v-5d7bbd54]{height:4rem;padding-top:.9rem;border-bottom:.051rem solid #f6f6f6}#signLunch .templateInfo .templateInfo-item .desc[data-v-5d7bbd54]{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}#signLunch .templateInfo .templateInfo-item .desc .icon-fontclass-xinghao[data-v-5d7bbd54]{color:#f64747;font-size:.75rem}#signLunch .templateInfo .templateInfo-item .desc span[data-v-5d7bbd54]{margin-left:.3rem;font-size:.813rem;color:#171717}#signLunch .templateInfo .templateInfo-item .input[data-v-5d7bbd54]{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;padding-top:.3rem;padding-left:.3rem}#signLunch .templateInfo .templateInfo-item .input input[data-v-5d7bbd54],#signLunch .templateInfo .templateInfo-item .input span[data-v-5d7bbd54]{text-align:left;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;border:none;font-size:.938rem}#signLunch .button[data-v-5d7bbd54]{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;-webkit-transition:.3s;transition:.3s}#signLunch .button[data-v-5d7bbd54]:active{-webkit-filter:brightness(.8);filter:brightness(.8)}#signLunch .header[data-v-5d7bbd54]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:23.438rem;padding:1.531rem .938rem 2.531rem;background-image:url(https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/sign_index_header_bg.png);background-size:cover;background-repeat:no-repeat}#signLunch .header .face[data-v-5d7bbd54],#signLunch .header .face img[data-v-5d7bbd54]{width:3.125rem;height:3.125rem;border-radius:50%}#signLunch .header .header-box[data-v-5d7bbd54]{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-left:.625rem;text-align:left}#signLunch .header .header-box .nickname[data-v-5d7bbd54]{margin-bottom:.2rem;font-size:1rem;color:#fff}#signLunch .header .header-box .desc[data-v-5d7bbd54]{margin-top:.2rem;font-size:.75rem}#signLunch .header .header-box .desc[data-v-5d7bbd54],#signLunch .header .header-box .desc .label[data-v-5d7bbd54]{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:#fff}#signLunch .header .header-box .desc .label[data-v-5d7bbd54]{padding:.15rem .4rem;line-height:1rem;margin-left:.594rem;background-color:#0c73c6;border-radius:.547rem}#signLunch .container .fixed-btn[data-v-5d7bbd54],#signLunch .header .header-box .desc .label[data-v-5d7bbd54]{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;font-size:.625rem}#signLunch .container .fixed-btn[data-v-5d7bbd54]{position:absolute;top:.6rem;right:.75rem;width:3.75rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:1.406rem;color:#fa761d;border-radius:.188rem;border:.063rem solid #fa761d}#signLunch .container .container-box[data-v-5d7bbd54],#signLunch .container .fixed-btn[data-v-5d7bbd54]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#signLunch .container .container-box[data-v-5d7bbd54]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin-top:1rem}#signLunch .container .container-box .container-flex .num[data-v-5d7bbd54]{font-weight:700;font-size:.875rem;color:#282828}#signLunch .container .container-box .container-flex .desc[data-v-5d7bbd54]{margin-top:.425rem;font-size:.688rem;color:#4f4f4f}#signLunch .myContract[data-v-5d7bbd54]{margin-top:-1.5rem}#signLunch .companyContract[data-v-5d7bbd54],#signLunch .contractBill[data-v-5d7bbd54],#signLunch .staffManagement[data-v-5d7bbd54]{margin-top:.625rem}#signLunch .staffManagement .staffManagement-box[data-v-5d7bbd54]{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;overflow:scroll;padding-bottom:.2rem}#signLunch .staffManagement .staffManagement-box .staffManagement-flex[data-v-5d7bbd54]{position:relative;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;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:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:6.313rem;height:7.5rem;margin-right:.625rem;background-color:#fff;-webkit-box-shadow:0 .063rem .25rem .025rem hsla(0,0%,82.7%,.66);box-shadow:0 .063rem .25rem .025rem hsla(0,0%,82.7%,.66);border-radius:.313rem}#signLunch .staffManagement .staffManagement-box .staffManagement-flex .face[data-v-5d7bbd54]{width:3.438rem;height:3.438rem;margin-top:1rem}#signLunch .staffManagement .staffManagement-box .staffManagement-flex .face img[data-v-5d7bbd54]{width:3.438rem;height:3.438rem;border-radius:.188rem}#signLunch .staffManagement .staffManagement-box .staffManagement-flex .name[data-v-5d7bbd54]{margin-top:.4rem;font-size:.813rem;color:#4f4f4f}#signLunch .staffManagement .staffManagement-box .staffManagement-flex .label[data-v-5d7bbd54]{position:absolute;top:0;left:0;width:2.5rem;height:1.063rem;font-size:.688rem;color:#fff;background-color:#ffaa01;border-radius:.313rem 0 .313rem 0}#signLunch .staffManagement .staffManagement-box .staffManagement-flex .label.staff[data-v-5d7bbd54]{background-color:#a8c5fd}#signLunch .staffManagement .staffManagement-box .staffManagement-flex .close[data-v-5d7bbd54]{position:absolute;top:0;right:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:.844rem;height:.844rem;background-color:#dfe0e5;border-radius:0 .313rem 0 .313rem}#signLunch .staffManagement .staffManagement-box .staffManagement-flex .close i[data-v-5d7bbd54]{color:#fff;font-size:.625rem}#signLunch .myTemplate[data-v-5d7bbd54]{margin-top:.625rem}#signLunch .myTemplate .myTemplate-box[data-v-5d7bbd54]{padding-top:.5rem}#signLunch .myTemplate .myTemplate-box .myTemplate-flex[data-v-5d7bbd54]{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;height:3.125rem;padding:0 .3rem;overflow:hidden}#signLunch .myTemplate .myTemplate-box .myTemplate-flex .number[data-v-5d7bbd54]{font-size:.813rem;color:#fa761d}#signLunch .myTemplate .myTemplate-box .myTemplate-flex .title[data-v-5d7bbd54]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-left:1rem;font-size:.813rem;color:#272727}#signLunch .myTemplate .myTemplate-box .myTemplate-flex .sendBtn[data-v-5d7bbd54]{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;width:4.063rem;height:1.5rem;font-size:.688rem;color:#fff;background-color:#198bfb;border-radius:.188rem}.v-leave[data-v-5d7bbd54]{opacity:1;width:6.313rem}.v-leave-active[data-v-5d7bbd54]{opacity:0;width:0!important;-webkit-transition:all .5s;transition:all .5s}',""]),t.exports=e},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=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 t=0;return i&&i.scrollTop?t=i.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,i.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(){}}}},d916:function(t,e,a){"use strict";a("2570")}}]); |