bztang-admin/addons/yun_shop/static/app/js/chunk-fb0751f4.254853ce.js

1 line
11 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-fb0751f4"],{"0273":function(t,e,a){"use strict";a("8bd3")},"79d39":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user_orderDetail"}},[a("c-title",{attrs:{hide:!1,text:"订单详情"}}),a("div",{staticClass:"main"},[a("div",{staticClass:"top_box"},[a("div",{staticClass:"sn"},[t._v("订单号:"+t._s(t.datas.order_sn))]),a("div",{staticClass:"sn_status"},[t._v(t._s(t.datas.status_name))])]),a("div",{staticClass:"goodslist"},t._l(t.datas.has_many_order_goods,(function(e){return a("div",{key:e.id,staticClass:"goods"},[a("img",{attrs:{src:e.thumb,alt:""}}),a("div",{staticClass:"goods_r"},[a("div",{staticClass:"title"},[t._v(t._s(e.title))]),a("div",{staticClass:"total"},[t._v("数量:×"+t._s(e.total))])])])})),0),a("div",{staticClass:"context"},[a("div",{staticClass:"Booked_box"},[a("div",{staticClass:"reservation_time"},[t._v("预约时间")]),a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.datas.status&&!t.selectTime,expression:"datas.status == 0 && !selectTime"}],staticClass:"reservation_select",on:{click:function(e){t.showTime=!0}}},[t._v(" 请选择 "),a("i",{staticClass:"iconfont icon-member_right"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.datas.status&&t.selectTime,expression:"datas.status == 0 && selectTime"}],staticClass:"reservation_select",on:{click:function(e){t.showTime=!0}}},[t._v(" "+t._s(t.selectTime)),a("i",{staticClass:"iconfont icon-member_right"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.datas.status,expression:"datas.status == 1"}],staticClass:"reservation_select"},[t._v(" "+t._s(t.datas.time)),a("i",{staticClass:"iconfont icon-member_right"})])]),a("div",{staticClass:"remark"},[a("div",{staticClass:"remark_title"},[t._v("备注信息")]),0==t.datas.status?[0==t.datas.status?a("van-field",{attrs:{rows:"3",autosize:"",type:"textarea",placeholder:"填写备注...","show-word-limit":""},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}}):t._e(),0==t.datas.status?a("p",{staticClass:"warn_text"},[t._v(" 温馨提醒:建议收到货后预约师傅安装,预约安装日期需在商品到达具体时间后 ")]):t._e()]:t._e(),0!=t.datas.status?a("div",{staticClass:"remark_text"},[t._v(t._s(t.datas.remark))]):t._e()],2),0!=t.datas.status?a("div",{staticClass:"steps"},[a("van-steps",{attrs:{direction:"vertical",active:t.datas.status,"active-color":"#f15353"}},[a("van-step",[a("h3",[t._v("预约安装时间")]),t.datas.status>=0?a("p",[t._v(t._s(t.datas.schedule.appointment_time))]):t._e()]),a("van-step",[a("h3",[t._v("派单")]),t.datas.status>=1?a("p",[t._v(" 安装师傅:"+t._s(t.datas.schedule.worker_info.name)+" 联系电话:"),a("a",{attrs:{href:"tel:"+t.datas.schedule.worker_info.phone}},[t._v(t._s(t.datas.schedule.worker_info.phone))])]):t._e(),t.datas.status>=1?a("p",[t._v(t._s(t.datas.schedule.sendOrder_time))]):t._e()]),a("van-step",[a("h3",[t._v("上门安装")]),t.datas.status>=2?a("p",[t._v(t._s(t.datas.schedule.install_time))]):t._e()]),a("van-step",[a("h3",[t._v("完成安装")]),t.datas.status>=3?a("p",[t._v(t._s(t.datas.schedule.finish_time))]):t._e()])],1)],1):t._e()]),t.fun.isTextEmpty(t.datas.button_models)?t._e():a("div",{staticClass:"bottom_box set-pc-style"},[a("div",{staticClass:"money"}),a("div",{staticClass:"button_list"},t._l(t.datas.button_models,(function(e){return a("div",{key:e.value,staticClass:"button",on:{click:function(a){return a.stopPropagation(),t.publicMessage(t.datas.id,e.api,e.name)}}},[t._v(" "+t._s(e.name)+" ")])})),0)])]),a("van-popup",{staticClass:"set-pc-style",attrs:{position:"bottom","lock-scroll":"","close-on-click-overlay":!1},model:{value:t.showTime,callback:function(e){t.showTime=e},expression:"showTime"}},[a("van-datetime-picker",{attrs:{formatter:t.formatter,type:"datetime",title:"选择年月日小时","min-date":t.minDate},on:{confirm:t.confirmTime,cancel:function(e){t.showTime=!1}},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1)],1)},i=[],o=(a("e7e5"),a("d399")),r=(a("ac1f"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("6968"));Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var a in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+a+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[a]:("00"+e[a]).substr((""+e[a]).length)));return t};var n={data:function(){return{timestamp:null,selectTime:null,showTime:!1,currentDate:new Date,minDate:new Date,datas:{},message:""}},activated:function(){this.getData()},components:{cTitle:r["a"]},computed:{},methods:{getData:function(){var t=this;$http.post("plugin.assemble.Frontend.Modules.Order.Controllers.detail",{order_id:this.$route.params.id},"").then((function(e){1===e.result?t.datas=e.data:Object(o["a"])(e.msg)})).catch((function(t){}))},publicMessage:function(t,e,a){var s=this,i=a||"提交操作";e&&("预约安装"!=a?this.$dialog.confirm({message:"确定".concat(i,"?")}).then((function(){var a=s,r={order_id:t},n=e||"";$http.get(n,r).then((function(t){1==t.result?(a.getData(),Object(o["a"])("".concat(i,"成功"))):a.$dialog.alert({message:t.msg})}),(function(t){}))})).catch((function(){})):this.submitReserve())},submitReserve:function(){var t=this;this.timestamp?$http.post("plugin.assemble.Frontend.Modules.Order.Controllers.appointment",{order_id:this.$route.params.id,time:this.timestamp,remark:this.message},"").then((function(e){1===e.result?(t.getData(),Object(o["a"])(e.msg)):Object(o["a"])(e.msg)})).catch((function(t){})):Object(o["a"])("请选择预约时间!")},confirmTime:function(t){this.selectTime=t.Format("yyyy-MM-dd hh:mm:ss"),this.showTime=!1,this.timestamp=this.fun.getTimestamp(t)},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"===t?"".concat(e,"日"):"hour"===t?"".concat(e,"时"):"minute"===t?"".concat(e,"分"):e}}},l=n,d=(a("0273"),a("2877")),c=Object(d["a"])(l,s,i,!1,null,"72f8509c",null);e["default"]=c.exports},"8bd3":function(t,e,a){var s=a("f65c");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var i=a("499e").default;i("74131584",s,!0,{sourceMap:!1,shadowMode:!1})},f65c:function(t,e,a){var s=a("24fb");e=s(!1),e.push([t.i,'#user_orderDetail[data-v-72f8509c]{padding-bottom:60px}#user_orderDetail .main .top_box[data-v-72f8509c]{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;font-size:.875rem;height:2.375rem;line-height:2.375rem;text-align:left;background:#fff;padding:0 .875rem}#user_orderDetail .main .top_box .sn[data-v-72f8509c]{color:#333;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#user_orderDetail .main .top_box .sn_status[data-v-72f8509c]{color:#f15353}#user_orderDetail .main .goodslist[data-v-72f8509c]{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;background:#fff;margin-bottom:.875rem}#user_orderDetail .main .goodslist .goods[data-v-72f8509c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem .875rem}#user_orderDetail .main .goodslist .goods img[data-v-72f8509c]{width:7.25rem;height:7.25rem;border-radius:.25rem;overflow:hidden}#user_orderDetail .main .goodslist .goods .goods_r[data-v-72f8509c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.75rem;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;text-align:left}#user_orderDetail .main .goodslist .goods .goods_r .title[data-v-72f8509c]{font-size:.875rem;color:#000;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}#user_orderDetail .main .goodslist .goods .goods_r .total[data-v-72f8509c]{color:#666}#user_orderDetail .main .context[data-v-72f8509c]{background:#fff;padding:1rem 0;text-align:left}#user_orderDetail .main .context .Booked_box[data-v-72f8509c]{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;margin-bottom:.75rem;padding:0 .875rem}#user_orderDetail .main .context .remark[data-v-72f8509c]{padding:0 .875rem 1rem}#user_orderDetail .main .context .remark .remark_title[data-v-72f8509c]{height:2rem;line-height:2rem}#user_orderDetail .main .context .remark .remark_text[data-v-72f8509c]{font-size:.875rem;color:#000;padding-bottom:.875rem;border-bottom:.0625rem solid #ececec}#user_orderDetail .main .context .remark .warn_text[data-v-72f8509c]{padding:.5rem 0;font-size:.75rem;line-height:1.25rem;color:#999}#user_orderDetail .main .context .remark .van-cell[data-v-72f8509c]{background:#f7f7f7}#user_orderDetail .main .context .steps[data-v-72f8509c],#user_orderDetail .main .context .steps h3[data-v-72f8509c]{font-weight:400}#user_orderDetail .main .context .steps .van-step--vertical[data-v-72f8509c]:not(:last-child):after{border-bottom-width:0}#user_orderDetail .main .bottom_box[data-v-72f8509c]{padding:0 1.125rem;position:fixed;bottom:0;left:0;width:100%;height:3.125rem;line-height:3.125rem;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;background:#fff;z-index:999}#user_orderDetail .main .bottom_box .money[data-v-72f8509c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#f15353;font-size:1rem;font-weight:700;text-align:left}#user_orderDetail .main .bottom_box .button_list[data-v-72f8509c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#user_orderDetail .main .bottom_box .button[data-v-72f8509c]{width:5.75rem;height:1.875rem;line-height:1.875rem;background-color:#f15353;border-radius:.125rem;color:#fff;margin-left:.5rem}#user_orderDetail .main .bottom_box[data-v-72f8509c]:after{height:1px;position:absolute;z-index:0;top:0;left:0;content:"";width:100%;background-image:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#e8e8e8),color-stop(0,transparent));background-image:-webkit-linear-gradient(bottom,#e8e8e8 50%,transparent 0);background-image:linear-gradient(0deg,#e8e8e8 50%,transparent 0)}',""]),t.exports=e}}]);