Commit beace498 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 99c334d6 f53d5b06
...@@ -34,11 +34,12 @@ ...@@ -34,11 +34,12 @@
height: 180rpx; height: 180rpx;
border-radius: 24rpx; border-radius: 24rpx;
overflow: hidden; overflow: hidden;
flex-shrink: 0;
} }
.right-box { .right-box {
padding-left: 40rpx; padding-left: 40rpx;
width: calc(100% - 220rpx);
.price-box { .price-box {
font-weight: 700; font-weight: 700;
color: #FC5B32; color: #FC5B32;
...@@ -66,6 +67,9 @@ ...@@ -66,6 +67,9 @@
font-weight: 400; font-weight: 400;
font-size: 20rpx; font-size: 20rpx;
color: #858A94; color: #858A94;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
} }
} }
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<view class="right flex_sc"> <view class="right flex_sc">
<!-- <view class="tip">至少购买{{goods.startQty}}{{goods.goodsUnit}}</view> --> <!-- <view class="tip">至少购买{{goods.startQty}}{{goods.goodsUnit}}</view> -->
<view class="stepper"> <view class="stepper">
<stepper count="{{goodsNumber}}" max="{{detailInfo.goodsStock}}" catchchange="changeCount"></stepper> <stepper count="{{goodsNumber}}" max="{{detailInfo.goodsStock || 1}}" catchchange="changeCount"></stepper>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</view> </view>
<view class="cell"> <view class="cell">
<view class="label">运费</view> <view class="label">运费</view>
<view class="value">{{expressFee || '包邮'}}</view> <view class="value">{{expressFee ? expressFee + '积分' : '包邮'}}</view>
</view> </view>
<view class="all-item"> <view class="all-item">
<text>合计</text> <text>合计</text>
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<view class="cell" wx:else> <view class="cell" wx:else>
<view class="title">运费</view> <view class="title">运费</view>
<view class="content flex_ccc"> <view class="content flex_ccc">
<block wx:if="{{detailInfo.expressFee}}">{{detailInfo.expressFee}}</block> <block wx:if="{{detailInfo.expressFee}}">{{detailInfo.expressFee}}积分</block>
<block wx:else>免运费(请以提交订单时为准)</block> <block wx:else>免运费(请以提交订单时为准)</block>
</view> </view>
</view> </view>
......
...@@ -29,9 +29,13 @@ ...@@ -29,9 +29,13 @@
margin-bottom: 20rpx; margin-bottom: 20rpx;
color: #0a0d14; color: #0a0d14;
font-weight: 500; font-weight: 500;
.name {
margin-left: 0;
font-weight: 500;
}
} }
.address-item .top .info .user text { .address-item .top .info .user text {
margin-left: 48rpx; margin-left: 16rpx;
color: #0a0d14; color: #0a0d14;
font-weight: 400; font-weight: 400;
} }
......
...@@ -4,11 +4,10 @@ ...@@ -4,11 +4,10 @@
<view class="top"> <view class="top">
<view class="info"> <view class="info">
<view class="user"> <view class="user">
{{item.receiveName}} <text class="name">{{item.receiveName}}</text>
<text>{{platform?item.receiveMobile:item.phoneNumber}}</text> <text>{{item.receiveMobile}}</text>
</view> </view>
<view wx:if="{{!platform}}" class="address">{{item.province}}{{item.city}}{{item.area}}{{item.address}}</view> <view class="address">{{item.provinceName}}{{item.cityName}}{{item.countyName}}{{item.address}}</view>
<view wx:if="{{platform}}" class="address">{{item.provinceName}}{{item.cityName}}{{item.countyName}}{{item.address}}</view>
</view> </view>
<block wx:if="{{!isChooseAddress}}"> <block wx:if="{{!isChooseAddress}}">
<view class="icon-box" catchtap="jump" data-item="{{item}}" data-edit data-id="{{item.id}}"> <view class="icon-box" catchtap="jump" data-item="{{item}}" data-edit data-id="{{item.id}}">
......
...@@ -29,11 +29,12 @@ Page({ ...@@ -29,11 +29,12 @@ Page({
}, },
getOrderAfterSaleDetail() { getOrderAfterSaleDetail() {
wx.p.wxApi.showLoading("加载中..."); wx.p.wxApi.showLoading("加载中...");
let { goodsSource, tparReturnOrderCode, subOrderCode } = this.data, let { goodsSource, tparReturnOrderCode, subOrderCode,goodsSkuCode } = this.data,
Methods = goodsSource == 2 ? "afterSaleDetail" : "platformSaleDetail"; Methods = goodsSource == 2 ? "afterSaleDetail" : "platformSaleDetail";
wx.p.api.shopmallApi[Methods]({ wx.p.api.shopmallApi[Methods]({
subOrderCode, subOrderCode,
tparReturnOrderCode, tparReturnOrderCode,
goodsSkuCode
}).then((res) => { }).then((res) => {
wx.hideLoading(); wx.hideLoading();
// let status = 0 // let status = 0
......
...@@ -5,7 +5,21 @@ Component({ ...@@ -5,7 +5,21 @@ Component({
properties: { properties: {
orderInfo: { orderInfo: {
type: Object, type: Object,
value: {} value: {},
observer: function (v) {
this.compute(v);
}
} }
}, },
methods: {
compute(info) {
let { freightAmount = 0, sellQty, redeemPoints } = info;
console.log("🚀 ~ compute ~ freightAmount = 0, sellQty, redeemPoints:", freightAmount, sellQty, redeemPoints)
const total = +redeemPoints * +sellQty + +freightAmount;
this.setData({
total,
freightAmount
})
}
}
}) })
\ No newline at end of file \ No newline at end of file
...@@ -17,11 +17,11 @@ ...@@ -17,11 +17,11 @@
</block> --> </block> -->
<view class="item"> <view class="item">
<view class="label">实付款:</view> <view class="label">实付款:</view>
<view class="value fontColor">{{orderInfo.redeemPoints * orderInfo.sellQty}}积分</view> <view class="value fontColor">{{total}}积分</view>
</view> </view>
<view class="item"> <view class="item">
<view class="label">运费:</view> <view class="label">运费:</view>
<view class="value">¥{{orderInfo.freightAmount||0}}</view> <view class="value">{{freightAmount}}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="label">订单编号:</view> <view class="label">订单编号:</view>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</view> </view>
<view class="item"> <view class="item">
<view class="label">支付时间:</view> <view class="label">支付时间:</view>
<view class="value">{{orderInfo.orderCreatedDate}}</view> <view class="value">{{orderInfo.payDate}}</view>
</view> </view>
</view> </view>
<view class="order-bottom"> <view class="order-bottom">
......
...@@ -14,13 +14,6 @@ Component({ ...@@ -14,13 +14,6 @@ Component({
}, },
/** /**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
......
...@@ -186,11 +186,12 @@ Component({ ...@@ -186,11 +186,12 @@ Component({
// 售后详情 // 售后详情
onAfterSaleDetail(e) { onAfterSaleDetail(e) {
let url = "/packageMine/pages/order/afterSaleDetail/afterSaleDetail"; let url = "/packageMine/pages/order/afterSaleDetail/afterSaleDetail";
let { subOrderCode, goodsSource, tparReturnOrderCode, } = this.data.order; let { subOrderCode, goodsSource, tparReturnOrderCode,goodsSkuCode } = this.data.order;
wx.p.router.go(url, { wx.p.router.go(url, {
subOrderCode, subOrderCode,
goodsSource, goodsSource,
tparReturnOrderCode, tparReturnOrderCode,
goodsSkuCode
}); });
}, },
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!