|
|
@@ -23,7 +23,9 @@
|
|
|
>
|
|
|
<div class="list-top flex-center-between">
|
|
|
<div class="app-color-3">编号:{{ item.sendNum }}</div>
|
|
|
- <div :class="['app-price',{'app-green':item.status==5}]" >{{ item.status | constantfilter('ORDER_STATUS') }}</div>
|
|
|
+ <div
|
|
|
+ :class="['app-price',{'app-green':item.status==5}]"
|
|
|
+ >{{ item.status | constantfilter('ORDER_STATUS') }}</div>
|
|
|
</div>
|
|
|
<div class="list-blo">
|
|
|
<block v-if="!$util.isEmpty(item.goodsInfoList)">
|
|
|
@@ -47,20 +49,18 @@
|
|
|
<div class="admin-button-com default" @click.stop>发货</div>
|
|
|
</template>
|
|
|
<template v-else-if="item.status == 4"></template>
|
|
|
- <template v-else-if="item.status == 6">
|
|
|
+ <template v-else-if="item.status == 6">
|
|
|
<div
|
|
|
v-if="item.sendType == 3"
|
|
|
class="admin-button-com default"
|
|
|
style="color: #dddddd;border-color:#dddddd;"
|
|
|
>已退款</div>
|
|
|
- </template>
|
|
|
+ </template>
|
|
|
<template v-else-if="item.status == 5">
|
|
|
-
|
|
|
<div
|
|
|
v-if="item.sendType != 1"
|
|
|
class="admin-button-com default"
|
|
|
@click.stop="seeSendFn(item)"
|
|
|
-
|
|
|
>配送详情</div>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
@@ -141,7 +141,6 @@ export default {
|
|
|
value: 0
|
|
|
}
|
|
|
],
|
|
|
- // operate
|
|
|
operateIndex: null,
|
|
|
operateData: {},
|
|
|
// 免发货
|
|
|
@@ -163,18 +162,18 @@ export default {
|
|
|
uni.stopPullDownRefresh();
|
|
|
}
|
|
|
},
|
|
|
- onLoad: function() {
|
|
|
- },
|
|
|
+ onLoad: function() {},
|
|
|
onShow() {
|
|
|
let tabIndex = uni.getStorageSync("switchTabQuery") || null;
|
|
|
if (tabIndex) {
|
|
|
uni.removeStorageSync("switchTabQuery");
|
|
|
this.tabIndex = parseInt(tabIndex.tabIndex);
|
|
|
}
|
|
|
- this._list();
|
|
|
- console.log('每次执行?')
|
|
|
},
|
|
|
methods: {
|
|
|
+ init() {
|
|
|
+ this._list();
|
|
|
+ },
|
|
|
_list() {
|
|
|
let status = JSON.parse(JSON.stringify(this.tabIndex));
|
|
|
status = status == 4 ? 5 : status - 1;
|
|
|
@@ -212,8 +211,8 @@ export default {
|
|
|
if (e.index === 0) {
|
|
|
this.modalCancel();
|
|
|
} else {
|
|
|
- this.$set(this.list.data[this.operateIndex], "status", 5);
|
|
|
- this.$set(this.list.data[this.operateIndex], "sendType", 1);
|
|
|
+ this.$set(this.list.data[this.operateIndex], "status", 5);
|
|
|
+ this.$set(this.list.data[this.operateIndex], "sendType", 1);
|
|
|
freeShipping({ id: this.list.data[this.operateIndex].id }).then(res => {
|
|
|
this.$msg("操作成功!");
|
|
|
this.modalCancel();
|
|
|
@@ -261,9 +260,9 @@ export default {
|
|
|
.freight-text {
|
|
|
margin-right: 60px;
|
|
|
}
|
|
|
- .app-green{
|
|
|
- color:green;
|
|
|
- }
|
|
|
+ .app-green {
|
|
|
+ color: green;
|
|
|
+ }
|
|
|
}
|
|
|
.list-bottom {
|
|
|
& > div {
|