Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a7ac60aa
authored
Nov 24, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx/dj-scrm-wx-work-attachment-customer
2 parents
cb703fdb
eefa653f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
68 deletions
src/components/ScrollView.vue
src/components/Tip.vue
src/main.js
src/views/customerDetails/add.vue
src/views/customerDetails/index.vue
src/views/tag/index.vue
vue.config.js
src/components/ScrollView.vue
View file @
a7ac60a
<
template
>
<div
:class=
"['scroll-view', ScrollViewclass]"
>
<van-list
v-model=
"loading"
:finished=
"finished"
finished-text=
"到底啦!!"
@
load=
"onLoad"
offset=
"100"
:immediate-check=
"false"
>
<div
:class=
"['scroll-view', ScrollViewclass]"
id=
"van-list"
>
<van-list
v-model=
"loading"
:finished=
"finished"
finished-text=
"到底啦!!"
@
load=
"onLoad"
offset=
"100"
:immediate-check=
"false"
>
<slot></slot>
</van-list>
</div>
...
...
@@ -16,19 +9,21 @@
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
'ScrollView'
,
data
()
{
data
()
{
return
{
loading
:
false
,
finished
:
false
,
finished
:
false
}
},
props
:
[
'ScrollViewclass'
],
mounted
()
{
mounted
()
{
},
methods
:
{
onLoad
()
{
onLoad
()
{
this
.
$emit
(
'ReachBottom'
)
}
,
}
}
}
</
script
>
...
...
@@ -38,7 +33,7 @@ export default {
overflow-y
:
scroll
;
box-sizing
:
border-box
;
}
.van-list
{
.van-list
{
background-color
:
#ffffff
;
}
</
style
>
\ No newline at end of file
src/components/Tip.vue
View file @
a7ac60a
...
...
@@ -28,7 +28,6 @@ export default {
<
style
lang=
"scss"
scoped
>
.hint-tip
{
margin
:
0
16px
;
width
:
375px
;
height
:
40px
;
line-height
:
40px
;
background
:
#f7f7f7
;
...
...
src/main.js
View file @
a7ac60a
...
...
@@ -38,8 +38,8 @@ Vue.prototype.to = function (name, params) {
Vue
.
config
.
productionTip
=
false
import
VConsole
from
'vconsole'
const
vConsole
=
new
VConsole
()
//
import VConsole from 'vconsole'
//
const vConsole = new VConsole()
const
isMock
=
true
fetchConfig
(
!
isMock
).
then
(
res
=>
{
...
...
src/views/customerDetails/add.vue
View file @
a7ac60a
...
...
@@ -55,17 +55,13 @@ export default {
}
},
props
:
{
data
:
{
type
:
Array
,
default
:
()
=>
[]
},
tabIndex
:
{
type
:
Number
,
default
:
0
}
},
created
()
{
this
.
customerList
=
this
.
data
this
.
init
()
},
computed
:
{
...
...
@@ -91,8 +87,7 @@ export default {
this
.
status
=
newVal
}
this
.
init
()
},
immediate
:
true
}
}
},
methods
:
{
...
...
@@ -286,10 +281,10 @@ export default {
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
375px
!important
;
width
:
375px
!important
;
height
:
1px
;
opacity
:
0.3
;
background-color
:
#c3c3c3
!important
;
background-color
:
#c3c3c3
!important
;
}
}
.page-type-0
{
...
...
src/views/customerDetails/index.vue
View file @
a7ac60a
<
template
>
<div
class=
"container-wrap"
>
<tab
:list=
"list"
:sticky=
"sticky"
:index=
"tabIndex"
@
change=
"changeTabs"
></tab>
<!-- 添加 待通过 全部-->
<add
v-if=
"tabIndex == 0 || tabIndex == 1 || tabIndex == 3"
:tabIndex=
"tabIndex"
:data=
"customerList"
></add>
<tab
:list=
"list"
:sticky=
"sticky"
:index=
"tabIndex"
@
change=
"changeTabs"
></tab>
<!-- 已通过 -->
<tag
:isTitle=
"isTitle"
v-else-if=
"tabIndex == 2"
:data=
"customerList"
></tag>
<tag
:isTitle=
"isTitle"
v-if=
"tabIndex == 2"
id=
"tabId"
></tag>
<!-- 添加 待通过 全部-->
<add
v-else
:tabIndex=
"tabIndex"
id=
"tabId"
></add>
</div>
</
template
>
<
script
>
...
...
@@ -19,7 +19,7 @@ export default {
isTitle
:
false
,
//是否显示search组件
tabIndex
:
0
,
status
:
0
,
customerList
:
[]
}
},
...
...
@@ -27,27 +27,14 @@ export default {
add
,
tag
},
created
()
{
// this.init()
},
created
()
{},
methods
:
{
// 消息盒子-好友列表
// init() {
// let search = {
// taskId: this.taskId,
// status: this.status
// }
// groupCustomer.getCustomerList(search).then(res => {
// if (res.code == 0) {
// this.customerList = res.data
// } else {
// this.customerList = []
// }
// })
// },
changeTabs
(
e
)
{
let
tabTop
=
document
.
querySelector
(
'#tabId'
).
offsetTop
this
.
$nextTick
(()
=>
{
document
.
querySelector
(
'#van-list'
)
!=
null
?
document
.
querySelector
(
'#van-list'
).
scrollTop
=
tabTop
+
'px'
:
''
})
this
.
tabIndex
=
e
// this.init()
}
}
}
...
...
src/views/tag/index.vue
View file @
a7ac60a
<
template
>
<div
class=
"
c
ontainer"
>
<div
class=
"
tagC
ontainer"
>
<search
placeholder=
"请输入关键字"
v-if=
"isTitle"
:keyword=
"keyword"
@
search=
"searchKeyword"
></search>
<tip
:title=
"title"
></tip>
<template
v-if=
"customerList && customerList.length > 0"
>
...
...
@@ -79,8 +79,8 @@ export default {
},
created
()
{
//获取userid
this
.
taskId
=
this
.
$route
.
query
.
taskId
?
this
.
$route
.
query
.
taskId
:
'e0e1a10cf50f427bb6d35906cf3dbf21'
;
this
.
getuserInfo
()
this
.
taskId
=
this
.
$route
.
query
.
taskId
?
this
.
$route
.
query
.
taskId
:
'e0e1a10cf50f427bb6d35906cf3dbf21'
this
.
getuserInfo
()
//初始化数据
if
(
this
.
isTitle
)
{
this
.
init
()
...
...
@@ -171,7 +171,7 @@ export default {
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{
window
.
$wx
.
openEnterpriseChat
(
seach
).
then
(
res
=>
{
// console.log(res)
// console.log(res)
})
})
},
...
...
@@ -183,7 +183,7 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.
c
ontainer
{
.
tagC
ontainer
{
.customerList
{
//
background
:
#fff
;
.content
{
...
...
@@ -297,21 +297,21 @@ export default {
}
}
.buttomLine
{
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
375px
!important
;
height
:
1px
;
opacity
:
0.3
;
background-color
:
#c3c3c3
!important
;
}
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
375px
!important
;
height
:
1px
;
opacity
:
0.3
;
background-color
:
#c3c3c3
!important
;
}
}
.
c
ontainer
/
deep
/
.van-checkbox__icon--checked
.van-icon
{
.
tagC
ontainer
/
deep
/
.van-checkbox__icon--checked
.van-icon
{
color
:
#fff
;
background-color
:
#5850ff
!important
;
border-color
:
#5850ff
!important
;
}
.
c
ontainer
/
deep
/
.van-checkbox__icon
.van-icon
{
.
tagC
ontainer
/
deep
/
.van-checkbox__icon
.van-icon
{
width
:
16px
;
height
:
16px
;
}
...
...
vue.config.js
View file @
a7ac60a
...
...
@@ -2,6 +2,7 @@
const
path
=
require
(
'path'
)
const
defaultSettings
=
require
(
'./src/config/conf.js'
)
const
BundleAnalyzerPlugin
=
require
(
'webpack-bundle-analyzer'
).
BundleAnalyzerPlugin
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
// page title
const
name
=
defaultSettings
.
title
||
'vue mobile template'
...
...
@@ -48,8 +49,9 @@ const spritesmithFunction = data => {
return
`
${
shared
}
\n
${
perSprite
}
`
}
module
.
exports
=
{
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-group-chat/'
,
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main/', // 署应用包时的基本 URL。 vue-router hash 模式使用
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-work-main/'
,
// 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router hash 模式使用
// publicPath: '/dj-scrm-wx-work-attachment-customer/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir
:
'dist'
,
// 生产环境构建文件的目录
...
...
@@ -84,7 +86,7 @@ module.exports = {
scss
:
{
// 向全局sass样式传入共享的全局变量, $src可以配置图片cdn前缀
// 详情: https://cli.vuejs.org/guide/css.html#passing-options-to-pre-processor-loaders
additional
Data
:
`
prepend
Data
:
`
@import "assets/css/mixin.scss";
@import "assets/css/variables.scss";
$cdn: "
${
defaultSettings
.
cdn
}
";
...
...
@@ -132,9 +134,11 @@ module.exports = {
// config.externals = externals
// }
},
chainWebpack
:
config
=>
{
config
.
plugins
.
delete
(
'preload'
)
// TODO: need test
config
.
plugins
.
delete
(
'prefetch'
)
// TODO: need test
// 别名 alias
config
.
resolve
.
alias
.
set
(
'@'
,
resolve
(
'src'
))
...
...
@@ -144,6 +148,7 @@ module.exports = {
.
set
(
'components'
,
resolve
(
'src/components'
))
.
set
(
'plugins'
,
resolve
(
'src/components'
))
.
set
(
'utils'
,
resolve
(
'src/utils'
))
/**
* 添加CDN参数到htmlWebpackPlugin配置中
*/
...
...
@@ -155,6 +160,7 @@ module.exports = {
// }
// return args
// })
/**
* 设置保留空格
*/
...
...
@@ -178,6 +184,7 @@ module.exports = {
config
// https://webpack.js.org/configuration/devtool/#development
.
when
(
!
IS_PROD
,
config
=>
config
.
devtool
(
'cheap-source-map'
))
config
.
when
(
IS_PROD
,
config
=>
{
config
.
plugin
(
'ScriptExtHtmlWebpackPlugin'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment