Commit efd544b4 authored by sixiaofeng's avatar sixiaofeng

合并zxj

parents ec88b5c5 e24cf85a
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<!-- 头像 --> <!-- 头像 -->
<div class=" mr-2 mt-5"> <div class=" mr-2 mt-5">
<img src="../../assets/icons/avator.png" alt="" srcset="" class="w-9 "> <img src="../../assets/icons/avator.png" alt="" srcset="" class="w-9 ">
<img :src="detail.path" alt="" srcset="" class="w-9 ">
</div> </div>
<!-- 申请详情 --> <!-- 申请详情 -->
<div class=" bg-white rounded-xl w-full"> <div class=" bg-white rounded-xl w-full">
......
<template> <template>
<div class=" "> <div class=" ">
<main-page left-arrow @click-left="$router.go(-1)" class=""> <main-page left-arrow @click-left="$router.go(-1)" class=" relative">
<template slot="right"> <template slot="right">
<app-icon <app-icon
type="png" type="png"
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
<div v-for="(detail,index) in item.children.info" :key="index"> <div v-for="(detail,index) in item.children.info" :key="index">
<request :detail="detail" class=" pb-4" /> <request :detail="detail" class=" pb-4" />
</div> </div>
</div> </div>
</div> </div>
</main-page> </main-page>
...@@ -28,15 +27,6 @@ ...@@ -28,15 +27,6 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue from 'vue';
// export interface info{
// path:string
// name:string,
// request:string,
// reason?:string,
// current:string,
// time:string
// }
export interface list{ export interface list{
id:number, id:number,
time:string, time:string,
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
<img src="../assets/qrcode.png" alt="" srcset="" class=" absolute w-32 top-44 left-0 right-0 mx-auto "> <img src="../assets/qrcode.png" alt="" srcset="" class=" absolute w-32 top-44 left-0 right-0 mx-auto ">
<p class=" text-white absolute top-82 left-0 right-0 mx-auto text-center text-sm"> 扫描二维码加入我们Chat33的团队</p> <p class=" text-white absolute top-82 left-0 right-0 mx-auto text-center text-sm"> 扫描二维码加入我们Chat33的团队</p>
</div> </div>
<div class="mx-4"> <div class="mx-4 pb-6">
<c-button round buttonBg="bg-color-primary" class="">点击生成图片去分享</c-button> <c-button round class="">点击生成图片去分享</c-button>
<c-button round buttonBg="bg-white" class=" text-text-primary">进入团队工作台</c-button> <c-button round type="secondary" class=" mt-3">进入团队工作台</c-button>
</div> </div>
</div> </div>
......
...@@ -5,19 +5,26 @@ ...@@ -5,19 +5,26 @@
@click-left="handleClickLeft" @click-left="handleClickLeft"
> >
<div class="mx-4 pt-14"> <div class="mx-4 pt-14">
<teamcreate class=" mb-4 mt-2.5" > <input-cell
<template v-slot:title>企业/组织/团队名称</template> v-model="team_name"
<template v-slot:limit>20</template> required
</teamcreate> :limit="20"
<teamcreate class="" hint="请填写真实姓名"> label="企业/组织/团队名称"
<template v-slot:title>负责人真实姓名</template> placeholder="请输入团队名称"
<template v-slot:limit>20</template> error-msg="团队名称不能为空"
</teamcreate> />
<input-cell
v-model="name"
required
:limit="20"
label="负责人真实姓名"
placeholder="请输入真实姓名"
error-msg="姓名不能为空"
/>
<p class="note text-text-primary text-base mt-36 ml-3"> <p class="note text-text-primary text-base mt-36 ml-3">
默认创建团队的人为团队负责人 默认创建团队的人为团队负责人
</p> </p>
<c-button round buttonBg="bg-color-primary" class="text-white mt-16" @click="$router.push('/team-QRcode')">确定</c-button> <c-button round buttonBg="bg-color-primary" class="text-white mt-16" @click="toConfirm">确定</c-button>
</div> </div>
</main-page> </main-page>
...@@ -27,19 +34,50 @@ ...@@ -27,19 +34,50 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue from 'vue';
import { Dialog } from 'vant';
export default Vue.extend({ export default Vue.extend({
name:'createteam', name:'createteam',
components:{ components:{
'main-page': () => import('@/layout/main-page.vue'), 'main-page': () => import('@/layout/main-page.vue'),
'teamcreate': () => import('@/components/Team/c-input.vue'), 'input-cell': () => import('./components/input-cell.vue'),
'c-button': () => import('./components/c-button.vue') 'c-button': () => import('./components/c-button.vue')
}, },
data(){
return{
team_name:'杭州复杂美科技有限公司',
name:''
}
},
props:{
isValid:{
type:Boolean,
default:true
}
},
methods: { methods: {
handleClickLeft() { handleClickLeft() {
console.log('click left') console.log('click left')
},
toConfirm(){
// 团队名是否同名判断
if(!this.isValid) {
this.$router.push('/team-QRcode')
}else{
Dialog.confirm({
title: '提示',
message: '已存在同名团队,如果你是该团队成员,请申请加入团队,或者更换团队名称后再试',
confirmButtonText:'申请加入'
})
.then(() => {
this.$router.push('/team-QRcode')
})
.catch(() => {
Dialog.close()
});
}
}
} }
}
}); });
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment