canyin-project/ybcy/views/mobile/static/js/yb_wm-order-pl.1e3b1bb6.js
2024-11-01 16:07:54 +08:00

1 line
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["yb_wm-order-pl"],{"0c74":function(t,e,a){"use strict";a.r(e);var n=a("5a65"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"183d":function(t,e,a){var n=a("fd97");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("8506f104",n,!0,{sourceMap:!1,shadowMode:!1})},"1d7a":function(t,e,a){"use strict";a.r(e);var n=a("9767"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},2744:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".uni-rate[data-v-6a56cd9b]{line-height:0;font-size:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.uni-rate-icon[data-v-6a56cd9b]{position:relative;line-height:0;font-size:0;display:inline-block}.uni-rate-icon-on[data-v-6a56cd9b]{line-height:1;position:absolute;top:0;left:0;overflow:hidden}",""]),t.exports=e},"29a2":function(t,e,a){"use strict";var n=a("4ea4");a("4de4"),a("a15b"),a("d81d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var i=n(a("1da1")),r=(a("2f62"),n(a("2ad6"))),s=n(a("9d64")),o=n(a("d577")),c=n(a("8bb1")),u=a("6326"),l={name:"invite",components:{uniRate:r.default,bkB:s.default,mgPhoto:o.default},data:function(){return{aIdx:"-1",loading:!1,storeName:"",bqarr:[],params:{anonymous:1,orderId:"",body:"",star:"4",media:"",label:""}}},onLoad:function(t){var e=this;return(0,i.default)(regeneratorRuntime.mark((function a(){var n,i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.getSystem(),e.util.setNT("评价"),e.storeName=t.storeName,e.storeId=t.storeId,e.params.orderId=t.orderId,a.next=7,e.util.request({url:e.api.Lable,data:{storeId:e.storeId}});case 7:n=a.sent,i=n.data,e.bqarr=i;case 10:case"end":return a.stop()}}),a)})))()},computed:{},methods:{tabBq:function(t){this.$set(this.bqarr[t],"a",!this.bqarr[t].a)},nmtap:function(){this.params.anonymous=1==this.params.anonymous?2:1},xchange:function(t){this.params.star=t.value},changeImg:function(t){this.params.media=t.p},save:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){var a,n,i,r,s,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.bqarr.filter((function(t){return 1==t.a})),t.params.label=a.map((function(t){return t.name})),console.log(t.params),n=["anonymous","media","label"],i=c.default.isFailParams({field:t.params,filter:n,tips:{orderId:"缺少订单id",body:"请输入评价内容",star:"请选择评分星级"}}),i){e.next=9;break}return e.abrupt("return");case 9:if(t.loading=!0,!(t.params.media.length>0)){e.next=18;break}return t.util.showLoading("图片上传"),e.next=14,(0,u.uploadImg)({files:t.params.media});case 14:r=e.sent,s=c.default.deepCopy(t.params),s.media=r.join(),t.params.media=r;case 18:return e.next=20,t.util.request({url:t.api.OrderEvaluate,method:"POST",ct:1,data:t.params});case 20:o=e.sent,o?(t.util.message("提交成功",1,1e3),l=t.util.getPage(),l.$vm.refresh(),t.go({t:4}),c.default.swnb(1e3)):t.loading=!1;case 22:case"end":return e.stop()}}),e)})))()}}};e.default=l},"2ad6":function(t,e,a){"use strict";a.r(e);var n=a("2dfc"),i=a("1d7a");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("8a33");var s,o=a("f0c5"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"6a56cd9b",null,!1,n["a"],s);e["default"]=c.exports},"2dfc":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-rate"},t._l(t.stars,(function(e,n){return a("v-uni-view",{key:n,staticClass:"uni-rate-icon",style:{marginLeft:0==n?0:t.margin+"rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._onClick(n)}}},[a("v-uni-text",{staticClass:"iconfont",class:[t.icon],style:{color:t.color,fontSize:t.size+"rpx"}}),a("v-uni-view",{staticClass:"uni-rate-icon-on",style:{width:e.activeWitch}},[a("v-uni-text",{staticClass:"iconfont",class:[t.icon],style:{color:t.activeColor,fontSize:t.size+"rpx"}})],1)],1)})),1)},r=[]},"5a65":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"popup",props:{cName:{type:String,default:""},sname:"",type:{type:String,default:"1"},t:{type:String,default:""},color:{type:String,default:""},block:{type:String,default:""}},methods:{}};e.default=n},6854:function(t,e,a){"use strict";a.r(e);var n=a("a973"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},7631:function(t,e,a){"use strict";a.r(e);var n=a("29a2"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"83bb":function(t,e,a){"use strict";var n=a("183d"),i=a.n(n);i.a},"8a33":function(t,e,a){"use strict";var n=a("8ebf"),i=a.n(n);i.a},"8ebf":function(t,e,a){var n=a("2744");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("47e206d0",n,!0,{sourceMap:!1,shadowMode:!1})},"8fc0":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{class:[t.cname]},[a("v-uni-view",{staticClass:"f-raw"},[t._l(t.filePaths,(function(e,n){return a("v-uni-view",{key:n,staticClass:"mpimgc posi-r"},[a("v-uni-view",{staticClass:"mpimg o-h",style:{width:t.w,height:t.w}},[a("mg-img",{attrs:{local:e.tmp,src:e.url}})],1),a("v-uni-icon",{staticClass:"posi-a mpclose",attrs:{type:"clear",size:"20"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.deletePic(n)}}})],1)})),t.filePaths.length<t.max?a("v-uni-view",{staticClass:"mpimgc"},[a("v-uni-view",{staticClass:"mpimg mpaddc f-c-c",style:{width:t.w,height:t.w},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.add.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"iconfont f40 c9",class:t.icon}),t.pt?a("v-uni-view",{staticClass:"c9 f22 t-c mt10 p02"},[t._v(t._s(t.pt))]):t._e()],1)],1):t._e()],2)],1)},r=[]},9767:function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"UniRate",components:{},props:{icon:{type:String,default:"icon-icon_xing"},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},size:{type:[Number,String],default:32},value:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1}},data:function(){return{valueSync:""}},computed:{stars:function(){for(var t=Number(this.valueSync)?Number(this.valueSync):0,e=[],a=Math.floor(t),n=Math.ceil(t),i=0;i<this.max;i++)a>i?e.push({activeWitch:"100%"}):n-1===i?e.push({activeWitch:100*(t-a)+"%"}):e.push({activeWitch:"0"});return e}},created:function(){this.valueSync=this.value},methods:{_onClick:function(t){this.disabled||(this.valueSync=t+1,this.$emit("change",{value:this.valueSync}))}}};e.default=n},"9d64":function(t,e,a){"use strict";a.r(e);var n=a("ec79"),i=a("0c74");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);var s,o=a("f0c5"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"6b92aaf8",null,!1,n["a"],s);e["default"]=c.exports},a63c:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"pt30"},[a("v-uni-view",{staticClass:"bf m03 p3 bs30"},[a("v-uni-view",{staticClass:"p3 t-c f34 wei"},[t._v("您对商家/商品满意吗?")]),a("v-uni-view",{staticClass:"p3 f-x-bt bf9 bs10"},[a("v-uni-view",{staticClass:"t-o-e"},[t._v(t._s(t.storeName))]),a("v-uni-view",{staticClass:"f24 f-y-c",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.nmtap.apply(void 0,arguments)}}},[a("v-uni-icon",{staticClass:"mr20",attrs:{color:1==t.params.anonymous?t.tColor:"#ddd",type:"success",size:"18"}}),a("v-uni-view",[t._v("匿名评价")])],1)],1),a("v-uni-view",{staticClass:"p3 f-c"},[a("uni-rate",{attrs:{size:"60",value:t.params.star,margin:50},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.xchange.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"f-raw bf p20"},[t._l(t.bqarr,(function(e,n){return[a("bk-b",{key:n+"_0",attrs:{block:"1",type:"2",color:e.a?t.tColor:"","c-name":"f26 "+(e.a?"bf":"be6")+" c6 mr20 mb20 p-10-20 bs30",t:e.name},on:{tab:function(e){arguments[0]=e=t.$handleEvent(e),t.tabBq(n)}}})]}))],2),a("v-uni-view",{staticClass:"b-d bs10 bf9 p2"},[a("v-uni-textarea",{staticClass:"w100 mb20",staticStyle:{height:"200rpx"},attrs:{maxlength:"150",placeholder:"请输入您的评价","placeholder-class":"cd"},model:{value:t.params.body,callback:function(e){t.$set(t.params,"body",e)},expression:"params.body"}}),a("mg-photo",{attrs:{pt:"增加照片",icon:"iconxj"},on:{"change-img":function(e){arguments[0]=e=t.$handleEvent(e),t.changeImg.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"foot-btnc posi-r mt30"},[a("v-uni-button",{staticClass:"foot-btn",style:{background:t.tColor},attrs:{loading:t.loading,disabled:t.loading,"hover-class":"btnhc"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.save.apply(void 0,arguments)}}},[t._v("提交")])],1)],1)},r=[]},a973:function(t,e,a){"use strict";var n=a("4ea4");a("99af"),a("d81d"),a("a434"),a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("b85c"));a("96cf");var r=n(a("1da1")),s=n(a("f3fc")),o=a("6326"),c={components:{MgCell:s.default},props:{cname:"",max:{type:String,default:"9"},fileList:{type:Array,default:function(){return[]}},pt:{type:String,default:""},mark:{type:[String,Number],default:""},pkey:{type:String,default:""},icon:{type:String,default:"iconjia"},title:"",ftitle:"",w:""},data:function(){return{filePaths:[],files:[]}},computed:{},watch:{fileList:{handler:function(t){this.filePaths=Object.assign([],t.map((function(t){return{url:t}}))),t.length&&(this.$emit("change-img",{p:this.filePaths,mark:this.mark,pkey:this.pkey}),"weChat"==this.api.platform&&(this.files=this.filePaths))},immediate:!0}},methods:{add:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,n,r,s,c,u,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,o.choosePhoto)({num:t.max-t.filePaths.length});case 2:if(a=e.sent,"weChat"==t.api.platform){e.next=8;break}t.filePaths=t.filePaths.concat(a.map((function(t){return{tmp:1,url:t}}))),t.$emit("change-img",{p:t.filePaths,mark:t.mark,pkey:t.pkey}),e.next=32;break;case 8:n=[],r=(0,i.default)(a),e.prev=10,r.s();case 12:if((s=r.n()).done){e.next=21;break}return c=s.value,e.next=16,(0,o.uploadImage)(c);case 16:u=e.sent,l=u.serverId,n.push(l);case 19:e.next=12;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e["catch"](10),r.e(e.t0);case 26:return e.prev=26,r.f(),e.finish(26);case 29:t.filePaths=t.filePaths.concat(a.map((function(t){return{tmp:1,url:t}}))),t.files=t.files.concat(n.map((function(t){return{tmp:1,url:t}}))),t.$emit("change-img",{p:t.files,mark:t.mark,pkey:t.pkey});case 32:console.log(t.api.platform,a);case 33:case"end":return e.stop()}}),e,null,[[10,23,26,29]])})))()},deletePic:function(t){this.filePaths.splice(t,1),"weChat"!=this.api.platform?this.$emit("change-img",{p:this.filePaths,mark:this.mark,pkey:this.pkey}):(this.files.splice(t,1),this.$emit("change-img",{p:this.files,mark:this.mark,pkey:this.pkey}))}}};e.default=c},b85c:function(t,e,a){"use strict";a("a4d3"),a("e01a"),a("d28b"),a("d3b7"),a("3ca3"),a("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=i(a("06c5"));function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=(0,n.default)(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,c=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return o=t.done,t},e:function(t){c=!0,s=t},f:function(){try{o||null==a["return"]||a["return"]()}finally{if(c)throw s}}}}},d543:function(t,e,a){"use strict";a.r(e);var n=a("a63c"),i=a("7631");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);var s,o=a("f0c5"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"647a8370",null,!1,n["a"],s);e["default"]=c.exports},d577:function(t,e,a){"use strict";a.r(e);var n=a("8fc0"),i=a("6854");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("83bb");var s,o=a("f0c5"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"4a03064e",null,!1,n["a"],s);e["default"]=c.exports},ec79:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return 1==t.type?[a("v-uni-text",{staticClass:"text-btnf",class:[t.cName],style:[{background:t.color,borderColor:t.color,display:t.block&&"block"},t.sname],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("tab")}}},[t._v(t._s(t.t))])]:2==t.type?[a("v-uni-text",{staticClass:"text-btn",class:[t.cName],style:[{color:t.color,borderColor:t.color,display:t.block&&"block"},t.sname],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$emit("tab")}}},[t._v(t._s(t.t))])]:t._e()},r=[]},fd97:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".mpimgc[data-v-4a03064e]{padding:%?20?% %?20?% 0 0;margin:0 %?10?% %?20?% 0}.mpimg[data-v-4a03064e]{width:%?136?%;height:%?136?%;-webkit-border-radius:%?10?%;border-radius:%?10?%}.mpclose[data-v-4a03064e]{top:%?0?%;right:%?0?%}.mpaddc[data-v-4a03064e]{border:1px dashed #d5d5d5}",""]),t.exports=e}}]);