yzms/touch_mz/dist/3.chunk.js

1 line
2.6 KiB
JavaScript
Raw Permalink Normal View History

2024-04-01 15:54:27 +08:00
webpackJsonp([3],{48:function(e,t,s){s(59);var o=s(19)(s(54),s(65),"data-v-359b071e",null);o.options.__file="E:\\git_project\\backups_source\\标准版敏卓触摸版\\src\\views\\result.vue",o.esModule&&Object.keys(o.esModule).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.error("named exports are not supported in *.vue files."),o.options.functional&&console.error("[vue-loader] result.vue: functional components are not supported with templates, they should use render functions."),e.exports=o.exports},54:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{result:"",icon:"",color:"",second:6,timeout:"",message:""}},created:function(){this.fetchData(),this.countSecond()},methods:{fetchData:function(){"cancel"===this.$route.query.type?this.result="退餐":"order"===this.$route.query.type&&(this.result="订餐"),"success"===this.$route.query.result?(this.icon="checkmark-circled",this.color="#3eb370",this.result+="成功",this.result=this.$route.query.message?this.$route.query.message:this.result):"fail"===this.$route.query.result?(this.icon="close-circled",this.color="#ea5506",this.result+="失败",this.message=this.$route.query.message):"notice"===this.$route.query.result&&(this.icon="information-circled",this.color="#ff9900",this.result+="部分成功",this.message=this.$route.query.message)},goBack:function(){clearTimeout(this.timeout),this.$store.commit("setLoading",!1),this.$store.commit("setToken",null),this.$store.commit("setCount",0),this.$router.replace({path:"index"})},countSecond:function(){if(this.second){--this.second;var e=this;this.timeout=setTimeout(function(){e.countSecond()},1e3)}else this.$store.commit("setLoading",!1),this.$store.commit("setToken",null),this.$store.commit("setCount",0),this.$router.replace({path:"index"})}}}},59:function(e,t){},65:function(e,t,s){e.exports={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"result"},[s("Col",{attrs:{span:"14",offset:"5"}},[s("Row",[s("Card",{staticStyle:{width:"100%"}},[s("div",{staticStyle:{"text-align":"center"}},[s("Icon",{attrs:{type:e.icon,color:e.color,size:"100"}}),e._v(" "),s("h3",[e._v(e._s(e.result))]),e._v(" "),e.message?s("Alert",{attrs:{type:"warning"}},[s("template",{slot:"desc"},[s("div",{domProps:{innerHTML:e._s(e.message)}})])],2):e._e(),e._v(" "),s("div"),e._v(" "),s("p",[e._v(e._s(e.second)+"秒后返回")])],1)])],1)],1),e._v(" "),s("Col",{attrs:{span:"10",offset:"7"}},[s("Row",[s("Button",{attrs:{type:"warning",size:"large",long:""},on:{click:e.goBack}},[e._v("返回")])],1)],1)],1)},staticRenderFns:[]},e.exports.render._withStripped=!0}});