|
@ -23,12 +23,10 @@ |
|
|
<view class="row">{{ item.productName }}</view> |
|
|
<view class="row">{{ item.productName }}</view> |
|
|
<view class="flex row"> |
|
|
<view class="flex row"> |
|
|
<view class="row-label">产品类型:</view> |
|
|
<view class="row-label">产品类型:</view> |
|
|
<!-- todo: check key --> |
|
|
|
|
|
<view class="row-content">{{ getTypeDesc(item.type) || '--' }}</view> |
|
|
<view class="row-content">{{ getTypeDesc(item.type) || '--' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex row"> |
|
|
<view class="flex row"> |
|
|
<view class="row-label">产品内容:</view> |
|
|
<view class="row-label">产品内容:</view> |
|
|
<!-- todo: check key --> |
|
|
|
|
|
<view class="row-content">{{ item.content || '--' }}</view> |
|
|
<view class="row-content">{{ item.content || '--' }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex price"> |
|
|
<view class="flex price"> |
|
@ -119,16 +117,17 @@ |
|
|
<template v-else-if="status == 1"> |
|
|
<template v-else-if="status == 1"> |
|
|
<button class="flex col btn" @click="onApplyService">申请售后</button> |
|
|
<button class="flex col btn" @click="onApplyService">申请售后</button> |
|
|
<!-- 自采检测 --> |
|
|
<!-- 自采检测 --> |
|
|
<template v-if="detectProduct && detectProduct.subscribeType == 0"> |
|
|
|
|
|
|
|
|
<!-- <template v-if="detectProduct && detectProduct.subscribeType == 0"> |
|
|
<button class="flex col btn btn-primary" @click="onDetectModify">修改</button> |
|
|
<button class="flex col btn btn-primary" @click="onDetectModify">修改</button> |
|
|
</template> |
|
|
|
|
|
|
|
|
</template> --> |
|
|
</template> |
|
|
</template> |
|
|
<!-- 待收货 --> |
|
|
<!-- 待收货 --> |
|
|
<template v-else-if="status == 2"> |
|
|
<template v-else-if="status == 2"> |
|
|
<button class="flex col btn" @click="onApplyService">申请售后</button> |
|
|
<button class="flex col btn" @click="onApplyService">申请售后</button> |
|
|
|
|
|
<button class="flex col btn btn-primary" @click="onConfirmReceipt">确认收货</button> |
|
|
<!-- 检测 subscribeType: 0自采,1上门,2到店,3已取消 --> |
|
|
<!-- 检测 subscribeType: 0自采,1上门,2到店,3已取消 --> |
|
|
<template v-if="detectProduct"> |
|
|
|
|
|
<!-- 自采检测 --> |
|
|
|
|
|
|
|
|
<!-- <template v-if="detectProduct"> |
|
|
|
|
|
自采检测 |
|
|
<template v-if="detectProduct.subscribeType == 0"> |
|
|
<template v-if="detectProduct.subscribeType == 0"> |
|
|
<button class="flex col btn btn-primary" @click="onDetectSendBack">线上回寄试剂盒</button> |
|
|
<button class="flex col btn btn-primary" @click="onDetectSendBack">线上回寄试剂盒</button> |
|
|
</template> |
|
|
</template> |
|
@ -136,10 +135,10 @@ |
|
|
<button class="flex col btn btn-primary" @click="onDetectBook">检测预约</button> |
|
|
<button class="flex col btn btn-primary" @click="onDetectBook">检测预约</button> |
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
<!-- 其他商品 --> |
|
|
|
|
|
|
|
|
其他商品 |
|
|
<template v-else> |
|
|
<template v-else> |
|
|
<button class="flex col btn btn-primary" @click="onConfirmReceipt">确认收货</button> |
|
|
<button class="flex col btn btn-primary" @click="onConfirmReceipt">确认收货</button> |
|
|
</template> |
|
|
|
|
|
|
|
|
</template> --> |
|
|
</template> |
|
|
</template> |
|
|
<!-- 待评价 --> |
|
|
<!-- 待评价 --> |
|
|
<template v-else-if="status == 3"> |
|
|
<template v-else-if="status == 3"> |
|
@ -208,15 +207,15 @@ |
|
|
statusDesc() { |
|
|
statusDesc() { |
|
|
return STATUS_AND_DESC_MAPPING[this.status] |
|
|
return STATUS_AND_DESC_MAPPING[this.status] |
|
|
}, |
|
|
}, |
|
|
detectProduct() { |
|
|
|
|
|
const { appletOrderProductList } = this.orderData || {} |
|
|
|
|
|
|
|
|
// detectProduct() { |
|
|
|
|
|
// const { appletOrderProductList } = this.orderData || {} |
|
|
|
|
|
|
|
|
if (appletOrderProductList?.length == 1 && appletOrderProductList?.[0]?.type == 1) { // type: 产品类型(0营养剂,1预约,2课程) |
|
|
|
|
|
return appletOrderProductList[0] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if (appletOrderProductList?.length == 1 && appletOrderProductList?.[0]?.type == 1) { // type: 产品类型(0营养剂,1预约,2课程) |
|
|
|
|
|
// return appletOrderProductList[0] |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
return null |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// return null |
|
|
|
|
|
// }, |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
console.log('onShow') |
|
|
console.log('onShow') |
|
|