1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-form-evaluate"],{"0be7":function(e,t,a){"use strict";a.r(t);var n=a("cbc8"),o=a.n(n);for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);t["default"]=o.a},"396c":function(e,t,a){var n=a("6be5");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=a("4f06").default;o("9f8eadf8",n,!0,{sourceMap:!1,shadowMode:!1})},"3ec6":function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"main"},[a("v-uni-view",[a("v-uni-view",{staticClass:"uni-padding-wrap",staticStyle:{"margin-bottom":"20upx"}},[a("v-uni-view",{staticClass:"uni-title"},[e._v("请对本次服务做出评价")]),a("v-uni-view",[a("v-uni-radio-group",{on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.radioChange.apply(void 0,arguments)}}},e._l(e.items,(function(t,n){return a("v-uni-label",{key:t.value,staticClass:"radio"},[a("v-uni-radio",{staticClass:"rediobox",attrs:{value:t.value,checked:n===e.current}}),e._v(e._s(t.name))],1)})),1)],1)],1)],1),a("v-uni-view",{staticClass:"content"},[a("v-uni-textarea",{staticStyle:{border:"1px solid #e5e5e5","border-radius":"10upx","font-size":"28upx",padding:"10upx"},attrs:{value:"",placeholder:"请输入评价内容",maxlength:"100"},model:{value:e.evContent,callback:function(t){e.evContent=t},expression:"evContent"}})],1),a("v-uni-view",{staticClass:"footer-btn"},[a("v-uni-view",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit()}}},[e._v("提交")])],1)],1)},i=[]},4865:function(e,t,a){"use strict";var n=a("396c"),o=a.n(n);o.a},"504b":function(e,t,a){"use strict";var n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(a("5d70")),i=a("d24f"),c=a("fb8c"),f={components:{uniRate:o.default},data:function(){return{type:null,typeId:null,spareId:"",userInfo:(0,c.getStorage)("userInfo"),evContent:"",grade:5,items:[{value:"0",name:"非常满意"},{value:"1",name:"满意",checked:"true"},{value:"2",name:"一般"}],current:0}},onLoad:function(e){this.type=e.type,this.typeId=e.typeId,this.spareId=e.spareId},methods:{radioChange:function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].value===e.target.value){this.current=t;break}},changeGrade:function(e){this.grade=e.value},submit:function(){var e;e=4==this.type||5==this.type?{method:i.saveHaircutComment,data:{detailId:this.typeId,userId:this.userInfo.id,commentContent:this.evContent,satisfiedLevel:this.current,type:4==this.type?1:2}}:{method:i.submitEvaluate,data:{type:this.type,typeId:this.typeId,userId:this.userInfo.id,evContent:this.evContent,grade:this.grade,bak1:this.spareId}},(0,c.callbackRequest)(e).then((function(e){1==e.data.returnCode?(0,c.sureAlterTip)("","评价成功",!1).then((function(e){uni.navigateBack(1)})):(0,c.alertTip)(e.data.returnMsg)}))}}};t.default=f},"551d":function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n}));var n={uniIcons:a("966a").default},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"uni-rate"},e._l(e.stars,(function(t,n){return a("v-uni-view",{key:n,staticClass:"uni-rate__icon",style:{marginLeft:e.margin+"px"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._onClick(n)}}},[a("uni-icons",{attrs:{color:e.color,size:e.size,type:e.isFill?"star-filled":"star"}}),a("v-uni-view",{staticClass:"uni-rate__icon-on",style:{width:t.activeWitch,top:-e.size/2+"px"}},[a("uni-icons",{attrs:{color:e.activeColor,size:e.size,type:"star-filled"}})],1)],1)})),1)},i=[]},"555a":function(e,t,a){"use strict";var n=a("953f"),o=a.n(n);o.a},"5d70":function(e,t,a){"use strict";a.r(t);var n=a("551d"),o=a("0be7");for(var i in o)"default"!==i&&function(e){a.d(t,e,(function(){return o[e]}))}(i);a("4865");var c,f=a("f0c5"),r=Object(f["a"])(o["default"],n["b"],n["c"],!1,null,"a155882
|