Commit 366722be authored by chuan.liu's avatar chuan.liu

新增我的订单--配额、团购订单

parent 16063a59
......@@ -556,6 +556,36 @@
}
}
}
},
{
"path": "pages/order-detail-quota/order-detail-quota",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "transparent",
"titleText": "我的订单",
"autoBackButton": true
}
}
}
},
{
"path": "pages/order-detail-group/order-detail-group",
"style": {
"app-plus": {
"titleNView": {
"titleAlign": "left",
"titleColor": "#333",
"titleSize": "17px",
"backgroundColor": "transparent",
"titleText": "我的订单",
"autoBackButton": true
}
}
}
}
],
"globalStyle": {
......
......@@ -160,9 +160,8 @@
this.requestParams.minId = 0;
},
goDetail(detail) {
console.log(1)
uni.navigateTo({
url:"/pages/order-detail-noquota/order-detail-noquota"
url:"/pages/order-detail-group/order-detail-group"
})
},
refreshData() {
......
This diff is collapsed.
<template>
<view class="lists">
<view class="status_bar" :style="navHeight"></view>
<view class="header-bg"></view>
<view class="main">
<view class="order-main view">
<view class="top">
<text class="title-no">订单编号:TP10000021</text>
<view class="title-info">
<button class="title-info__status" type="default">待审批</button>
</view>
</view>
<view class="order-main-middle view">
<view class="middle-title">
<text class="middle-title__text">配额订单</text>
</view>
<view class="text-block-box">
<view class="text-block text-block-last">
<text class="middle-date">2021-08-06 05:14</text>
<text class="middle-date-des">下单日期</text>
</view>
<view class="text-block text-block-last">
<view class="middle-date-right">
<text class="middle-date">¥5000</text>
</view>
<text class="middle-date-des middle-date-right">金额</text>
</view>
</view>
</view>
</view>
<view class="order-middle view" :class="{'order-middle-auto':ishowReceiveDetail}">
<view class="middle view">
<view class="item-block item-block-name">
<text class="item-block-label">计划内</text>
</view>
<view class="block-detal">
<view class="block-detal-item">
<text class="detal-item-label">计划编号</text>
<text class="detal-item-value">3810000023</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">计划类型</text>
<text class="detal-item-value">专卖店配额计划</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">产品</text>
<text class="detal-item-value">1618五粮液 500ml*6</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">数量</text>
<text class="detal-item-value">25</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">合数</text>
<text class="detal-item-value">25</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">单价</text>
<text class="detal-item-value">¥880</text>
</view>
<view class="block-detal-item block-detal-item-last">
<text class="detal-item-label"></text>
<view class="detal-item-value">
<text class="item-value-intotal">小计:</text>
<text class="item-value-intotal-num">¥20,000.00</text>
</view>
</view>
</view>
</view>
<view class="middle view">
<view class="item-block item-block-name">
<text class="item-block-label">计划外</text>
</view>
<view class="block-detal">
<view class="block-detal-item">
<text class="detal-item-label">计划编号</text>
<text class="detal-item-value">3810000023</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">计划类型</text>
<text class="detal-item-value">专卖店配额计划</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">产品</text>
<text class="detal-item-value">1618五粮液 500ml*6</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">数量</text>
<text class="detal-item-value">25</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">合数</text>
<text class="detal-item-value">25</text>
</view>
<view class="block-detal-item">
<text class="detal-item-label">单价</text>
<text class="detal-item-value">¥880</text>
</view>
<view class="block-detal-item block-detal-item-last">
<text class="detal-item-label"></text>
<view class="detal-item-value">
<text class="item-value-intotal">小计:</text>
<text class="item-value-intotal-num">¥20,000.00</text>
</view>
</view>
</view>
</view>
<view class="float-btn-block">
<view class="float-btn" @click="handleShowReceiveDetail">
<text class="float-btn__text">{{ishowReceiveDetail?'收起':'展示完整信息'}}</text>
<image class="icon-arrow" :class="{'icon-arrow-rotate':!ishowReceiveDetail}"
src="@/static/image/arrow_up@3x.png" mode="aspectFit"></image>
</view>
</view>
</view>
<view class="order-bottom view">
<view class="middle view">
<view class="item-block item-block-name">
<text class="item-block-label">附件</text>
</view>
<view class="block-detal">
<view class="block-detal-item">
<view class="detal-item-file">
<image class="icon-file" src="@/static/image/logo@3x.png" mode="widthFix">
</image>
<text class="detal-item-label">开票要求.docx</text>
</view>
<button class="btn" type="default">
<text class="btn-text">下载</text>
</button>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import {
mapState
} from 'vuex'
export default {
data() {
return {
ishowReceiveDetail:false
}
},
computed: {
...mapState(['sysinfo']),
navHeight() {
return {
'height': `${this.sysinfo.safeArea.top + 44}px`
}
},
},
methods: {
handleShowReceiveDetail() {
this.ishowReceiveDetail = !this.ishowReceiveDetail
},
}
}
</script>
<style lang="scss" scoped>
.view {
flex-direction: column;
}
.header-bg {
height: 284rpx;
opacity: 0.72;
margin-top: -88rpx;
background: linear-gradient(232deg, #f4e2e2 25%, #faf3f3 98%);
}
.lists {
position: relative;
flex-direction: column;
overflow-y: scroll;
background: #f0f4f5;
height: 100%;
}
.main {
flex-direction: column;
margin-top: -164rpx;
padding: 0 16rpx;
}
.order-main {
flex: 1;
background: #ffffff;
border-radius: 16rpx 100rpx 16rpx 16rpx;
padding-top: 30rpx;
margin-bottom: 16rpx;
}
.top {
height: 72rpx;
align-items: center;
justify-content: space-between;
padding: 0 48rpx;
}
.title-no {
font-size: 24rpx;
color: #555555;
}
.title-info {
align-items: center;
margin-right: 26rpx;
}
.title-info__status {
width: 120rpx;
height: 48rpx;
line-height: 48rpx;
background: #f61d30;
border-radius: 8rpx 200rpx 200rpx 8rpx;
border:1px solid #f61d30;
font-size: 12px;
color: #fff;
text-align: center;
}
.title-info__status:after {
border:0;
}
.title-info__status-done{
background: #f8f8f8;
color: #888888;
border:1px solid #f8f8f8;
}
.order-main-middle {
position: relative;
padding: 26rpx 48rpx 40rpx;
}
.middle-title {
display: flex;
align-items: center;
margin-bottom: 32rpx;
}
.middle-title__text {
font-weight: 500;
font-size: 32rpx;
color: $text-base-color;
font-family: PingFangSC, PingFangSC-Medium;
}
.text-block {
flex: 1;
flex-direction: column;
margin-bottom: 32rpx;
}
.text-block-last {
margin-bottom: 0;
}
.middle-date {
font-size: 28rpx;
color: $text-base-color;
margin-bottom: 16rpx;
}
.middle-date-des {
font-size: 24rpx;
color: #999;
}
.text-block-box {
display: flex;
justify-content: space-between;
}
.middle-date-right {
display: flex;
align-items: center;
justify-content: flex-end;
}
.order-middle{
position: relative;
height: 290rpx;
overflow: hidden;
padding-bottom: 60rpx;
margin-bottom: 16rpx;
}
.order-middle-auto {
height: auto;
}
.middle {
background-color: #fff;
border-radius: 16rpx;
padding: 48rpx;
margin-bottom: 16rpx;
}
.item-block {
over-overflow: hidden;
}
.item-block-label {
font-size: 28rpx;
color: #333;
font-weight: 600;
}
.item-block-name {
padding-top: 24rpx;
padding-bottom: 32rpx;
}
.icon-file{
width: 29px;
height: 35px;
}
.block-detal {
display: flex;
flex-direction: column;
}
.block-detal-item {
display: flex;
margin-bottom: 32rpx;
justify-content: space-between;
}
.block-detal-item-last{
margin-bottom: 0;
}
.detal-item-label {
color: #999;
font-size: 24rpx;
}
.detal-item-file{
display: flex;
flex-direction: column;
}
.detal-item-value{
color: #333;
font-size: 28rpx;
}
.item-value-intotal{
color: #333;
font-size: 28rpx;
font-weight: 500;
}
.item-value-intotal-num{
color: #FF1D32;
font-size: 28rpx;
font-weight: 500;
}
.btn {
width: 116rpx;
height: 54rpx;
line-height: 50rpx;
border:1px solid $wly-primary-color;
background: #fff;
border-radius: 30rpx;
}
.btn:after{
border: 0;
}
.btn-text {
color: $wly-primary-color;
font-size: 24rpx;
}
.float-btn-block {
position: absolute;
left: 0;
bottom: 0;
z-index: 10;
width: 100%;
height: 120rpx;
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
.float-btn {
padding: 0 20px;
height: 60rpx;
border: 0.5px solid #d8d8d9;
border-radius: 32rpx;
display: flex;
align-items: center;
justify-content: center;
}
.icon-arrow {
width: 7px;
height: 4px;
margin-left: 16rpx;
margin-top: 2px;
transition-property: transform;
transition-duration: 0.15s;
transform: rotate(0deg);
}
.icon-arrow-rotate {
transform: rotate(180deg);
}
</style>
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