Commit c5b38348 authored by Facius's avatar Facius

配件单详情和物流页面间传值

parent b51939ba
......@@ -4,7 +4,6 @@
</u-navbar>
<view class="content-view">
<view class="contacts-view">
<view :style="{'color': titleColor}">{{title}}</view>
<view><image class="image-view" :src="imageUrl"></image></view>
<view class="right-view">
<view class="title-view">{{title}}</view>
......@@ -77,6 +76,7 @@
var pages = getCurrentPages();
if (pages.length >= 2) {
var page = pages[pages.length - 2];
console.log('-------page.info------', page.info)
this.info = page.info
}
this.getLogistics()
......@@ -204,8 +204,7 @@
align-items: center;
.copy-view {
color: #2272FF;
width: 80rpx;
text-align: right;
padding-left: 30rpx;
}
}
}
......
......@@ -151,7 +151,7 @@
// },
// tab栏切换
change(index) {
this.current[this.curNow] = index;
this.currentIndex = index;
this.reloadPartsList()
},
......@@ -290,7 +290,7 @@
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30rpx;
margin-bottom: 20rpx;
.search-btn {
height: 72rpx;
background-color: #ffffff;
......
......@@ -2,7 +2,7 @@
<view class="parts-detail">
<u-navbar back-icon-color="#333333" background="#F4F5F7" titleColor="#333333" :border-bottom="false" title-bold>
</u-navbar>
<view class="title-text" :style="{'color': titleColor}">
<view class="title-text">
<text>{{title}}</text>
<view class="express-view" @click="$u.throttle(handleClickExpress, 500)">
<text>查看物流信息</text>
......@@ -40,8 +40,8 @@
<text>{{ value }}:</text>
<text @longpress="handleLongpress(key, detail[key] )">{{ detail[key] }}</text>
</view>
<view class="copy-view" v-if="key == 'orderNumber'" @click="$u.throttle(handleClickCopy, 500)">
复制</view>
<text class="copy-view" v-if="key == 'orderNumber'" @click="$u.throttle(handleClickCopy, 500)">
复制</text>
</view>
</view>
</view>
......@@ -102,16 +102,6 @@
'1': '已取消'
}
},
titleColor() {
switch (String(this.info.status)) {
case '-1': // 审核未通过
return '#FA5A49'
case '1': // 已取消
return '#666666'
default:
return '#2272FF'
}
},
total() { // 合计
var i = 0
for (var item of this.info.items) {
......@@ -163,6 +153,11 @@
},
// 查看物流
handleClickExpress() {
var pages = getCurrentPages();
if (pages.length >= 1) {
var page = pages[pages.length - 1];
page.info = this.info
}
uni.navigateTo({
url: 'pages/mine/warehouse/express'
})
......@@ -326,8 +321,7 @@
.copy-view {
color: #2272FF;
width: 80rpx;
text-align: right;
padding-left: 30rpx;
}
}
}
......
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