|
@@ -30,6 +30,17 @@
|
|
|
确认拿货
|
|
|
</u-button>
|
|
|
</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="toDetail"></u-image>
|
|
|
+ <view style="font-size: 60rpx;color:#fff;position: absolute;top:50%;text-align: center;width: 100%;">
|
|
|
+ {{tempData&&tempData.totalRewardAmount||'0.00'}} <text style="font-size: 26rpx;margin-left: 10rpx;">元</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </u-mask>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -40,7 +51,9 @@
|
|
|
return {
|
|
|
loading:false,
|
|
|
nowData: null,
|
|
|
- qty: 1
|
|
|
+ qty: 1,
|
|
|
+ showMask: false,
|
|
|
+ tempData: null
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -77,6 +90,14 @@
|
|
|
url: "/pagesA/digitalShelf/orderDetail?shelfOrderSn="+data.shelfOrderSn
|
|
|
})
|
|
|
},
|
|
|
+ showRedModal(data){
|
|
|
+ if(data.totalRewardAmount){
|
|
|
+ this.tempData = data
|
|
|
+ this.showMask = true
|
|
|
+ }else{
|
|
|
+ this.toDetail(data)
|
|
|
+ }
|
|
|
+ },
|
|
|
// 确认拿货
|
|
|
outShelfOrder(){
|
|
|
const _this = this
|
|
@@ -97,7 +118,7 @@
|
|
|
showCancel: false,
|
|
|
success(ret) {
|
|
|
if(ret.confirm){
|
|
|
- _this.toDetail(res.data)
|
|
|
+ _this.showRedModal(res.data)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -107,7 +128,7 @@
|
|
|
title: res.message,
|
|
|
duration: 4000
|
|
|
})
|
|
|
- _this.toDetail(res.data)
|
|
|
+ _this.showRedModal(res.data)
|
|
|
}
|
|
|
}else{
|
|
|
uni.showModal({
|