|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="choosePartResult flex flex_column">
|
|
|
- <view class="contHead" v-if="state" :style="{background:state==1?'#1283d4':'#ff5500',color:'#fff'}">
|
|
|
+ <view class="contHead" v-if="state" :style="{background:state==1?'#066cff':'#ff5500',color:'#fff'}">
|
|
|
<view class="statusH">
|
|
|
<view class="flex flex_column align_center">
|
|
|
<view class="status-row">
|
|
@@ -9,7 +9,7 @@
|
|
|
<text>{{statusText}}</text>
|
|
|
</view>
|
|
|
<view class="messageText" v-html="info&&info.shelfOrder&&info.shelfOrder.remindMessage||''"></view>
|
|
|
- <view class="messageText" v-if="info&&info.shelfOrder&&info.shelfOrder.totalRewardAmount">
|
|
|
+ <view class="messageText" v-if="info&&info.shelfOrder&&info.shelfOrder.totalRewardAmount&&!showMask">
|
|
|
您已获得<text>{{info.shelfOrder.totalRewardAmount}}</text>元红包奖励,可在“更多-红包奖励”中查看
|
|
|
</view>
|
|
|
<!-- <view class="button-group"> -->
|
|
@@ -120,6 +120,17 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!-- 红包 -->
|
|
|
+ <u-mask :show="showMask">
|
|
|
+ <view class="imageWarp flex flex_column justify_center align_center" style="width:100%;height:100vh;">
|
|
|
+ <view style="position: relative;">
|
|
|
+ <u-image src="/pagesA/static/hb.png" width="700" height="657" @click="showMask=false"></u-image>
|
|
|
+ <view style="font-size: 60rpx;color:#fff;position: absolute;top:50%;text-align: center;width: 100%;">
|
|
|
+ {{info&&info.shelfOrder&&info.shelfOrder.totalRewardAmount||'0.00'}} <text style="font-size: 26rpx;margin-left: 10rpx;">元</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-mask>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -142,7 +153,8 @@
|
|
|
tempPartList: [],
|
|
|
state: null,
|
|
|
current: 0,
|
|
|
- shelfOrderSn: ''
|
|
|
+ shelfOrderSn: '',
|
|
|
+ showMask: false,
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -150,13 +162,18 @@
|
|
|
this.state = option.state
|
|
|
console.log(this.info,'-------------')
|
|
|
if(option.state==1){
|
|
|
- this.statusText = '拿货成功'
|
|
|
- this.statusIcon = 'checkmark-circle'
|
|
|
+ this.statusText = '拿货成功';
|
|
|
+ this.statusIcon = 'checkmark-circle';
|
|
|
// 获取配件列表
|
|
|
- this.partList = this.info.shelfOrder ? this.info.shelfOrder.shelfOrderDetailList : []
|
|
|
- this.tempPartList = this.info.shelfTempBill ? this.info.shelfTempBill.detailList : [],
|
|
|
- this.shelfOrderSn = this.info.shelfOrder ? this.info.shelfOrder.shelfOrderSn : ''
|
|
|
- this.current = this.partList.length ? 0 : 1
|
|
|
+ this.partList = this.info.shelfOrder ? this.info.shelfOrder.shelfOrderDetailList : [];
|
|
|
+ this.tempPartList = this.info.shelfTempBill ? this.info.shelfTempBill.detailList : [];
|
|
|
+ this.shelfOrderSn = this.info.shelfOrder ? this.info.shelfOrder.shelfOrderSn : '';
|
|
|
+ this.current = this.partList.length ? 0 : 1;
|
|
|
+
|
|
|
+ // 有红包活动
|
|
|
+ if(this.info.shelfOrder && this.info.shelfOrder.totalRewardAmount){
|
|
|
+ this.showMask = true
|
|
|
+ }
|
|
|
}else{
|
|
|
this.statusText = '拿货失败'
|
|
|
this.statusIcon = 'close-circle'
|
|
@@ -165,7 +182,7 @@
|
|
|
// 更改标题栏背景色
|
|
|
uni.setNavigationBarColor({
|
|
|
frontColor: '#ffffff',
|
|
|
- backgroundColor: option.state==1 ? '#1283d4':'#ff5500',
|
|
|
+ backgroundColor: option.state==1 ? '#066cff':'#ff5500',
|
|
|
})
|
|
|
},
|
|
|
computed: {
|