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.
3 lines
30 KiB
3 lines
30 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-detail-detail"],{1842:function(t,e,a){"use strict";a("7a82");var n=a("4a46").default,i=a("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(a("fc11")),o=i(a("f07e")),s=i(a("c964")),u=i(a("a4ea")),c=a("24f9"),l=a("54d2"),d=n(a("fdb2")),f=i(a("a4ea")),v=(getApp(),{components:{topicAudio:u.default},data:function(){return{icEventId:null,gridId:null,myReportDetail:{},replyList:[],processData:null,reply:"",satisfaction:null,voiceList:[],epmetUserId:null,stars:[{id:1},{id:2},{id:3},{id:4},{id:5}],starId:0,attachmentUrl:"",duration:""}},onLoad:function(t){var e=this;return(0,s.default)((0,o.default)().mark((function a(){var n;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:n=d.getStoreUserInfo(),e.setData({icEventId:t.id,gridId:t.gridId,epmetUserId:n.epmetUserId}),e.reportDetailFun(),e.replyFun(),e.processFun();case 5:case"end":return a.stop()}}),a)})))()},methods:{score_xing:function(t){var e=this;if(0==this.starId){var a=t.currentTarget.dataset.index+1;this.setData({starId:a}),uni.confirm({title:"温馨提示",content:"提交当前评价?",confirmButtonText:"确定",cancelButtonText:"取消",success:function(){var t=(0,s.default)((0,o.default)().mark((function t(a){var n,i;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a.confirm){t.next=8;break}return t.next=3,(0,c.comment)({satisfaction:e.starId,icEventId:e.icEventId});case 3:n=t.sent,i=n.code,0==i&&(uni.showToast({type:"success",content:"评价成功"}),e.reportDetailFun()),t.next=9;break;case 8:e.setData({starId:0});case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})}},reportDetailFun:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,c.myreportdetail)({icEventId:t.icEventId});case 2:a=e.sent,n=a.data,console.log("data::",n),t.setData({myReportDetail:n,starId:n.satisfaction?n.satisfaction:0,voiceList:n.voiceList});case 6:case"end":return e.stop()}}),e)})))()},replyFun:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,c.replylist)({icEventId:t.icEventId});case 2:a=e.sent,n=a.data,t.setData({replyList:n});case 5:case"end":return e.stop()}}),e)})))()},processFun:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n,i;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,c.process)({icEventId:t.icEventId});case 2:a=e.sent,n=a.data,Array.isArray(n)&&n.length>0?(t.setData({processData:n[0]}),i=(0,l.formatYYMMDDDate)(t.processData.processTime),t.setData((0,r.default)({},"processData.processTime",i))):t.setData({processData:null});case 5:case"end":return e.stop()}}),e)})))()},handleReply:function(t){this.setData({reply:t.detail.value})},replyBtn:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n,i;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={content:t.reply,icEventId:t.icEventId},e.next=3,(0,c.resiReply)(a);case 3:n=e.sent,i=n.code,0==i&&(uni.showToast({type:"success",content:"回复成功"}),t.setData({reply:""}),t.reportDetailFun(),t.replyFun());case 6:case"end":return e.stop()}}),e)})))()},common:function(t){var e=this;if(""==this.satisfaction){var a=t.currentTarget.dataset.value;this.setData({satisfaction:a}),uni.confirm({title:"温馨提示",content:"提交当前评价?",confirmButtonText:"确定",cancelButtonText:"取消",success:function(){var t=(0,s.default)((0,o.default)().mark((function t(a){var n,i;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a.confirm){t.next=8;break}return t.next=3,(0,c.comment)({satisfaction:e.satisfaction,icEventId:e.icEventId});case 3:n=t.sent,i=n.code,0==i&&(uni.showToast({type:"success",content:"��
|
||
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
|
e.default=function(){return t};var t={},a=Object.prototype,i=a.hasOwnProperty,r=Object.defineProperty||function(t,e,a){t[e]=a.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(I){l=function(t,e,a){return t[e]=a}}function d(t,e,a,n){var i=e&&e.prototype instanceof p?e:p,o=Object.create(i.prototype),s=new C(n||[]);return r(o,"_invoke",{value:k(t,a,s)}),o}function f(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(I){return{type:"throw",arg:I}}}t.wrap=d;var v={};function p(){}function h(){}function m(){}var g={};l(g,s,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(T([])));w&&w!==a&&i.call(w,s)&&(g=w);var b=m.prototype=p.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var a;r(this,"_invoke",{value:function(r,o){function s(){return new e((function(a,s){(function a(r,o,s,u){var c=f(t[r],t,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==(0,n.default)(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){a("next",t,s,u)}),(function(t){a("throw",t,s,u)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,u)}))}u(c.arg)})(r,o,a,s)}))}return a=a?a.then(s,s):s()}})}function k(t,e,a){var n="suspendedStart";return function(i,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw r;return L()}for(a.method=i,a.arg=r;;){var o=a.delegate;if(o){var s=D(o,a);if(s){if(s===v)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===n)throw n="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n="executing";var u=f(t,e,a);if("normal"===u.type){if(n=a.done?"completed":"suspendedYield",u.arg===v)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(n="completed",a.method="throw",a.arg=u.arg)}}}function D(t,e){var a=e.method,n=t.iterator[a];if(void 0===n)return e.delegate=null,"throw"===a&&t.iterator["return"]&&(e.method="return",e.arg=void 0,D(t,e),"throw"===e.method)||"return"!==a&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var i=f(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,n=function e(){for(;++a<t.length;)if(i.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=l(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(_.prototype),l(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,a,n,i,r){void 0===r&&(r=Promise);var o=new _(d(e,a,n,i),r);return t.isGeneratorFunction(a)?o:o.next().then((function(t){return t.do
|