Selaa lähdekoodia

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

zs 3 vuotta sitten
vanhempi
commit
ae64804361

+ 7 - 9
pages/auditTeam/index.js

@@ -25,7 +25,7 @@ Page({
         let id = e.currentTarget.dataset.id;
         //修改状态-加入团队修改
         wx.request({
-            url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply/${id}`, //接口地址
+            url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply/${id}`, 
             method: "post",
             data: { status: '1' },
             header: {},
@@ -34,7 +34,7 @@ Page({
                     wx.showToast({
                         title: '已通过',
                         icon: 'success',
-                        duration: 2000//延迟两秒
+                        duration: 2000
                     })
                 }
             },
@@ -49,13 +49,12 @@ Page({
             data: {},
             header: {},
             success: res => {
-                //团队修改
                 let id_1 = this.data.id
                 let members = [];
                 members.push({ id: res.data.data.id, nickname: res.data.data.nickname, icon: res.data.data.icon })
                 that.setData({ members: members })
                 wx.request({
-                    url: `${app.globalData.publicUrl}/courtAdmin/api/team/${id_1}`, //接口地址
+                    url: `${app.globalData.publicUrl}/courtAdmin/api/team/${id_1}`, 
                     method: "post",
                     data: { members: members },
                     header: {},
@@ -64,7 +63,7 @@ Page({
                             wx.showToast({
                                 title: '已通过',
                                 icon: 'success',
-                                duration: 2000//延迟两秒
+                                duration: 2000
                             })
                         }
                     },
@@ -81,7 +80,7 @@ Page({
     reject: function (e) {
         let { id } = e.currentTarget.dataset;
         wx.request({
-            url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply/${id}`, //接口地址
+            url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply/${id}`, 
             method: "post",
             data: { status: '-1' },
             header: {},
@@ -90,7 +89,7 @@ Page({
                     wx.showToast({
                         title: '已驳回',
                         icon: 'success',
-                        duration: 2000//延迟两秒
+                        duration: 2000
                     })
                 }
             },
@@ -115,9 +114,8 @@ Page({
         wx.getStorage({
             key: 'token',
             success: res => {
-                //数据请求
                 wx.request({
-                    url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply`, //接口地址
+                    url: `${app.globalData.publicUrl}/courtAdmin/api/joinapply`,
                     method: "get",
                     data: { team_id: id },
                     header: {},

+ 9 - 9
pages/dissolution/detail.js

@@ -10,13 +10,13 @@ Page({
     frameStyle: { useTop: true, name: '申请解散', leftArrow: true, useBar: false },
     // 主体高度
     infoHeight: '',
-    ids:'',
+    ids: '',
     jslist: []
   },
   //解散申请
   apply: function () {
     wx.navigateTo({
-      url: `/pages/dissolution/index?id=` + this.ids,
+      url: `/pages/dissolution/index?id=` + this.data.ids,
     })
   },
 
@@ -28,7 +28,7 @@ Page({
 * 生命周期函数--监听页面加载
 */
   onLoad: function (options) {
-    this.ids =options.id;
+    this.setData({ ids: options.id })
     // 计算高度
     this.searchHeight();
     // 监听用户是否登录
@@ -37,16 +37,16 @@ Page({
   // 监听用户是否登录
   watchLogin: function () {
     const that = this;
-    var team_id = that.ids;
+    var team_id = that.data.ids;
     wx.getStorage({
       key: 'token',
       success: res => {
         //解散团队数据
         wx.request({
-          url: `${app.globalData.publicUrl}/courtAdmin/api/dismissapply`, //接口地址
+          url: `${app.globalData.publicUrl}/courtAdmin/api/dismissapply`,
           method: 'get',
           data: {
-            "team_id":team_id
+            "team_id": team_id
           },
           success(res) {
             if (res.data.errcode == 0) {
@@ -78,8 +78,8 @@ Page({
       }
     })
   },
-   // 计算高度
-   searchHeight: function () {
+  // 计算高度
+  searchHeight: function () {
     let frameStyle = this.data.frameStyle;
     let client = app.globalData.client;
     let infoHeight = client.windowHeight;
@@ -88,7 +88,7 @@ Page({
     // 是否减去底部菜单
     if (frameStyle.useBar) infoHeight = infoHeight - 50;
     if (infoHeight) this.setData({ infoHeight: infoHeight })
-},
+  },
   /**
    * 生命周期函数--监听页面初次渲染完成
    */

+ 14 - 27
pages/dissolution/index.js

@@ -13,14 +13,13 @@ Page({
         apply_time: '',
         // 主体高度
         infoHeight: '',
-        form: {
-            // team_id: '234', // 团队id
-            // team_name: '我是第一队', // 团队名称
-            // create_user: '李铁蛋', // 团队创建人
-            // create_id: '23455', // 团队创建人id
-            // apply_time: '', // 申请时间
-            // resaon: '', // 解散团队原因
-        },
+        form: {},
+    },
+    initValidate() {
+        const rules = { team_id: { required: true }, team_name: { required: true, }, create_user: { required: true }, create_id: { required: true, }, resaon: { required: true, } }
+        // 验证字段的提示信息,若不传则调用默认的信息
+        const messages = { team_id: { required: '请输入团队id', }, team_name: { required: '请输入团队名称', }, create_user: { required: '请输入团队创建人', }, create_id: { required: '请输入团队创建人id', }, resaon: { required: '请输入解散团队原因', } };
+        this.WxValidate = new WxValidate(rules, messages)
     },
     back: function () {
         wx.navigateBack({ url: '/pages/me/index' })
@@ -43,13 +42,13 @@ Page({
             return false
         } else {
             wx.request({
-                url: `${app.globalData.publicUrl}/courtAdmin/api/dismissapply`, //接口地址
+                url: `${app.globalData.publicUrl}/courtAdmin/api/dismissapply`, 
                 method: 'post',
                 data: form,
                 success(res) {
                     if (res.data.errcode == 0) {
-                        wx.showToast({ title: `解散审核提交成功`, icon: 'success', duration: 2000 }) //登录成功提示
-                        wx.navigateTo({ url: '/pages/me/index' })// 跳转页面
+                        wx.showToast({ title: `解散审核提交成功`, icon: 'success', duration: 2000 }) 
+                        wx.navigateTo({ url: '/pages/me/index' })
                     } else {
                         wx.showToast({
                             title: res.data.errmsg,
@@ -65,14 +64,10 @@ Page({
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {
-        this.setData({
-            ids: options.id,
-        });
+        this.setData({ids: options.id,});
         //获取当前时间
         let apply_time = moment().format('YYYY-MM-DD HH:mm:ss');
-        this.setData({
-            apply_time: apply_time,
-        });
+        this.setData({apply_time: apply_time,});
         // 计算高度
         this.searchHeight();
         // 监听用户是否登录
@@ -80,12 +75,6 @@ Page({
         //验证规则函数
         this.initValidate()
     },
-    initValidate() {
-        const rules = { team_id: { required: true }, team_name: { required: true, }, create_user: { required: true }, create_id: { required: true, }, resaon: { required: true, } }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { team_id: { required: '请输入团队id', }, team_name: { required: '请输入团队名称', }, create_user: { required: '请输入团队创建人', }, create_id: { required: '请输入团队创建人id', }, resaon: { required: '请输入解散团队原因', } };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
     // 监听用户是否登录
     watchLogin: function () {
         wx.getStorage({
@@ -93,15 +82,13 @@ Page({
             success: res => {
                 var that = this;
                 wx.request({
-                    url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + that.data.ids, //接口地址
+                    url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + that.data.ids, 
                     method: 'get',
                     data: '',
                     success(res) {
                         if (res.data.errcode == 0) {
                             let datas = res.data.data
-                            that.setData({
-                                form: datas,
-                            });
+                            that.setData({ form: datas,});
                         } else {
                             wx.showToast({
                                 title: res.data.errmsg,

+ 1 - 3
pages/me/index.js

@@ -24,7 +24,6 @@ Page({
     list: [],
     //头像
     icon: '',
-    showModal: false,
     jumpList: [],
   },
   // 跳转菜单
@@ -54,8 +53,7 @@ Page({
   ToDetails: function (e) {
     let id = e.currentTarget.dataset.id;
     let type = this.data.item1.type;
-    if (type == 1) wx.navigateTo({ url: `/pages/teamDetails/detail?id=${id}` })
-    else if (type == 2) wx.navigateTo({ url: `/pages/teamDetails/index?id=${id}` })
+    wx.navigateTo({ url: `/pages/teamDetails/detail?id=${id}` })
   },
   // 我的服务-功能按钮
   toCommon: function (e) {

+ 7 - 7
pages/me/index.wxml

@@ -59,24 +59,24 @@
           </view>
           <view class="right1_2">
             <view class="right1_2o">
-              <image class="head1" src="{{item.red_logo[0].url}}"></image>
+              <image class="head1" src="{{item.blue_logo[0].url}}"></image>
             </view>
-            <view class="right1_2t"><text>{{item.red_name}}</text></view>
+            <view class="right1_2t"><text>{{item.blue_name}}</text></view>
             <view class="right1_2i">
-              <text class="text6-1">{{item.red_branch||0}}</text>
+              <text class="text6-1">{{item.blue_branch||0}}</text>
               <text class="text8-1">:</text>
-              <text class="text7-1">{{item.blue_branch||0}}</text>
+              <text class="text7-1">{{item.red_branch||0}}</text>
             </view>
-            <view class="right1_2t"><text>{{item.blue_name}}</text></view>
+            <view class="right1_2t"><text>{{item.red_name}}</text></view>
             <view class="right1_2o">
-              <image class="head2" src="{{item.blue_logo[0].url}}"></image>
+              <image class="head2" src="{{item.red_logo[0].url}}"></image>
             </view>
           </view>
         </view>
       </view>
     </view>
     <!-- 上传比分-无比赛 -->
-    <view class="four-zan" wx:if="{{match.length==0}}">
+    <view class="four-zan" wx:if="{{match.length==0 && item1.type=='1'}}">
       <view class="zan-left">
         <text>暂无比赛</text>
       </view>

+ 7 - 4
pages/me/index.wxss

@@ -100,7 +100,8 @@
   position: relative;
   top: 10px;
 }
- .color0 {
+
+.color0 {
   margin-top: 10px;
   margin-right: 2px;
   border-radius: 10px;
@@ -287,14 +288,16 @@
 }
 
 .head1 {
-  width: 100%;
+  border-radius: 50%;
+  width: 33px;
   height: 33px;
   overflow: hidden;
 }
 
 .head2 {
-  width: 89%;
-  height: 34px;
+  border-radius: 50%;
+  width: 33px;
+  height: 33px;
   overflow: hidden;
 }
 

+ 24 - 26
pages/password/index.js

@@ -10,8 +10,14 @@ Page({
         // 主体高度
         infoHeight: '',
         frameStyle: { useTop: true, name: '修改密码', leftArrow: true, useBar: false },
-        form: {
-        }
+        form: {}
+    },  
+    //验证必填项    
+    initValidate() {
+        const rules = { password: { required: true }, }
+        // 验证字段的提示信息,若不传则调用默认的信息
+        const messages = { password: { required: '请输入新密码' }, };
+        this.WxValidate = new WxValidate(rules, messages)
     },
     back: function () {
         wx.navigateBack({ url: '/pages/me/index' })
@@ -25,7 +31,7 @@ Page({
             return false
         } else {
             wx.request({
-                url: `${app.globalData.publicUrl}/courtAdmin/api/user/updatePwd/${res.data.id}`, //接口地址
+                url: `${app.globalData.publicUrl}/courtAdmin/api/user/updatePwd/${res.data.id}`,
                 method: "post",
                 data: value,
                 header: {},
@@ -34,7 +40,7 @@ Page({
                         wx.showToast({
                             title: '保存成功',
                             icon: 'success',
-                            duration: 2000//延迟两秒
+                            duration: 2000
                         })
                     } else {
                         wx.showToast({
@@ -59,24 +65,16 @@ Page({
         this.initValidate();
 
     },
-    //验证必填项
-    initValidate() {
-        const rules = { password: { required: true }, }
-        // 验证字段的提示信息,若不传则调用默认的信息
-        const messages = { password: { required: '请输入新密码' }, };
-        this.WxValidate = new WxValidate(rules, messages)
-    },
     // 监听用户是否登录
     watchLogin: function () {
         const that = this;
         wx.getStorage({
             key: 'token',
             success: res => {
-                //数据请求
                 wx.request({
-                    url: `${app.globalData.publicUrl}/courtAdmin/api/user/${res.data.id}`, //接口地址
-                    method: "get",//请求方法
-                    data: {},//请求参数
+                    url: `${app.globalData.publicUrl}/courtAdmin/api/user/${res.data.id}`,
+                    method: "get",
+                    data: {},
                     header: {},
                     success: res => {
                         that.setData({ form: res.data.data })
@@ -90,17 +88,17 @@ Page({
             }
         })
     },
- // 计算高度
- searchHeight: function () {
-    let frameStyle = this.data.frameStyle;
-    let client = app.globalData.client;
-    let infoHeight = client.windowHeight;
-    // 是否去掉状态栏
-    if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
-    // 是否减去底部菜单
-    if (frameStyle.useBar) infoHeight = infoHeight - 50;
-    if (infoHeight) this.setData({ infoHeight: infoHeight })
-},
+    // 计算高度
+    searchHeight: function () {
+        let frameStyle = this.data.frameStyle;
+        let client = app.globalData.client;
+        let infoHeight = client.windowHeight;
+        // 是否去掉状态栏
+        if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
+        // 是否减去底部菜单
+        if (frameStyle.useBar) infoHeight = infoHeight - 50;
+        if (infoHeight) this.setData({ infoHeight: infoHeight })
+    },
 
     /**
      * 生命周期函数--监听页面初次渲染完成

+ 65 - 39
pages/teamDetails/detail.js

@@ -17,41 +17,66 @@ Page({
       //队员列表
       { members: [], }
     ],
-    //logo
-    fileList: [],
-    ids: ''
+    ids: '',
+    id1: ''
   },
   back: function () {
     wx.navigateBack({ url: '/pages/home/index' })
   },
-  //点击减号删除队员
+  //删除队员-退出团队
   delList: function (e) {
     var that = this;
+    var type = that.data.type;
     var members = that.data.list.members;
     var list = that.data.list;
     var ids = that.data.list.id;
-    wx.showModal({
-      title: '是否删除该名队员',
-      success(res) {
-        if (res.confirm) {
-          let id = e.currentTarget.dataset.id;
-          for (var i = 0; i < members.length; i++) {
-            if (members[i].id == id) {
-              members.splice(i, 1)
+    var id1 = that.data.id1;
+    if (type == 1) {
+      wx.showModal({
+        title: '是否删除该名队员',
+        success(res) {
+          if (res.confirm) {
+            let id = e.currentTarget.dataset.id;
+            for (var i = 0; i < members.length; i++) {
+              if (members[i].id == id) {
+                members.splice(i, 1)
+              }
             }
+            that.setData({ ['list.members']: members })
+            wx.request({
+              url: `${app.globalData.publicUrl}/courtAdmin/api/team/${ids}`,
+              method: "post",
+              data: list,
+              header: {},
+              success: res => {
+              },
+            })
+          } else if (res.cancel) { }
+        }
+      })
+    } else if (type == 2) {
+      wx.showModal({
+        title: '是否退出团队',
+        success(res) {
+          if (res.confirm) {
+            wx.request({
+              url: `${app.globalData.publicUrl}/courtAdmin/api/team/leaves`,
+              method: "get",
+              data: { user_id: id1, team_id: ids },
+              header: {},
+              success: res => {
+                return wx.redirectTo({ url: '/pages/me/index' })
+              },
+              error: err => {
+              }
+            })
+
+          } else if (res.cancel) {
           }
-          that.setData({ ['list.members']: members })
-          wx.request({
-            url: `${app.globalData.publicUrl}/courtAdmin/api/team/${ids}`, //接口地址
-            method: "post",
-            data: list,
-            header: {},
-            success: res => {
-            },
-          })
-        } else if (res.cancel) { }
-      }
-    })
+        }
+      })
+    }
+
   },
   /**
    * 生命周期函数--监听页面加载
@@ -59,20 +84,21 @@ Page({
   onLoad: function (options) {
     // 计算高度
     this.searchHeight()
-    this.ids = options.id;
+    this.setData({ ids: options.id })
     // 监听用户是否登录
     this.watchLogin();
   },
   // 监听用户是否登录
   watchLogin: function () {
     const that = this;
-    let id = that.ids
+    let id = that.data.ids
     wx.getStorage({
       key: 'token',
       success: res => {
-        //查询数据
+        that.setData({ type: res.data.type })
+        that.setData({ id1: res.data.id })
         wx.request({
-          url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + id, //接口地址
+          url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + id,
           method: 'get',
           data: '',
           success(res) {
@@ -85,17 +111,17 @@ Page({
       }
     })
   },
- // 计算高度
- searchHeight: function () {
-  let frameStyle = this.data.frameStyle;
-  let client = app.globalData.client;
-  let infoHeight = client.windowHeight;
-  // 是否去掉状态栏
-  if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
-  // 是否减去底部菜单
-  if (frameStyle.useBar) infoHeight = infoHeight - 50;
-  if (infoHeight) this.setData({ infoHeight: infoHeight })
-},
+  // 计算高度
+  searchHeight: function () {
+    let frameStyle = this.data.frameStyle;
+    let client = app.globalData.client;
+    let infoHeight = client.windowHeight;
+    // 是否去掉状态栏
+    if (frameStyle.useTop) infoHeight = infoHeight - (client.statusBarHeight + client.getMenu.height + (client.getMenu.top - client.statusBarHeight) * 2);
+    // 是否减去底部菜单
+    if (frameStyle.useBar) infoHeight = infoHeight - 50;
+    if (infoHeight) this.setData({ infoHeight: infoHeight })
+  },
 
   /**
    * 生命周期函数--监听页面初次渲染完成

+ 4 - 3
pages/teamDetails/detail.wxml

@@ -38,19 +38,20 @@
         </view>
       </view>
     </view>
-    <view class="thr" style="height:{{infoHeight-350}}px;">
+    <view class="thr">
       <view><text class="tuan">队员信息</text></view>
       <view class="thr-1" wx:key="item" wx:for="{{list.members}}">
         <view class="thr1">
           <view class="thr-left">
             <image class="img" src="{{item.icon[0].url}}"></image>
-            <image bindtap='delList' data-id="{{item.id}}" class="two_jian" src="/image/jianshao.png"></image>
+            <image bindtap='delList' wx:if="{{type=='1'}}" data-id="{{item.id}}" class="two_jian" src="/image/jianshao.png"></image>
           </view>
           <view class="thr-right"><text class="name textOver">{{item.nickname}}</text> </view>
         </view>
       </view>
     </view>
-    <view class="four">
+    <view class="four" wx:if="{{type=='2'}}">
+      <button class="button" bindtap='delList'>退出团队</button>
     </view>
   </view>
 </mobile-main>

+ 0 - 142
pages/teamDetails/index.js

@@ -1,142 +0,0 @@
-// pages/login/login.js
-import WxValidate from '../../utils/wxValidate'
-const app = getApp()
-Page({
-
-  /**
-   * 页面的初始数据
-   */
-  data: {
-    src: '/image/adimges.jpg',
-    src1: '/image/head1.png',
-    frameStyle: { useTop: false, name: '团队详情', leftArrow: true, useBar: false },
-    // 主体高度
-    infoHeight: '',
-    //团队详情
-    list: [],
-    ids: ''
-  },
-  back: function () {
-    wx.navigateBack({ url: '/pages/home/index' })
-  },
-  //退出团队
-  outTeam: function (e) {
-    var id = this.data.list._id;
-    var id1 = res.data.id;
-    wx.showModal({
-      title: '是否退出团队',
-      success(res) {
-        if (res.confirm) {
-          //数据请求
-          wx.request({
-            url: `${app.globalData.publicUrl}/courtAdmin/api/team/leaves`, //接口地址
-            method: "get",//请求方法
-            data: { user_id: id1, team_id: id },//请求参数
-            header: {},
-            success: res => {
-              return wx.redirectTo({ url: '/pages/me/index' })// 跳转页面
-            },
-            error: err => {
-            }
-          })
-
-        } else if (res.cancel) {
-        }
-      }
-    })
-  },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
-  onLoad: function (options) {
-    // 计算高度
-    this.searchHeight()
-    this.ids = options.id;
-    // 监听用户是否登录
-    this.watchLogin();
-
-  },
-  // 监听用户是否登录
-  watchLogin: function () {
-    const that = this;
-    let id = that.ids
-    wx.getStorage({
-      key: 'token',
-      success: res => {
-        //查询数据
-        wx.request({
-          url: `${app.globalData.publicUrl}/courtAdmin/api/team/` + id, //接口地址
-          method: 'get',
-          data: '',
-          success(res) {
-            that.setData({ list: res.data.data });
-          }
-        })
-      },
-      fail: res => {
-        return wx.redirectTo({ url: '/pages/login/index', })
-      }
-    })
-  },
- // 计算高度
- searchHeight: function () {
-  let frameStyle = this.data.frameStyle;
-  let client = app.globalData.client;
-  let infoHeight = client.windowHeight;
-  // 是否去掉状态栏
-  if (frameStyle.useTop) infoHeight = infoHeight - (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 () {
-
-  }
-})

+ 0 - 6
pages/teamDetails/index.json

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

+ 0 - 56
pages/teamDetails/index.wxml

@@ -1,56 +0,0 @@
-<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-  <view slot="info" class="main" style="height:{{infoHeight}}px;">
-    <view class="one">
-      <view class="one-1">
-        <view class="onea">
-          <cover-image src='/image/back.png' class="back" bindtap='back'></cover-image>
-        </view>
-        <view class="ones">
-          <text>团队详情</text>
-        </view>
-        <image style="width: 100%; height: 280px; background-color: #eeeeee;" src="{{src}}"></image>
-      </view>
-      <view class="one-2">
-        <image class="imgs" src="{{list.logo[0].url}}"></image>
-      </view>
-      <view class="one-3">
-        <view class="group">{{list.name}}</view>
-        <view class="person">共{{list.members.length||0}}人</view>
-      </view>
-    </view>
-    <view class="two">
-      <view class="two-1">
-        <view class="two1">
-          <view class="two-left1">
-            <text class=" icon iconfont icon-dian"></text>
-          </view>
-          <view class="two-right1">
-            <view><text class="zi">创建人:</text>{{list.create_user}}</view>
-          </view>
-        </view>
-        <view class="two2">
-          <view class="two-left2">
-            <text class=" icon iconfont icon-dian"></text>
-          </view>
-          <view class="two-right2">
-            <view><text class="zi">创建时间:</text><text class="date">{{list.create_time}}</text></view>
-          </view>
-        </view>
-      </view>
-    </view>
-    <view class="thr" style="height:{{infoHeight-390}}px;">
-      <view><text class="tuan">队员信息</text></view>
-      <view class="thr-1" wx:key="item" wx:for="{{list.members}}">
-        <view class="thr1">
-          <view class="thr-left">
-            <image class="img" src="{{item.icon[0].url}}"></image>
-          </view>
-          <view class="thr-right"><text class="name textOver">{{item.nickname}}</text> </view>
-        </view>
-      </view>
-    </view>
-    <view class="four">
-      <button class="button" bindtap='outTeam' >退出团队</button>
-    </view>
-  </view>
-</mobile-main>

+ 0 - 206
pages/teamDetails/index.wxss

@@ -1,206 +0,0 @@
-.main {
-  position: relative;
-  width: 100%;
-}
-
-.back {
-  width: 40rpx;
-  height: 40rpx;
-  left: 15px;
-  width: 40rpx;
-  height: 40rpx;
-}
-
-.onea {
-  font-weight: 600;
-  position: absolute;
-  top: 5%;
-  left: 2%;
-}
-
-.ones {
-  font-weight: 600;
-  position: absolute;
-  top: 5%;
-  left: 42%;
-  color: #ffffff;
-}
-
-.one-2 {
-  position: absolute;
-  top: 18%;
-  left: 41%;
-  width: 18%;
-  height: 63.78px;
-  border-radius: 50%;
-}
-
-.one-3 {
-  position: absolute;
-  top: 29%;
-  left: 30%;
-  width: 43%;
-  height: 63.78px;
-}
-
-.imgs {
-  border-radius: 50%;
-  margin-top: 4px;
-  margin-left: 2px;
-  width: 70px;
-  height: 70px;
-}
-
-.two-1 {
-  margin-top: -4px;
-  background-color: #ffffff;
-  font-size: 15px;
-  margin-bottom: 6%;
-}
-
-.two {
-  background-color: #ffffff;
-}
-
-.two1 {
-  padding-top: 30px;
-  padding-bottom: 10px;
-}
-
-.two2 {
-  padding-bottom: 20px;
-}
-
-.two-left1 {
-  float: left;
-  margin-top: -3px;
-  width: 10%;
-}
-
-.two-left2 {
-  margin-top: -3px;
-  float: left;
-  width: 10%;
-}
-
-.zi {
-  color: #9e9e9e;
-}
-
-.date {
-  margin-right: 2%;
-}
-
-.thr {
-  float: left;
-  width: 100%;
-  padding-top: 15px;
-  background-color: #ffffff;
-}
-
-.tuan {
-  margin-left: 11px;
-  font-size: 16px;
-  font-weight: 550;
-  margin-right: 10px;
-}
-
-.thr-left {
-  width: 49px;
-  height: 49px;
-  background-color: #eeeeee;
-  border-radius: 24.5px;
-}
-
-.thr-right {
-  margin-left: 3px;
-}
-
-.img {
-  border-radius: 50%;
-  width: 49px;
-  height: 49px;
-}
-
-.two_jian {
-  position: relative;
-  top: -20px;
-  left: 35px;
-  width: 20px;
-  height: 20px;
-}
-
-
-.thr-1 {
-  padding-top: 10px;
-  padding-left: 10px;
-  float: left;
-  width: 18%;
-  background-color: #ffffff;
-  padding-bottom: 5px;
-}
-
-.thr1 {
-  background-color: #ffffff;
-}
-
-.thr-2 {
-  padding-top: 10px;
-  padding-left: 8px;
-  float: left;
-  width: 18%;
-  height: 75px;
-  background-color: #ffffff;
-  /* border: 1px solid red; */
-}
-
-.thr2 {
-  float: left;
-  width: 50px;
-  height: 50px;
-  border: 2px solid #dddcdc;
-}
-
-.name {
-  text-align: center;
-  font-size: 13px;
-  color: #727272;
-}
-
-.thr3 {
-  margin-top: 22%;
-  margin-left: 23%;
-}
-
-.group {
-  color: #ffffff;
-  margin-top: 20%;
-  margin-left: 19%;
-  margin-bottom: 10%;
-}
-
-.person {
-  margin-left: 37%;
-  font-size: 13px;
-  color: #ffffff;
-  font-weight: 300;
-}
-
-
-
-.button {
-  margin-top: 5px !important;
-  width: 300px !important;
-  height: 35px;
-  background-color: rgba(243, 32, 162, 0.5);
-  background-image: linear-gradient(to right, rgb(247, 59, 69), rgb(223, 41, 247));
-  border-radius: 30px;
-  color: #ffffff;
-  font-size: 13px;
-}
-
-.four {
-  background-color: white;
-  padding-top: 200px;
-  padding-bottom: 20px;
-}