修改2级以上BUg

merge-requests/61/merge
ch 3 years ago
parent 6461354a0d
commit c3af52a00a

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-05-09 14:41:37
* @LastEditors: ch
* @LastEditTime: 2022-05-16 11:14:11
* @LastEditTime: 2022-05-16 11:46:05
* @Description: file content
-->
<template>
@ -125,7 +125,11 @@ export default {
});
},
emitStatus(){
this.$emit('changeStatus')
//
if(this.timerStop){
clearTimeout(this.timerStop);
}
this.$emit('changeStatus');
}
}

@ -2,12 +2,12 @@
* @Author: ch
* @Date: 2022-05-04 20:47:29
* @LastEditors: ch
* @LastEditTime: 2022-05-16 11:23:15
* @LastEditTime: 2022-05-16 14:14:18
* @Description: file content
-->
<template>
<div class="main">
<Tab :active="tabActive" @change="changeTab"></Tab>
<Tab :active="tabActive" @change="changeTab" ref="tab"></Tab>
<UiLoading v-if="loading"></UiLoading>
<UiEmpty v-if="!orderTotal && !loading" desc="暂无订单数据" :icon="require('@/assets/img/account/order/empty.png')">
<UiButton type="grey" @click="$router.push('/')"></UiButton>
@ -47,7 +47,7 @@
<td width="145" :rowspan="item.products.length">
<template v-if="item.orderStatus === 1">
<UiButton type="yellow_gradual" @click="pay(item)"></UiButton>
<span class="link-btn" @click="canvelPay(item)"></span>
<span class="link-btn" @click="cancelPay(item)"></span>
</template>
<router-link :to="`./detail?id=${item.orderId}`" v-if="item.orderStatus > 4"></router-link>
<template v-if="item.orderStatus === 4">
@ -67,8 +67,8 @@
</template>
<BsCancelOrder :visible.sync="cancelVisible" :orderId="operationOrder.orderId"/>
<BsPay :visible.sync="payVisible" :orderId="operationOrder.orderId" @finish="getOrderList"/>
<BsCancelOrder :visible.sync="cancelVisible" :orderId="operationOrder.orderId" @cancel="reloadData"/>
<BsPay :visible.sync="payVisible" :orderId="operationOrder.orderId" @finish="reloadData"/>
</div>
</template>
<script>
@ -114,6 +114,9 @@ export default {
this.getOrderList();
},
/**
* 查询订单列表
*/
async getOrderList(){
this.loading = true;
const {error, result} = await ApiGetOrderList({
@ -129,11 +132,19 @@ export default {
this.orderList = result.records;
this.orderTotal = result.total
},
/**
* 重新加载数据确认收货和取消支付订单这些操作完成后需要
*/
reloadData(){
this.getOrderList();
this.$refs.tab.getOrderStatistics();
},
pay(item){
this.operationOrder = item;
this.payVisible = true;
},
canvelPay(item){
cancelPay(item){
this.operationOrder = item;
this.cancelVisible = true;
},
@ -152,7 +163,7 @@ export default {
type: 'success',
message: '成功收货!'
});
this.getOrderList();
this.reloadData()
});
},
}

@ -2,16 +2,16 @@
* @Author: ch
* @Date: 2022-05-03 22:41:15
* @LastEditors: ch
* @LastEditTime: 2022-05-12 19:40:43
* @LastEditTime: 2022-05-16 14:17:43
* @Description: file content
-->
<template>
<div>
<UiLoading v-if="isLoading" ></UiLoading>
<UiEmpty v-if="!isLoading && !list.length" desc="购物车空空如也,去挑点喜欢的好货吧~"
:icon="require('@/assets/img/cart/empty.png')">
<UiButton type="grey" @click="$router.push('/')"></UiButton>
</UiEmpty>
<UiLoading v-if="isLoading" ></UiLoading>
<div class="main" v-else>
<table class="table table--head">
<thead>

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-05-04 17:30:58
* @LastEditors: ch
* @LastEditTime: 2022-05-12 09:58:47
* @LastEditTime: 2022-05-16 13:53:56
* @Description: file content
-->
@ -18,7 +18,7 @@
<h3 class="title">确认商品信息</h3>
<OrderInfo :products="orderInfo.products" />
<Message :orderInfo="orderInfo" :message.sync="userMessage"/>
<Amount :amount="orderInfo.payAmount"/>
<Amount :amount="orderInfo.payAmount" :address="address"/>
<div class="pay">
<UiButton radius type="red_panel" @click="submit"></UiButton>
</div>

@ -1,22 +0,0 @@
<!--
* @Author: ch
* @Date: 2022-05-04 17:35:44
* @LastEditors: ch
* @LastEditTime: 2022-05-04 17:38:31
* @Description: file content
-->
<template>
<div>我是地址模块</div>
</template>
<script>
export default {
data(){
return {
}
}
}
</script>
<style lang="scss" scoped>
</style>

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-05-08 16:12:18
* @LastEditors: ch
* @LastEditTime: 2022-05-08 16:14:57
* @LastEditTime: 2022-05-16 13:56:07
* @Description: file content
-->
<template>
@ -11,8 +11,8 @@
<span>应付款</span>
<b>{{amount}}</b>
</div>
<p>北京市XXXXX区XXXX路xxxxxx小区XXX单元</p>
<p>卖火柴的灰姑凉 18888888888</p>
<p>{{address.province + address.city + address.area + address.detailAddress}}</p>
<p>{{address.name}} {{address.phone}}</p>
</div>
</template>
<script>

Loading…
Cancel
Save