guhongwei 2 tahun lalu
induk
melakukan
f250899e81
7 mengubah file dengan 99 tambahan dan 0 penghapusan
  1. 1 0
      app.json
  2. 69 0
      pages/user/index.js
  3. 6 0
      pages/user/index.json
  4. 4 0
      pages/user/index.less
  5. 10 0
      pages/user/index.wxml
  6. 4 0
      pages/user/index.wxss
  7. 5 0
      utils/dict.js

+ 1 - 0
app.json

@@ -7,6 +7,7 @@
         "pages/topic/index",
         "pages/my/index",
         "pages/my/userInfo",
+        "pages/user/index",
         "pages/usermymatch/index",
         "pages/setting/index",
         "pages/setting/basic",

+ 69 - 0
pages/user/index.js

@@ -0,0 +1,69 @@
+const app = getApp()
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        frameStyle: { useTop: true, name: '用户管理', leftArrow: true, useBar: false },
+    },
+    // 跳转菜单
+    back(e) {
+        wx.navigateBack({ delta: 1 })
+    },
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+        const that = this;
+
+    },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 6 - 0
pages/user/index.json

@@ -0,0 +1,6 @@
+{
+  "component": true,
+  "usingComponents": {
+    "mobile-main": "/commpents/mobile-frame/index"
+  }
+}

+ 4 - 0
pages/user/index.less

@@ -0,0 +1,4 @@
+.main {
+    height: 88vh;
+    background-color: #ff0000;
+}

+ 10 - 0
pages/user/index.wxml

@@ -0,0 +1,10 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        <view class="one">
+            查询
+        </view>
+        <view class="two">
+            列表
+        </view>
+    </view>
+</mobile-main>

+ 4 - 0
pages/user/index.wxss

@@ -0,0 +1,4 @@
+.main {
+  height: 88vh;
+  background-color: #ff0000;
+}

+ 5 - 0
utils/dict.js

@@ -19,6 +19,11 @@ export const match_status = [
 // -1:管理员,0:普通用户,1:裁判用户
 export const myBtn = [
     { title: '我的赛事', route: 'usermymatch', type: '0' },
+    { title: '用户管理', route: 'user', type: '-1' },
+    { title: '赛事管理', route: 'match', type: '-1' },
+    { title: '报名管理', route: 'sign', type: '-1' },
+    { title: '组队信息审核', route: 'shteam', type: '-1' },
+    { title: '订单管理', route: 'order', type: '-1' },
     { title: '账号设置', route: 'setting', type: '-1|0' }
 ]