浏览代码

查看边民

mym 1 年之前
父节点
当前提交
399001f493
共有 2 个文件被更改,包括 20 次插入35 次删除
  1. 3 4
      pages/market/one/leader/detail.vue
  2. 17 31
      pages/market/one/leader/members.vue

+ 3 - 4
pages/market/one/leader/detail.vue

@@ -41,7 +41,7 @@
 				</view>
 				<view class="item">
 					<text class="label">边民</text>
-					<text class="desc" style="color: blue;" @click="members()">查看</text>
+					<text class="desc" style="color: blue;" @click="members(item.orderId)">查看</text>
 				</view>
 				<view class="item">
 					<text class="label">发布时间</text>
@@ -104,14 +104,13 @@ export default {
 				data: this.param,
 				success: res => {
 					this.item = res.data.data;
-					// console.log('asd:' + JSON.stringify(res));
 				}
 			});
 		},
 		//查看边民
-		members() {
+		members(id) {
 			uni.navigateTo({
-				url: '/pages/market/one/leader/members'
+				url: '/pages/market/one/leader/members?id=' + id
 			});
 		}
 	}

+ 17 - 31
pages/market/one/leader/members.vue

@@ -7,7 +7,7 @@
 		<view class="list">
 			<view class="item" v-for="(item, index) in list" :key="index">
 				<view class="flex">
-					<view class="f name" style="flex: 0.5">{{ item.name }}</view>
+					<view class="f name" style="flex: 0.5">{{ item.peopleName }}</view>
 					<view class="f" v-for="(item, index) in item.items" :key="index">
 						<text class="icon" v-if="item.state == 0">&#xe631;</text>
 						<text class="icon ok" v-else>&#xe631;</text>
@@ -24,43 +24,29 @@ export default {
 	data() {
 		return {
 			param: {},
-			list: [
-				{
-					name: '杨振生',
-					items: [
-						{ name: '订单确认', state: 0 },
-						{ name: '进境申报', state: 0 },
-						{ name: '进口申报', state: 1 }
-					]
-				},
-				{
-					name: '林傍玲',
-					items: [
-						{ name: '订单确认', state: 1 },
-						{ name: '进境申报', state: 0 },
-						{ name: '进口申报', state: 1 }
-					]
-				},
-				{
-					name: '毛燕美',
-					items: [
-						{ name: '订单确认', state: 0 },
-						{ name: '进境申报', state: 1 },
-						{ name: '进口申报', state: 1 }
-					]
-				}
-			]
+			list: []
 		};
 	},
-	onLoad() {
-		//this.getData();
+	onLoad(e) {
+		this.param.orderId = e.id
+		this.getData();
 	},
 	methods: {
 		getData() {
+			
 			this.http.request({
-				url: '/level-one-server/app/TbOrder/xxx',
+				url: '/level-one-server/app/TbOrder/selectPeopleConfirmByOrderId',
 				data: this.param,
-				success: res => {}
+				success: res => {
+					this.list = res.data.data
+					this.list.map(item => {
+						item.items = [
+						{ name: '订单确认', state: item.progressApply },
+						{ name: '进境申报', state: item.importApply },
+					]
+					})
+					console.log(this.list)
+				}
 			});
 		},
 		detail(item) {