Commit dab0eb4d by 谢中龙

移除不用文件和更换大图base64

parent 5db6ff71
...@@ -28,7 +28,8 @@ Component({ ...@@ -28,7 +28,8 @@ Component({
baseImgUrl: app.globalData.imageUrl baseImgUrl: app.globalData.imageUrl
}) })
const { tabBar } = this.data const { tabBar } = this.data
console.log(this.data.currHomePageId)
console.log(tabBar)
let currentTab = tabBar.images let currentTab = tabBar.images
currentTab.forEach(item => { currentTab.forEach(item => {
// 存在 row 处理数据 8 商品 9 分类 // 存在 row 处理数据 8 商品 9 分类
......
...@@ -14,7 +14,8 @@ wxService.page({ ...@@ -14,7 +14,8 @@ wxService.page({
orderId:'', orderId:'',
orderCode:'', orderCode:'',
orderLogisticsNo: '', orderLogisticsNo: '',
params: null params: null,
hasLogisticInfo : false
}, },
/** /**
...@@ -83,20 +84,25 @@ wxService.page({ ...@@ -83,20 +84,25 @@ wxService.page({
if (!res) return false if (!res) return false
const { result, data } = res.data const { result, data } = res.data
if (result == 0) { if (result == 0) {
console.log(data.list) if (data){
for (var i in data.list){ data.list = data.list ? data.list : [];
if (data.list[i].datetime){ for (var i in data.list) {
data.list[i].date = data.list[i].datetime.substring(0,10) if (data.list[i].datetime) {
data.list[i].time = data.list[i].datetime.substring(0, 10) data.list[i].date = data.list[i].datetime.substring(0, 10)
data.list[i].time = data.list[i].datetime.substring(0, 10)
}
} }
this.setData({
logisData: data,
hasLogisticInfo : true
})
}
else{
this.setData({
hasLogisticInfo : false
})
} }
this.setData({
logisData: data
})
} }
}).finally(() => { }).finally(() => {
}) })
}, },
......
<!--pages/logistics/logistics.wxml--> <!--pages/logistics/logistics.wxml-->
<view class="page-logistics" wx:if="{{orderId}}"> <view class="page-logistics" wx:if="{{orderId && hasLogisticInfo}}">
<view class="header-wrap"> <view class="header-wrap">
<image class="header-bg" src="/assets/imgs/7_1_0/logistics-bg.jpg" /> <image class="header-bg" src="/assets/imgs/7_1_0/logistics-bg.jpg" />
<view class="logistics-status"> <view class="logistics-status">
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<view class="button-wrap"> <view class="button-wrap">
<button class="btn btn-primary btn-lg" bindtap="handelConfirmReceipt">确认收货</button> <button class="btn btn-primary btn-lg" bindtap="handelConfirmReceipt">确认收货</button>
<button class="btn btn-lg btn-gray" bindtap="handelReturnGood">申请退</button> <button class="btn btn-lg btn-gray" bindtap="handelReturnGood">申请退</button>
</view> </view>
</view> </view>
<view wx:else class="df no-logis"> <view wx:else class="df no-logis">
......
...@@ -165,7 +165,6 @@ wxService.page({ ...@@ -165,7 +165,6 @@ wxService.page({
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
if (result == 0) { if (result == 0) {
console.log('dddd', data.amount)
let amount = data.amount || 0 let amount = data.amount || 0
wx.hideLoading() wx.hideLoading()
wx.requestPayment(Object.assign({ wx.requestPayment(Object.assign({
...@@ -186,8 +185,18 @@ wxService.page({ ...@@ -186,8 +185,18 @@ wxService.page({
}, },
// 查看物流 // 查看物流
checkLogistics(e) { checkLogistics(e) {
const { detail } = e.currentTarget.dataset let { detail } = e.currentTarget.dataset
let params = JSON.stringify(detail) let copyOrderInfo = JSON.parse(JSON.stringify(detail));
//过滤掉已经退货完的商品
copyOrderInfo.skuVOList = copyOrderInfo.skuVOList.filter(item => item.canRefundNum > 0);
//更新可退货数量
copyOrderInfo.skuVOList.forEach(item => {
item.totalCount = item.count;
item.count = item.canRefundNum;
});
let params = JSON.stringify(copyOrderInfo);
// 退款申请 // 退款申请
wxService.router(`/pages/logistics/logistics`).search({ params }) wxService.router(`/pages/logistics/logistics`).search({ params })
}, },
......
...@@ -282,8 +282,18 @@ wxService.page({ ...@@ -282,8 +282,18 @@ wxService.page({
}, },
// 查看物流 // 查看物流
checkLogistics(e) { checkLogistics(e) {
const { detail } = e.currentTarget.dataset let { detail } = e.currentTarget.dataset
let params = JSON.stringify(detail) detail.id = this.data.id;
let copyOrderInfo = JSON.parse(JSON.stringify(detail));
//过滤掉已经退货完的商品
copyOrderInfo.skuVOList = copyOrderInfo.skuVOList.filter(item => item.canRefundNum > 0);
//更新可退货数量
copyOrderInfo.skuVOList.forEach(item => {
item.totalCount = item.count;
item.count = item.canRefundNum;
});
let params = JSON.stringify(copyOrderInfo);
// 退款申请 // 退款申请
wxService.router(`/pages/logistics/logistics`).search({params}) wxService.router(`/pages/logistics/logistics`).search({params})
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -15,9 +15,8 @@ function currentLinkRouter(event, _this) { ...@@ -15,9 +15,8 @@ function currentLinkRouter(event, _this) {
} else if (curItemType.link.type == 2) { } else if (curItemType.link.type == 2) {
// 触发父组件更新页面 // 触发父组件更新页面
wxService.nextTick(() => { wxService.nextTick(() => {
_this.triggerEvent('updatePage', { pageId: currentClickType.url }) _this.triggerEvent('updatePage', { pageId: currentClickType.url })
}) });
} else if (curItemType.link.type == 3) { } else if (curItemType.link.type == 3) {
// 预览 // 预览
wx.previewImage({ wx.previewImage({
......
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