1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d68be5fc"],{a87c:function(e,t,i){"use strict";i("b0ac")},b0ac:function(e,t,i){var a=i("ef09");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=i("499e").default;o("0f517462",a,!0,{sourceMap:!1,shadowMode:!1})},be151:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"tokerMerchant"}},[i("c-title",{attrs:{hide:!1,text:e.plugin_name,url:"home"}}),e.merchant?e._e():[i("div",{staticClass:"conten_a"},[i("div",{staticClass:"headTop"},[i("div",{staticClass:"user"},[i("img",{attrs:{src:e.member.avatar_image,alt:""}}),i("div",{staticClass:"usetDetail"},[i("div",{staticClass:"userName"},[e._v(e._s(e.member.nickname))]),i("div",{staticClass:"orderNum"},[e._v("订单编号:"+e._s(e.order.order_sn))])])])]),i("div",{staticClass:"shopDetail"},[i("div",{staticClass:"shopLeft"},[i("img",{attrs:{src:e.card.thumb,alt:""}})]),i("div",{staticClass:"shopRight"},[i("div",{staticClass:"shopName"},[e._v(e._s(e.card.title))]),i("div",{staticClass:"shopPrice"},[e._v("¥"+e._s(e.card.price))])])])]),i("div",{staticClass:"onece"},[i("div",{staticClass:"title"},[e._v("一次性消费项")]),"0"==e.info.once_write_off?i("div",{staticClass:"oneList"},e._l(e.info.member_once,(function(t,a){return i("div",{key:a,staticClass:"shopDetail"},[i("van-checkbox",{directives:[{name:"show",rawName:"v-show",value:0==a,expression:"ind == 0"}],attrs:{shape:"square","icon-size":"14px"},on:{change:e.onceChange},model:{value:e.once_form,callback:function(t){e.once_form=t},expression:"once_form"}}),i("div",{staticClass:"shopLeft"},[i("img",{attrs:{src:t.full_img_url,alt:""}})]),i("div",{staticClass:"shopRight"},[i("div",{staticClass:"shopName"},[e._v(e._s(t.name))]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"shopPrice"},[e._v("数量:"+e._s(t.quantity))]),i("div",{staticClass:"status"},[e._v("未使用")])])])],1)})),0):1==e.info.once_write_off?i("div",{staticClass:"already"},[e._v("套餐已核销")]):e._e()]),i("div",{staticClass:"repeatedly"},[i("div",{staticClass:"title"},[e._v("多次性消费项")]),e.info.member_many?i("div",{staticClass:"repShop"},e._l(e.info.member_many,(function(t,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:1!=t.status,expression:"item.status != 1"}],key:a,staticClass:"shoplis"},[i("div",{staticClass:"lisTop"},[i("van-checkbox",{attrs:{name:a,shape:"square","icon-size":"14px"},on:{click:function(i){return e.manyChange(a,t)}},model:{value:t.checked,callback:function(i){e.$set(t,"checked",i)},expression:"item.checked"}}),i("div",{staticClass:"shopLeft"},[i("img",{attrs:{src:t.full_img_url,alt:""}})]),i("div",{staticClass:"shopRight"},[i("div",{staticClass:"shopName"},[e._v(e._s(t.name))]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"shopNum"},[e._v("数量:"+e._s(t.quantity))]),i("div",{staticClass:"status"},[e._v("未使用:"+e._s(t.rest_num))]),i("div",{staticClass:"status"},[e._v("已使用:"+e._s(t.quantity-t.rest_num))])])])],1),i("div",{staticClass:"lisBottom"},[i("van-stepper",{attrs:{theme:"round","button-size":"22","disable-input":""},on:{change:function(i){return e.stepChange(a,t)}},model:{value:t.num,callback:function(i){e.$set(t,"num",i)},expression:"item.num"}})],1)])})),0):e._e(),e.cheackSta?i("div",{staticClass:"already"},[e._v("套餐已核销")]):e._e()]),i("div",{staticClass:"fiexdP"},[i("div",{staticClass:"btn",on:{click:e.submit}},[e._v("确认核销")])])],e.merchant?i("div",{staticClass:"box"},[i("i",{staticClass:"iconfont icon-pm_auction_success iconas"}),i("span",{staticClass:"boxspan"},[e._v("核销成功!")])]):e._e()],2)},o=[],s=(i("e17f"),i("2241")),n=(i("e7e5"),i("d399")),r=(i("14d9"),i("a434"),i("6968")),l={data:function(){return{active:0,asda:{asdasd:"111"},info:[],id:"",many_form:[],once_form:"",member:[],order:[],card:[],checked:"",manyStatus:!1,merchant:!1,cheackSta:!1,plugin_name:""}},activated:function(){var e=this.$route.params.id;this.id=e,this.merchant=!1,this.getdata()},methods:{stepChange:function(e,t){var i=this;if(i.many_form.length>0)for(var a=0;a<this.many_form.length;a++)this.many_form[a].id==t.id?this.many_form[a].num=t.num:this.info.member_many[a].num=t.num;else this.info.member_many[e].num=t.num},manyChange:function(e,t){if(t.checked){this.manyStatus=!0;var i={id:t.id,num:t.num};this.many_form.push(i)}else for(var a=0;a<this.many_form.length;a++)this.many_form[a].id==t.id&&this.many_form.splice(a,"1")},onceChange:function(e){this.once_form=e?"1":""},getdata:function(){var e=this;$http.get("plugin.customer-development.Frontend.controllers.write-off.store",{id:e.id},"").then((function(t){if(1===t.result){e.info=t.data.member_card,e.member=t.data.member_card.member,e.order=t.data.member_card.order,e.card=t.data.member_card.card.goods,e.plugin_name=t.data.plugin_name?t.data.plugin_name:"拓客卡",e.fun.setWXTitle(e.plugin_name?e.plugin_name:"拓客卡");var i=!1;if(t.data.member_card.member_many.length>0){for(var a=0;a<e.info.member_many.length;a++)e.info.member_many[a].num="1",e.$set(e.info.member_many[a],"num",1);for(var o=0;o<e.info.member_many.length;o++)if(1==e.info.member_many[o].status)i=!0;else if(0==e.info.member_many[o].status){i=!1;break}e.cheackSta=i}}else Object(n["a"])(t.msg),e.plugin_name=t.data.plugin_name?t.data.plugin_name:"拓客卡",e.fun.setWXTitle(e.plugin_name?e.plugin_name:"拓客卡")}))},submit:function(){if(!this.fun.isTextEmpty(this.once_form)||this.manyStatus){var e=this;s["a"].confirm({message:"是否确认核销"}).then((function(){e.submitGet()})).catch((function(){}))}else Object(n["a"])("请选择核销内容")},submitGet:function(){var e=this,t={id:e.id,once:e.once_form?e.once_form:"",many:e.manyStatus?e.many_form:""};$http.post("plugin.customer-development.Frontend.controllers.write-off.store-handle",t,"").then((function(t){1===t.result?(Object(n["a"])(t.msg),e.merchant=!0):Object(n["a"])(t.msg)}))}},components:{cTitle:r["a"]}},c=l,m=c,f=(i("a87c"),i("2877")),d=Object(f["a"])(m,a,o,!1,null,"90036f64",null);t["default"]=d.exports},ef09:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".box[data-v-90036f64]{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;margin-top:4.47rem}.box .iconas[data-v-90036f64]{color:#f15353;font-size:5rem}.box .boxspan[data-v-90036f64]{font-size:.94rem}.already[data-v-90036f64]{height:5.25rem;width:21.56rem;background:#fff;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;color:#666;margin:0 auto}#tokerMerchant .fiexdP[data-v-90036f64]{position:fixed;bottom:1.09rem;width:100%}#tokerMerchant .fiexdP .btn[data-v-90036f64]{margin:0 auto;width:19.06rem;height:2.5rem;background-color:#f14e4e;border-radius:1.25rem;text-align:center;line-height:2.5rem;font-size:.94rem;color:#fff}#tokerMerchant .repeatedly[data-v-90036f64]{margin-top:.63rem;padding-bottom:6rem}#tokerMerchant .repeatedly .title[data-v-90036f64]{margin:0 auto;width:21.56rem;height:1.88rem;background-color:#feebeb;border-radius:.47rem .47rem 0 0;text-align:center;font-size:.81rem;color:#333;line-height:1.88rem}#tokerMerchant .repeatedly .repShop .shoplis[data-v-90036f64]:last-child{border:none}#tokerMerchant .repeatedly .repShop .shoplis[data-v-90036f64]{height:7rem;margin:0 .94rem;background:#fff;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-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;border-bottom:1px solid #ece8e8}#tokerMerchant .repeatedly .repShop .shoplis .lisBottom[data-v-90036f64]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-right:.75rem}#tokerMerchant .repeatedly .repShop .shoplis .lisTop[data-v-90036f64]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:3.59rem;width:100%;padding:.69rem 1.19rem 0 .5rem}#tokerMerchant .repeatedly .repShop .shoplis .lisTop .shopLeft[data-v-90036f64]{width:3.59rem;height:3.59rem;background-color:#f5f5f5;margin-left:.59rem;margin-right:.53rem}#tokerMerchant .repeatedly .repShop .shoplis .lisTop .shopLeft img[data-v-90036f64]{width:100%;height:100%}#tokerMerchant .repeatedly .repShop .shoplis .lisTop .shopRight[data-v-90036f64]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:3.59rem;-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}#tokerMerchant .repeatedly .repShop .shoplis .lisTop .shopRight[data-v-90036f64],#tokerMerchant .repeatedly .repShop .shoplis .lisTop .shopRight .bottom[data-v-90036f64]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#tokerMerchant .repeatedly .repShop .shoplis .lisTop .shopRight .bottom .shopNum[data-v-90036f64]{font-size:.75rem;color:#999}#tokerMerchant .repeatedly .repShop .shoplis .lisTop .shopRight .bottom .status[data-v-90036f64]{font-size:.75rem;color:#f15353;margin-left:.3rem}#tokerMerchant .repeatedly .repShop .shoplis .lisTop .shopRight .shopName[data-v-90036f64]{text-align:left;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}#tokerMerchant .repeatedly .repShop .shoplis .line[data-v-90036f64]{border-top:1px solid #ece8e8;margin:0 .75rem}#tokerMerchant .onece[data-v-90036f64]{margin-top:.63rem}#tokerMerchant .onece .title[data-v-90036f64]{margin:0 auto;width:21.56rem;height:1.88rem;background-color:#feebeb;border-radius:.47rem .47rem 0 0;text-align:center;font-size:.81rem;color:#333;line-height:1.88rem}#tokerMerchant .onece .shopDetail[data-v-90036f64]{width:21.56rem;height:5.16rem;background-color:#fff;-ms-flex-pack:justify;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 auto;padding:.69rem 1.19rem .75rem .5rem}#tokerMerchant .onece .shopDetail[data-v-90036f64],#tokerMerchant .onece .shopDetail .shopRight[data-v-90036f64]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}#tokerMerchant .onece .shopDetail .shopRight[data-v-90036f64]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;-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:justify;margin-left:.5rem}#tokerMerchant .onece .shopDetail .shopRight .bottom[data-v-90036f64]{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}#tokerMerchant .onece .shopDetail .shopRight .bottom .shopPrice[data-v-90036f64]{font-size:.75rem;color:#999}#tokerMerchant .onece .shopDetail .shopRight .bottom .status[data-v-90036f64]{font-size:.75rem;color:#f15353;margin-left:.3rem}#tokerMerchant .onece .shopDetail .shopRight .shopName[data-v-90036f64]{text-align:left;font-size:.81rem;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}#tokerMerchant .onece .shopDetail .shopLeft[data-v-90036f64]{width:3.59rem;height:3.59rem;margin-left:.59rem;background-color:#f5f5f5}#tokerMerchant .onece .shopDetail .shopLeft img[data-v-90036f64]{width:100%;height:100%}#tokerMerchant .conten_a .shopDetail[data-v-90036f64]{width:21.56rem;height:5.16rem;background-color:#fff;padding:.75rem 1.25rem .75rem .91rem;-ms-flex-pack:justify;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:0 auto;margin-top:-2.94rem}#tokerMerchant .conten_a .shopDetail[data-v-90036f64],#tokerMerchant .conten_a .shopDetail .shopRight[data-v-90036f64]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}#tokerMerchant .conten_a .shopDetail .shopRight[data-v-90036f64]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;-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:justify;margin-left:.5rem}#tokerMerchant .conten_a .shopDetail .shopRight .shopPrice[data-v-90036f64]{font-size:.75rem;color:#f15353}#tokerMerchant .conten_a .shopDetail .shopRight .shopName[data-v-90036f64]{text-align:left;font-size:.81rem;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}#tokerMerchant .conten_a .shopDetail .shopLeft[data-v-90036f64]{width:3.59rem;height:3.59rem;background-color:#f5f5f5}#tokerMerchant .conten_a .shopDetail .shopLeft img[data-v-90036f64]{width:100%;height:100%}#tokerMerchant .conten_a .headTop[data-v-90036f64]{width:100%;height:8.38rem;background-color:#ff3e38;border-radius:0 0 1.69rem 1.69rem;padding:.94rem .94rem 0 .94rem}#tokerMerchant .conten_a .headTop .user[data-v-90036f64]{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:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}#tokerMerchant .conten_a .headTop .user .usetDetail[data-v-90036f64]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;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:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;margin-left:.66rem;overflow:hidden}#tokerMerchant .conten_a .headTop .user .usetDetail .userName[data-v-90036f64]{font-size:1rem;color:#fefefe;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;text-align:left}#tokerMerchant .conten_a .headTop .user .usetDetail .orderNum[data-v-90036f64]{font-size:.75rem;color:#ececec;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;width:100%}#tokerMerchant .conten_a .headTop .user img[data-v-90036f64]{width:3.56rem;height:3.56rem;background-color:#f0f1f6;border-radius:100%}",""]),e.exports=t}}]); |