guhongwei 2 年之前
父节点
当前提交
9a4f91b5f1
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 3 3
      config.js
  2. 3 1
      pagesMy/order/index.vue

+ 3 - 3
config.js

@@ -49,21 +49,21 @@ export default {
 	my_orderList: [ //
 		{
 			icon: 'icon-daifukuan',
-			title: '待付款',
+			title: '未支付',
 			status: '0',
 			type: 'order',
 			route: "pagesMy/order/index",
 		},
 		{
 			icon: 'icon-daishouhuo',
-			title: '待发货',
+			title: '已支付',
 			status: '1',
 			type: 'order',
 			route: "pagesMy/order/index",
 		},
 		{
 			icon: 'icon-daipinglun',
-			title: '待收货',
+			title: '发货中',
 			status: '2',
 			type: 'order',
 			route: "pagesMy/order/index",

+ 3 - 1
pagesMy/order/index.vue

@@ -181,7 +181,8 @@
 		},
 		onLoad: function(e) {
 			const that = this;
-			that.$set(that, `status`, e.status || '0');
+			that.$set(that, `status`, e.status || '');
+			that.$set(that.tabs, `active`, e.status || '');
 			that.searchConfig();
 			that.searchOther();
 			that.watchlogin();
@@ -250,6 +251,7 @@
 					for (let val of list) {
 						val.zhStatus = that.searchStatus(val.status)
 					}
+					console.log(list);
 					that.$set(that, `list`, list);
 					that.$set(that, `total`, res.total)
 				} else {