Jelajahi Sumber

:ok_woman: 关于作者页

nnkwrik 6 tahun lalu
induk
melakukan
3d490ba235

+ 2 - 1
wx-front/app.json

@@ -36,7 +36,8 @@
     "pages/postCate/postCate",
     "pages/ucenter/bought/bought",
     "pages/ucenter/sold/sold",
-    "pages/ucenter/posted/posted"
+    "pages/ucenter/posted/posted",
+    "pages/ucenter/about/about"
   ],
   "window": {
     "backgroundTextStyle": "dark",

+ 66 - 0
wx-front/pages/ucenter/about/about.js

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

+ 3 - 0
wx-front/pages/ucenter/about/about.json

@@ -0,0 +1,3 @@
+{
+  "navigationBarTitleText": "关于作者"
+}

+ 21 - 0
wx-front/pages/ucenter/about/about.wxml

@@ -0,0 +1,21 @@
+<view class="container">
+  <text class='txt'>
+哈喽! 玩得开心吗? 
+
+我是这个开源项目的作者曾生。一个在日本的大学生。
+
+这是我第一次尝试用SpringCloud搭建的微信小程序。今后会不定期更新,逐步完善功能。
+如果你觉得这个项目有不足的地方或意见,欢迎在issue中给我留言,也可以通过下面的微信二维码找到我。
+</text>
+  <image class="i" src="../../../static/images/qr.jpg" mode="aspectFit"></image>
+  <text class='txt'>
+另外,我还写过很多好玩有趣的项目托管在Github上。
+今后打算专注写框架和中间件之类的,也会把平时学到的一些原理知识推到Github和博客,如果能给个Follow,我会非常开心。
+
+</text>
+
+  <text class='txt'>
+最后非常感谢你喜欢这个项目!
+</text>
+
+</view>

+ 22 - 0
wx-front/pages/ucenter/about/about.wxss

@@ -0,0 +1,22 @@
+page {
+  background: #f4f4f4;
+  min-height: 100%;
+}
+
+.container {
+background:#fff;
+min-height:100%;
+margin:40rpx 30rpx;
+border-radius:20rpx;
+
+border:1rpx solid #ddd;
+padding: 40rpx
+}
+
+.i{
+  margin:30rpx 0
+}
+
+.txt{
+  padding:30rpx 0
+}

+ 2 - 2
wx-front/pages/ucenter/index/index.wxml

@@ -67,9 +67,9 @@
       </navigator>
     </view>
     <view class="item item-bottom">
-      <navigator url="url" class="a">
+      <navigator url="/pages/ucenter/about/about" class="a">
         <text class="icon embarrass"></text>
-        <text class="txt">帮助中心</text>
+        <text class="txt">关于作者</text>
       </navigator>
     </view>
     <view class="item item-bottom">

TEMPAT SAMPAH
wx-front/static/images/qr.jpg