浏览代码

修改团长订单管理

pangqijun 1 年之前
父节点
当前提交
ebad8c8483
共有 2 个文件被更改,包括 11 次插入9 次删除
  1. 7 6
      pages/goods/leader_order_list/index.vue
  2. 4 3
      pages/groupbuying/leader_order_details/index.vue

+ 7 - 6
pages/goods/leader_order_list/index.vue

@@ -15,9 +15,9 @@
 							<view class="nl">
 								{{item.mainTitle}}
 							</view>
-							<view class="status">
-								{{item.grouponBizStateDesc}}
-							</view>
+<!--							<view class="status">-->
+<!--								{{item.grouponBizStateDesc}}-->
+<!--							</view>-->
 						</view>
 						<view class="myclient_list_content">
 				
@@ -130,12 +130,12 @@ export default {
 			{
 				title: '已完成',
 				id: 3,
-				grouponState: 3,
+				grouponState: 4,
 			},
 			{
 				title: '售后',
 				id: 4,
-				grouponState: 4,
+				grouponState: 8,
 			},
 		],
 			loading: false, //是否加载中
@@ -145,6 +145,7 @@ export default {
 			grouponState: 0, //订单状态
 			page: 1,
 			limit: 5,
+			stateDesc: '全部'
 		};
 	},
 	computed: mapGetters(['isLogin']),
@@ -184,7 +185,7 @@ export default {
 		 */
 		goOrderDetails: function (grouponId, queryType) {
 			uni.navigateTo({
-				url: '/pages/groupbuying/leader_order_details/index?grouponId=' + grouponId + '&queryType=' + queryType
+				url: '/pages/groupbuying/leader_order_details/index?grouponId=' + grouponId + '&queryType=' + queryType + '&state=' + this.grouponState
 			});
 			// let that = this;
 			// if (!order_id)

+ 4 - 3
pages/groupbuying/leader_order_details/index.vue

@@ -116,14 +116,15 @@ export default {
 
 	},
 	onLoad(options) {
-		this.getCommanderOrderDetail(options.grouponId, options.queryType)
+		this.getCommanderOrderDetail(options.grouponId, options.queryType, options.state)
 	},
 	methods: {
-		getCommanderOrderDetail(grouponId, queryType) {
+		getCommanderOrderDetail(grouponId, queryType, state) {
 			let that = this;
 			getCommanderOrderDetail({
 				grouponId: grouponId,
-				queryType: queryType
+				queryType: queryType,
+				state: state
 			}).then(res => {
 				that.grouponData = res.data;
 			})