zs 2 years ago
parent
commit
d558a4e6d1
2 changed files with 14 additions and 1 deletions
  1. 13 0
      pages/index/index.vue
  2. 1 1
      pagesHome/group/share.vue

+ 13 - 0
pages/index/index.vue

@@ -25,6 +25,19 @@
 				const that = this;
 				let res = await that.$api(`/config`, 'GET', {});
 				if (res.errcode == '0') {
+					uni.getStorage({
+						key: 'token',
+						success: async (res) => {
+							let arr = await that.$api(`/user/cct`, 'POST');
+							if (arr.errcode == '0'){
+								uni.setStorage({
+									key: 'token',
+									data: arr.data,
+									success: function() {}
+								});
+							}
+						}
+					})
 					let config = res.data;
 					that.$set(that, `logoUrl`, config.config.logo[0].url);
 					uni.setStorage({

+ 1 - 1
pagesHome/group/share.vue

@@ -765,7 +765,7 @@
 				font-size: var(--font12Size);
 				color: var(--f85Color);
 			}
-		}
+		} 
 
 		.btn {
 			display: flex;