Ver Fonte

feat: add create file

wangyuan há 2 anos atrás
pai
commit
02898ca60f

+ 2 - 1
app.json

@@ -8,7 +8,8 @@
     "pages/buy/buy",
     "pages/appointment/appointment",
     "pages/allFile/allFile",
-    "pages/handleFile/handleFile"
+    "pages/handleFile/handleFile",
+    "pages/createFile/createFile"
   ],
   "usingComponents": {
     "van-icon": "@vant/weapp/icon/index",

+ 3 - 0
pages/allFile/allFile.js

@@ -47,6 +47,9 @@ Page({
    */
   handleAddFile() {
     // this.setData({ vanoverlayshow: true })
+    wx.navigateTo({
+      url: '/pages/createFile/createFile',
+    })
   },
 
   /**

+ 66 - 0
pages/createFile/createFile.js

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

+ 3 - 0
pages/createFile/createFile.json

@@ -0,0 +1,3 @@
+{
+  "navigationBarTitleText": "新建检测人"
+}

+ 11 - 0
pages/createFile/createFile.wxml

@@ -0,0 +1,11 @@
+<!--pages/createFile/createFile.wxml-->
+<view class="createfile-content">
+  <view class="main-content">
+    <view class="form create-form">
+      <view class="form-item avatar">
+        <view class="label ittflex-jcs">头像:</view>
+        <view class="actiosn"></view>
+      </view>
+    </view>
+  </view>
+</view>

+ 28 - 0
pages/createFile/createFile.wxss

@@ -0,0 +1,28 @@
+/* pages/createFile/createFile.wxss */
+.createfile-content {
+  width: 100%;
+  height: 100%;
+  background-color: #f7f7f7;
+}
+.main-content {
+  width: 690rpx;
+  min-height: 100rpx;
+  margin: 0 auto;
+}
+.form {
+  width: 100%;
+  min-height: 500rpx;
+  background-color: #fff;
+}
+.form-item {
+  width: 100%;
+  height: 94rpx;
+  border-bottom: 1rpx solid #E4E4E4;
+}
+.label {
+  width: 100rpx;
+  height: 100%;
+  font-size: 26rpx;
+  font-weight: 400;
+  color: #333333;
+}