修改退出

msb_beta
ch 3 years ago
parent 98e1663951
commit f34035c45e

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-05-11 11:45:08
* @LastEditors: ch
* @LastEditTime: 2022-05-14 18:35:40
* @LastEditTime: 2022-05-16 20:06:16
* @Description: file content
-->
<template>
@ -93,7 +93,14 @@ export default {
return {startingPrice,name,id, productImageUrl}
},
simpleOrder (){
const {orderId, payTypeDesc, payAmount, orderStatusDesc, orderNo, products} = this.orderInfo;
const {
orderId,
payTypeDesc,
payAmount,
orderStatusDesc,
orderNo,
products
} = this.orderInfo;
return {orderId, payTypeDesc, payAmount, orderStatusDesc, orderNo, ...(products ? products[0] : {})};
}
},

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-03-22 15:09:06
* @LastEditors: ch
* @LastEditTime: 2022-05-16 15:53:05
* @LastEditTime: 2022-05-16 20:21:20
* @Description: file content
-->
<template>
@ -18,7 +18,9 @@
</template>
<script>
import UiButton from '@/components/UiButton.vue'
import UiCell from '@/components/UiCell.vue'
import UiCell from '@/components/UiCell.vue';
import {MsbWebSkt} from '@/common/utils';
import {ApiGetLogout} from '@/common/api/index';
export default {
components: { UiCell, UiButton },
computed:{
@ -36,7 +38,11 @@ export default {
success:async ({confirm})=>{
if(confirm){
await ApiGetLogout();
this.$store.commit('SET_SESSION_DATA',[])
this.$store.commit('SET_SESSION_MSG_COUNT',0)
this.$store.commit('SET_SESSION_MSG_ID','')
this.$store.commit('SET_TOKEN');
MsbWebSkt.close();
this.$Router.replace('/login');
}
}

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>马士兵严选</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.b5602bf5.js></script><script src=/static/js/index.79fc9e34.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.b5602bf5.js></script><script src=/static/js/index.0a03ff3c.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save