m 1 år sedan
förälder
incheckning
ac08dd763b
2 ändrade filer med 8 tillägg och 5 borttagningar
  1. 2 2
      src/config/dev.js
  2. 6 3
      src/pages/lucky/index.vue

+ 2 - 2
src/config/dev.js

@@ -1,9 +1,9 @@
 export default {
   env: "dev",
   // #ifndef H5
-  // apiBase: "https://test-mp.quanshu123.com",
+  apiBase: "https://mp-api.kaimanghe.net",
   // apiBase: "https://mptest.kaimanghe.net",
-  apiBase: "https://test-mp-h5.kaimanghe.net",
+  // apiBase: "https://test-mp-h5.kaimanghe.net",
   // #endif
   // #ifdef H5
   apiBase: process.env.VUE_APP_BASE_API,

+ 6 - 3
src/pages/lucky/index.vue

@@ -209,10 +209,13 @@
 						this.luckyShow = false
 					}  else {
 						uni.$u.toast('该券不存在!');
-						setTimeout(() => {
-							uni.switchTab({
-								url: '/pages/index/index'
+						setTimeout(() => {
+							uni.redirectTo({
+								url: '/pages/index/index'
 							})
+							// uni.switchTab({
+							// 	url: '/pages/index/index'
+							// })
 						}, 1000)
 					}
 				}).catch(() => {