From 7fdc64367a0523f4434762dd286ce5852b4228df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=94=E7=BB=B4=E5=B1=BF?= Date: Tue, 17 Oct 2023 12:32:27 +0800 Subject: [PATCH] fix the teacherprofile page --- src/miniprogram/pages/Comments/Comments.wxml | 3 +++ src/miniprogram/pages/Tprofile/Tprofile.wxml | 8 ++++---- src/miniprogram/pages/main/main.js | 13 +++++++++++++ src/miniprogram/pages/main/main.wxml | 4 ++-- src/miniprogram/pages/profile/profile.wxml | 2 +- src/miniprogram/pages/profile/profile.wxss | 11 +++++++++-- 6 files changed, 32 insertions(+), 9 deletions(-) diff --git a/src/miniprogram/pages/Comments/Comments.wxml b/src/miniprogram/pages/Comments/Comments.wxml index e69de29..5ca79f4 100644 --- a/src/miniprogram/pages/Comments/Comments.wxml +++ b/src/miniprogram/pages/Comments/Comments.wxml @@ -0,0 +1,3 @@ + +这里是评论界面 + \ No newline at end of file diff --git a/src/miniprogram/pages/Tprofile/Tprofile.wxml b/src/miniprogram/pages/Tprofile/Tprofile.wxml index 910e316..241f7a7 100644 --- a/src/miniprogram/pages/Tprofile/Tprofile.wxml +++ b/src/miniprogram/pages/Tprofile/Tprofile.wxml @@ -5,17 +5,17 @@ 姓名: - + 手机号码: - + 电子邮箱: - + @@ -33,7 +33,7 @@ - + \ No newline at end of file diff --git a/src/miniprogram/pages/main/main.js b/src/miniprogram/pages/main/main.js index b46867a..106d4e3 100644 --- a/src/miniprogram/pages/main/main.js +++ b/src/miniprogram/pages/main/main.js @@ -2,6 +2,9 @@ Page({ data:{ hello:'Hi~' }, + onLoad(options) { + //todo + }, change:function(){ this.setData({ hello:this.data.hello+'~~', @@ -17,4 +20,14 @@ Page({ url: '/pages/Demand/Demand', }) }, + goToComments: function() { + wx.navigateTo({ + url: '/pages/Comments/Comments', + }) + }, + contactTeacher: () => { + wx.makePhoneCall({ + phoneNumber: '10086' + }) + }, }); \ No newline at end of file diff --git a/src/miniprogram/pages/main/main.wxml b/src/miniprogram/pages/main/main.wxml index 3bf3543..20bfea3 100644 --- a/src/miniprogram/pages/main/main.wxml +++ b/src/miniprogram/pages/main/main.wxml @@ -37,8 +37,8 @@ - - + + diff --git a/src/miniprogram/pages/profile/profile.wxml b/src/miniprogram/pages/profile/profile.wxml index f83d5cd..9b1e5d6 100644 --- a/src/miniprogram/pages/profile/profile.wxml +++ b/src/miniprogram/pages/profile/profile.wxml @@ -56,7 +56,7 @@ + form-type="reset">重置 \ No newline at end of file diff --git a/src/miniprogram/pages/profile/profile.wxss b/src/miniprogram/pages/profile/profile.wxss index ae1e463..9bb0adb 100644 --- a/src/miniprogram/pages/profile/profile.wxss +++ b/src/miniprogram/pages/profile/profile.wxss @@ -25,10 +25,17 @@ } .button-container { - position: relative; + /* position: relative; */ display: flex; justify-content: flex-end; - align-items: flex-end; + /* align-items: flex-end; */ +} + +/* 暂时先这样,回头再改 */ +.button-container > button { + position: relative; + left: 200rpx; + top: -10rpx } .small-button {