1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageD/evaluate/evaluate"],{"563d":function(e,t,n){},7660:function(e,t,n){"use strict";n.r(t);var a=n("d4d2"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},a22a:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={uRate:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-rate/u-rate")]).then(n.bind(null,"9b05"))},uUpload:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-upload/u-upload")]).then(n.bind(null,"423e"))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"01eb"))},"u-Textarea":function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u--textarea/u--textarea")]).then(n.bind(null,"0b05"))}},o=function(){var e=this,t=e.$createElement;e._self._c},i=[]},aaf3:function(e,t,n){"use strict";n.r(t);var a=n("a22a"),o=n("7660");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("d0c0");var r,u=n("f0c5"),c=Object(u["a"])(o["default"],a["b"],a["c"],!1,null,"234c9002",null,!1,a["a"],r);t["default"]=c.exports},acaf:function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("f93b");a(n("66fd"));var o=a(n("aaf3"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},d0c0:function(e,t,n){"use strict";var a=n("563d"),o=n.n(a);o.a},d4d2:function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("2eee")),i=a(n("9523")),r=a(n("c973"));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={data:function(){return{count:5,value:5,value1:"",fileList1:[],status:"",orderDetail:{}}},onLoad:function(e){this.status=e.orderId,this.getDetail()},methods:{submit:function(){var t=[];this.fileList1.map((function(e){t.push(e.thumb)})),e.$u.http.post("/api/order/comment",{order_goods_id:this.orderDetail.goods[0].id,content:this.value1,score:this.value,image:t.join(","),video:""}).then((function(t){e.showToast({title:"评价成功",icon:"none"});var n=setTimeout((function(){e.navigateBack({delta:1}),clearTimeout(n)}),1e3)}))},deletePic:function(e){this["fileList".concat(e.name)].splice(e.index,1)},afterRead:function(e){var t=this;return(0,r.default)(o.default.mark((function n(){var a,i,r,u,s;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:console.log(e),a=[].concat(e.file),i=t["fileList".concat(e.name)].length,a.map((function(n){t["fileList".concat(e.name)].push(c({},n))})),r=0;case 5:if(!(r<a.length)){n.next=15;break}return n.next=8,t.uploadFilePromise(a[r].url);case 8:u=n.sent,s=t["fileList".concat(e.name)][i],t["fileList".concat(e.name)].splice(i,1,Object.assign(s,{status:"success",message:"",url:u})),i++;case 12:r++,n.next=5;break;case 15:case"end":return n.stop()}}),n)})))()},uploadFilePromise:function(t){return new Promise((function(n,a){e.uploadFile({url:"".concat(e.$u.http.config.baseURL,"/api/upload/images"),filePath:t,name:"file",formData:{user:"test"},success:function(e){setTimeout((function(){n(e.data.data)}),1e3)}})}))},getDetail:function(){var t=this;e.$u.http.get("/api/order/read?id=".concat(this.status)).then((function(e){t.orderDetail=e}))}},mounted:function(){e.setNavigationBarTitle({title:"评价"})}};t.default=s}).call(this,n("543d")["default"])}},[["acaf","common/runtime","common/vendor"]]]);
|