Browse Source

显示弹出动画

wangxy 1 tháng trước cách đây
mục cha
commit
abdef5c4c8

+ 3 - 2
pages/chanpinMy/aboutPage.vue

@@ -40,9 +40,10 @@
 	
 	// 关于我们
 	function handleBack(){
-		uni.redirectTo({
+		/* uni.redirectTo({
 			url: '/pages/chanpinMy/myInfo'
-		});
+		}); */
+		uni.navigateBack()
 	}
 	
 	onLoad((options) => {

+ 1 - 1
pages/chanpinMy/my.vue

@@ -107,7 +107,7 @@
 	}
 	
 	function yingyongshezhi() {
-		uni.redirectTo({
+		uni.navigateTo({
 			url: '/pages/chanpinMy/myInfo'
 		})
 	}

+ 7 - 7
pages/chanpinMy/myInfo.vue

@@ -41,8 +41,7 @@
 				</view>
 		</view>
 		</view>
-		<CustomTabBar  :currentTabNumber="3">
-		</CustomTabBar>
+		<!-- <CustomTabBar  :currentTabNumber="3"> </CustomTabBar> -->
 		<tip-small-dialog ref="exitDialogRef" @confirm-btn="exitBtn" :content="tipContent"></tip-small-dialog>
 		<tip-small-dialog ref="zhuxiaoDialogRef" @confirm-btn="zhuxiaoBtn" :content="zhuxiaoContent"></tip-small-dialog>
 		<tel-dialog @telClose="telClose" @bindBtn="bindBtn" v-if="telDialogFlag"></tel-dialog>
@@ -72,7 +71,7 @@
 		getFilePolicy,
 		updataHead
 	} from '@/api/my.js'
-	import CustomTabBar from '@/components/custom-tabbar/custom-tabbar.vue';
+	// import CustomTabBar from '@/components/custom-tabbar/custom-tabbar.vue';
 	import {
 		onLoad,onShow
 	} from '@dcloudio/uni-app';
@@ -120,9 +119,10 @@
 	}
 
 	function handleBack() {
-		uni.redirectTo({
-			url: '/pages/chanpinMy/my'
-		})
+		// uni.redirectTo({
+		// 	url: '/pages/chanpinMy/my'
+		// })
+		uni.navigateBack()
 	}
 
 	function headClick() {
@@ -323,7 +323,7 @@
 	}
 	// 关于我们
 	function aboutClick() {
-		uni.redirectTo({
+		uni.navigateTo({
 			url: '/pages/chanpinMy/aboutPage'
 		});
 	}

+ 16 - 4
pages/chanpinXuanze/banben.vue

@@ -28,7 +28,7 @@
 				</view>
 			</template>
 		</view>
-		<CustomTabBar :currentTabNumber="0"></CustomTabBar>
+		<!-- <CustomTabBar :currentTabNumber="0"></CustomTabBar> -->
 	</view>
 </template>
 
@@ -36,7 +36,7 @@
 	import {reactive} from "vue";
 	import {onLoad} from "@dcloudio/uni-app"
 	import * as shuxueHttp from "@/api/chanpinShuxue.js"
-  import CustomTabBar from "@/components/custom-tabbar/custom-tabbar.vue";
+  // import CustomTabBar from "@/components/custom-tabbar/custom-tabbar.vue";
 	import cacheManager from "@/utils/cacheManager.js";
 	const data = reactive({
 		dengjiId: null,
@@ -58,9 +58,21 @@
 	  if (cacheManager.get('xuexi-shuxue')) {
 	  	cacheManager.remove("xuexi-shuxue")
 	  }
-    uni.redirectTo({
+ /*   uni.redirectTo({
       url: `/pages/chanpinneirong/index?banbenId=${item.id}&danyuanId=1&customType=3&chanpinId=${item.chanpinId}&dengjiId=${item.dengjiId}`
-    })
+    }) */
+	const opt = {
+		banbenId: item.id,
+		danyuanId:1, // 测试需要固定为 1
+		chanpinId:item.chanpinId,
+		dengjiId: item.dengjiId
+	}
+	// 跳转
+	uni.switchTab({
+		url: "/pages/chanpinneirong/index"
+	})
+	
+	
   }
 
 	onLoad((options) => {