pages-order-comment.df23af34.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-comment"],{"53c1":function(t,e,n){var o=n("80e4");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=n("967d").default;r("83fca03e",o,!0,{sourceMap:!1,shadowMode:!1})},6159:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"comment"},[n("v-uni-view",{staticClass:"content"},["商户"==t.title?n("v-uni-view",{staticClass:"text"},[n("v-uni-textarea",{attrs:{placeholder:"请输入您的评论"},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1):n("v-uni-view",{staticClass:"text"},[n("v-uni-textarea",{attrs:{placeholder:"请输入您的评论"},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],1),n("v-uni-view",{staticClass:"fast"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text"),t._v("点击下方一键评论")],1),"商户"==t.title?n("v-uni-view",{staticClass:"tag"},t._l(t.jstag,(function(e,o){return n("v-uni-view",{key:o,staticClass:"word",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addJsComment(e)}}},[t._v(t._s(e.value))])})),1):n("v-uni-view",{staticClass:"tag"},t._l(t.tag,(function(e,o){return n("v-uni-view",{key:o,staticClass:"word",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.addComment(e)}}},[t._v(t._s(e.value))])})),1)],1),"商户"==t.title?n("v-uni-view",{staticClass:"btn_box"},[n("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.jsSubmit.apply(void 0,arguments)}}},[t._v("提交评价")])],1):n("v-uni-view",{staticClass:"btn_box"},[n("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("提交")])],1)],1)],1)},r=[]},8046:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("0c26"),n("5ef2");var o=n("e745"),r={data:function(){return{comment:"",text:"",orderNo:"",jsId:"",orderId:"",openId:"",name:"",count:5,nStar:0,title:"",colors:["#ffc454","#ffb409","#ff9500"],icons:["thumb-down-fill","thumb-down-fill","thumb-up-fill","thumb-up-fill"],jstag:[{value:"素质高"},{value:"年轻"},{value:"素质低"},{value:"好说话"}],tag:[{value:"手法好"},{value:"专业"},{value:"态度好"},{value:"服务很满意"}]}},methods:{addComment:function(t){this.comment=this.comment+" "+t.value},addJsComment:function(t){this.text=this.text+" "+t.value},submit:function(){var t={};""!=this.comment.trim()&&(t.cText=this.comment.trim(),t.orderId=this.orderId,t.cJsid=this.jsId,t.orderNo=this.orderNo,t.name=this.name,t.nStar=this.nStar,(0,o.commentOrder)(t).then((function(t){200==t.data.code?(uni.showToast({title:"评论成功"}),setTimeout((function(){uni.navigateBack()}),1e3)):uni.showToast({title:t.data.msg})})))},jsSubmit:function(){var t={};t.text=this.text.trim(),t.jsId=this.jsId,t.orderNo=this.orderNo,t.name=this.name,t.openId=this.openId,(0,o.tCommentUser)(t).then((function(t){200==t.data.code?(uni.showToast({title:"评论成功"}),setTimeout((function(){uni.navigateBack()}),1e3)):uni.showToast({title:t.data.msg})}))}},onLoad:function(t){this.orderNo=t.orderNo,this.jsId=t.cJsId,this.orderId=t.cId,this.name=t.cNickName,this.title=t.title,this.openId=t.cOpenId},watch:{txt:function(t){-1!=t.indexOf("\n")&&uni.hideKeyboard()}}};e.default=r},"80e4":function(t,e,n){var o=n("c86c");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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.comment[data-v-2ff3bec4]{width:100vw;height:100vh;background:#f7ffff}.comment .content .text[data-v-2ff3bec4]{margin-bottom:%?28?%;padding:%?30?%;background:linear-gradient(90deg,#e7fdfd,#d3fbf9)}.comment .content uni-textarea[data-v-2ff3bec4]{border:1px solid #dcdcdc;width:calc(100% - %?40?%);padding:%?20?%;border-radius:%?16?%;background:#fefefe;font-size:%?26?%}.comment .content .fast[data-v-2ff3bec4]{width:%?686?%;margin:0 auto;background:linear-gradient(35deg,#fff,#e4fffd);box-shadow:0 %?4?% %?12?% 0 rgba(88,209,187,.1);border-radius:%?16?%;padding:%?24?%;box-sizing:border-box}.comment .content .fast .title[data-v-2ff3bec4]{display:flex;align-items:center;font-weight:600}.comment .content .fast .title uni-text[data-v-2ff3bec4]{display:inline-block;width:%?6?%;height:%?34?%;background:#20cbc2;margin-right:%?12?%}.comment .content .fast .tag[data-v-2ff3bec4]{width:100%;margin-top:%?24?%;display:flex;flex-wrap:wrap}.comment .content .fast .tag .word[data-v-2ff3bec4]{margin-right:%?24?%;margin-bottom:%?24?%;padding:%?4?% %?20?%;box-sizing:border-box;background:rgba(32,203,194,.1);box-shadow:0 %?4?% %?12?% 0 rgba(88,209,187,.1);border-radius:%?8?%;font-size:%?28?%}.comment .content .star[data-v-2ff3bec4]{margin-top:%?40?%}.comment .content .btn_box[data-v-2ff3bec4]{width:100%;position:fixed;left:0;bottom:0;height:%?116?%;background:#fff}.comment .content .btn_box .btn[data-v-2ff3bec4]{width:%?670?%;height:%?76?%;background:linear-gradient(90deg,#1ad7ce,#21c9c1);border-radius:%?106?%;color:#fff;margin:%?20?% auto;display:flex;align-items:center;justify-content:center}[data-v-2ff3bec4].u-rate .u-star-wrap{margin:0 %?10?%!important}[data-v-2ff3bec4].u-rate .u-icon{font-size:%?50?%!important}',""]),t.exports=e},8429:function(t,e,n){"use strict";n.r(e);var o=n("8046"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},d16c:function(t,e,n){"use strict";n.r(e);var o=n("6159"),r=n("8429");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("e3ea");var a=n("828b"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"2ff3bec4",null,!1,o["a"],void 0);e["default"]=u.exports},d393:function(t,e,n){"use strict";n("bf0f");n("e745");var o="https://city.baoxianzhanggui.com/nightFragrance";function r(t,e){var n={};return n="POST_PARAMS"==e?{"content-type":"application/x-www-form-urlencoded"}:"FormData"==e?{"content-type":"multipart/form-data"}:{"content-type":"application/json"},n}t.exports.getRequest=function(t,e){var n=r(0,"GET");return n.Authorization="tf:"+uni.getStorageSync("access-token"),new Promise((function(r,i){uni.request({url:o+t,data:e,header:n,method:"GET",success:function(t){200===t.statusCode?401==t.data.code?uni.removeStorage({key:"access-token"}):r(t):i(t)},fail:function(t){i(t)}})}))},t.exports.postRequest=function(t,e){var n=r(0,"POST");return n.Authorization="tf:"+uni.getStorageSync("access-token"),new Promise((function(r,i){uni.request({url:o+t,data:e,header:n,method:"POST",success:function(t){200===t.statusCode?401==t.data.code?401==t.data.code&&uni.removeStorage({key:"access-token"}):r(t):i(t)},fail:function(t){i(t)}})}))},t.exports.postRequestFormData=function(t,e){var n=r(0,"FormData");return n.Authorization="tf:"+uni.getStorageSync("access-token"),new Promise((function(r,i){uni.request({url:o+t,data:e,header:n,method:"POST",success:function(t){200===t.statusCode?t.data.code:i(t)},fail:function(t){i(t)}})}))},t.exports.postParamsRequest=function(t,e){var n=r(0,"POST_PARAMS"),i=t;return n.Authorization="tf:"+uni.getStorageSync("access-token"),new Promise((function(t,r){uni.request({url:o+i,data:e,header:n,method:"POST",success:function(e){200===e.statusCode?401==e.data.code?401==e.data.code&&uni.removeStorage({key:"access-token"}):t(e):r(e)},fail:function(t){r(t)}})}))},t.exports.putRequest=function(t,e){var n=r(0,"PUT");return n.Authorization="tf:"+uni.getStorageSync("access-token"),new Promise((function(r,i){uni.request({url:o+t,data:e,header:n,method:"PUT",success:function(t){200===t.statusCode?401==t.data.code?401==t.data.code&&uni.removeStorage({key:"access-token"}):r(t):i(t)},fail:function(t){i(t)}})}))},t.exports.deleteRequest=function(t,e){var n=r(0,"POST_PARAMS");return n.Authorization="tf:"+uni.getStorageSync("access-token"),new Promise((function(r,i){uni.request({url:o+t,data:e,header:n,method:"DELETE",success:function(t){200===t.statusCode?r(t):i(t)},fail:function(t){i(t)}})}))}},e3ea:function(t,e,n){"use strict";var o=n("53c1"),r=n.n(o);r.a},e745:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.work=e.withdraw=e.windows=e.waitOrder=e.verification=e.userComment=e.updateOrder=e.updateAdd=e.takeOrder=e.tFareSetting=e.tCommentUser=e.statusList=e.speedOrder=e.slideshow=e.selectApp=e.select=e.refuse=e.reach=e.ranking=e.projectDetails=e.project=e.payoff=e.pay=e.orderList=e.orderDeatails=e.myBank=e.logout=e.last=e.infoUpdate=e.imgUpload=e.getwxQrCode=e.getSignature=e.getJsLocation=e.getInfo=e.getCoupon=e.getCollect=e.getCityList=e.getAccessToken=e.freeFare=e.enterService=e.engineerDetails=e.engineer=e.engineDetail=e.department=e.depart=e.delOrder=e.delAdd=e.defaultAdd=e.couponReceive=e.confirmOrder=e.confirm=e.complaintEnum=e.complain=e.commentOrder=e.cancleOrder=e.cancleCollect=e.businessupdate=e.businessDevelopment=e.brightSpot=e.bankList=e.arriveOderLocation=e.alertOrder=e.addUpdate=e.addOrder=e.addList=e.addEngineer=e.addDetails=e.addCollect=e.addBnak=e.add=e.UpdateEngine=e.ConsumptionLog=void 0;var o=n("d393");e.imgUpload=function(t){return(0,o.postRequestFormData)("/common/upload",t)};e.getAccessToken=function(t){return(0,o.getRequest)("/weChat/getAccessToken",t)};e.slideshow=function(t){return(0,o.getRequest)("/api/lbt/v1/getAll",t)};e.project=function(t){return(0,o.postRequest)("/api/xiangmu/v1/wx/getAll",t)};e.projectDetails=function(t){return(0,o.postRequest)("/api/xiangmu/v1/getByid",t)};e.brightSpot=function(t){return(0,o.getRequest)("/api/xiangmu/v1/highlights",t)};e.engineer=function(t){return(0,o.getRequest)("/api/js/v1/wx/select",t)};e.department=function(t){return(0,o.getRequest)("/api/js/v1/wx/select",t)};e.engineerDetails=function(t){return(0,o.postRequest)("/api/js/v1/wx/getByid",t)};e.infoUpdate=function(t){return(0,o.postRequest)("/wx/update",t)};e.getInfo=function(t){return(0,o.getRequest)("/wx/getUserInfo",t)};e.addUpdate=function(t){return(0,o.postRequest)("/tAddress/save",t)};e.updateAdd=function(t){return(0,o.postRequest)("/tAddress/update",t)};e.addList=function(t){return(0,o.getRequest)("/tAddress/getByOpenId",t)};e.addDetails=function(t){return(0,o.getRequest)("/tAddress/getById",t)};e.getSignature=function(t){return(0,o.getRequest)("/weChat/getSignature",t)};e.delAdd=function(t){return(0,o.deleteRequest)("/tAddress/delete",t)};e.defaultAdd=function(t){return(0,o.postRequest)("/tAddress/defaultAddress",t)};e.addEngineer=function(t){return(0,o.postRequest)("/api/js/v1/wx/add",t)};e.freeFare=function(t){return(0,o.postRequest)("/api/js/v1/wx/freeFare",t)};e.work=function(t){return(0,o.postRequest)("/api/js/v1/wx/post",t)};e.engineDetail=function(t){return(0,o.postRequest)("/api/js/v1/wx/getByOpenId",t)};e.UpdateEngine=function(t){return(0,o.postRequest)("/api/js/v1/wx/update",t)};e.statusList=function(t){return(0,o.getRequest)("/api/order/v1/getStatus",t)};e.orderList=function(t){return(0,o.getRequest)("/api/order/v1/select",t)};e.addOrder=function(t){return(0,o.postRequest)("/api/order/v1/wx/add",t)};e.updateOrder=function(t){return(0,o.postRequest)("/api/order/v1/update",t)};e.orderDeatails=function(t){return(0,o.getRequest)("/api/order/v1/wx/getOrder",t)};e.cancleOrder=function(t){return(0,o.postRequest)("/api/order/v1/wx/cancle",t)};e.delOrder=function(t){return(0,o.postRequest)("/api/order/v1/del",t)};e.confirmOrder=function(t){return(0,o.postRequest)("/api/order/v1/wx/confirm",t)};e.commentOrder=function(t){return(0,o.postRequest)("/api/comment/v1/wx/add",t)};e.pay=function(t){return(0,o.postRequest)("/wx/pay/pay",t)};e.payoff=function(t){return(0,o.postRequest)("/api/order/v1/wx/pay",t)};e.withdraw=function(t){return(0,o.postRequest)("/api/tx/record/wx/applicationCash",t)};e.last=function(t){return(0,o.postRequest)("/api/tx/record/wx/last",t)};e.select=function(t){return(0,o.getRequest)("/api/tx/record/select",t)};e.addCollect=function(t){return(0,o.postRequest)("/api/collect/v1/wx/addCollect",t)};e.cancleCollect=function(t){return(0,o.postRequest)("/api/collect/v1/wx/delCollect",t)};e.getCollect=function(t){return(0,o.postRequest)("/api/collect/v1/wx/getCollect",t)};e.getJsLocation=function(t){return(0,o.postRequest)("/api/js/v1/wx/updateLocation",t)};e.takeOrder=function(t){return(0,o.postRequest)("/api/order/v1/wx/takingOrders",t)};e.refuse=function(t){return(0,o.postRequest)("/api/order/v1/wx/jujue",t)};e.arriveOderLocation=function(t){return(0,o.postRequest)("/api/order/v1/wx/reach",t)};e.enterService=function(t){return(0,o.postRequest)("/api/order/v1/wx/service",t)};e.alertOrder=function(t){return(0,o.postRequest)("/ylxAlarm/addAlarm",t)};e.speedOrder=function(t){return(0,o.postRequest)("/api/order/v1/wx/add",t)};e.getCoupon=function(t){return(0,o.postRequest)("/couponReceive/myCoupon",t)};e.getwxQrCode=function(t){return(0,o.getRequest)("/weChat/getwxQrCode",t)};e.add=function(t){return(0,o.postRequest)("/businessDevelopment/add",t)};e.complain=function(t){return(0,o.postRequest)("/complaint/add",t)};e.complaintEnum=function(t){return(0,o.postRequest)("/complaint/complaintEnum",t)};e.getCityList=function(t){return(0,o.getRequest)("/system/dept/list",t)};e.tFareSetting=function(t){return(0,o.getRequest)("/tFareSetting/selectAll",t)};e.depart=function(t){return(0,o.postRequest)("/api/order/v1/wx/depart",t)};e.reach=function(t){return(0,o.postRequest)("/api/order/v1/wx/reach",t)};e.confirm=function(t){return(0,o.postRequest)("/api/order/v1/wx/confirm",t)};e.tCommentUser=function(t){return(0,o.postRequest)("/tCommentUser/add",t)};e.userComment=function(t){return(0,o.getRequest)("/tCommentUser/selectAll",t)};e.windows=function(t){return(0,o.postRequest)("/couponReceive/windows",t)};e.couponReceive=function(t){return(0,o.postRequest)("/couponReceive/submits",t)};e.verification=function(t){return(0,o.postRequest)("/api/order/v1/wx/verification",t)};e.selectApp=function(t){return(0,o.getRequest)("/tJsDay/selectApp",t)};e.ConsumptionLog=function(t){return(0,o.getRequest)("/tConsumptionLog/selectAll",t)};e.logout=function(t){return(0,o.postRequest)("/logout",t)};e.businessDevelopment=function(t){return(0,o.getRequest)("/businessDevelopment/getByOpenId",t)};e.businessupdate=function(t){return(0,o.postRequest)("/businessDevelopment/update",t)};e.bankList=function(t){return(0,o.getRequest)("/tBankUser/bankList",t)};e.addBnak=function(t){return(0,o.postRequest)("/tBankUser/save",t)};e.myBank=function(t){return(0,o.getRequest)("/tBankUser/myBank",t)};e.ranking=function(t){return(0,o.getRequest)("/api/xiangmu/v1/wx/recommend",t)};e.waitOrder=function(t){return(0,o.getRequest)("/api/order/v1/wx/waitOrder",t)}}}]);