From 248f2f32b0f1e406a8110f0839702914a9c3ca0a Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 03 六月 2024 09:17:23 +0800
Subject: [PATCH] css

---
 h5/App.vue |   31 ++++++++++++++++++++++++-------
 1 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/h5/App.vue b/h5/App.vue
index 71871fd..7306882 100644
--- a/h5/App.vue
+++ b/h5/App.vue
@@ -1,4 +1,5 @@
 <script>
+import { wxAuthorize, refreshToken } from '@/api'
 export default {
 	onLaunch: function () {
 		var that = this
@@ -7,15 +8,16 @@
 			let code = ''
 			if (url.indexOf('code=') !== -1) {
 				const query = url.split('?')
-
+				console.log('app-app', url);
 				for (const q of query) {
 					if (q.indexOf('code=') !== -1) {
 						code = q.substring(q.indexOf('code=') + 5, q.length)
 					}
 				}
-				that.$u.api.wxAuthorize({
+				wxAuthorize({
 					code: code
 				}).then(res => {
+					console.log('app_ress', res);
 					if (res.code === 200) {
 						that.$store.commit('setOpenId', res.data.openid)
 						if (res.data.member) {
@@ -24,6 +26,15 @@
 					}
 				})
 			}
+		}
+		// 鍒锋柊token
+		const token = uni.getStorageSync('token')
+		if(token){
+			// refreshToken().then(res => {
+			// 	if(res.code && res.code === 200){
+			// 		this.$store.commit('setToken', res.data)
+			// 	}
+			// })
 		}
 	},
 	onShow: function () {
@@ -177,14 +188,20 @@
 	margin: 0;
 	display: flex;
 }
-
+input{
+	font-size: 30rpx
+}
 textarea {
 	box-sizing: border-box;
-	background-color: #f7f7f7;
-	font-size: 28rpx;
-	color: #333333;
-	padding: 24rpx;
+	// background-color: #f7f7f7;
+	font-size: 30rpx !important;
+	padding: 0;
 	border-radius: 8rpx;
+	color: #333333 !important;
+}
+.u-textarea{
+	padding: 0 !important;
+	color: #333333 !important;
 }
 
 .df_ac {

--
Gitblit v1.9.3