wangxy 1 month ago
parent
commit
e32489f16d
2 changed files with 18 additions and 2 deletions
  1. 17 1
      pages/chanpinMy/my.vue
  2. 1 1
      pages/xinshuxue/components/danyuanMulu.vue

+ 17 - 1
pages/chanpinMy/my.vue

@@ -23,10 +23,18 @@
 					<icon class="list-icon yysz-icon"></icon>
 					<text>应用设置</text>
 				</view>
+				
+				<view class="list-item" @click="handleTest">
+					<icon class="list-icon yysz-icon"></icon>
+					<text>测试</text>
+				</view>
 			</view>
 		</view>
 		<!-- 底部 -->
 		<CustomTabBar :currentTabNumber="3"></CustomTabBar>
+		
+		<danyuanMuluVue ref="testRef"></danyuanMuluVue>
+		
 	</view>
 </template>
 
@@ -46,6 +54,8 @@
 		reactive,
 		ref
 	} from "vue";
+	import danyuanMuluVue from '@/pages/xinshuxue/components/danyuanMulu.vue';
+	
 
 	let myInfoData = reactive({
 		userImg: '',
@@ -55,7 +65,13 @@
 		nickName: '',
 		icon: '',
 	});
-
+	
+	/***************** 测试 ******************/ 
+	const testRef = ref(null)
+	function handleTest() {
+		testRef.value.showPopup(1)
+	}
+	/***************** 测试 ******************/ 
 
 	// 获取用户数据
 	function getMyInfo() {

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

@@ -26,7 +26,7 @@
 	import * as httpApi from "@/api/chanpinShuxue.js";
 	
 	function goUpPage() {
-		this.$refs.popupRef.close();
+		popupRef.value.close();
 		emits('close')
 	}