Commit 2b0d218f authored by Facius's avatar Facius

详情页面弹窗

parent abb9f771
<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="colse-view">
<view class="right-view" @click.throttle="handleClose">
<u-icon name="close"></u-icon>
</view>
<view class="apply-list-view">
<view class="content-view">
<view class="list-content">
<view v-for="(item, index) in list" :key="index">
<AppliedCell @operate="handleOperate" :info="item"></AppliedCell>
</view>
</view>
<view class="bottom-view">
<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="list-content">
<view v-for="(item, index) in list" :key="index">
<AppliedCell @operate="handleOperate" :info="item"></AppliedCell>
</view>
</view>
<view class="bottom-view">
<u-button :custom-style="applyStyle" shape="circle" @click="handleApply" type="primary">申请配件</u-button>
<view class="colse-view">
<image class="image-view" :src="closeImage" @click.throttle="$u.throttle(handleClose, 500)"></image>
</view>
</view>
</u-popup>
......@@ -42,57 +64,155 @@
return {
}
},
computed: {
applyStyle() {
return {
'height': '104rpx',
'width': '100%',
}
}
},
computed: {
closeImage() {
return process.uniEnv.qn_base_url + 'dianjiquxiao.png'
},
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: {
handleClose() {
this.$emit('update:show', false)
},
handleOperate(type) {
// 调接口
// 刷新页面
handleOperate(type) {
// 调接口
// 刷新页面
// 告诉父级做了操作
this.$emit('operate', type)
},
handleApply() {
this.$emit('apply')
},
},
handleApply() {
this.$emit('apply')
},
handleClick(index = 0) {
uni.navigateTo({
url: 'pages/mine/warehouse/index?index=' + index
})
}
}
}
</script>
<style lang="scss" scoped>
.apply-list-view {
height: 100%;
display: flex;
flex-direction: column;
.colse-view {
height: 80rpx;
display: flex;
align-items: center;
justify-content: flex-end;
.right-view {
width: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
color: #FF0000;
}
}
.list-content {
height: 100%;
overflow: auto;
}
.bottom-view {
}
.apply-list-view {
height: 100%;
display: flex;
flex-direction: column;
.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;
justify-content: space-between;
align-items: center;
.order-file-right {
font-weight: 400;
color: #2272FF;
font-size: 26rpx;
}
}
.bottom-content {
display: flex;
justify-content: space-around;
align-items: center;
.bottom-content-item {
color: #333333;
font-size: 26rpx;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
.bottom-image {
width: 60rpx;
height: 60rpx;
margin-bottom: 10rpx;
display: flex;
justify-content: center;
align-items: center;
}
}
}
}
.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>
......@@ -61,12 +61,13 @@
default () {
return '确定'
}
}
},
customStyle: {
type: String,
default: 'background-color: #FFFFFF;padding: 0 30rpx;'
},
customStyle: {
type: String,
default: 'background-color: #FFFFFF;padding: 0 30rpx;'
},
},
data() {
return {
checked: false
......
......@@ -123,8 +123,11 @@
}
},
},
onLoad(e) {
getApp().trackPage('我的配件页')
onLoad(option) {
getApp().trackPage('我的配件页')
if (option && option.index) {
this.currentIndex = option.index
}
this.reloadPartsList()
this._freshing = false;
},
......
......@@ -37,6 +37,9 @@
</view>
</view>
<view>
<u-toast ref="uToast" />
</view>
</view>
</template>
......
......@@ -42,7 +42,7 @@
@submit="$u.throttle(handleSubmit, 500)" />
</view>
</template>
<view class="fixed-button">
<view class="fixed-button" v-if="!showBounce">
<ApplyButton :type="buttonType" @click="handleClickApply"/>
</view>
</view>
......
......@@ -931,6 +931,9 @@
<style lang="scss" scoped>
.order-wrap {
/deep/ .u-mode-center-box {
background-color: transparent !important;
}
width: 750rpx;
height: 100vh;
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