Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 090809a4
authored
Dec 30, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
H5优化
1 parent
7f513d26
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
67 deletions
linkwe-mobile/src/.env.test
linkwe-mobile/src/router/index.js
linkwe-mobile/src/views/communityOperating/oldCustomer/panel.vue
linkwe-mobile/src/views/communityOperating/task/list.vue
linkwe-mobile/src/.env.test
deleted
100644 → 0
View file @
7f513d2
# 测试环境配置
ENV = 'test'
# 基础api
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/api'
# 路由基础路径
VUE_APP_BASE_URL = '/'
linkwe-mobile/src/router/index.js
View file @
090809a
...
...
@@ -13,13 +13,11 @@ const routes = [
title
:
'首页'
}
},
// 聊天素材
{
path
:
'/chat'
,
name
:
'chat'
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/chat'
),
component
:
()
=>
import
(
'../views/chat'
),
meta
:
{
title
:
'chat'
}
...
...
@@ -28,11 +26,7 @@ const routes = [
{
path
:
'/portrait'
,
name
:
'portrait'
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/portrait/index'
),
component
:
()
=>
import
(
'../views/portrait/index'
),
meta
:
{
title
:
'portrait'
}
...
...
@@ -41,13 +35,7 @@ const routes = [
{
path
:
'/customerDetail'
,
name
:
'customerDetail'
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/portrait/customerDetail.vue'
),
component
:
()
=>
import
(
'../views/portrait/customerDetail.vue'
),
hidden
:
true
,
meta
:
{
title
:
''
...
...
@@ -57,11 +45,7 @@ const routes = [
{
path
:
'/community'
,
name
:
'community'
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/portrait/community.vue'
),
component
:
()
=>
import
(
'../views/portrait/community.vue'
),
hidden
:
true
,
meta
:
{
title
:
''
...
...
@@ -71,35 +55,22 @@ const routes = [
{
path
:
'/groupCode'
,
name
:
'groupCode'
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/groupCode/index'
),
component
:
()
=>
import
(
'../views/groupCode/index'
),
hidden
:
true
,
meta
:
{
title
:
''
,
noAuth
:
true
}
},
//
群活码扫描跳转页面
//
标签建群+群sop
{
path
:
'/task'
,
// name: 'task',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/communityOperating/task/index'
),
component
:
()
=>
import
(
'../views/communityOperating/task/index'
),
children
:
[
{
path
:
''
,
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/communityOperating/task/list'
),
component
:
()
=>
import
(
'../views/communityOperating/task/list'
),
hidden
:
true
,
meta
:
{
title
:
''
...
...
@@ -109,10 +80,7 @@ const routes = [
{
path
:
'state'
,
name
:
'taskState'
,
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/communityOperating/task/state.vue'
),
component
:
()
=>
import
(
'../views/communityOperating/task/state.vue'
),
hidden
:
true
,
meta
:
{
title
:
''
,
...
...
@@ -126,17 +94,11 @@ const routes = [
noAuth
:
true
}
},
//
群活码扫描跳转页面
//
关键词群
{
path
:
'/keywords'
,
name
:
'keywords'
,
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component
:
()
=>
import
(
/* webpackChunkName: "about" */
'../views/communityOperating/keywords/index'
),
component
:
()
=>
import
(
'../views/communityOperating/keywords/index'
),
hidden
:
true
,
meta
:
{
title
:
''
...
...
linkwe-mobile/src/views/communityOperating/oldCustomer/panel.vue
View file @
090809a
...
...
@@ -2,7 +2,7 @@
<div>
<div
class=
"task-wrapper"
>
<div
class=
"header"
>
<span>
老客
标签建群
</span>
<span>
标签建群
</span>
<div>
{{
task
.
createTime
}}
</div>
</div>
...
...
@@ -11,7 +11,9 @@
{{
task
.
welcomeMsg
}}
</div>
<div
class=
"copy-wrapper"
v-show=
"showCopy"
>
<van-button
:class=
"'copy-btn_' + task.taskId"
:data-clipboard-text=
"task.welcomeMsg"
>
复制
</van-button>
<van-button
:class=
"'copy-btn_' + task.taskId"
:data-clipboard-text=
"task.welcomeMsg"
>
复制
</van-button>
</div>
</div>
...
...
@@ -187,11 +189,19 @@ export default {
let
groupCodeInfo
=
this
.
task
.
groupCodeInfo
if
(
window
.
location
.
hash
[
0
]
===
'#'
)
{
return
(
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
)
}
return
window
.
location
.
origin
+
window
.
location
.
pathname
+
'groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
return
(
window
.
location
.
origin
+
window
.
location
.
pathname
+
'groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
)
}
},
...
...
linkwe-mobile/src/views/communityOperating/task/list.vue
View file @
090809a
...
...
@@ -6,11 +6,25 @@
</van-tabs>
<div
class=
"type-area"
>
<van-button
round
size=
"small"
@
click=
"taskType = 0"
:type=
"taskType === 0 ? 'info' : 'default'"
>
全部
</van-button>
<van-button
round
size=
"small"
@
click=
"taskType = 1"
:type=
"taskType === 1 ? 'info' : 'default'"
>
老客标签建群
</van-button
<van-button
round
size=
"small"
@
click=
"taskType = 0"
:type=
"taskType === 0 ? 'info' : 'default'"
>
全部
</van-button
>
<van-button
round
size=
"small"
@
click=
"taskType = 2"
:type=
"taskType === 2 ? 'info' : 'default'"
<van-button
round
size=
"small"
@
click=
"taskType = 1"
:type=
"taskType === 1 ? 'info' : 'default'"
>
标签建群
</van-button
>
<van-button
round
size=
"small"
@
click=
"taskType = 2"
:type=
"taskType === 2 ? 'info' : 'default'"
>
群SOP
</van-button
>
</div>
...
...
@@ -29,7 +43,12 @@
></OldCustomerPanel>
</
template
>
<
template
v-else
>
<SOPPanel
:key=
"task.ruleId"
:task=
"task"
:state=
"isDone ? true : false"
@
refresh=
"getTasks"
></SOPPanel>
<SOPPanel
:key=
"task.ruleId"
:task=
"task"
:state=
"isDone ? true : false"
@
refresh=
"getTasks"
></SOPPanel>
</
template
>
</template>
</template>
...
...
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