Parcourir la source

Merge branch 'master' of http://git.cc-lotus.info/ball-court/court-mobile

zs il y a 3 ans
Parent
commit
c61cd61e99

+ 1 - 0
app.json

@@ -16,6 +16,7 @@
     "pages/createTeam/index",
     "pages/information/index",
     "pages/photo/index",
+    "pages/dissolution/index",
     "pages/score/index",
     "pages/add/index",
     "pages/password/index",

+ 95 - 0
pages/dissolution/index.js

@@ -0,0 +1,95 @@
+// pages/login/login.js
+import WxValidate from '../../utils/wxValidate'
+const app = getApp()
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        // 主体高度
+        infoHeight: '',
+        frameStyle: { useTop: true, name: '解散申请', leftArrow: true, useBar: false },
+        form: {
+            team_id: '234', // 团队id
+            team_name: '我是第一队', // 团队名称
+            create_user: '李铁蛋', // 团队创建人
+            create_id: '23455', // 团队创建人id
+            apply_time: '', // 申请时间
+            resaon: '', // 解散团队原因
+        },
+    },
+    back: function () {
+        wx.navigateBack({ url: '/pages/me/index' })
+    },
+    //提交
+    formSubmit: function (e) {
+        console.log('form发生了submit事件,携带数据为:', e.detail.value)
+    },
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+        // 计算高度
+        this.searchHeight()
+    },
+    // 计算高度
+    searchHeight: function () {
+        let frameStyle = this.data.frameStyle;
+        let client = app.globalData.client;
+        // 减去状态栏
+        let infoHeight = client.windowHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
+        // 是否减去底部菜单
+        if (frameStyle.useBar) infoHeight = infoHeight - 50;
+        if (infoHeight) this.setData({ infoHeight: infoHeight })
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 6 - 0
pages/dissolution/index.json

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

+ 35 - 0
pages/dissolution/index.wxml

@@ -0,0 +1,35 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="main" style="height:{{infoHeight}}px;">
+        <form catchsubmit="formSubmit" catchreset="formReset">
+            <view class="form" style="height:{{infoHeight-140}}px;">
+                <view class="one">
+                    <view class="text">团队id</view>
+                    <input class="input" name="team_id" disabled="true" value="{{form.team_id}}" placeholder="" />
+                </view>
+                <view class="one">
+                    <view class="text">团队名称</view>
+                    <input class="input" name="team_name" disabled="true" value="{{form.team_name}}" placeholder="" />
+                </view>
+                <view class="one">
+                    <view class="text">团队创建人</view>
+                    <input class="input" name="create_user" disabled="true" value="{{form.create_user}}" placeholder="" />
+                </view>
+                <view class="one">
+                    <view class="text">团队创建人id</view>
+                    <input class="input" name="create_id" disabled="true" value="{{form.create_id}}" placeholder="" />
+                </view>
+                <view class="one">
+                    <view class="text">申请时间</view>
+                    <input class="input" name="apply_time" value="{{form.apply_time}}" placeholder="请输入申请时间" />
+                </view>
+                <view class="one">
+                    <view class="text">解散团队原因</view>
+                    <input class="input" name="resaon" value="{{form.resaon}}" placeholder="请输入解散原因" />
+                </view>
+            </view>
+            <view class="btn-area">
+                <button class="button" formType="submit">保存</button>
+            </view>
+        </form>
+    </view>
+</mobile-main>

+ 49 - 0
pages/dissolution/index.wxss

@@ -0,0 +1,49 @@
+.main {
+  position: relative;
+  width: 100%;
+  background-color: #ffffff;
+  padding: 20px 0 0 0;
+}
+
+.zero{
+  border-bottom: 1px solid #dddddd;
+  margin: 0 20px;
+  height: 50px;
+}
+.one {
+  border-bottom: 1px solid #dddddd;
+  margin: 0 20px;
+  height: 40px;
+}
+
+.text {
+  position: relative;
+  top: 10px;
+  width: 40%;
+}
+.tou{
+  width: 50px;
+  height: 50px;
+  position: relative;
+  left: 280px;
+  top: -30px;
+}
+
+.input {
+  position: relative;
+  text-align: right;
+  left: 130px;
+  top: -10px;
+  width: 60%;
+  font-size: 14px;
+}
+.button{
+  position: relative;
+  top: 50px;
+  width: 300px !important;
+  background-image: linear-gradient(to right, #fd3c1e , #c74df0);
+  border-radius: 30px; 
+  color:#ffffff; 
+  text-align: center;
+  font-size: small;
+}

+ 8 - 2
pages/me/index.js

@@ -41,7 +41,8 @@ Page({
         id: '1', head: '/image/head1.png', group: '哈拉海队', time: '08:30', ball: '足球', grade: 'c', date: '2022.01.15', person: '10',
       },
     ],
-    showModal: false
+    showModal: false,
+    
 
   },
   tabPath(e) {
@@ -90,7 +91,12 @@ Page({
       url: `/pages/auditTeam/index`,
     })
   },
-
+//解散申请
+apply: function () {
+  wx.navigateTo({
+    url: `/pages/dissolution/index`,
+  })
+},
   //解散团队弹窗
   clickme: function () {
     this.setData({

+ 1 - 1
pages/me/index.wxml

@@ -176,7 +176,7 @@
         <text class="modal_text1">解散团队</text>
         <text class="modal_text2">成双成队成双成队</text>
         <text class="modal_text3">解散的团队不可恢复</text>
-        <button bindtap="go" class="modal_button">解散申请</button>
+        <button bindtap="apply" class="modal_button">解散申请</button>
         <text bindtap="go" class="modal_text4">取消</text>
       </view>
     </view>