diff --git a/pages/account/myCoupons.vue b/pages/account/myCoupons.vue
index a90c414..cea8244 100644
--- a/pages/account/myCoupons.vue
+++ b/pages/account/myCoupons.vue
@@ -23,7 +23,8 @@
sorry,no coupons~
-
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 7c16d1d..efcf871 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -216,7 +216,13 @@
uni.getNetworkType({
success: (res) => {
console.log(res.networkType, s);
- if (res.networkType !== 'none') {
+ if (res.networkType == 'none') {
+ uni.showToast({
+ icon: 'none',
+ title: 'Please connect to the network',
+ duration: 3000,
+ })
+ } else if (res.networkType !== 'none') {
that.typee = 2;
clearInterval(time);
let home = 'HOME'
@@ -244,7 +250,7 @@
})
s++;
}, 5000);
-
+
},
mounted() {
@@ -323,18 +329,18 @@
},
methods: {
- checkNetwork(){
+ checkNetwork() {
uni.getNetworkType({
- complete:function(res){
+ complete: function(res) {
// console.log(res.networkType)
- if(res.networkType=='none'){
- setTimeout(()=>{
+ if (res.networkType == 'none') {
+ setTimeout(() => {
uni.showToast({
- icon:'none',
- title:'Please connect to the network',
- duration:3000,
+ icon: 'none',
+ title: 'Please connect to the network',
+ duration: 3000,
})
- },200)
+ }, 200)
// return false
}
}
diff --git a/pages/login/index.vue b/pages/login/index.vue
index 3670b4e..3926142 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -207,8 +207,8 @@
uni.setStorageSync('isLogin',1)
uni.setStorageSync('user_info',res.data)
uni.switchTab({
- // delta: 1
- url:'../index/index'
+ delta: 1
+ // url:'../index/index'
})
}else{
if(res.data){