yzms/touch/dist/2.chunk.js

1 line
2.5 KiB
JavaScript
Raw Permalink Normal View History

2024-04-01 15:54:27 +08:00
webpackJsonp([2],{48:function(t,e,s){s(60);var o=s(19)(s(53),s(65),"data-v-8b7acd8c",null);o.options.__file="C:\\Users\\HP-PC\\Desktop\\jlfd\\src\\views\\result.vue",o.esModule&&Object.keys(o.esModule).some(function(t){return"default"!==t&&"__esModule"!==t})&&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."),t.exports=o.exports},53:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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+="成功"):"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 t=this;this.timeout=setTimeout(function(){t.countSecond()},1e3)}else this.$store.commit("setLoading",!1),this.$store.commit("setToken",null),this.$store.commit("setCount",0),this.$router.replace({path:"index"})}}}},60:function(t,e){},65:function(t,e,s){t.exports={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"result"},[s("Col",{attrs:{span:"10",offset:"7"}},[s("Row",[s("Card",{staticStyle:{width:"100%"}},[s("div",{staticStyle:{"text-align":"center"}},[s("Icon",{attrs:{type:t.icon,color:t.color,size:"86"}}),t._v(" "),s("h3",[t._v(t._s(t.result))]),t._v(" "),t.message?s("Alert",{attrs:{type:"warning"}},[s("template",{attrs:{slot:"desc"},slot:"desc"},[s("div",{domProps:{innerHTML:t._s(t.message)}})])],2):t._e(),t._v(" "),s("div"),t._v(" "),s("p",[t._v(t._s(t.second)+"秒后返回")])],1)])],1)],1),t._v(" "),s("Col",{attrs:{span:"10",offset:"7"}},[s("Row",[s("Button",{attrs:{type:"warning",size:"large",long:""},on:{click:t.goBack}},[t._v("返回")])],1)],1)],1)},staticRenderFns:[]},t.exports.render._withStripped=!0}});