Commit 9f6379ff by wangzhihui

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas/mini-program/…

…points-mall into SAAS+V4.56.0-0908
2 parents 49de1026 6da581ce
Showing 25 changed files with 221 additions and 70 deletions
.block{
border-radius: 16rpx;
background-color: #fff;
padding: var(--margin);
padding: 24rpx;
margin-bottom: 20rpx;
}
\ No newline at end of file
......@@ -3,7 +3,6 @@ const { mockDeliveryInfoData } = require('./mock.js');
Component({
options: {
addGlobalClass: true,
styleIsolation: 'apply-shared', // 启用样式隔离并共享样式
},
properties: {
orderInfo: {
......
<block wx:if="{{orderInfo.deliveryCompany}}">
<view class="title">发货信息</view>
<view class="item">
<view class="label">物流信息:</view>
<view class="value">{{orderInfo.deliveryCompany || ''}}{{orderInfo.deliveryNumber || ''}}</view>
</view>
<view class="item">
<view class="label">物流进度:</view>
<view class="value">
{{deliveryStatus[orderInfo.deliveryStatus]}}
</view>
</view>
</block>
\ No newline at end of file
<view class="title">发货信息</view>
<view class="item">
<view class="label">收货地址:</view>
<view class="value">{{orderInfo.deliveryCompany || ''}}{{orderInfo.deliveryNumber || ''}}</view>
</view>
\ No newline at end of file
/* 发货信息组件样式 */
.title {
font-size: 32rpx;
padding-bottom: 24rpx;
......@@ -7,10 +6,12 @@
.item {
display: flex;
align-items: center;
align-items: flex-start;
font-size: 24rpx;
min-height: 48rpx;
line-height: 48rpx;
font-weight: 400;
color: #6e6e7a;
}
.item .label {
......@@ -19,5 +20,4 @@
.item .value {
width: calc(100% - 150rpx);
color: #656566;
}
\ No newline at end of file
}
const mockDeliveryInfoData = {
orderInfo: {
deliveryCompany: '顺丰快递',
deliveryCompany: '深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层深圳广联赛讯有限公司',
deliveryNumber: 'SF1234567890',
deliveryStatus: 2
},
......
const { mockDeliveryInfoData } = require('./mock.js');
Component({
properties: {
orderInfo: {
type: Object,
value: {}
},
deliveryStatus: {
type: Object,
value: {}
}
},
data: {
// Mock数据用于开发和测试
...mockDeliveryInfoData
},
methods: {
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<view class="item">
<view class="label">收货地址:</view>
<view class="value">{{orderInfo.deliveryCompany || ''}}{{orderInfo.deliveryNumber || ''}}</view>
</view>
\ No newline at end of file
const mockDeliveryInfoData = {
orderInfo: {
deliveryCompany: '深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层深圳广联赛讯有限公司',
deliveryNumber: 'SF1234567890',
deliveryStatus: 2
},
deliveryStatus: {
1: "待发货",
2: "已发货",
3: "已收货",
}
};
module.exports = {
mockDeliveryInfoData
};
\ No newline at end of file
......@@ -3,7 +3,6 @@ const { mockOrderAmountData } = require('./mock.js');
Component({
options: {
addGlobalClass: true,
styleIsolation: 'apply-shared'
},
properties: {
orderInfo: {
......
......@@ -34,6 +34,7 @@
font-size: 36rpx;
.unit {
font-size: 20rpx;
margin-left: 4rpx;
}
}
......@@ -41,5 +42,6 @@
font-size: 48rpx;
.unit {
font-size: 24rpx;
margin-left: 4rpx;
}
}
......@@ -2,7 +2,7 @@
<view class="title">订单金额</view>
<view class="price-item">
商品总价
<view class="amount">{{orderInfo.orderPrice}} <text class="unit">积分</text></view>
<view class="amount">{{orderInfo.orderPrice}}<text class="unit">积分</text></view>
</view>
<view class="price-item line">
运费
......@@ -10,6 +10,6 @@
</view>
<view class="price-item">
<view></view>
<view class="price sum">{{orderInfo.payPrice}} <text class="unit">积分</text></view>
<view class="price sum">{{orderInfo.payPrice}}<text class="unit">积分</text></view>
</view>
</view>
\ No newline at end of file
/* 订单金额组件样式,复用父页面的样式 */
\ No newline at end of file
......@@ -3,7 +3,6 @@ const { mockOrderGoodsData } = require('./mock.js');
Component({
options: {
addGlobalClass: true,
styleIsolation: 'isolated'
},
properties: {
orderInfo: {
......
......@@ -3,7 +3,6 @@ const { mockOrderInfoData } = require('./mock.js');
Component({
options: {
addGlobalClass: true,
styleIsolation: 'isolated'
},
properties: {
orderInfo: {
......
{
"component": true,
"usingComponents": {}
"style": "v2",
"usingComponents": {
"content": "/packageMine/pages/order/index/components/Content/Content",
"BlockBox": "/packageMine/pages/order/components/BlockBox/BlockBox",
"order-action-buttons": "/packageMine/pages/order/index/components/OrderActionButtons/OrderActionButtons"
}
}
\ No newline at end of file
......@@ -8,9 +8,11 @@
.item {
display: flex;
align-items: center;
font-size: 24rpx;
font-size: 26rpx;
min-height: 48rpx;
line-height: 48rpx;
font-weight: 400;
color: #7a8299;
}
.item.flex-start {
......@@ -23,5 +25,20 @@
.item .value {
width: calc(100% - 150rpx);
color: #656566;
}
\ No newline at end of file
color: #1b233d;
text-align: right;
word-wrap: break-word;
}
.order-box {
.order-content {
border-top: 1rpx solid #f0f1f5;
margin-top: 35rpx;
padding-top: 35rpx;
}
.order-bottom {
height: 64rpx;
padding: 30rpx;
border-top: 1rpx solid #f0f1f5;
margin-top: 35rpx;
}
}
<view class="title">订单信息</view>
<block wx:for="{{orderObj}}" wx:key="index">
<view class="item {{item.alignItems}}">
<view class="label">{{item.label}}:</view>
<view class="value">
<block wx:if="{{item.enum}}">
{{statusEnum[orderInfo[item.key]]|| ''}}
</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
</view>
<!-- <OrderGoods orderInfo="{{orderInfo}}"></OrderGoods> -->
<view class="order-box">
<view class="order-top">
<content item="{{orderInfo}}" />
</view>
</block>
\ No newline at end of file
<view class="order-content">
<block wx:for="{{orderObj}}" wx:key="index">
<view class="item {{item.alignItems}}">
<view class="label">{{item.label}}:</view>
<view class="value">
<block wx:if="{{item.enum}}">{{statusEnum[orderInfo[item.key]]|| ''}}</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
</view>
</view>
</block>
</view>
<view class="order-bottom">
<order-action-buttons item="{{orderInfo}}" />
</view>
</view>
\ No newline at end of file
......@@ -9,24 +9,117 @@
color: #2C2C2C;
margin-bottom: 6rpx;
}
.status-box .icon {
.status-box .icon{
width: 50rpx;
height: 52rpx;
margin-right: 12rpx;
}
.box {
background-color: #fff;
border-radius: var(--borderRadius);
margin-top: 20rpx;
padding: 24rpx 24rpx 40rpx;
padding: 24rpx 24rpx 40rpx;
}
.box:first-of-type {
.box:first-of-type{
margin-top: 0;
}
.box .title {
font-size: 32rpx;
padding-bottom: 24rpx;
font-weight: 500;
}
.box .item {
display: flex;
align-items: center;
font-size: 24rpx;
min-height: 48rpx;
line-height: 48rpx;
}
.box .item.flex-start {
align-items: flex-start;
}
.box .item .label {
width: 150rpx;
}
.box .item .value {
width: calc(100% - 150rpx);
color: #656566;
}
.box .goods {
margin-top: 40rpx;
display: flex;
align-items: center;
height: 160rpx;
}
.box .goods .icon {
width: 160rpx;
height: 100%;
overflow: hidden;
border-radius: var(--borderRadius);
margin-right: 20rpx;
}
.box .goods .info {
width: calc(100% - 180rpx);
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.box .goods .info .name {
font-size: 30rpx;
color: #333;
}
.box .goods .info .specification{
font-size: 24rpx;
color: #B1B1B3;
}
.box .goods .info .price {
display: flex;
justify-content: space-between;
color: var(--btnColor);
font-weight: 500;
font-weight: 500;
}
.box .goods .info .price .count {
color: #656566;
font-weight: normal;
}
.price-item {
height: 60rpx;
display: flex;
justify-content: space-between;
align-items: center;
color: #656566;
font-size: 24rpx;
}
.price-item.line {
border-bottom: 2rpx solid #E3E3E6;
margin-bottom: 12rpx;
}
.price-item .price {
font-size: 28rpx;
color: var(--btnColor);
font-weight: 500;
}
.price-item .sum{
font-size: 34rpx;
font-weight: 500;
}
.price-item .unit{
font-size: 28rpx;
}
.discounts {
position: relative;
}
......@@ -45,7 +138,6 @@
top: 50%;
transform: translate(0, -50%);
}
.qr-box {
display: flex;
flex-direction: column;
......@@ -84,22 +176,19 @@
box-sizing: border-box;
background-size: cover;
}
.box_wrapper .bg {
.box_wrapper .bg{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.box_wrapper .info {
.box_wrapper .info{
position: relative;
z-index: 2;
width: 100%;
height: 100%;
}
.left_icon_box {
width: 156rpx;
height: 156rpx;
......@@ -207,25 +296,20 @@
color: #B1B1B3;
font-size: 24rpx;
}
.brightColor {
color: var(--btnColor);
}
.darkColor {
color: #6D6D6D;
}
.describeColor {
color: #D83C14;
}
.discount {
font-size: 20rpx;
font-weight: 500;
margin-bottom: 10rpx;
}
.leftMargin {
padding-left: 32rpx;
}
}
\ No newline at end of file
......@@ -9,13 +9,9 @@
<BlockBox>
<OrderInfo orderInfo="{{orderInfo}}" orderObj="{{orderObj}}" statusEnum="{{statusEnum}}"></OrderInfo>
</BlockBox>
<BlockBox>
<OrderInfo orderInfo="{{orderInfo}}" orderObj="{{orderObj}}" statusEnum="{{statusEnum}}"></OrderInfo>
</BlockBox>
<BlockBox>
<!-- <OrderGoods orderInfo="{{orderInfo}}"></OrderGoods> -->
<content item="{{orderInfo}}" />
</BlockBox>
<!-- <BlockBox>
<content item="{{orderInfo}}" />
</BlockBox> -->
<BlockBox>
<OrderAmount orderInfo="{{orderInfo}}"></OrderAmount>
</BlockBox>
......
......@@ -5,11 +5,13 @@
align-items: flex-start;
font-size: 24rpx;
color: #656566;
justify-content: space-between;
margin-bottom: 16rpx;
margin-right: 16rpx;
}
.bottom .total {
position: relative;
bottom: 16rpx;
}
.bottom .price {
......
......@@ -5,10 +5,12 @@
}
.goods {
height: 208rpx;
padding: 24rpx 24rpx 24rpx 0;
box-sizing: border-box;
height: 160rpx;
display: flex;
margin-bottom: 24rpx;
}
.goods:last-child {
margin-bottom: 0;
}
.addTo {
......@@ -68,6 +70,7 @@
color: #656566;
font-size: 24rpx;
display: flex;
margin-right: 24rpx;
}
.info-bottom {
......
/* components/orderActionButtons.wxss */
.btn-box {
position: absolute;
right: 24rpx;
bottom: 16rpx;
display: flex;
......
......@@ -4,7 +4,7 @@
margin-bottom: 20rpx;
background-color: #fff;
box-sizing: border-box;
border-radius: var(--borderRadius);
border-radius: 24rpx;
display: flex;
flex-direction: column;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!