|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-08 01:11:33
|
|
|
|
* @Date: 2022-05-08 01:11:33
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-05-27 19:32:59
|
|
|
|
* @LastEditTime: 2022-05-27 19:59:09
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
@ -13,25 +13,34 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<UiButton type="grey" @click="goHome" :radius="true">返回首页</UiButton>
|
|
|
|
<UiButton type="grey" @click="goHome" :radius="true">返回首页</UiButton>
|
|
|
|
<UiButton type="yellow_gradual" @click="goDetail" :radius="true">查看订单</UiButton>
|
|
|
|
<UiButton type="yellow_gradual" @click="goDetail" :radius="true">查看订单</UiButton>
|
|
|
|
<UiButton type="yellow_gradual" v-if="orderInfo.orderType !== ORDER_TYPE.VIRTUAL" @click="goMessage" :radius="true">收货信息</UiButton>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import UiButton from '../../components/UiButton.vue';
|
|
|
|
import UiButton from '../../components/UiButton.vue';
|
|
|
|
import {ApiGetOrderPaySatus} from '@/plugins/api/order';
|
|
|
|
import {ApiGetOrderPaySatus} from '@/plugins/api/order';
|
|
|
|
import {ORDER_TYPE} from '@/plugins/dicts/order';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: { UiButton },
|
|
|
|
components: { UiButton },
|
|
|
|
data(){
|
|
|
|
data(){
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
orderInfo : {},
|
|
|
|
orderInfo : {},
|
|
|
|
ORDER_TYPE,
|
|
|
|
type : this.$route.query.type,
|
|
|
|
reuqestNum : 0
|
|
|
|
reuqestNum : 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted(){
|
|
|
|
mounted(){
|
|
|
|
this.getOrderInfo();
|
|
|
|
// this.getOrderInfo();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$confirm("虚拟商品已自动发货,前往消息中心查看?", "提示", {
|
|
|
|
|
|
|
|
confirmButtonText: "前往",
|
|
|
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
|
|
|
callback: async (e) => {
|
|
|
|
|
|
|
|
if (e == `confirm`) {
|
|
|
|
|
|
|
|
window.open('https://you.mashibing.com/account/message','_black');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
methods:{
|
|
|
|
async getOrderInfo(){
|
|
|
|
async getOrderInfo(){
|
|
|
@ -55,9 +64,6 @@ export default {
|
|
|
|
goDetail(){
|
|
|
|
goDetail(){
|
|
|
|
this.$router.replace(`/account/order/detail?id=${this.$route.query.id}`)
|
|
|
|
this.$router.replace(`/account/order/detail?id=${this.$route.query.id}`)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goMessage(){
|
|
|
|
|
|
|
|
window.open('https://you.mashibing.com/account/message','_black');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|