bztang-admin/addons/yun_shop/static/app/js/chunk-310f6f76.6c55fb95.js

1 line
10 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-310f6f76"],{"03f4":function(t,e,i){var s=i("ad59");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=i("499e").default;a("046e0971",s,!0,{sourceMap:!1,shadowMode:!1})},"4cb8":function(t,e,i){"use strict";i("03f4")},6982:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"timeAppointmentMylist"},[s("c-title",{attrs:{hide:!1,text:1==t.listStatus?"我的预约":t.appointmentLang.reserve_obj+"记录"}}),s("van-tabs",{on:{change:t.tabChange},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[s("van-tab",{attrs:{title:"全部"}}),s("van-tab",{attrs:{title:"待核销"}}),s("van-tab",{attrs:{title:"已完成"}})],1),s("div",{staticClass:"list-item"},[t._l(t.list,(function(e,i){return s("div",{key:i,staticClass:"item"},[s("div",{staticClass:"face"},[s("img",{attrs:{src:e.goods_thumb}})]),s("div",{staticClass:"content"},[s("div",{staticClass:"order"},[s("div",{staticClass:"order_sn"},[t._v(t._s(e.order_sn))]),s("div",{staticClass:"status"},[t._v(t._s(t.checkStatus(e.status)))])]),s("div",{staticClass:"text text-overHide"},[t._v(t._s(t.appointmentLang.service)+""+t._s(e.goods_title))]),1==t.listStatus||2==t.listStatus&&1==t.is_boss?s("div",{staticClass:"text"},[t._v(t._s(t.appointmentLang.reserve_obj)+""+t._s(e.obj_name))]):t._e(),2==t.listStatus&&1==t.is_boss?s("div",{staticClass:"text"},[t._v("客户:"+t._s(e.customer_name)+" ("+t._s(e.customer_tel)+")")]):t._e(),s("div",{staticClass:"text"},[t._v("预约时间:"+t._s(e.begin_time_str))]),t.operationList(e)?s("div",{staticClass:"operation"},[s("div",{staticClass:"icon",on:{click:t.goToAdress}},[s("i",{staticClass:"iconfont icon-fontclass-daohang"})]),s("div",{staticClass:"btns"},[0!=e.status&&9!=e.status||0!=e.refund_id?t._e():s("div",{staticClass:"btn-item",on:{click:function(i){return t.tapPost(e)}}},[t._v("核销")]),0!=e.refund_id&&3!=e.status&&1!=e.status?s("div",{staticClass:"btn-item",on:{click:function(i){return t.toRefundDetail(e)}}},[t._v("售后中")]):t._e(),0!=e.status&&9!=e.status||0!=e.refund_id?t._e():s("div",{staticClass:"btn-item cancel",on:{click:function(i){return t.sure(e.order_id)}}},[t._v("取消预约")])])]):t._e()])])})),s("div",{directives:[{name:"show",rawName:"v-show",value:0==t.list.length||!t.isLoadMore,expression:"list.length == 0 || !isLoadMore"}],staticClass:"loadNomore"},[s("img",{attrs:{src:i("8798")}})])],2),s("van-popup",{attrs:{round:"",closeable:""},model:{value:t.codeShow,callback:function(e){t.codeShow=e},expression:"codeShow"}},[s("div",{staticClass:"codeBox"},[s("span",{staticClass:"txt"},[t._v("请核销员扫码")]),s("div",{staticClass:"codeimg",on:{click:t.handImagePreview}},[s("img",{attrs:{src:t.qr_code_url,alt:""}})])])])],1)},a=[],o=(i("e7e5"),i("d399")),n=(i("e17f"),i("2241")),r=(i("4662"),i("28a2")),l=(i("b0c0"),i("99af"),i("ac0d")),c={mixins:[l["a"]],data:function(){return{active:0,listStatus:"",list:[],is_boss:0,store_info:"",codeShow:!1,qr_code_url:"",page:1,isLoadMore:!0,total_page:0}},activated:function(){this.listStatus=this.$route.params.status,1==this.listStatus?this.fun.setWXTitle("我的预约"):this.fun.setWXTitle("".concat(this.appointmentLang.reserve_obj,"记录")),this.getData(),this.getStore()},methods:{toRefundDetail:function(t){this.$router.push(this.fun.getUrl("aftersales",{refund_id:t.refund_id}))},handImagePreview:function(){var t=this.qr_code_url;Object(r["a"])({images:[t],startPosition:0})},sure:function(t){var e=this;n["a"].confirm({title:"",message:"您确定要取消此预约吗"}).then((function(){e.$router.push(e.fun.getUrl("refund",{order_id:t,order_type:1},{}))})).catch((function(t){}))},tapPost:function(t){var e=this,i=t.order_id;$http.get("plugin.reserve-simple.frontend.reserve-order.qr-code-url",{id:i}).then((function(t){1===t.result?(e.qr_code_url=t.data.qr_code_url,e.codeShow=!0):Object(o["a"])(t.msg)})).catch((function(t){}))},goToAdress:function(){var t=this.fun.bd_decrypt(this.store_info.lng,this.store_info.lat);this.fun.goToWXAdress(t,this.store_info.name,this.store_info.full_address)},tabChange:function(){this.initData(),this.getData()},initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0,this.list=[]},getStore:function(){var t=this;$http.get("plugin.reserve-simple.frontend.index.get-shop-info",{}).then((function(e){1===e.result?t.store_info=e.data:Object(o["a"])(e.msg)})).catch((function(t){}))},getData:function(){var t=this,e="";e=1==this.listStatus?"plugin.reserve-simple.frontend.reserve-order.get-my-list":"plugin.reserve-simple.frontend.reserve-order.get-all-list",$http.get(e,{reserve_type:this.active},"加载中").then((function(e){1===e.result?(1==t.listStatus?t.list=e.data.data:(t.list=e.data.list.data,t.is_boss=e.data.is_boss),t.isLoadMore=!0,t.total_page=1==t.listStatus?e.data.last_page:e.data.list.last_page,t.total_page||(t.total_page=0)):Object(o["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore=!1;var e="";e=1==this.listStatus?"plugin.reserve-simple.frontend.reserve-order.get-my-list":"plugin.reserve-simple.frontend.reserve-order.get-all-list",this.page>=this.total_page||(this.page+=1,$http.get(e,{reserve_type:this.active,page:this.page},"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=[];i=1==t.listStatus?e.data.data:e.data.list.data,t.page==t.total_page&&(t.isLoadMore=!1),t.list=t.list.concat(i)}else t.page=t.page-1,t.isLoadMore=!1})))},checkStatus:function(t){return 0==t?"未完成":1==t?"已完成":2==t?"申请取消":3==t?"取消成功":9==t?"取消失败":void 0},operationList:function(t){if(1==this.listStatus)return!0},operation:function(t){return 0==t.status||2==t.status||9==t.status}},computed:{appointmentLang:function(){var t;return null!==(t=this.$store.state.shopLanguage)&&void 0!==t&&t.reserve_simple?this.$store.state.shopLanguage.reserve_simple:{reserve_obj:"预约人员",service:"服务"}}}},d=c,u=(i("4cb8"),i("2877")),m=Object(u["a"])(d,s,a,!1,null,"4be68ac7",null);e["default"]=m.exports},8798:function(t,e,i){t.exports=i.p+"static/app/img/no-more-product.f4632785.png"},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=document.documentElement,a=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return s&&s.scrollTop?t=s.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&s.clientHeight?Math.min(a.clientHeight,s.clientHeight):Math.max(a.clientHeight,s.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,s.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(){}}}},ad59:function(t,e,i){var s=i("24fb");e=s(!1),e.push([t.i,".loadNomore[data-v-4be68ac7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.loadNomore img[data-v-4be68ac7]{width:100%;height:100%;width:5rem;height:5rem}.codeBox[data-v-4be68ac7]{width:13rem;height:15rem;background:#fff;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: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}.codeBox .txt[data-v-4be68ac7]{color:#fe5e56;font-size:1.3rem}.codeBox .codeimg[data-v-4be68ac7]{width:10rem;height:10rem;background:#666;margin-top:1rem}.codeBox .codeimg img[data-v-4be68ac7]{width:100%;height:100%}.list-item[data-v-4be68ac7]{padding-bottom:2rem}.list-item .item[data-v-4be68ac7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.0938rem .9375rem .9375rem .9375rem;margin-bottom:.625rem;background-color:#fff}.list-item .item .face[data-v-4be68ac7],.list-item .item .face img[data-v-4be68ac7]{width:5.3125rem;height:5.3125rem;border-radius:.3125rem}.list-item .item .content[data-v-4be68ac7]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;padding-left:.5625rem;overflow:hidden}.list-item .item .content .order[data-v-4be68ac7]{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}.list-item .item .content .order .order_sn[data-v-4be68ac7]{font-size:.6875rem;color:#666}.list-item .item .content .order .status[data-v-4be68ac7]{font-size:.6875rem;color:#fe5e56}.list-item .item .content .text[data-v-4be68ac7]{text-align:left;margin-top:.363rem;font-size:.75rem;color:#333}.list-item .item .content .operation[data-v-4be68ac7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-top:.625rem}.list-item .item .content .operation .icon[data-v-4be68ac7]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.list-item .item .content .operation .icon .iconfont[data-v-4be68ac7]{color:#fc8200}.list-item .item .content .operation .btns[data-v-4be68ac7],.list-item .item .content .operation .btns .btn-item[data-v-4be68ac7]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.list-item .item .content .operation .btns .btn-item[data-v-4be68ac7]{-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:3.75rem;height:1.3125rem;font-size:.6875rem;color:#fe5e56;border-radius:.6563rem;border:.0313rem solid #fe5e56}.list-item .item .content .operation .btns .btn-item.cancel[data-v-4be68ac7]{margin-left:.625rem;color:#666;border:.0313rem solid #a7a7a7}",""]),t.exports=e}}]);