我的-全部订单-订单详情
parent
4030e40ebc
commit
648b1a6351
File diff suppressed because it is too large
Load Diff
|
@ -7,7 +7,7 @@
|
||||||
<s-empty v-if="state.pagination.total === 0" icon="/static/order-empty.png" text="暂无订单"></s-empty>
|
<s-empty v-if="state.pagination.total === 0" icon="/static/order-empty.png" text="暂无订单"></s-empty>
|
||||||
<view v-if="state.pagination.total > 0">
|
<view v-if="state.pagination.total > 0">
|
||||||
<view class="bg-white order-list-card-box ss-r-10 ss-m-t-14 ss-m-20" v-for="order in state.pagination.data"
|
<view class="bg-white order-list-card-box ss-r-10 ss-m-t-14 ss-m-20" v-for="order in state.pagination.data"
|
||||||
:key="order.id" @tap="onOrderDetail(order.no)">
|
:key="order.id" @tap="onOrderDetail(order.id)">
|
||||||
<view class="order-card-header ss-flex ss-col-center ss-row-between ss-p-x-20">
|
<view class="order-card-header ss-flex ss-col-center ss-row-between ss-p-x-20">
|
||||||
<view class="order-no">订单号:{{ order.no }}</view>
|
<view class="order-no">订单号:{{ order.no }}</view>
|
||||||
<view class="order-state ss-font-26" :class="formatOrderColor(order.status_code)">{{
|
<view class="order-state ss-font-26" :class="formatOrderColor(order.status_code)">{{
|
||||||
|
@ -15,7 +15,8 @@
|
||||||
}}</view>
|
}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="border-bottom" v-for="item in order.items" :key="item.id">
|
<view class="border-bottom" v-for="item in order.items" :key="item.id">
|
||||||
<s-goods-item :img="item.picUrl" :title="item.spuName" :skuText="item.properties.length>1? item.properties.reduce((items2,items)=>items2.valueName+' '+items.valueName):item.properties[0].valueName"
|
<s-goods-item :img="item.picUrl" :title="item.spuName"
|
||||||
|
:skuText="item.properties.length>1? item.properties.reduce((items2,items)=>items2.valueName+' '+items.valueName):item.properties[0].valueName"
|
||||||
:price="item.price/100" :score="order.score_amount" :num="item.count">
|
:price="item.price/100" :score="order.score_amount" :num="item.count">
|
||||||
<template #tool>
|
<template #tool>
|
||||||
<view class="ss-flex">
|
<view class="ss-flex">
|
||||||
|
@ -61,7 +62,7 @@
|
||||||
<view class="discounts-title">优惠:¥</view>
|
<view class="discounts-title">优惠:¥</view>
|
||||||
<view class="discounts-money">{{ order.total_discount_fee }}</view>
|
<view class="discounts-money">{{ order.total_discount_fee }}</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<!-- <view class="ss-flex ss-col-center ss-m-r-8">
|
<!-- <view class="ss-flex ss-col-center ss-m-r-8">
|
||||||
<view class="discounts-title">运费:¥</view>
|
<view class="discounts-title">运费:¥</view>
|
||||||
<view class="discounts-money">{{ order.dispatch_amount }}</view>
|
<view class="discounts-money">{{ order.dispatch_amount }}</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
@ -96,7 +97,7 @@
|
||||||
</template>
|
</template>
|
||||||
</su-popover> -->
|
</su-popover> -->
|
||||||
<view class="ss-flex ss-col-center">
|
<view class="ss-flex ss-col-center">
|
||||||
<!-- <button v-if="order.btns.includes('groupon')" class="tool-btn ss-reset-button"
|
<!-- <button v-if="order.btns.includes('groupon')" class="tool-btn ss-reset-button"
|
||||||
@tap.stop="onOrderGroupon(order)">
|
@tap.stop="onOrderGroupon(order)">
|
||||||
{{ order.status_code === 'groupon_ing' ? '邀请拼团' : '拼团详情' }}
|
{{ order.status_code === 'groupon_ing' ? '邀请拼团' : '拼团详情' }}
|
||||||
</button>
|
</button>
|
||||||
|
@ -402,7 +403,7 @@
|
||||||
status: tabMaps[state.currentTab].value,
|
status: tabMaps[state.currentTab].value,
|
||||||
pageSize: list_rows,
|
pageSize: list_rows,
|
||||||
pageNo: page,
|
pageNo: page,
|
||||||
commentStatus: tabMaps[state.currentTab].value==30?false:null
|
commentStatus: tabMaps[state.currentTab].value == 30 ? false : null
|
||||||
});
|
});
|
||||||
state.error = res.code;
|
state.error = res.code;
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
@ -430,7 +431,7 @@
|
||||||
// 加载更多
|
// 加载更多
|
||||||
function loadmore() {
|
function loadmore() {
|
||||||
if (state.loadStatus !== 'noMore') {
|
if (state.loadStatus !== 'noMore') {
|
||||||
getOrderList(parseInt((state.pagination.data.length/5)+1));
|
getOrderList(parseInt((state.pagination.data.length / 5) + 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,17 @@ import request2 from '@/sheep/request2';
|
||||||
export default {
|
export default {
|
||||||
// 订单详情
|
// 订单详情
|
||||||
detail: (id, params) =>
|
detail: (id, params) =>
|
||||||
request({
|
request2({
|
||||||
url: 'order/order/' + id,
|
url: 'trade/order/get-detail?id=' + id,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
params,
|
params,
|
||||||
}),
|
}),
|
||||||
|
// detail: (id, params) =>
|
||||||
|
// request({
|
||||||
|
// url: 'order/order/' + id,
|
||||||
|
// method: 'GET',
|
||||||
|
// params,
|
||||||
|
// }),
|
||||||
// 发票详情
|
// 发票详情
|
||||||
invoice: (id) =>
|
invoice: (id) =>
|
||||||
request({
|
request({
|
||||||
|
@ -59,12 +65,12 @@ export default {
|
||||||
// 解决 SpringMVC 接受 List<Item> 参数的问题
|
// 解决 SpringMVC 接受 List<Item> 参数的问题
|
||||||
delete data2.items
|
delete data2.items
|
||||||
for (let i = 0; i < data.items.length; i++) {
|
for (let i = 0; i < data.items.length; i++) {
|
||||||
data2['items[' + i + '' + '].skuId'] = data.items[i].skuId + '';
|
// data2['items[' + i + '' + '].skuId'] = data.items[i].skuId + '';
|
||||||
data2['items[' + i + '' + '].count'] = data.items[i].count + '';
|
// data2['items[' + i + '' + '].count'] = data.items[i].count + '';
|
||||||
data2['items[' + i + '' + '].cartId'] = data.items[i].cartId + '';
|
// data2['items[' + i + '' + '].cartId'] = data.items[i].cartId + '';
|
||||||
// data2['items' + `%5B${i}%5D` + '.skuId'] = data.items[i].skuId + '';
|
data2['items' + `%5B${i}%5D` + '.skuId'] = data.items[i].skuId + '';
|
||||||
// data2['items' + `%5B${i}%5D` + '.count'] = data.items[i].count + '';
|
data2['items' + `%5B${i}%5D` + '.count'] = data.items[i].count + '';
|
||||||
// data2['items' + `%5B${i}%5D` + '.cartId'] = data.items[i].cartId + '';
|
data2['items' + `%5B${i}%5D` + '.cartId'] = data.items[i].cartId + '';
|
||||||
}
|
}
|
||||||
console.log(data2, '对比数据')
|
console.log(data2, '对比数据')
|
||||||
return request2({
|
return request2({
|
||||||
|
|
|
@ -55,8 +55,7 @@ const http = new Request({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
header: {
|
header: {
|
||||||
Accept: 'text/json',
|
Accept: 'text/json',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
// ;charset=UTF-8
|
|
||||||
platform: $platform.name,
|
platform: $platform.name,
|
||||||
},
|
},
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
|
Loading…
Reference in New Issue