Commit c5b38348 authored by Facius's avatar Facius

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

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