Commit 774545dc authored by Facius's avatar Facius

详情页面底部button的数字、没有物流不显示物流按钮

parent f1c8af0f
......@@ -26,37 +26,57 @@
buttons: {
type: Array,
default () {
// id: 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照; 4 配件申请
// label: 按钮文字,
// type: 'image' 上图片下文字;'text' 纯文字,
// image: 图片名,
// show: 是否显示,
// disabled: 是 禁用;否 正常,
// id: 区分各个按钮
return [{
label: '过程反馈',
type: 'image',
image: 'guochengfankui.png',
show: true,
show: false,
disabled: false,
id: 1
},
{
label: '异常签到',
type: 'image',
image: 'yichangqiandao.png',
show: false,
disabled: false
show: false, // 待签到显示
disabled: false,
id: 2
},
{
label: '现场拍照',
type: 'image',
image: 'xiancahngpaizhao.png',
show: true,
show: false,
disabled: false,
id: 3
},
{
label: '接单',
label: '配件申请',
type: 'image',
image: 'peijian.png',
show: false,
disabled: false,
count: 0,
id: 4
},
{
label: '去接单',
type: 'text',
image: '',
show: true,
disabled: true,
disabled: false,
id: 0,
customStyle: {
'background-color': '#2272FF'
}
'background-color': '#D1D4D4'
}
]
}]
}
}
},
......
......@@ -3,7 +3,7 @@
<view class="return-cell" @click="handleClick">
<view class="title-view">
<text class="title-text" :style="{'color': titleColor}">{{title}}</text>
<view class="express-view" @click.stop="$u.throttle(handleClickExpress, 500)">
<view class="express-view" @click.stop="$u.throttle(handleClickExpress, 500)" v-if="info.express.number">
<text>物流单号:</text>
<view class="order-file-right">
<text>{{info.express.number}}</text>
......
......@@ -168,6 +168,7 @@
showCountTime : false, // 从上个页面传入是否显示倒计时
showApplyList: false, // 显示已申请配件列表
partsList: [], // 已申请的配件列表
partsCount: 0
}
},
computed: {
......@@ -218,7 +219,7 @@
image: 'peijian.png',
show: this.allowFeedback,
disabled: false,
count: 0,
count: this.partsCount,
id: 4
},
{
......@@ -458,7 +459,7 @@
this.$u.api.getOrderPartsSum(this.orderId).then((res) => {
if (res.code == 200) {
if (res.data) {
this.buttons[3].count = res.data.totalPartCount
this.partsCount = res.data.totalPartCount
}
} else {
console.log(res.message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment