소스 검색

修复bug

chenxiong 3 년 전
부모
커밋
f327c7142e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pages2/appointment/index.vue

+ 2 - 2
pages2/appointment/index.vue

@@ -141,10 +141,10 @@ export default {
 						});
 					}
 					if (res.data.data === 3) {
-						this.$api.goodsList({ makeGoodsId: this.goodsId }).then(res => {
+						this.$api.goodsList({ makeGoodsId: this.goodsId,goodsType:3 }).then(res => {
 							if (res.data.code === 200) {
 								if(res.data.rows.length){
-								this.goodsIdBK = res.data.rows[1].goodsId;
+								this.goodsIdBK = res.data.rows[0].goodsId;
 								}
 							}
 						});