From 16932357d2c7d11486b16608030694740090b571 Mon Sep 17 00:00:00 2001
From: iuu <2167162990@qq.com>
Date: Fri, 30 Aug 2024 00:35:24 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=8D=E7=89=87=E5=8D=A1?=
=?UTF-8?q?=E7=89=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/about/about.js | 14 +++++++++
pages/about/about.wxml | 50 +++++++++++++++++++++++++++++++--
pages/about/about.wxss | 64 +++++++++++++++++++++++++++++++++++++++++-
3 files changed, 124 insertions(+), 4 deletions(-)
diff --git a/pages/about/about.js b/pages/about/about.js
index 6e622f8..5a50596 100644
--- a/pages/about/about.js
+++ b/pages/about/about.js
@@ -63,6 +63,20 @@ Page({
})
},
+ makePhoneCall(e){
+ let phone = e.currentTarget.dataset.phone;
+ console.log(phone);
+ wx.makePhoneCall({
+ phoneNumber: phone, //此号码仅用于测试
+ success: function () {
+ console.log("拨打电话成功!")
+ },
+ fail: function () {
+ console.log("拨打电话失败!")
+ }
+ })
+ },
+
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/about/about.wxml b/pages/about/about.wxml
index bf47a3a..099c23e 100644
--- a/pages/about/about.wxml
+++ b/pages/about/about.wxml
@@ -5,19 +5,63 @@
{{contact_title}}
- {{date}}
+
-
+
+
+
+
地址:{{contact_address}}
电话:{{contact_tel}}
邮编:{{contact_post_code}}
邮箱:{{contact_email}}
+
+
+ 快捷联系
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/pages/about/about.wxss b/pages/about/about.wxss
index ff9c989..dfb3cb2 100644
--- a/pages/about/about.wxss
+++ b/pages/about/about.wxss
@@ -38,7 +38,6 @@ page {
margin-top: 30rpx;
margin-left: 30rpx;
margin-right: 30rpx;
-
}
.text {
/* margin-top: 16px; */
@@ -52,6 +51,69 @@ page {
line-height: 55rpx;
color: #333;
}
+.about{
+ /* border-top: 2rpx solid #e9e9e9; */
+ border-bottom: 2rpx solid #e9e9e9;
+ padding: 20rpx 30rpx 20rpx 30rpx;
+ /* padding-left: 30rpx;
+ padding-right: 30rpx; */
+}
+.about-title{
+ /* border-bottom: 2rpx solid #e9e9e9; */
+ /* padding-bottom: 30rpx; */
+ padding-left: 30rpx;
+ padding-right: 30rpx;
+ margin-top: 30rpx;
+ font-size: 36rpx;
+ text-align: center;
+ /* margin-bottom: 20rpx; */
+}
+
+.user-container {
+ display: flex;
+ flex-direction: column;
+ /* padding: 10px; */
+ /* background-color: #fff; */
+ /* border-radius: 8px; */
+ /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
+}
+
+.user-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: stretch; /* 使子元素的高度匹配容器高度 */
+}
+
+.user-info {
+ flex-grow: 1; /* 让左侧信息部分尽可能占满剩余空间 */
+}
+
+.user-name {
+ font-size: 36rpx;
+ font-weight: bold;
+ margin-bottom: 10rpx;
+}
+
+.user-intro, .user-phone {
+ font-size: 28rpx;
+ margin-bottom: 10rpx;
+}
+
+.user-block-button {
+ background-color: #3c8bf6;
+ color: #fff;
+ padding: 10rpx;
+ border: none;
+ border-radius: 10rpx;
+ /* cursor: pointer; */
+ align-self: center; /* 水平居中对齐 */
+ height: auto; /* 按钮的高度自适应 */
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ writing-mode: vertical-lr; /* 将文本垂直排列 */
+ /*transform: rotate(180deg); 旋转文本,使其从上到下 */
+}
.btn-view {