幼教产品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.

196 lines
4.1 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 v-if="item.shopLogo" class="icon logo" :src="item.shopLogo"></image>
<image v-else class="icon" :src="Common.shopIcon"></image>
11 months ago
{{ info.shopName }}
<view class="status">{{ info.authentication }}</view>
</view>
11 months ago
</view>
11 months ago
<view v-if="info.orderItemDtos.length" class="block">
11 months ago
<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>
11 months ago
<view v-if="info.remarks" class="block">
11 months ago
<view class="title">客户留言</view>
11 months ago
<view class="remarks">{{ info.remarks }}</view>
</view>
11 months ago
<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">
11 months ago
<text class="field">{{ info.orderType === 1 ? '个人是否已实名' : '是否已认证' }}</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;
11 months ago
font-weight: 600;
11 months ago
color: #333;
}
.shop {
position: relative;
11 months ago
display: flex;
align-items: center;
11 months ago
font-size: 28rpx;
color: #333;
11 months ago
.icon {
width: 80rpx;
min-width: 80rpx;
height: 80rpx;
11 months ago
margin-right: 20rpx;
border-radius: 4px;
}
11 months ago
.logo {
border-radius: 50%;
}
11 months ago
.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
&:last-child {
margin-bottom: 0;
}
11 months ago
}
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
}
}
11 months ago
.remarks {
font-size: 26rpx;
color: #6d6d6d;
}
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>