wangxy hai 1 mes
pai
achega
a39c126167
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      pages/chanpinMy/my.vue
  2. 2 2
      pages/xinshuxue/components/danyuanMulu.vue

+ 1 - 1
pages/chanpinMy/my.vue

@@ -69,7 +69,7 @@
 	/***************** 测试 ******************/ 
 	const testRef = ref(null)
 	function handleTest() {
-		testRef.value.showPopup(1)
+		testRef.value.showPopup(7)
 	}
 	/***************** 测试 ******************/ 
 

+ 2 - 2
pages/xinshuxue/components/danyuanMulu.vue

@@ -9,7 +9,7 @@
 			</view>
 			<!-- 目录 -->
 			<view class="xuexi-dagang-body">
-				<view v-for="item in list" @click="handleSelect" :key="item.danyuanId">{{item.name}}</view>
+				<view v-for="item in list" @click="handleSelect" :key="item.danyuanId">{{item.danyuanName}}</view>
 			</view>
 		</view>
 	</uni-popup>
@@ -20,7 +20,7 @@
 		ref
 	} from 'vue';
 
-	const list = [];
+	const list = ref([]);
 	const popupRef = ref(null)
 	const emits = defineEmits(['close', 'select'])
 	import * as httpApi from "@/api/chanpinShuxue.js";