fix: 我的订单, 阻止事件冒泡
This commit is contained in:
parent
09255aba7d
commit
5a099c9469
|
@ -28,7 +28,8 @@
|
||||||
<img v-show='!!loadShowHeight' class='img-lodging'
|
<img v-show='!!loadShowHeight' class='img-lodging'
|
||||||
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/img-logding.png" alt="">
|
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/img-logding.png" alt="">
|
||||||
<div class="content" slot="content" @scroll="scrollBottom($event)">
|
<div class="content" slot="content" @scroll="scrollBottom($event)">
|
||||||
<div class="content-item" v-for="item in orderList" :key="item.order_number" @click="toDetails(item)">
|
<div class="content-item" v-for="item in orderList" :key="item.order_number"
|
||||||
|
@click.stop="toDetails(item)">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<p class="time">{{item.update_time}}</p>
|
<p class="time">{{item.update_time}}</p>
|
||||||
<p class="status" :style="{color:statusColor(item.status)}">{{item.status_text}}
|
<p class="status" :style="{color:statusColor(item.status)}">{{item.status_text}}
|
||||||
|
@ -191,7 +192,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
/*跳转详情*/
|
/*跳转详情*/
|
||||||
toDetails(order) {
|
toDetails(order, event) {
|
||||||
sessionStorage.setItem('orderNumber', order.order_number);
|
sessionStorage.setItem('orderNumber', order.order_number);
|
||||||
switch (order.goods.product_type) {
|
switch (order.goods.product_type) {
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -227,8 +228,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
/* 立即支付按钮 */
|
/* 立即支付按钮 */
|
||||||
immediatelyPay(item, event) {
|
immediatelyPay(item) {
|
||||||
event.stopPropagation();
|
|
||||||
localStorage.setItem('goodsInfo', JSON.stringify(item));
|
localStorage.setItem('goodsInfo', JSON.stringify(item));
|
||||||
window.location.href = `./settlement.html?orderNumber=${item.order_number}&payType=${item.pay_type}`;
|
window.location.href = `./settlement.html?orderNumber=${item.order_number}&payType=${item.pay_type}`;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue