chunk-fb6cd120.34162569.js 3.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fb6cd120"],{"14d9":function(t,e,n){"use strict";var r=n("23e7"),o=n("7b0b"),a=n("07fa"),s=n("3a34"),i=n("3511"),c=n("d039"),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},m=u||!l();r({target:"Array",proto:!0,arity:1,forced:m},{push:function(t){var e=o(this),n=a(e),r=arguments.length;i(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return s(e,n),n}})},3511:function(t,e,n){"use strict";var r=TypeError,o=9007199254740991;t.exports=function(t){if(t>o)throw r("Maximum allowed index exceeded");return t}},3892:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",[e("van-nav-bar",{staticClass:"shadow mb-4",attrs:{title:"评价订单","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),e("van-form",{staticClass:"w-11/12 mx-auto",on:{submit:t.onSubmit}},[e("van-field",{attrs:{name:"rate",label:"服务评分",rules:[{required:!0}]},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-rate",{model:{value:t.commentForm.star,callback:function(e){t.$set(t.commentForm,"star",e)},expression:"commentForm.star"}})]},proxy:!0}])}),e("van-field",{attrs:{name:"checkboxGroup",label:"服务体验"},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-checkbox-group",{attrs:{direction:"horizontal"},model:{value:t.commentForm.tags,callback:function(e){t.$set(t.commentForm,"tags",e)},expression:"commentForm.tags"}},t._l(t.tagList,(function(n,r){return e("van-checkbox",{key:r,staticClass:"mb-4",attrs:{name:n,shape:"square"}},[t._v(t._s(n))])})),1)]},proxy:!0}])}),e("van-field",{attrs:{rows:"3",autosize:"",label:"服务评价",type:"textarea",placeholder:"请填写用户评价",rules:[{required:!0}]},model:{value:t.commentForm.content,callback:function(e){t.$set(t.commentForm,"content",e)},expression:"commentForm.content"}}),e("div",{staticClass:"mt-8"},[e("van-button",{attrs:{loading:t.submitLoading,block:"",type:"info","loading-text":"加载中...","native-type":"submit"}},[t._v("确认完成")])],1)],1)],1)},o=[],a=(n("14d9"),{data:function(){return{id:0,tagList:["处理及时","态度好","完美解决","热情耐心","不及时","态度恶劣"],commentForm:{star:5,tags:[]},submitLoading:!1}},created:function(){this.$route.params&&this.$route.params.id&&(this.id=this.$route.params.id)},methods:{onSubmit:function(){console.log(this.commentForm),this.submitLoading=!0;var t=this;t.$toast.success({message:"操作成功",duration:1e3,onClose:function(){t.$router.push({path:"/orders"})}}),this.submitLoading=!1}}}),s=a,i=n("2877"),c=Object(i["a"])(s,r,o,!1,null,null,null);e["default"]=c.exports},"3a34":function(t,e,n){"use strict";var r=n("83ab"),o=n("e8b5"),a=TypeError,s=Object.getOwnPropertyDescriptor,i=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=i?function(t,e){if(o(t)&&!s(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}}}]);