幼教产品B2B生态平台小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
3.7 KiB

11 months ago
<template>
<view class="wrap">
<view class="block">
11 months ago
<view class="title">编号{{ id }}</view>
<view class="shop">
11 months ago
<image class="logo" :src="info.shopLogo ? info.shopLogo : Common.shopIcon"></image>
11 months ago
{{ info.shopName }}
<view class="status">{{ info.authentication }}</view>
</view>
11 months ago
</view>
<view class="block">
<view class="title">采购内容</view>
<view class="content">
11 months ago
<view v-for="(item, i) in info.orderItemDtos" :key="i" class="item">
<view class="prod">
<view class="name">{{ item.prodName}}</view>
<view class="price">{{ item.price }}</view>
</view>
<text class="count">{{ item.prodCount }}</text>
11 months ago
</view>
</view>
</view>
<view class="block">
<view class="title">采购方信息</view>
<view class="info">
<view class="line">
11 months ago
<text class="field">采购人</text>
<text>{{ info.purchasingPerson }}</text>
11 months ago
</view>
<view class="line">
<text class="field">联系方式</text>
11 months ago
<text>{{ info.phone }}</text>
11 months ago
</view>
<view class="line">
<text class="field">采购类型</text>
11 months ago
<text>{{ info.orderType === 1 ? '个人' : '组织' }}</text>
11 months ago
</view>
<view class="line">
<text class="field">所属幼儿园</text>
11 months ago
<text>{{ info.shopName }}</text>
11 months ago
</view>
<view class="line">
<text class="field">提交时间</text>
11 months ago
<text>{{ info.createTime }}</text>
11 months ago
</view>
<view class="line">
<text class="field">幼儿园是否已认证/是否已实名</text>
11 months ago
<text>{{ info.authentication }}</text>
11 months ago
</view>
</view>
</view>
</view>
</template>
<script>
11 months ago
import { orderDetail } from '@/apis/modules/order.js'
import Common from '@/config/common'
11 months ago
export default {
data() {
return {
11 months ago
Common,
id: '',
info: {
orderItemDtos: [],
11 months ago
authentication: '',
shopLogo: '',
shopName: '',
purchasingPerson: '',
phone: '',
shopName: '',
createTime: '',
createTime: '',
11 months ago
},
mpStyle: {
p: 'font-size: 25rpx !important;font-family: Microsoft Yahei !important;font-weight: 400 !important;color: #333 !important;',
span: 'font-size: 25rpx !important;font-family: Microsoft Yahei !important;font-weight: 400 !important;color: #333 !important;'
}
}
},
onShow() {
const pages = getCurrentPages()
const { options } = pages[pages.length - 1]
11 months ago
this.id = options.id
11 months ago
this.getInfo()
},
methods: {
// 获取详情
async getInfo() {
uni.showLoading({
title: '加载中'
})
11 months ago
const { data } = await orderDetail({
orderNumber: this.id
11 months ago
})
11 months ago
this.info = data
11 months ago
uni.hideLoading()
},
}
}
</script>
<style scoped lang="scss">
.block {
padding: 24rpx;
}
11 months ago
.title {
margin-bottom: 20rpx;
font-size: 30rpx;
color: #333;
}
.shop {
position: relative;
11 months ago
display: flex;
align-items: center;
11 months ago
font-size: 28rpx;
color: #333;
.logo {
width: 66rpx;
min-width: 66rpx;
height: 66rpx;
margin-right: 20rpx;
border-radius: 4px;
}
.status {
position: absolute;
bottom: 0;
right: 0;
padding: 8rpx 28rpx;
font-size: 28rpx;
color: #fff;
background-color: $uni-primary;
border-radius: 20px;
}
}
.content {
11 months ago
font-size: 28rpx;
color: #333;
.item {
11 months ago
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 10rpx;
11 months ago
margin-bottom: 20rpx;
}
11 months ago
.prod {
max-width: 70%;
}
11 months ago
.name {
11 months ago
margin-bottom: 10rpx;
font-size: 26rpx;
color: #333;
}
.price {
font-size: 24rpx;
color: #8c8c8c;
}
.count {
font-size: 26rpx;
color: #333;
11 months ago
}
}
.info {
font-size: 28rpx;
color: #333;
.line {
11 months ago
display: flex;
justify-content: space-between;
align-items: center;
11 months ago
margin-bottom: 20rpx;
}
.field {
11 months ago
color: #717171;
11 months ago
}
}
</style>