| | |
| | | </template> |
| | | |
| | | <script> |
| | | // todo: 购物车优化,存储购物车内容,退出页面再进后购物车还在 |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | if (res.code === 200) { |
| | | _this.orderCarList = [] |
| | | _this.$refs.agvStart.close() |
| | | uni.showToast({ title: '启动成功!', icon: "error", position: 'top' }) |
| | | uni.showToast({ title: '启动成功!', icon: "success", position: 'top' }) |
| | | setTimeout(()=> { |
| | | _this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: 1}); |
| | | uni.navigateBack({}) |
| | | },1000) |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000); |
| | | setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | } |