Explorar el Código

提交复制物流单号

yxb
DESKTOP-2IO5MST\huting hace 1 año
padre
commit
e39590cf15

+ 2
- 2
pages/user/user.vue Ver fichero

@@ -131,9 +131,9 @@
</view>
<view class="amount m-top">
<text>¥
{{(state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0) /100}}</text>
{{state.monthFlowingVo.flowingNum }}</text>
<text>¥
{{(state.monthFlowingVo.flowingNum ? state.monthFlowingVo.flowingNum : 0)/100}}</text>
{{state.monthFlowingVo.flowingNum }}</text>
</view>
<view class="line m-top">
<view class="line1"

+ 11
- 0
subpackage/orders/components/order-info-item.vue Ver fichero

@@ -2,10 +2,13 @@
<view class="as-layout-horizontal as-gravity-center-start" v-if="!hide">
<text class="label">{{label}}</text>
<text class="value" @click="copy(value,label)">{{value}}</text>
<image :src="`${$imgUrl}order/copy-template.png`" mode="" v-if="label == '物流单号:'" @click="copy(value,label)">
</image>
</view>
</template>

<script setup lang="ts">
import { msg } from "@/utils/utils";
defineProps({
label: {
type: String,
@@ -50,4 +53,12 @@
color: #333333;
padding: 0 30rpx
}

image {
width: 36rpx;
height: 36rpx;
position: relative;
left: -22rpx;
top: -4rpx;
}
</style>

+ 23
- 11
subpackage/orders/order-detail-logistics.vue Ver fichero

@@ -26,14 +26,14 @@
<view class="order-line" v-for="(item,index) in state.orderShowInfo" :key="index">
<order-info-item :label="item.label" :value="item.value"></order-info-item>
</view>
<view class="order-line" v-for="(item,index) in state.orderHideInfo" :key="index">
<!-- <view class="order-line" v-for="(item,index) in state.orderHideInfo" :key="index">
<order-info-item :label="item.label" :value="item.value"></order-info-item>
</view>
</view> -->
</view>
<view class="show-or-noshow as-layout-horizontal as-gravity-center" @click="state.isShow = !state.isShow">
<!-- <view class="show-or-noshow as-layout-horizontal as-gravity-center" @click="state.isShow = !state.isShow">
<text>{{state.isShow?"收起部分订单信息":"查看全部订单信息"}}</text>
<image class="arror" :src="`${$imgUrl}common/arror-${state.isShow? 'right' : 'down'}.png`"></image>
</view>
</view> -->
</view>
</view>

@@ -84,6 +84,18 @@
label: '订单状态:',
value: ''
},
{
label: '创建时间:',
value: ''
},
{
label: '物流单号:',
value: ''
},
{
label: '物流公司:',
value: ''
},
],
//隐藏部分订单信息
orderHideInfo: [{
@@ -147,9 +159,9 @@
state.orderShowInfo[4].value = getCarTypeName(state.orderInfo["type"])
state.orderShowInfo[5].value = getOrderStatusName(state.orderInfo['orderStep'])

state.orderHideInfo[0].value = getOrderTime(state.orderInfo['insertTime'])
state.orderHideInfo[1].value = state.orderInfo['trackingNumber']
state.orderHideInfo[2].value = state.orderInfo['courierCompany']
state.orderShowInfo[6].value = getOrderTime(state.orderInfo['insertTime'])
state.orderShowInfo[7].value = state.orderInfo['trackingNumber']
state.orderShowInfo[8].value = state.orderInfo['courierCompany']
})
</script>

@@ -217,10 +229,10 @@
padding: 28rpx 30rpx 0;
}

.order-box {
height: 380rpx;
overflow: hidden;
}
// .order-box {
// height: 380rpx;
// overflow: hidden;
// }

.show {
height: auto;

Cargando…
Cancelar
Guardar