Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OKR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
OKR
Commits
21205a30
Commit
21205a30
authored
Aug 12, 2021
by
sixiaofeng
Browse files
Options
Browse Files
Download
Plain Diff
合并ls_tev
parents
5262590f
99cca73d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
149 additions
and
59 deletions
+149
-59
QRcode.png
src/assets/icons/QRcode.png
+0
-0
addfile.png
src/assets/icons/addfile.png
+0
-0
right-arrow.png
src/assets/icons/right-arrow.png
+0
-0
join-create.png
src/assets/images/join-create.png
+0
-0
main-page.vue
src/layout/main-page.vue
+5
-1
team.ts
src/router/team.ts
+16
-0
add-client.vue
src/views/client/add-client.vue
+17
-12
add-follow.vue
src/views/client/add-follow.vue
+36
-45
join-create.vue
src/views/team/join-create.vue
+74
-0
my-info.vue
src/views/team/team-info/my-info.vue
+1
-1
No files found.
src/assets/icons/QRcode.png
0 → 100644
View file @
21205a30
377 Bytes
src/assets/icons/addfile.png
0 → 100644
View file @
21205a30
980 Bytes
src/assets/icons/right-arrow.png
0 → 100644
View file @
21205a30
1010 Bytes
src/assets/images/join-create.png
0 → 100644
View file @
21205a30
80.1 KB
src/layout/main-page.vue
View file @
21205a30
<
template
>
<div
class=
"main-page min-h-screen
bg-common-b
g"
>
<div
class=
"main-page min-h-screen
"
:class=
"mainB
g"
>
<div
class=
"header-wrapper fixed top-0 left-0 w-screen z-50"
:class=
"headerBg"
>
<div
class=
"header relative flex justify-center items-center py-3 h-12"
>
<div
class=
"h-action-wrapper absolute left-3 top-1/2 transform -translate-y-1/2 flex justify-center items-center"
>
...
...
@@ -42,6 +42,10 @@ export default Vue.extend({
type
:
Boolean
,
default
:
false
},
mainBg
:
{
type
:
String
,
default
:
'bg-common-bg'
},
headerBg
:
{
type
:
String
,
default
:
'bg-common-bg'
...
...
src/router/team.ts
View file @
21205a30
...
...
@@ -197,6 +197,22 @@ export const teamRoutes: Array<RouteConfig> = [
meta
:{
title
:
'团队头像'
}
},
{
path
:
'my-info'
,
name
:
'Myinfo'
,
component
:
()
=>
import
(
'@/views/team/team-info/my-info.vue'
),
meta
:{
title
:
'我的信息'
}
},
{
path
:
'join-create'
,
name
:
'JoinCreate'
,
component
:
()
=>
import
(
'@/views/team/join-create.vue'
),
meta
:{
title
:
'加入或创建团队'
}
}
]
}
...
...
src/views/client/add-client.vue
View file @
21205a30
<
template
>
<div
class=
"add-client"
>
<main-page
left-arrow
@
click-left=
"handleClickLeft"
>
<div
class=
"px-4 pt-14"
>
<div
class=
"px-4 pt-14
pb-16
"
>
<input-cell
v-model=
"name"
required
...
...
@@ -26,7 +26,7 @@
slot=
"prefix"
type=
"png"
:path=
"require('@/assets/icons/y-add.png')"
class-name=
"w-
7 h-7
mr-3"
class-name=
"w-
6.5 h-6.5
mr-3"
/>
</input-cell>
<input-cell
...
...
@@ -37,13 +37,16 @@
class=
"mt-4"
/>
<c-cell
dot
>
<app-icon
slot=
"prefix"
type=
"png"
:path=
"require('@/assets/icons/location.png')"
class-name=
"w-4 h-4 mb-2 mr-2"
/>
<div
slot=
"prefix"
class=
"text-text-secondary"
>
支持地图定位
</div>
<div
slot=
"prefix"
class=
"flex "
>
<div
class=
"flex items-center"
>
<app-icon
type=
"png"
:path=
"require('@/assets/icons/location.png')"
class-name=
"w-4 h-5 self-center"
/>
</div>
<div
class=
"text-text-secondary mx-2"
>
支持地图定位
</div>
</div>
</c-cell>
<input-cell
v-model=
"company"
...
...
@@ -63,9 +66,11 @@
placeholder=
"请输入备注"
class=
"mt-4"
/>
<c-cell
dot
title=
"跟进人"
class=
"mt-4"
/>
<div
class=
"py-10"
>
<c-button
round
class=
""
buttonBg=
"bg-color-primary"
>
完成
</c-button>
<div
class=
"mb-8"
>
<c-cell
dot
title=
"跟进人"
class=
"mt-4"
/>
</div>
<div
class=
"fixed px-4 py-1.5 bottom-0 left-0 w-full"
>
<c-button>
完成
</c-button>
</div>
</div>
</main-page>
...
...
src/views/client/add-follow.vue
View file @
21205a30
...
...
@@ -13,7 +13,13 @@
multiple
accept=
".doc, .docx, .xml, .xlsx, .pdf, audio/*, image/*, video/*"
class=
"mb-2 ml-4"
>
<app-icon
type=
"png"
:path=
"require('@/assets/icons/addfile.png')"
class-name=
"w-20 h-20 mr-3"
/>
</van-uploader>
</div>
<c-cell
dot
...
...
@@ -22,45 +28,33 @@
@
click=
"showPopup"
:content=
"content1"
/>
<van-
popup
<van-
action-sheet
v-model=
"show"
round
position=
"bottom"
:style=
"
{ height: '30%' }"
class="bg-common-bg"
>
<van-cell-group
v-for=
"(item, index) in items"
:key=
"index"
class=
"text-center"
>
<van-cell
@
click=
"clickHandle(index)"
>
<div
class=
"text-center py-2"
>
{{
item
.
action
}}
</div>
</van-cell>
</van-cell-group>
</van-popup>
:actions=
"actions"
cancel-text=
"取消"
close-on-click-action
@
cancel=
"onCancel"
@
select=
"onSelect"
/>
<div
class=
"flex
bg-blue-50 w-full mt-4 rounded-md object-center
"
class=
"flex
bg-blue-50 w-full mt-4 rounded-md
"
v-show=
"isShow"
>
<div
class=
"flex
pl-4
"
>
<div
class=
"flex
items-center pl-4
"
>
<app-icon
type=
"png"
:path=
"require('@/assets/icons/location.png')"
class-name=
"w-4 h-4
self
-center"
class-name=
"w-4 h-4
items
-center"
></app-icon>
</div>
<div>
<p
class=
"my-3 mx-3 text-base font-normal"
>
这里是定位地址么什么什么什么什么什么
什么什么v什么什么什么什么什么什么v么v
的
这里是定位地址么什么什么什么什么什么的
</p>
</div>
</div>
<c-button
round
class=
"mt-20"
buttonBg=
"bg-color-primary"
>
<c-button
class=
"mt-20"
>
完成
</c-button>
</div>
...
...
@@ -70,14 +64,16 @@
<
script
lang=
"ts"
>
import
Vue
from
"vue"
;
import
{
Popup
}
from
"vant"
;
import
{
Uploader
}
from
"vant"
;
import
{
Cell
,
CellGroup
}
from
"vant"
;
import
{
ActionSheet
}
from
'vant'
;
import
{
Icon
}
from
'vant'
;
Vue
.
use
(
Icon
);
Vue
.
use
(
ActionSheet
);
Vue
.
use
(
Cell
);
Vue
.
use
(
CellGroup
);
Vue
.
use
(
Uploader
);
Vue
.
use
(
Popup
);
export
default
Vue
.
extend
({
name
:
"Add-follow"
,
components
:
{
...
...
@@ -93,21 +89,16 @@ export default Vue.extend({
return
{
show
:
false
,
isShow
:
false
,
content1
:
""
,
content1
:
"
远程沟通
"
,
content2
:
"这里是定位地址么什么什么什么什么什么什么什么v什么什么什么什么什么什么v么v的"
,
actions
:
[{
name
:
'远程沟通'
},
{
name
:
'外勤拜访'
}],
fileList
:
[
// { url: 'https://img01.yzcdn.cn/vant/leaf.jpg' },
// // Uploader 根据文件后缀来判断是否为图片文件
// // 如果图片 URL 中不包含类型信息,可以添加 isImage 标记来声明
// { url: 'https://cloud-image', isImage: true },
],
items
:
[
{
action
:
"远程沟通"
},
{
action
:
"外勤拜访"
},
{
action
:
"取消"
},
],
};
},
methods
:
{
...
...
@@ -118,21 +109,21 @@ export default Vue.extend({
// 此时可以自行将文件上传至服务器
console
.
log
(
file
);
},
showPopup
()
{
this
.
show
=
true
;
showPopup
(){
this
.
show
=
true
},
clickHandle
(
index
:
number
)
{
this
.
content1
=
this
.
items
[
index
].
action
;
this
.
show
=
!
this
.
show
;
if
(
index
==
0
)
{
this
.
isShow
=
false
;
}
else
if
(
index
==
1
)
{
this
.
isShow
=
true
;
}
else
{
this
.
content1
=
""
;
this
.
isShow
=
false
;
onSelect
(
item
:
{
name
:
string
;
})
{
this
.
show
=
false
;
this
.
content1
=
item
.
name
;
if
(
item
.
name
==
'外勤拜访'
){
this
.
isShow
=
true
;
}
else
{
this
.
isShow
=
false
;
}
},
onCancel
()
{
this
.
show
=
false
},
},
computed
:
{},
});
...
...
src/views/team/join-create.vue
0 → 100644
View file @
21205a30
<
template
>
<!-- 加入团队 -->
<div
class=
"team-frame"
>
<main-page
main-bg=
"bg-white"
header-bg=
"bg-white"
left-arrow
@
click-left=
"$router.go(-1)"
>
<div
class=
"px-4 pt-14 "
>
<img
src=
"@/assets/images/join-create.png"
alt=
""
>
<div
class=
"shadow-lg px-4 py-6 mt-8"
>
<div
class=
"flex font-semibold"
>
<div
class=
" text-tag-yellow"
>
加入
</div>
团队
</div>
<div
class=
"flex pt-2"
>
<div
class=
"w-60 text-sm font-medium"
>
如果你的团队或企业已经在使用chat,可通过搜索团队号或二维码加入团队,与成员一起沟通协作,高效作业。
</div>
<div
class=
"flex items-center justify-end pl-10"
>
<app-icon
type=
"png"
:path=
"require('@/assets/icons/right-arrow.png')"
class-name=
"w-3 h-5"
/>
</div>
</div>
</div>
<div
class=
"shadow-lg px-4 py-6 mt-4"
>
<div
class=
"flex font-semibold"
>
<div
class=
"text-tag-red"
>
创建
</div>
团队
</div>
<div
class=
"flex pt-2"
>
<div
class=
"w-60 text-sm font-medium"
>
通过创建团队,你将直接称为团队或企业负责人,可添加成员,让整个团队一起享受高效的去中心化沟通协
</div>
<div
class=
"flex items-center justify-end pl-10"
>
<app-icon
type=
"png"
:path=
"require('@/assets/icons/right-arrow.png')"
class-name=
"w-3 h-5"
/>
</div>
</div>
</div>
</div>
</main-page>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
'vue'
export
default
Vue
.
extend
({
name
:
'JoinCreate'
,
components
:
{
'main-page'
:
()
=>
import
(
'@/layout/main-page.vue'
),
"app-icon"
:
()
=>
import
(
"@/components/common/Icon.vue"
),
},
created
()
{
// console.log(Mock, 'mock')
},
data
()
{
return
{
}
},
methods
:
{
}
})
</
script
>
<
style
lang=
"less"
>
</
style
>
\ No newline at end of file
src/views/team/team-info/my-info.vue
View file @
21205a30
...
...
@@ -8,7 +8,7 @@
>
<app-icon
slot=
"right"
icon-name=
"code"
icon-name=
"
QR
code"
class-name=
"w-4 h-4"
@
click=
"$router.push('/tag')"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment