Kaynağa Gözat

fix: add about page & fix onshare img

wangyuan 2 yıl önce
ebeveyn
işleme
cda4787eab

+ 2 - 1
app.json

@@ -18,7 +18,8 @@
     "pages/reportDetail/reportDetail",
     "pages/myRecord/myRecord",
     "pages/exchange/exchange",
-    "pages/aatest/test"
+    "pages/aatest/test",
+    "pages/aboutUs/aboutUs"
   ],
   "requiredPrivateInfos": [
     "chooseAddress"

+ 66 - 0
pages/aboutUs/aboutUs.js

@@ -0,0 +1,66 @@
+// pages/aboutUs/aboutUs.js
+Page({
+
+  /**
+   * 页面的初始数据
+   */
+  data: {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 3 - 0
pages/aboutUs/aboutUs.json

@@ -0,0 +1,3 @@
+{
+  "navigationBarTitleText": "关于我们"
+}

+ 6 - 0
pages/aboutUs/aboutUs.wxml

@@ -0,0 +1,6 @@
+<!--pages/aboutUs/aboutUs.wxml-->
+<view class="about">
+  <view class="aboutimg">
+    <image src="../../imaes/compant.jpg"></image>
+  </view>
+</view>

+ 13 - 0
pages/aboutUs/aboutUs.wxss

@@ -0,0 +1,13 @@
+/* pages/aboutUs/aboutUs.wxss */
+.about {
+  width: 100%;
+  height: 100%;
+  overflow: hidden;
+}
+.aboutimg {
+  width: 100%;
+  height: auto;
+  margin-top: 10rpx;
+  display: flex;
+  justify-content: center;
+}

+ 2 - 2
pages/appointment/appointment.wxml

@@ -81,8 +81,8 @@
       </view>
     </view>
     <view class="footer-actions ittflex-jcb">
-      <view class="f-btn cancel-btn ittflex" bindtap="handleCancel">取消</view>
-      <view class="f-btn confirm-btn itt-btn" bindtap="handleConfirm">确定</view>
+      <button plain="" class="f-btn cancel-btn ittflex" bindtap="handleCancel">取消</button>
+      <button class="f-btn confirm-btn itt-btn" bindtap="handleConfirm">确定</button>
     </view>
   </view>
 </view>

+ 2 - 2
pages/appointment/appointment.wxss

@@ -274,13 +274,13 @@ view .van-calendar__days {
   margin-top: 40rpx;
 }
 .f-btn {
-  width: 324rpx;
+  width: 322rpx;
   height: 80rpx;
+  font-size: 26rpx;
   border-radius: 10rpx;
 }
 .cancel-btn {
   background-color: #F7F7F7;
-  border: 1rpx solid #333333;
 }
 .wrapper {
   height: 100%;

+ 3 - 2
pages/index/index.js

@@ -249,8 +249,9 @@ Page({
 
   onShareAppMessage () {
     return {
-      title: 'ITTHealth',
-      path: '/pages/index/index'
+      title: '3分钟500+项健康指标',
+      path: '/pages/index/index',
+      imageUrl: '../../imaes/share.jpg'
     }
   },
   // 获取首页信息 档案 剩余次数

+ 6 - 0
pages/set/set.js

@@ -49,5 +49,11 @@ Page({
         }
       }
     })
+  },
+
+  handleAboutus () {
+    wx.navigateTo({
+      url: '/pages/aboutUs/aboutUs',
+    })
   }
 })

+ 1 - 1
pages/set/set.wxml

@@ -8,7 +8,7 @@
     <view class="label">用户协议</view>
     <van-icon style="margin-right: 30rpx;" name="arrow" color="#999"/>
   </view>
-  <view class="set-item col-b ittflex-jcb aboutus">
+  <view class="set-item col-b ittflex-jcb aboutus" bindtap="handleAboutus">
     <view class="label">关于我们</view>
     <van-icon style="margin-right: 30rpx;" name="arrow" color="#999"/>
   </view>