Commit 774545dc authored by Facius's avatar Facius

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

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