Commit 2b0d218f authored by Facius's avatar Facius

详情页面弹窗

parent abb9f771
<template> <template>
<u-popup v-model="show" mode="center" safe-area-inset-bottom width="690rpx" :mask-close-able="flase" close-icon-color="#FFFFFF" height="80%"> <u-popup v-model="show" mode="center" safe-area-inset-bottom width="690rpx" :mask-close-able="flase"
close-icon-color="#FFFFFF" height="80%">
<!-- 申请列表 --> <!-- 申请列表 -->
<view class="apply-list-view"> <view class="apply-list-view">
<view class="colse-view"> <view class="content-view">
<view class="right-view" @click.throttle="handleClose">
<u-icon name="close"></u-icon>
</view>
</view>
<view class="list-content"> <view class="list-content">
<view v-for="(item, index) in list" :key="index"> <view v-for="(item, index) in list" :key="index">
<AppliedCell @operate="handleOperate" :info="item"></AppliedCell> <AppliedCell @operate="handleOperate" :info="item"></AppliedCell>
</view> </view>
</view> </view>
<view class="bottom-view"> <view class="bottom-view">
<u-button :custom-style="applyStyle" shape="circle" @click="handleApply" type="primary">申请配件</u-button> <view class="bottom-warehouse">
<view class="bottom-title">
<text>备件订单</text>
<view class="order-file-right" @click="$u.throttle(handleClick, 500)">
<text>点击查看</text>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="bottom-content">
<view v-for="(item, index) in bottomItems" :key="index" class="bottom-content-item"
@click="handleClick(item.index)">
<view class="bottom-image">
<image :src="item.icon" :style="item.imageStyle"></image>
</view>
<view>{{item.title}}</view>
</view>
</view>
</view>
<view class="line-view"></view>
<view class="apply-button" @click="$u.throttle(handleApply, 500)">
<text :custom-style="applyStyle" type="primary">继续申请</text>
</view>
</view>
</view>
<view class="colse-view">
<image class="image-view" :src="closeImage" @click.throttle="$u.throttle(handleClose, 500)"></image>
</view> </view>
</view> </view>
</u-popup> </u-popup>
...@@ -44,11 +66,36 @@ ...@@ -44,11 +66,36 @@
} }
}, },
computed: { computed: {
applyStyle() { closeImage() {
return { return process.uniEnv.qn_base_url + 'dianjiquxiao.png'
'height': '104rpx', },
'width': '100%', bottomItems() {
} // index: 跳转到我的订单页面之后第几个tab,
return [{
index: 3,
title: '代签收',
icon: process.uniEnv.qn_base_url + 'daiqianshou.png',
imageStyle: 'width:48rpx;height:48rpx'
},
{
index: 2,
title: '待发货',
icon: process.uniEnv.qn_base_url + 'daifahuo.png',
imageStyle: 'width:48rpx;height:48rpx'
},
{
index: 1,
title: '待审核',
icon: process.uniEnv.qn_base_url + 'daishenhe.png',
imageStyle: 'width:44rpx;height:54rpx'
},
{
index: 4,
title: '已签收',
icon: process.uniEnv.qn_base_url + 'qianshou.png',
imageStyle: 'width:48rpx;height:48rpx'
},
]
} }
}, },
methods: { methods: {
...@@ -64,6 +111,11 @@ ...@@ -64,6 +111,11 @@
handleApply() { handleApply() {
this.$emit('apply') this.$emit('apply')
}, },
handleClick(index = 0) {
uni.navigateTo({
url: 'pages/mine/warehouse/index?index=' + index
})
}
} }
} }
</script> </script>
...@@ -73,26 +125,94 @@ ...@@ -73,26 +125,94 @@
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.colse-view {
height: 80rpx; .content-view {
border-radius: 12rpx;
background-color: #FFFFFF;
height: 100%;
display: flex;
flex-direction: column;
.list-content {
height: 100%;
}
.bottom-view {
.bottom-warehouse {
background-color: #FFFFFF;
border-radius: 12rpx;
.bottom-title {
color: #333333;
font-weight: bold;
font-size: 32rpx;
margin: 0rpx 30rpx 40rpx 30rpx;
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
justify-content: flex-end; .order-file-right {
.right-view { font-weight: 400;
width: 80rpx; color: #2272FF;
height: 80rpx; font-size: 26rpx;
}
}
.bottom-content {
display: flex; display: flex;
justify-content: space-around;
align-items: center; align-items: center;
.bottom-content-item {
color: #333333;
font-size: 26rpx;
display: flex;
justify-content: center; justify-content: center;
color: #FF0000; flex-direction: column;
align-items: center;
.bottom-image {
width: 60rpx;
height: 60rpx;
margin-bottom: 10rpx;
display: flex;
justify-content: center;
align-items: center;
} }
} }
.list-content {
height: 100%; }
overflow: auto;
} }
.bottom-view {
.line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
margin-top: 24rpx;
}
.apply-button {
width: 100%;
color: #2272FF;
font-size: 32rpx;
display: flex;
justify-content: center;
align-items: center;
height: 112rpx;
}
}
}
.colse-view {
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
margin-top: 30rpx;
.image-view {
width: 60rpx;
height: 60rpx;
}
} }
} }
</style> </style>
...@@ -61,12 +61,13 @@ ...@@ -61,12 +61,13 @@
default () { default () {
return '确定' return '确定'
} }
}
}, },
customStyle: { customStyle: {
type: String, type: String,
default: 'background-color: #FFFFFF;padding: 0 30rpx;' default: 'background-color: #FFFFFF;padding: 0 30rpx;'
}, },
},
data() { data() {
return { return {
checked: false checked: false
......
...@@ -123,8 +123,11 @@ ...@@ -123,8 +123,11 @@
} }
}, },
}, },
onLoad(e) { onLoad(option) {
getApp().trackPage('我的配件页') getApp().trackPage('我的配件页')
if (option && option.index) {
this.currentIndex = option.index
}
this.reloadPartsList() this.reloadPartsList()
this._freshing = false; this._freshing = false;
}, },
......
...@@ -37,6 +37,9 @@ ...@@ -37,6 +37,9 @@
</view> </view>
</view> </view>
<view>
<u-toast ref="uToast" />
</view>
</view> </view>
</template> </template>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
@submit="$u.throttle(handleSubmit, 500)" /> @submit="$u.throttle(handleSubmit, 500)" />
</view> </view>
</template> </template>
<view class="fixed-button"> <view class="fixed-button" v-if="!showBounce">
<ApplyButton :type="buttonType" @click="handleClickApply"/> <ApplyButton :type="buttonType" @click="handleClickApply"/>
</view> </view>
</view> </view>
......
...@@ -931,6 +931,9 @@ ...@@ -931,6 +931,9 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.order-wrap { .order-wrap {
/deep/ .u-mode-center-box {
background-color: transparent !important;
}
width: 750rpx; width: 750rpx;
height: 100vh; height: 100vh;
overflow: auto; overflow: auto;
......
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