You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
19 KiB
1 line
19 KiB
12 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-goods_comment_con-index"],{"1c6c":function(t,e,n){"use strict";var o=n("d630"),i=n.n(o);i.a},"2ac0":function(t,e,n){"use strict";var o=n("d280"),i=n.n(o);i.a},4141:function(t,e,n){"use strict";n.r(e);var o=n("b5ad"),i=n("8673");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("2ac0");var a=n("f0c5"),u=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"2f4c1b32",null,!1,o["a"],void 0);e["default"]=u.exports},"493d":function(t,e,n){"use strict";n.r(e);var o=n("e933"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"6e1e":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a434"),n("14d9");var i=n("a60b"),r=n("26cb"),a=o(n("f272")),u={components:{authorize:a.default},data:function(){return{pics:[],scoreList:[{name:"商品质量",stars:["","","","",""],index:-1},{name:"服务态度",stars:["","","","",""],index:-1},{name:"物流服务",stars:["","","","",""],index:-1}],orderId:"",unique:"",productInfo:{},cart_num:0,isAuto:!1,isShowAuth:!1}},computed:(0,r.mapGetters)(["isLogin","viewColor"]),onLoad:function(t){if(!t.uni&&t.order_id)return this.$util.Tips({title:"缺少参数"},{tab:3,url:1});this.unique=t.uni,this.orderId=t.order_id,this.isLogin?this.getOrderProduct():(this.isAuto=!0,this.isShowAuth=!0)},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getOrderProduct()},authColse:function(t){this.isShowAuth=t},getOrderProduct:function(){var t=this,e=this;(0,i.orderProduct)(e.unique).then((function(t){e.$set(e,"productInfo",t.data.cart_info),e.cart_num=t.data.product_num})).catch((function(e){t.$util.Tips({title:e},{tab:3,url:1})}))},stars:function(t,e){this.scoreList[e].index=t},DelPic:function(t){this.pics[t];this.pics.splice(t,1),this.$set(this,"pics",this.pics)},uploadpic:function(){var t=this;t.$util.uploadImageOne("upload/image",(function(e){t.pics.push(e.data.path),t.$set(t,"pics",t.pics)}))},formSubmit:function(t){t.detail.formId;var e=t.detail.value,n=this,o=n.scoreList[0].index+1===0?"":n.scoreList[0].index+1,r=n.scoreList[1].index+1===0?"":n.scoreList[1].index+1,a=n.scoreList[2].index+1===0?"":n.scoreList[2].index+1;if(!e.comment)return n.$util.Tips({title:"请填写你对宝贝的心得!"});e.product_score=o,e.service_score=r,e.postage_score=a,e.pics=n.pics,uni.showLoading({title:"正在发布评论……"}),(0,i.orderComment)(this.unique,e).then((function(t){uni.hideLoading(),n.$util.Tips({title:"感谢您的评价!",icon:"success"}),setTimeout((function(){uni.redirectTo({url:"/pages/order_details/index?order_id="+n.orderId})}),500)})).catch((function(t){return uni.hideLoading(),n.$util.Tips({title:t})}))}}};e.default=u},8673:function(t,e,n){"use strict";n.r(e);var o=n("6e1e"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"9e3c":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.evaluate-con .score[data-v
|