feat: ai店铺订单按钮展示
This commit is contained in:
@@ -5,8 +5,14 @@
|
||||
}">
|
||||
<view class="more size24" v-if="props.type != 2"></view>
|
||||
<view class="flex-center ju-flex-end">
|
||||
|
||||
<view v-for="(item, index) in btns" :key="index">
|
||||
<view v-if="item.value.split(',').indexOf(String(props?.data?.status)) !== -1" class="btn size28 f500"
|
||||
<view
|
||||
v-if="
|
||||
item.value.split(',').indexOf(String(props?.data?.status)) !== -1 &&
|
||||
!(item.id === 3 && Number(props?.data?.type) === 5)
|
||||
"
|
||||
class="btn size28 f500"
|
||||
@click.stop="btnClick(item.id)"
|
||||
:style="{ color: item.color, background: item.background, border: item.border }"
|
||||
:class="{btn1: props.type == 2}">
|
||||
@@ -56,11 +62,11 @@
|
||||
background: 'rgba(238,10,36,0.2)',
|
||||
border: 'none'
|
||||
},
|
||||
// { //在订单详情退货
|
||||
// id: 3,
|
||||
// name: '申请售后',
|
||||
// value: '10,20',
|
||||
// },
|
||||
{ //在订单详情退货
|
||||
id: 3,
|
||||
name: '申请售后',
|
||||
value: '10,20',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: '确认收货',
|
||||
@@ -69,12 +75,12 @@
|
||||
background: 'rgba(238,10,36,0.2)',
|
||||
border: 'none'
|
||||
},
|
||||
// {
|
||||
// id: 5,
|
||||
// name: '再次购买',
|
||||
// value: '30,50,40',
|
||||
// color: '#FA9C31',
|
||||
// },
|
||||
{
|
||||
id: 5,
|
||||
name: '再次购买',
|
||||
value: '30,50,40',
|
||||
color: '#FA9C31',
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
name: '取消售后',
|
||||
@@ -91,6 +97,9 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (index === 3 && Number(props?.data?.type) === 5) {
|
||||
return;
|
||||
}
|
||||
let id = props.data?.id;
|
||||
switch (index) {
|
||||
case 1:
|
||||
@@ -197,17 +206,17 @@
|
||||
.more {}
|
||||
|
||||
.btn {
|
||||
line-height: 54rpx;
|
||||
padding: 0 24rpx;
|
||||
line-height: 24rpx;
|
||||
padding: 10rpx 24rpx;
|
||||
box-sizing: border-box;
|
||||
border: 2rpx solid #999999;
|
||||
border-radius: 94px 94px 94px 94px;
|
||||
border-radius: 10rpx;
|
||||
margin-left: 12rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.btn1 {
|
||||
line-height: 74rpx;
|
||||
padding: 0 30rpx;
|
||||
// line-height: 74rpx;
|
||||
// padding: 0 30rpx;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user