guhongwei 2 years ago
parent
commit
35cccb1698
2 changed files with 24 additions and 12 deletions
  1. 3 3
      common/css/font-icon.css
  2. 21 9
      pages/my/index.vue

+ 3 - 3
common/css/font-icon.css

@@ -3,9 +3,9 @@
 	/* Project id 3674157 */
 	/* Color fonts */
 	src:
-		url('//at.alicdn.com/t/c/font_3674157_kaczdji3cy.woff2?t=1664413079904') format('woff2'),
-		url('//at.alicdn.com/t/c/font_3674157_kaczdji3cy.woff?t=1664413079904') format('woff'),
-		url('//at.alicdn.com/t/c/font_3674157_kaczdji3cy.ttf?t=1664413079904') format('truetype');
+		url('https://at.alicdn.com/t/c/font_3674157_kaczdji3cy.woff2?t=1664413079904') format('woff2'),
+		url('https://at.alicdn.com/t/c/font_3674157_kaczdji3cy.woff?t=1664413079904') format('woff'),
+		url('https://at.alicdn.com/t/c/font_3674157_kaczdji3cy.ttf?t=1664413079904') format('truetype');
 }
 
 .iconfont {

+ 21 - 9
pages/my/index.vue

@@ -190,15 +190,27 @@
 			},
 			// 订单跳转页面
 			toOrder(e) {
-				if (e.type == 'order') {
-					uni.navigateTo({
-						url: `/${e.route}?status=${e.status}`
-					})
-				} else if (e.type == 'after') {
-					uni.navigateTo({
-						url: `/${e.route}`
-					})
-				}
+				const that = this;
+				uni.getStorage({
+					key: 'token',
+					success: function(res) {
+						if (e.type == 'order') {
+							uni.navigateTo({
+								url: `/${e.route}?status=${e.status}`
+							})
+						} else if (e.type == 'after') {
+							uni.navigateTo({
+								url: `/${e.route}`
+							})
+						}
+					},
+					fail: function(err) {
+						uni.navigateTo({
+							url: `/pages/login/index`
+						})
+					}
+				});
+
 			},
 		}
 	}