1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-evaluate"],{"01ec":function(t,e,i){var a=i("f394");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("16613385",a,!0,{sourceMap:!1,shadowMode:!1})},"1caa":function(t,e,i){"use strict";var a=i("01ec"),n=i.n(a);n.a},2909:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var a=u(i("6005")),n=u(i("db90")),o=u(i("06c5")),r=u(i("3427"));function u(t){return t&&t.__esModule?t:{default:t}}function d(t){return(0,a.default)(t)||(0,n.default)(t)||(0,o.default)(t)||(0,r.default)()}},3427:function(t,e,i){"use strict";function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a},"492d":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"order-item"},[i("v-uni-view",{staticClass:"goods-box-single"},[i("v-uni-image",{staticClass:"goods-img",attrs:{src:t.productInfo.image,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"right position-relative"},[i("v-uni-view",{staticClass:"flex"},[i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.productInfo.store_name))]),i("v-uni-view",{staticClass:"title-right"},[i("v-uni-view",{staticClass:"price"},[t._v(t._s(t.productInfo.price))]),i("v-uni-view",{staticClass:"attr-box"},[t._v("x"+t._s(t.list.cart_num))])],1)],1)],1)],1),i("v-uni-view",[i("v-uni-view",{staticClass:"flex_item zhil"},[i("v-uni-view",[t._v("商品质量")]),i("v-uni-view",[i("uniRate",{attrs:{text:"1",size:"20",margin:"10",value:t.rateValue1},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.rateChange1.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"flex_item zhil"},[i("v-uni-view",[t._v("服务态度")]),i("v-uni-view",[i("uniRate",{attrs:{text:"1",size:"20",margin:"10",value:t.rateValue2},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.rateChange2.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"equity_box"},[i("v-uni-view",{staticClass:"text-box uni-textarea"},[i("v-uni-textarea",{attrs:{"placeholder-style":"color:#999",placeholder:t.placeholder},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.bindTextAreaBlur.apply(void 0,arguments)}}})],1),i("v-uni-view",{},[i("v-uni-view",{staticClass:"add-img-box flex_item"},[t._l(t.imgList,(function(e,a){return i("v-uni-view",{key:a,staticClass:"add-img-item"},[i("v-uni-image",{staticClass:"add-img",attrs:{src:e.url,mode:"aspectFill"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.imgInfo(a)}}}),i("v-uni-image",{staticClass:"add-img-del",attrs:{src:"/static/img/delete.png"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.delImg(a)}}})],1)})),t.imgList.length<9?i("v-uni-view",{staticClass:"add-img-item",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.scImg()}}},[i("v-uni-image",{staticClass:"add-img",attrs:{src:"/static/img/add.png"}})],1):t._e()],2)],1)],1)],1)],1),i("v-uni-view",{staticClass:"address-box submit-box",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"submit-btn"},[t._v("提交评论")])],1)],1)},o=[]},6005:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=n(i("6b75"));function n(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t))return(0,a.default)(t)}},6485:function(t,e,i){"use strict";var a=i("4ea4");i("99af"),i("4160"),i("a434"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("2909"));i("96cf");var o=a(i("1da1")),r=i("ef20"),u=a(i("89ef")),d={components:{uniRate:u.default},data:function(){return{list:"",productInfo:"",text:"",placeholder:"商品满足你的期待么?说说你的想法,分享给想买的他们吧~",imgList:[],unique:"",cloudimgList:[],rateValue1:"",rateValue2:"",imgCount:6}},onLoad:function(t){this.unique=t.unique,this.loadOrder()},onShow:function(){},methods:{bindTextAreaBlur:function(t){this.text=t.detail.value},loadOrder:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:(0,r.product)({unique:t.unique}).then((function(e){t.list=e.data,t.productInfo=e.data.productInfo}));case 1:case"end":return e.stop()}}),e)})))()},rateChange1:function(t){this.rateValue1=t.value},rateChange2:function(t){this.rateValue2=t.value},scImg:function(){var t=this;console.log(t.imgCount,11),0!=t.imgCount?(0,r.upload)({file:""}).then((function(e){console.log(e,"e"),t.imgList=[].concat((0,n.default)(t.imgList),(0,n.default)(e)),console.log(t.imgList,"imgList"),t.imgCount=10-t.imgList.length,console.log(t.imgCount,"imgCount ")})).catch((function(t){})):uni.showToast({title:"最多添加6张图片",icon:"none"})},submit:function(t){var e=this;if(e.imgList.length<1)uni.showToast({title:"请添加图片",icon:"none"});else{for(var i=0;i<e.imgList.length;i++)e.cloudimgList.push(e.imgList[i].url);var a=e.cloudimgList.join(",");(0,r.order_comment)({pics:a,comment:e.text,product_score:e.rateValue1,service_score:e.rateValue2,unique:e.unique}).then((function(t){uni.navigateTo({url:"/pages/order/order?state=4"})})).catch((function(t){uni.navigateTo({url:"/pages/order/order?state=4"})}))}},imgInfo:function(t){var e=[];console.log(111),this.imgList.forEach((function(t){e.push(t.url)})),console.log(e),uni.previewImage({current:t,loop:!1,urls:e,indicator:"default"})},delImg:function(t){var e=this;uni.showModal({content:"确定删除这张吗",success:function(i){i.confirm?(e.imgList.splice(t,1),e.imgCount++):i.cancel}})},navto:function(t){uni.navigateTo({url:t})}}};e.default=d},"657a":function(t,e,i){"use strict";i.r(e);var a=i("a67d"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"89ef":function(t,e,i){"use strict";i.r(e);var a=i("d6d0"),n=i("657a");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("1caa");var r,u=i("f0c5"),d=Object(u["a"])(n["default"],a["b"],a["c"],!1,null,"289a27ba",null,!1,a["a"],r);e["default"]=d.exports},a128:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-3cf91416]{background:#fff;height:100%}uni-page-body .content[data-v-3cf91416]{background:#fff;height:100%}\n/* 多条商品 */.order-item[data-v-3cf91416]{display:flex;flex-direction:column;padding:%?0?% %?30?%;background:#fff;margin-top:%?20?%\n /* 单条商品 */}.order-item .goods-box-single[data-v-3cf91416]{display:flex;padding:%?20?% 0}.order-item .goods-box-single .goods-img[data-v-3cf91416]{display:block;width:%?120?%;height:%?120?%}.order-item .goods-box-single .right[data-v-3cf91416]{flex:1;display:flex;flex-direction:column;padding:0 %?30?% 0 %?24?%;overflow:hidden;height:100%}.order-item .goods-box-single .right .title[data-v-3cf91416]{align-self:flex-start;font-size:%?30?%;color:#303133;height:%?80?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.order-item .goods-box-single .right .title-right[data-v-3cf91416]{flex-shrink:0;text-align:right;align-self:flex-start}.order-item .goods-box-single .right .attr-box[data-v-3cf91416]{font-size:%?26?%;color:#909399}.order-item .goods-box-single .right .price[data-v-3cf91416]{font-size:%?30?%;color:#303133}.order-item .goods-box-single .right .price[data-v-3cf91416]:before{content:"¥";font-size:%?24?%;margin:0 %?2?% 0 %?8?%}.equity_box[data-v-3cf91416]{background-color:#fafafa;border-radius:%?10?%;padding:%?25?% %?25?%;margin:%?25?% %?0?%}.equity_box .text-box[data-v-3cf91416]{height:%?200?%}.equity_box .text-box uni-textarea[data-v-3cf91416]{font-size:%?25?%;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5}.zhil[data-v-3cf91416]{font-size:%?28?%!important;padding:%?15?% %?15?%}.submit-box[data-v-3cf91416]{bottom:0;left:0;width:%?750?%}.submit-btn[data-v-3cf91416]{margin-top:10px;display:inline-block;width:%?670?%;height:%?96?%;line-height:%?96?%;text-align:center;background-color:#1bcc26!important;opacity:1;border-radius:%?32?%;border-width:%?8?%;border-color:#fff;box-shadow:%?0?% %?8?% %?12?% rgba(0,0,0,.16);border-radius:%?56?%;font-size:%?39?%;font-weight:700;color:#fff}.submit-btn-txt[data-v-3cf91416]{font-size:%?39?%;font-weight:700;line-height:%?47?%;color:#fff;opacity:1}.map-box[data-v-3cf91416]{width:%?484?%;height:%?256?%;border-width:%?4?%;border-color:#fff;box-shadow:%?0?% %?0?% %?24?% rgba(0,0,0,.16);\n /* border-radius: 12rpx; */position:relative}.map[data-v-3cf91416]{position:absolute;top:0;left:0;right:0;bottom:0;width:%?476?%;height:%?250?%}.map-img[data-v-3cf91416]{position:absolute;top:%?90?%;left:%?156?%;width:%?230?%;height:%?68?%;background-color:rgba(51,51,51,.64);border-width:%?1?%;border-color:transparent;border-radius:34px;font-size:%?28?%;font-weight:700;line-height:%?66?%;color:#fff;text-align:center}.address-box[data-v-3cf91416]{padding:%?15?% %?40?%;margin-bottom:10px}.label[data-v-3cf91416]{font-size:%?36?%;font-weight:700;line-height:%?50?%;color:#222}.label-img[data-v-3cf91416]{padding-left:%?40?%}.add-img-box[data-v-3cf91416]{width:100%;flex-direction:row;flex-wrap:wrap;margin-top:%?50?%}.add-img-item[data-v-3cf91416]{width:%?180?%;height:%?180?%;border-radius:%?24?%;position:relative;margin:%?0?% %?20?%;margin-bottom:%?25?%}.add-img-item .add-img[data-v-3cf91416]{width:100%;height:100%;border-radius:%?24?%}.add-img-camera[data-v-3cf91416]{flex:1}.add-img-del[data-v-3cf91416]{position:absolute;width:%?40?%;height:%?40?%;left:%?155?%;bottom:%?155?%;border-radius:%?20?%}.address-time[data-v-3cf91416]{width:%?484?%;height:%?88?%;background-color:#f5f5f5;opacity:1;border-radius:%?24?%;text-align:center;font-size:%?35?%;font-weight:500;color:#333}.line[data-v-3cf91416]{width:%?750?%;height:1px;-webkit-transform:scaleY(.3);transform:scaleY(.3);background-color:rgba(0,0,0,.5)}body.?%PAGE?%[data-v-3cf91416]{background:#fff}',""]),t.exports=e},a67d:function(t,e,i){"use strict";var a=i("4ea4");i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("08a0")),o={name:"UniRate",components:{uniIcons:n.default},props:{isFill:{type:[Boolean,String],default:!0},color:{type:String,default:"#ececec"},activeColor:{type:String,default:"#ffca3e"},size:{type:[Number,String],default:24},value:{type:[Number,String],default:0},max:{type:[Number,String],default:5},margin:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1}},data:function(){return{valueSync:""}},computed:{stars:function(){for(var t=this.valueSync?this.valueSync:0,e=[],i=Math.floor(t),a=Math.ceil(t),n=0;n<this.max;n++)i>n?e.push({activeWitch:"100%"}):a-1===n?e.push({activeWitch:100*(t-i)+"%"}):e.push({activeWitch:"0"});return console.log("starList[4]: "+e[4].activeWitch),e}},created:function(){this.valueSync=Number(this.value)},methods:{_onClick:function(t){this.disabled||(this.valueSync=t+1,this.$emit("change",{value:this.valueSync}))}}};e.default=o},a7f0:function(t,e,i){var a=i("a128");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("cdd24d1e",a,!0,{sourceMap:!1,shadowMode:!1})},a9f1:function(t,e,i){"use strict";i.r(e);var a=i("6485"),n=i.n(a);for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},d6d0:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={uniIcons:i("08a0").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-rate"},t._l(t.stars,(function(e,a){return i("v-uni-view",{key:a,staticClass:"uni-rate__icon",style:{marginLeft:t.margin+"px"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._onClick(a)}}},[i("uni-icons",{attrs:{color:t.color,size:t.size,type:t.isFill?"star-filled":"star"}}),i("v-uni-view",{staticClass:"uni-rate__icon-on",style:{width:e.activeWitch,top:-t.size/2+"px"}},[i("uni-icons",{attrs:{color:t.activeColor,size:t.size,type:"star-filled"}})],1)],1)})),1)},o=[]},db90:function(t,e,i){"use strict";function a(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}i("a4d3"),i("e01a"),i("d28b"),i("a630"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=a},eb18:function(t,e,i){"use strict";var a=i("a7f0"),n=i.n(a);n.a},ef20:function(t,e,i){"use strict";var a=i("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=o,e.couponsOrder=r,e.getCouponsList=u,e.order_comment=d,e.product=l,e.express_query=s,e.upload=c,e.orderList=f,e.orderDetail=g,e.orderCancel=v,e.orderDel=p,e.refund=h,e.refundReason=m,e.orderTake=b,e.orderPay=x,e.createOrderkey=w,e.computedOrderkey=y;var n=a(i("4c3b"));function o(t){return(0,n.default)({url:"/api/order/confirm",method:"post",data:t})}function r(t,e){return(0,n.default)({url:"/api/coupons/order/"+e,method:"get",data:t})}function u(t,e){return(0,n.default)({url:"/api/coupons/user/"+e,method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/order/comment",method:"post",data:t})}function l(t){return(0,n.default)({url:"/api/order/product",method:"post",data:t})}function s(t){return(0,n.default)({url:"/api/order/express_query",method:"get",data:t})}function c(t){return(0,n.upFilse)({url:"/api/upload/image",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/order/list",method:"get",data:t})}function g(t,e){return(0,n.default)({url:"/api/order/detail/"+e,method:"get",data:t})}function v(t){return(0,n.default)({url:"/api/order/cancel",method:"post",data:t})}function p(t){return(0,n.default)({url:"/api/order/del",method:"get",data:t})}function h(t){return(0,n.default)({url:"/api/order/refund/verify",method:"post",data:t})}function m(t){return(0,n.default)({url:"/api/order/refund/reason",method:"get",data:t})}function b(t){return(0,n.default)({url:"/api/order/take",method:"post",data:t})}function x(t){return(0,n.default)({url:"/api/order/pay",method:"post",data:t})}function w(t,e){return(0,n.default)({url:"/api/order/create/"+e,method:"post",data:t})}function y(t){return(0,n.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}},f394:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.uni-rate[data-v-289a27ba]{display:flex;line-height:0;font-size:0;flex-direction:row}.uni-rate__icon[data-v-289a27ba]{position:relative;line-height:0;font-size:0}.uni-rate__icon-on[data-v-289a27ba]{overflow:hidden;position:absolute;top:0;left:0;line-height:1;text-align:left}',""]),t.exports=e},f8c9:function(t,e,i){"use strict";i.r(e);var a=i("492d"),n=i("a9f1");for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("eb18");var r,u=i("f0c5"),d=Object(u["a"])(n["default"],a["b"],a["c"],!1,null,"3cf91416",null,!1,a["a"],r);e["default"]=d.exports}}]);
|