|
@@ -203,10 +203,16 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
// import UniDatetime from '../components/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue'
|
|
// import UniDatetime from '../components/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue'
|
|
|
|
+ import {
|
|
|
|
+ toLogin
|
|
|
|
+ } from '@/libs/login.js';
|
|
|
|
+ import {
|
|
|
|
+ mapGetters
|
|
|
|
+ } from "vuex";
|
|
import Loading from '../components/Loading/index'
|
|
import Loading from '../components/Loading/index'
|
|
import PriceChange from '../components/PriceChange/index.vue'
|
|
import PriceChange from '../components/PriceChange/index.vue'
|
|
import footerPage from '../components/footerPage/index.vue'
|
|
import footerPage from '../components/footerPage/index.vue'
|
|
- import countDown from '@/components/countDown/index.vue'
|
|
|
|
|
|
+
|
|
import emptyPage from '@/components/emptyPage.vue'
|
|
import emptyPage from '@/components/emptyPage.vue'
|
|
import baseMoney from '../components/BaseMoney.vue'
|
|
import baseMoney from '../components/BaseMoney.vue'
|
|
// #ifdef MP || APP-PLUS
|
|
// #ifdef MP || APP-PLUS
|
|
@@ -219,12 +225,6 @@
|
|
HTTP_REQUEST_URL
|
|
HTTP_REQUEST_URL
|
|
} from '@/config/app';
|
|
} from '@/config/app';
|
|
import {
|
|
import {
|
|
- employeeOrderList,
|
|
|
|
- employeeOrderMark,
|
|
|
|
- employeeOrderInfo,
|
|
|
|
- orderGetVerfication
|
|
|
|
- } from '@/api/work.js';
|
|
|
|
- import {
|
|
|
|
riderOrderAllList,riderOrderList,riderExpressOrderList,riderOrderReceiving,orderStatusNum,orderPickUp,orderComplete,orderCancel
|
|
riderOrderAllList,riderOrderList,riderExpressOrderList,riderOrderReceiving,orderStatusNum,orderPickUp,orderComplete,orderCancel
|
|
} from '@/api/rider.js';
|
|
} from '@/api/rider.js';
|
|
export default {
|
|
export default {
|
|
@@ -233,7 +233,6 @@
|
|
Loading,
|
|
Loading,
|
|
PriceChange,
|
|
PriceChange,
|
|
footerPage,
|
|
footerPage,
|
|
- countDown,
|
|
|
|
emptyPage,
|
|
emptyPage,
|
|
baseMoney,
|
|
baseMoney,
|
|
// #ifdef MP || APP-PLUS
|
|
// #ifdef MP || APP-PLUS
|
|
@@ -263,7 +262,7 @@
|
|
status: "",
|
|
status: "",
|
|
state: 'all',
|
|
state: 'all',
|
|
isRefund: 0, //1是仅退款;0是退货退款
|
|
isRefund: 0, //1是仅退款;0是退货退款
|
|
- imgHost: HTTP_REQUEST_URL,
|
|
|
|
|
|
+ //imgHost: HTTP_REQUEST_URL,
|
|
dateSelected: '1',
|
|
dateSelected: '1',
|
|
dateList: [{
|
|
dateList: [{
|
|
label: '全部',
|
|
label: '全部',
|
|
@@ -317,6 +316,7 @@
|
|
totalPage: '',
|
|
totalPage: '',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ computed: mapGetters(['isLogin']),
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.state = options.type ? options.type : 'await';
|
|
this.state = options.type ? options.type : 'await';
|
|
this.searchListData.status = options.type ? options.type : 'await';
|
|
this.searchListData.status = options.type ? options.type : 'await';
|
|
@@ -327,9 +327,13 @@
|
|
// this.statusHeader()
|
|
// this.statusHeader()
|
|
// },
|
|
// },
|
|
onShow() {
|
|
onShow() {
|
|
- this.searchListData.page=1
|
|
|
|
- this.getInitList()
|
|
|
|
- this.statusHeader()
|
|
|
|
|
|
+ if (this.isLogin) {
|
|
|
|
+ this.searchListData.page=1
|
|
|
|
+ this.getInitList()
|
|
|
|
+ this.statusHeader()
|
|
|
|
+ } else {
|
|
|
|
+ toLogin();
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//订单表头数量
|
|
//订单表头数量
|
|
@@ -366,7 +370,6 @@
|
|
},
|
|
},
|
|
toDetail(item) {
|
|
toDetail(item) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- //url: `/pages/rider_index/order/detail?orderNo=${item.orderNo}&deliveCharge=${item.deliveCharge}`
|
|
|
|
url: this.searchListData.type==1?`/pages/rider_index/express/detail?orderInfo=${JSON.stringify(item)}`:`/pages/rider_index/order/detail?orderInfo=${JSON.stringify(item)}`
|
|
url: this.searchListData.type==1?`/pages/rider_index/express/detail?orderInfo=${JSON.stringify(item)}`:`/pages/rider_index/order/detail?orderInfo=${JSON.stringify(item)}`
|
|
})
|
|
})
|
|
|
|
|