Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 ecdd6625
authored
Oct 24, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bugfix
1 parent
50b4f246
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
231 additions
and
83 deletions
app.json
pages/mineDetail/customerManagement/customerManagement.wxml
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
pages/tab/mine/mine.js
pages/tab/mine/mine.scss
pages/tab/output/components/SceneBox/SceneBox.wxss
pages/tab/output/components/merchant/mrechant.js
pages/tab/output/components/merchant/mrechant.scss
pages/tab/output/components/merchant/mrechant.wxml
pages/tab/output/output.js
pages/tab/output/output.scss
utils/request/environment.js
app.json
View file @
ecdd662
{
{
"pages"
:
[
"pages"
:
[
"login/loading/loading"
,
"pages/tab/index/index"
,
"pages/tab/index/index"
,
"login/loading/loading"
,
"pages/tab/output/output"
,
"pages/tab/output/output"
,
"pages/tab/mine/mine"
,
"pages/tab/mine/mine"
,
"pages/webView/webView"
,
"pages/webView/webView"
,
...
...
pages/mineDetail/customerManagement/customerManagement.wxml
View file @
ecdd662
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<view class="customerManagementCon">
<view class="customerManagementCon">
<!-- required hidden="{{hidden}}" -->
<!-- required hidden="{{hidden}}" -->
<scroll-view
<scroll-view
style="{{ margin-right: 5px;}}"
wx:if="{{customerList.length}}"
wx:if="{{customerList.length}}"
scroll-y
scroll-y
enable-back-to-top
enable-back-to-top
...
...
pages/tab/index/index.js
View file @
ecdd662
...
@@ -43,9 +43,35 @@ Page({
...
@@ -43,9 +43,35 @@ Page({
],
],
apiData
:
[],
apiData
:
[],
actNum
:
3
,
//car 场景选择
actNum
:
3
,
//car 场景选择
tabIndx
:
1
,
tabIndx
:
0
,
navList
:
[
'看线索'
,
'看产品'
],
navList
:
[
'看线索'
,
'看产品'
],
typeList
:
[
'联系电话'
,
'意向客户'
,
'线索来源'
,
'重置'
],
typeList
:
[
{
0
:
'无电话'
,
1
:
'有电话'
,
2
:
'联系电话'
,
selectIndex
:
2
,
key
:
'hasPhone'
},
{
0
:
'非意向客户'
,
1
:
'是意向客户'
,
2
:
'意向客户'
,
selectIndex
:
2
,
key
:
'starTag'
},
{
0
:
'来自访客'
,
1
:
'来自门店'
,
2
:
'线索来源'
,
selectIndex
:
2
,
key
:
'clueSource'
},
{
2
:
'重置'
,
selectIndex
:
2
}
],
clueList
:
[],
clueList
:
[],
// 预估弹框
// 预估弹框
visible
:
false
,
visible
:
false
,
...
@@ -256,16 +282,16 @@ Page({
...
@@ -256,16 +282,16 @@ Page({
this
.
data
.
senceData
.
forEach
((
item
,
index
)
=>
{
this
.
data
.
senceData
.
forEach
((
item
,
index
)
=>
{
item
.
productList
.
forEach
((
i
,
lastIndex
)
=>
{
item
.
productList
.
forEach
((
i
,
lastIndex
)
=>
{
if
(
i
.
profit
)
{
if
(
i
.
profit
)
{
let
sale
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].sale`
;
let
sale
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].sale`
let
name
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].profit`
;
let
name
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].profit`
let
flowKey
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].flow`
;
let
flowKey
=
`senceData[
${
index
}
].productList[
${
lastIndex
}
].flow`
let
profit
=
_this
.
formula
(
i
.
productType
,
sales
,
flow
)
;
let
profit
=
_this
.
formula
(
i
.
productType
,
sales
,
flow
)
console
.
log
(
name
,
profit
)
;
console
.
log
(
name
,
profit
)
this
.
setData
({
this
.
setData
({
[
name
]:
profit
,
[
name
]:
profit
,
[
sale
]:
sales
,
[
sale
]:
sales
,
[
flowKey
]:
flow
,
[
flowKey
]:
flow
})
;
})
}
}
})
})
})
})
...
@@ -478,65 +504,69 @@ Page({
...
@@ -478,65 +504,69 @@ Page({
this
.
getTagApi
(
params
)
this
.
getTagApi
(
params
)
},
},
filterTypeFn
(
e
)
{
filterTypeFn
(
e
)
{
let
{
typeList
}
=
this
.
data
let
index
=
e
.
currentTarget
.
dataset
.
index
let
index
=
e
.
currentTarget
.
dataset
.
index
let
itemList
=
[]
// let itemList = []
let
params
=
{
// let params = {
clueSource
:
''
,
// clueSource: '',
hasPhone
:
''
,
// hasPhone: '',
starTag
:
''
// starTag: ''
}
// }
console
.
log
(
'index: '
,
index
)
// console.log('index: ', index)
switch
(
index
)
{
// 重置筛选
case
0
:
if
(
index
==
3
)
{
itemList
=
[
'无'
,
'有'
]
typeList
.
forEach
(
item
=>
{
break
item
.
selectIndex
=
2
case
1
:
})
itemList
=
[
'否'
,
'是'
]
this
.
setData
({
break
typeList
case
2
:
})
itemList
=
[
'访客'
,
'门店'
]
//线索来源(1访客,2门店)
return
this
.
getPageApi
()
break
case
3
:
params
=
{
clueSource
:
''
,
hasPhone
:
''
,
starTag
:
''
}
break
}
}
let
itemList
=
Object
.
values
(
typeList
[
index
]).
slice
(
0
,
2
)
itemList
.
push
(
'全部'
)
let
_this
=
this
let
_this
=
this
wx
.
pro
.
showActionSheet
({
wx
.
pro
.
showActionSheet
({
itemList
,
itemList
,
success
(
res
)
{
success
(
res
)
{
let
num
// 选中全部
if
(
index
==
2
)
{
let
selectIndex
=
res
.
tapIndex
num
=
res
.
tapIndex
+
1
typeList
[
index
].
selectIndex
=
selectIndex
}
else
{
let
params
=
typeList
.
reduce
((
obj
,
item
,
index
)
=>
{
num
=
res
.
tapIndex
if
(
item
[
'key'
])
{
}
selectIndex
=
index
==
2
?
selectIndex
+
1
:
selectIndex
switch
(
index
)
{
let
itemIndx
=
item
.
selectIndex
case
0
:
obj
[
item
[
'key'
]]
=
itemIndx
==
2
?
''
:
itemIndx
params
.
hasPhone
=
num
}
break
return
obj
case
1
:
},
{})
params
.
starTag
=
num
console
.
log
(
params
)
break
// let num
case
2
:
// if (index == 2) {
params
.
clueSource
=
num
// num = res.tapIndex + 1
break
// } else {
}
// num = res.tapIndex
// }
// switch (index) {
// case 0:
// params.hasPhone = num
// break
// case 1:
// params.starTag = num
// break
// case 2:
// params.clueSource = num
// break
// }
_this
.
setData
({
typeList
})
_this
.
getPageApi
(
params
)
_this
.
getPageApi
(
params
)
},
},
fail
(
res
)
{
fail
(
res
)
{
console
.
log
(
res
.
errMsg
)
console
.
log
(
res
.
errMsg
)
},
complete
(
res
)
{
console
.
log
(
'res: '
,
res
)
}
}
})
})
if
(
index
==
3
)
{
this
.
getPageApi
(
params
)
}
},
},
// 打电话
// 打电话
phoneCallFn
(
e
)
{
phoneCallFn
(
e
)
{
...
...
pages/tab/index/index.scss
View file @
ecdd662
...
@@ -3,6 +3,7 @@ page {
...
@@ -3,6 +3,7 @@ page {
width
:
100vw
;
width
:
100vw
;
background-color
:
#F2F3F7
!
important
;
background-color
:
#F2F3F7
!
important
;
}
}
.reclaim
{
.reclaim
{
.header-wrap
{
.header-wrap
{
position
:
sticky
;
position
:
sticky
;
...
@@ -11,6 +12,7 @@ page {
...
@@ -11,6 +12,7 @@ page {
background-size
:
100%
100%
;
background-size
:
100%
100%
;
margin-bottom
:
32rpx
;
margin-bottom
:
32rpx
;
z-index
:
1
;
z-index
:
1
;
.header
{
.header
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
...
@@ -20,12 +22,15 @@ page {
...
@@ -20,12 +22,15 @@ page {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
.tabContainer
{
.tabContainer
{
width
:
60%
;
width
:
60%
;
}
}
.left
{
.left
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.clue
{
.clue
{
position
:
relative
;
position
:
relative
;
margin-left
:
24px
;
margin-left
:
24px
;
...
@@ -34,13 +39,16 @@ page {
...
@@ -34,13 +39,16 @@ page {
font-size
:
14px
;
font-size
:
14px
;
color
:
#8a8c90
;
color
:
#8a8c90
;
}
}
.product
{
.product
{
position
:
relative
;
position
:
relative
;
}
}
.act
{
.act
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
22px
;
font-size
:
22px
;
color
:
#323436
;
color
:
#323436
;
&
:
:
after
{
&
:
:
after
{
position
:
absolute
;
position
:
absolute
;
left
:
50%
;
left
:
50%
;
...
@@ -55,13 +63,16 @@ page {
...
@@ -55,13 +63,16 @@ page {
}
}
}
}
}
}
.right
{
.right
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.img
{
.img
{
width
:
20px
;
width
:
20px
;
height
:
20px
;
height
:
20px
;
}
}
.apply
{
.apply
{
margin-left
:
4px
;
margin-left
:
4px
;
margin-right
:
16px
;
margin-right
:
16px
;
...
@@ -72,16 +83,19 @@ page {
...
@@ -72,16 +83,19 @@ page {
}
}
}
}
}
}
// .content{
// .content{
// position: relative;
// position: relative;
// }
// }
.clue
{
.clue
{
padding
:
0px
10px
0
;
padding
:
0px
10px
0
;
background-color
:
#f2f3f7
;
background-color
:
#f2f3f7
;
.types
{
.types
{
margin-bottom
:
8px
;
margin-bottom
:
8px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.type
{
.type
{
margin-left
:
8px
;
margin-left
:
8px
;
display
:
flex
;
display
:
flex
;
...
@@ -94,13 +108,19 @@ page {
...
@@ -94,13 +108,19 @@ page {
border-radius
:
14px
;
border-radius
:
14px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#8a8c90
;
color
:
#8a8c90
;
.point
{
.point
{
margin-left
:
2px
;
margin-left
:
2px
;
width
:
12px
;
width
:
12px
;
height
:
12px
;
height
:
12px
;
}
}
}
}
.active
{
color
:
#3964fe
;
}
}
}
.list
{
.list
{
.msg
{
.msg
{
padding
:
10px
16px
16px
;
padding
:
10px
16px
16px
;
...
@@ -109,6 +129,7 @@ page {
...
@@ -109,6 +129,7 @@ page {
background-color
:
#fff
;
background-color
:
#fff
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.like
{
.like
{
position
:
absolute
;
position
:
absolute
;
right
:
12px
;
right
:
12px
;
...
@@ -116,44 +137,52 @@ page {
...
@@ -116,44 +137,52 @@ page {
width
:
23px
;
width
:
23px
;
height
:
23px
;
height
:
23px
;
}
}
.name
{
.name
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
// font-weight: 400;
// font-weight: 400;
font-size
:
14px
;
font-size
:
14px
;
color
:
#323436
;
color
:
#323436
;
.avatar
{
.avatar
{
margin-left
:
2px
;
margin-left
:
2px
;
width
:
20px
;
width
:
20px
;
height
:
20px
;
height
:
20px
;
}
}
}
}
.line
{
.line
{
margin-top
:
10px
;
margin-top
:
10px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
height
:
0
;
height
:
0
;
border-bottom
:
#eeeeee
1px
dashed
;
border-bottom
:
#eeeeee
1px
dashed
;
}
}
.want-more
{
.want-more
{
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.want-btn
{
.want-btn
{
margin-top
:
10px
;
margin-top
:
10px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
var
(
--
btnColor
);
color
:
var
(
--
btnColor
);
}
}
.record
{
.record
{
margin-top
:
4px
;
margin-top
:
4px
;
margin-bottom
:
4px
;
margin-bottom
:
4px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
.action-wrap
{
.action-wrap
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#393b3e
;
color
:
#393b3e
;
}
}
// .action{
// .action{
// }
// }
...
@@ -165,18 +194,22 @@ page {
...
@@ -165,18 +194,22 @@ page {
color
:
#8a8c90
;
color
:
#8a8c90
;
}
}
}
}
.info
{
.info
{
margin-top
:
10px
;
margin-top
:
10px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.phone-wrap
{
.phone-wrap
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.phone
{
.phone
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#3666fe
;
color
:
#3666fe
;
}
}
.phone-img
{
.phone-img
{
margin-left
:
12px
;
margin-left
:
12px
;
margin-right
:
8px
;
margin-right
:
8px
;
...
@@ -184,11 +217,13 @@ page {
...
@@ -184,11 +217,13 @@ page {
height
:
20px
;
height
:
20px
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.copy
{
.copy
{
width
:
20px
;
width
:
20px
;
height
:
20px
;
height
:
20px
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.btn
{
.btn
{
width
:
85px
;
width
:
85px
;
height
:
24px
;
height
:
24px
;
...
@@ -200,11 +235,13 @@ page {
...
@@ -200,11 +235,13 @@ page {
line-height
:
24px
;
line-height
:
24px
;
}
}
}
}
.noDataImg
{
.noDataImg
{
width
:
512rpx
;
width
:
512rpx
;
height
:
512rpx
;
height
:
512rpx
;
margin-left
:
100rpx
;
margin-left
:
100rpx
;
position
:
relative
;
position
:
relative
;
.noDataTxt
{
.noDataTxt
{
font-family
:
PingFangSC-Regular
;
font-family
:
PingFangSC-Regular
;
font-size
:
24rpx
;
font-size
:
24rpx
;
...
@@ -215,16 +252,19 @@ page {
...
@@ -215,16 +252,19 @@ page {
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
}
}
}
}
.shop
{
.shop
{
.name-wrap
{
.name-wrap
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
}
}
.source
{
.source
{
font-size
:
10px
;
font-size
:
10px
;
color
:
#8a8c90
;
color
:
#8a8c90
;
}
}
.btn
{
.btn
{
border
:
1px
solid
var
(
--
btnColor
);
border
:
1px
solid
var
(
--
btnColor
);
border-radius
:
12px
;
border-radius
:
12px
;
...
@@ -232,14 +272,17 @@ page {
...
@@ -232,14 +272,17 @@ page {
font-size
:
12px
;
font-size
:
12px
;
color
:
var
(
--
btnColor
);
color
:
var
(
--
btnColor
);
}
}
.shop-action-wrap
{
.shop-action-wrap
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
}
}
.shop-record
{
.shop-record
{
width
:
100%
;
width
:
100%
;
}
}
.shop-source
{
.shop-source
{
margin-top
:
4px
;
margin-top
:
4px
;
width
:
100%
;
width
:
100%
;
...
@@ -249,17 +292,20 @@ page {
...
@@ -249,17 +292,20 @@ page {
}
}
}
}
}
}
.scene
{
.scene
{
margin
:
0
10px
16px
;
margin
:
0
10px
16px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.item-wrap
{
.item-wrap
{
// margin-right: 4px;
// margin-right: 4px;
position
:
relative
;
position
:
relative
;
width
:
86px
;
width
:
86px
;
height
:
90px
;
height
:
90px
;
border-radius
:
10px
;
border-radius
:
10px
;
}
}
.item
{
.item
{
// padding-top: 10px;
// padding-top: 10px;
width
:
86px
;
width
:
86px
;
...
@@ -267,28 +313,32 @@ page {
...
@@ -267,28 +313,32 @@ page {
background
:
#f7f8fc
;
background
:
#f7f8fc
;
border-radius
:
6px
;
border-radius
:
6px
;
}
}
.act
{
.act
{
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-size: 100% 100%;
// background-size: 100% 100%;
border
:
1px
solid
var
(
--
btnColor
);
border
:
1px
solid
var
(
--
btnColor
);
box-shadow
:
0
0
10px
#999
;
box-shadow
:
0
0
10px
#999
;
&
:
:
after
{
&
:
:
after
{
position
:
absolute
;
position
:
absolute
;
left
:
50%
;
left
:
50%
;
bottom
:
-7px
;
bottom
:
-7px
;
display
:block
;
display
:
block
;
content
:
""
;
content
:
""
;
width
:
6px
;
width
:
6px
;
height
:
6px
;
height
:
6px
;
border-bottom
:
1px
solid
var
(
--
btnColor
);
border-bottom
:
1px
solid
var
(
--
btnColor
);
border-right
:
1px
solid
var
(
--
btnColor
);
border-right
:
1px
solid
var
(
--
btnColor
);
transform
:
rotate
(
45deg
)
translateX
(
-50%
);
transform
:
rotate
(
45deg
)
translateX
(
-50%
);
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.item
{
.item
{
background
:
transparent
;
background
:
transparent
;
}
}
}
}
.img
{
.img
{
padding-top
:
10px
;
padding-top
:
10px
;
display
:
block
;
display
:
block
;
...
@@ -296,6 +346,7 @@ page {
...
@@ -296,6 +346,7 @@ page {
width
:
28px
;
width
:
28px
;
height
:
28px
;
height
:
28px
;
}
}
.name
{
.name
{
margin-bottom
:
2px
;
margin-bottom
:
2px
;
font-weight
:
500
;
font-weight
:
500
;
...
@@ -303,6 +354,7 @@ page {
...
@@ -303,6 +354,7 @@ page {
color
:
#323436
;
color
:
#323436
;
text-align
:
center
;
text-align
:
center
;
}
}
.msg
{
.msg
{
font-weight
:
400
;
font-weight
:
400
;
font-size
:
9px
;
font-size
:
9px
;
...
@@ -311,9 +363,11 @@ page {
...
@@ -311,9 +363,11 @@ page {
}
}
}
}
}
}
.guide
{
.guide
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
.guide-img
{
.guide-img
{
position
:
fixed
;
position
:
fixed
;
top
:
0
;
top
:
0
;
...
@@ -323,6 +377,7 @@ page {
...
@@ -323,6 +377,7 @@ page {
z-index
:
2
;
z-index
:
2
;
}
}
}
}
.chat
{
.chat
{
position
:
fixed
;
position
:
fixed
;
right
:
-4px
;
right
:
-4px
;
...
@@ -332,6 +387,7 @@ page {
...
@@ -332,6 +387,7 @@ page {
border-radius
:
50%
;
border-radius
:
50%
;
z-index
:
1
;
z-index
:
1
;
}
}
.output-value
{
.output-value
{
position
:
fixed
;
position
:
fixed
;
right
:
5px
;
right
:
5px
;
...
@@ -341,6 +397,7 @@ page {
...
@@ -341,6 +397,7 @@ page {
// border-radius: 50%;
// border-radius: 50%;
z-index
:
1
;
z-index
:
1
;
}
}
/* 测算弹窗 */
/* 测算弹窗 */
.dialog-wrapper
{
.dialog-wrapper
{
position
:
fixed
;
position
:
fixed
;
...
@@ -349,31 +406,36 @@ page {
...
@@ -349,31 +406,36 @@ page {
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
background-color
:
rgba
(
45
,
45
,
51
,
0
.50
);
background-color
:
rgba
(
45
,
45
,
51
,
0
.50
);
z-index
:
1
;
z-index
:
1
;
.dialog-box
{
.dialog-box
{
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
height
:
744rpx
;
height
:
744rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
box-shadow
:
0
-8rpx
20rpx
0
rgba
(
180
,
186
,
204
,
0
.32
);
box-shadow
:
0
-8rpx
20rpx
0
rgba
(
180
,
186
,
204
,
0
.32
);
border-radius
:
32rpx
32rpx
0
0
;
border-radius
:
32rpx
32rpx
0
0
;
}
}
.dialog-header
{
.dialog-header
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
32rpx
48rpx
;
padding
:
32rpx
48rpx
;
border-bottom
:
1rpx
solid
#eee
;
border-bottom
:
1rpx
solid
#eee
;
}
}
.header-btn
{
.header-btn
{
display
:
inline-block
;
display
:
inline-block
;
font-size
:
32rpx
;
font-size
:
32rpx
;
line-height
:
48rpx
;
line-height
:
48rpx
;
}
}
.btn-gray
{
.btn-gray
{
color
:
#6C737A
;
color
:
#6C737A
;
}
}
.btn-primary
{
.btn-primary
{
background-color
:
#fff
;
background-color
:
#fff
;
border
:
none
;
border
:
none
;
...
@@ -381,14 +443,17 @@ page {
...
@@ -381,14 +443,17 @@ page {
padding
:
0
;
padding
:
0
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#5850FF
;
color
:
#5850FF
;
width
:auto
;
width
:
auto
;
}
}
.
btn-primary
:
:
after
{
.
btn-primary
:
:
after
{
border
:
none
;
border
:
none
;
}
}
.dialog-content
{
.dialog-content
{
padding
:
40rpx
24rpx
60rpx
;
padding
:
40rpx
24rpx
60rpx
;
}
}
.dialog-title
{
.dialog-title
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
36rpx
;
font-size
:
36rpx
;
...
@@ -398,14 +463,16 @@ page {
...
@@ -398,14 +463,16 @@ page {
line-height
:
56rpx
;
line-height
:
56rpx
;
margin-bottom
:
24rpx
;
margin-bottom
:
24rpx
;
}
}
.dialog-form
{
.dialog-form
{
width
:
100%
;
width
:
100%
;
height
:
384rpx
;
height
:
384rpx
;
background-image
:
linear-gradient
(
179deg
,
rgba
(
123
,
112
,
255
,
0
.02
)
15%
,
rgba
(
99
,
92
,
255
,
0
.10
)
100%
);
background-image
:
linear-gradient
(
179deg
,
rgba
(
123
,
112
,
255
,
0
.02
)
15%
,
rgba
(
99
,
92
,
255
,
0
.10
)
100%
);
border-radius
:
8rpx
;
border-radius
:
8rpx
;
padding
:
32rpx
;
padding
:
32rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.form-item
{
.form-item
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -413,11 +480,13 @@ page {
...
@@ -413,11 +480,13 @@ page {
margin-bottom
:
24rpx
;
margin-bottom
:
24rpx
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.form-label
{
.form-label
{
width
:
256rpx
;
width
:
256rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#2D2D33
;
color
:
#2D2D33
;
}
}
.form-input
{
.form-input
{
width
:
216rpx
;
width
:
216rpx
;
padding
:
16rpx
20rpx
;
padding
:
16rpx
20rpx
;
...
@@ -426,10 +495,12 @@ page {
...
@@ -426,10 +495,12 @@ page {
margin-left
:
64rpx
;
margin-left
:
64rpx
;
margin-right
:
16rpx
;
margin-right
:
16rpx
;
}
}
.form-unit
{
.form-unit
{
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#6E6E7A
;
color
:
#6E6E7A
;
}
}
.dialog-btn
{
.dialog-btn
{
width
:
100%
;
width
:
100%
;
padding
:
24rpx
0
;
padding
:
24rpx
0
;
...
@@ -444,5 +515,4 @@ page {
...
@@ -444,5 +515,4 @@ page {
line-height
:
48rpx
;
line-height
:
48rpx
;
margin-top
:
40rpx
;
margin-top
:
40rpx
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.wxml
View file @
ecdd662
This diff is collapsed.
Click to expand it.
pages/tab/mine/mine.js
View file @
ecdd662
...
@@ -34,7 +34,7 @@ Page({
...
@@ -34,7 +34,7 @@ Page({
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'sessionId'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'auto_login_object'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$storage
.
rm
(
'userInfo'
)
wx
.
$router
.
go
(
'login.index'
)
wx
.
$router
.
reLaunch
(
'login.index'
)
})
})
}
}
}
}
...
...
pages/tab/mine/mine.scss
View file @
ecdd662
...
@@ -26,6 +26,7 @@ page {
...
@@ -26,6 +26,7 @@ page {
content
:
''
;
content
:
''
;
width
:
100%
;
width
:
100%
;
height
:
486rpx
;
height
:
486rpx
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/personal/bg.webp')
no-repeat
;
background-size
:
100%
486rpx
;
background-size
:
100%
486rpx
;
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
...
...
pages/tab/output/components/SceneBox/SceneBox.wxss
View file @
ecdd662
...
@@ -64,6 +64,20 @@
...
@@ -64,6 +64,20 @@
background-size: 100% 100%; */
background-size: 100% 100%; */
}
}
.active::after {
position: absolute;
left: 50%;
bottom: -7px;
display: block;
content: "";
width: 6px;
height: 6px;
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
background-color: #fff;
}
/* 选中 - end */
/* 选中 - end */
.scene-title {
.scene-title {
...
...
pages/tab/output/components/merchant/mrechant.js
View file @
ecdd662
...
@@ -6,7 +6,8 @@ const IMAGES = {
...
@@ -6,7 +6,8 @@ const IMAGES = {
arrow
:
`
${
IMG_URL
}
/output/arrow.png`
,
arrow
:
`
${
IMG_URL
}
/output/arrow.png`
,
funnel
:
`
${
IMG_URL
}
/output/funnel.png`
,
funnel
:
`
${
IMG_URL
}
/output/funnel.png`
,
money
:
`
${
IMG_URL
}
/output/money.png`
,
money
:
`
${
IMG_URL
}
/output/money.png`
,
paper
:
`
${
IMG_URL
}
/output/paper.png`
paper
:
`
${
IMG_URL
}
/output/paper.png`
,
link
:
`
${
IMG_URL
}
/output/link.webp`
}
}
Component
({
Component
({
/**
/**
...
@@ -31,6 +32,7 @@ Component({
...
@@ -31,6 +32,7 @@ Component({
current
:
0
,
current
:
0
,
totalMoney
:
0
,
totalMoney
:
0
,
totalOrder
:
0
,
totalOrder
:
0
,
startInd
:
0
,
list
:
[],
list
:
[],
nowList
:
[],
nowList
:
[],
todayList
:
[],
todayList
:
[],
...
@@ -78,14 +80,20 @@ Component({
...
@@ -78,14 +80,20 @@ Component({
let
that
=
this
let
that
=
this
let
{
index
}
=
e
.
currentTarget
.
dataset
let
{
index
}
=
e
.
currentTarget
.
dataset
let
{
dataObj
,
userInfo
,
list
}
=
this
.
data
let
{
dataObj
,
userInfo
,
list
}
=
this
.
data
const
itemList
=
[
'本月'
,
'本日'
,
'全部'
]
wx
.
showActionSheet
({
wx
.
showActionSheet
({
// '全部'
// '全部'
itemList
:
[
'本月'
,
'本日'
]
,
itemList
,
// 先处理成全部默认去请求
// 先处理成全部默认去请求
success
(
res
)
{
success
(
res
)
{
// if (res.tapIndex!=2) {
// if (res.tapIndex!=2) {
// let parmas =
// let parmas =
let
key
=
res
.
tapIndex
==
0
?
'monthTime'
:
'todayTime'
const
keyName
=
{
0
:
'monthTime'
,
1
:
'todayTime'
,
2
:
'defaultTime'
}
let
key
=
keyName
[
res
.
tapIndex
]
let
merchantId
=
list
[
index
][
'merchantId'
]
let
merchantId
=
list
[
index
][
'merchantId'
]
let
params
=
{
let
params
=
{
partnerMerchantId
:
userInfo
.
merchantId
,
// userInfo.merchantId
partnerMerchantId
:
userInfo
.
merchantId
,
// userInfo.merchantId
...
@@ -97,7 +105,7 @@ Component({
...
@@ -97,7 +105,7 @@ Component({
.
getMerchantById
(
params
)
.
getMerchantById
(
params
)
.
then
(
result
=>
{
.
then
(
result
=>
{
console
.
log
(
result
)
console
.
log
(
result
)
that
.
setMerchantObj
(
index
,
result
)
that
.
setMerchantObj
(
index
,
result
,
itemList
[
res
.
tapIndex
]
)
})
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{})
...
@@ -120,10 +128,15 @@ Component({
...
@@ -120,10 +128,15 @@ Component({
startTime
:
`
${
month
}
-01 00:00:00`
,
startTime
:
`
${
month
}
-01 00:00:00`
,
endTime
:
`
${
month
}
-
${
today
}
23:59:59`
endTime
:
`
${
month
}
-
${
today
}
23:59:59`
}
}
const
defaultTime
=
{
startTime
:
''
,
endTime
:
''
}
this
.
setData
({
this
.
setData
({
dataObj
:
{
dataObj
:
{
todayTime
,
todayTime
,
monthTime
monthTime
,
defaultTime
}
}
})
})
},
},
...
@@ -200,7 +213,8 @@ Component({
...
@@ -200,7 +213,8 @@ Component({
if
(
!
list
[
index
][
'showList'
][
sceneIdx
-
1
])
return
if
(
!
list
[
index
][
'showList'
][
sceneIdx
-
1
])
return
list
[
index
].
startInd
=
sceneIdx
-
1
list
[
index
].
startInd
=
sceneIdx
-
1
this
.
setData
({
this
.
setData
({
list
list
,
startInd
:
sceneIdx
})
})
},
},
getMerchantById
(
params
)
{
getMerchantById
(
params
)
{
...
@@ -217,10 +231,11 @@ Component({
...
@@ -217,10 +231,11 @@ Component({
})
})
})
})
},
},
setMerchantObj
(
index
,
item
)
{
setMerchantObj
(
index
,
item
,
selectName
)
{
console
.
log
(
item
)
console
.
log
(
item
)
item
=
item
[
0
]
item
=
item
[
0
]
let
obj
=
{}
let
obj
=
{}
obj
.
selectName
=
selectName
obj
.
totalMoney
=
item
?.
totalMoney
||
0
obj
.
totalMoney
=
item
?.
totalMoney
||
0
obj
.
totalOrder
=
item
?.
totalOrder
||
0
obj
.
totalOrder
=
item
?.
totalOrder
||
0
obj
.
merchantName
=
item
?.
merchantName
obj
.
merchantName
=
item
?.
merchantName
...
@@ -236,7 +251,8 @@ Component({
...
@@ -236,7 +251,8 @@ Component({
let
{
list
}
=
this
.
data
let
{
list
}
=
this
.
data
// item.list[index] = list[index]
// item.list[index] = list[index]
console
.
log
(
'listObj'
,
listObj
)
// console.log('listObj', listObj)
console
.
log
(
obj
.
selectName
)
let
listObj
=
`list[
${
index
}
]`
let
listObj
=
`list[
${
index
}
]`
this
.
setData
({
this
.
setData
({
[
listObj
]:
Object
.
assign
(
list
[
index
],
obj
)
[
listObj
]:
Object
.
assign
(
list
[
index
],
obj
)
...
@@ -248,7 +264,8 @@ Component({
...
@@ -248,7 +264,8 @@ Component({
let
{
current
}
=
e
.
detail
let
{
current
}
=
e
.
detail
this
.
setData
({
this
.
setData
({
totalMoney
:
list
[
current
].
totalMoney
,
totalMoney
:
list
[
current
].
totalMoney
,
totalOrder
:
list
[
current
].
totalOrder
totalOrder
:
list
[
current
].
totalOrder
,
startInd
:
0
})
})
// list
// list
if
(
current
>=
1
&&
list
[
current
+
1
]
&&
list
[
current
+
1
].
startInd
==
-
1
)
{
if
(
current
>=
1
&&
list
[
current
+
1
]
&&
list
[
current
+
1
].
startInd
==
-
1
)
{
...
...
pages/tab/output/components/merchant/mrechant.scss
View file @
ecdd662
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
}
}
.short
{
.short
{
height
:
1
0
50rpx
!
important
;
height
:
1
1
50rpx
!
important
;
}
}
.funneItem
:nth-of-type
(
1
)
{
.funneItem
:nth-of-type
(
1
)
{
...
@@ -244,9 +244,17 @@
...
@@ -244,9 +244,17 @@
}
}
.navOhterApp
{
.navOhterApp
{
display
:
flex
;
align-items
:
center
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#5C7097
;
color
:
#5C7097
;
// margin: 50rpx 20rpx 0;
// margin: 50rpx 20rpx 0;
margin-bottom
:
50rpx
;
margin-bottom
:
50rpx
;
.linkImg
{
width
:
20rpx
;
height
:
20rpx
;
margin-left
:
20rpx
;
margin-right
:
10rpx
;
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/output/components/merchant/mrechant.wxml
View file @
ecdd662
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<!-- sceneIndx==3? 'short': -->
<!-- sceneIndx==3? 'short': -->
<swiper
<swiper
indicator-dots="{{indicatorDots}}"
indicator-dots="{{indicatorDots}}"
class="
full
"
class="
{{startInd ==4?'short':'full'}}
"
autoplay="{{autoplay}}"
autoplay="{{autoplay}}"
bindchange="swiperChange"
bindchange="swiperChange"
interval="{{interval}}"
interval="{{interval}}"
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<view class="contitle">
<view class="contitle">
<view class="name">{{item.merchantName}}</view>
<view class="name">{{item.merchantName}}</view>
<view class="select" data-index="{{index}}" bind:tap="pickSheet">
<view class="select" data-index="{{index}}" bind:tap="pickSheet">
<view>
全部
</view>
<view>
{{item.selectName||'全部'}}
</view>
<image
<image
class="arrow {{isAct?'isAct':''}}"
class="arrow {{isAct?'isAct':''}}"
webp
webp
...
@@ -114,6 +114,7 @@
...
@@ -114,6 +114,7 @@
open-type="navigate"
open-type="navigate"
app-id="wx570d9331f9ace0bd"
app-id="wx570d9331f9ace0bd"
version="release">
version="release">
<image src="{{IMAGES.link}}" webp class="linkImg" />
查看订单详情
查看订单详情
</navigator>
</navigator>
</view>
</view>
...
...
pages/tab/output/output.js
View file @
ecdd662
...
@@ -9,7 +9,7 @@ Page({
...
@@ -9,7 +9,7 @@ Page({
navStyle
:
'background-color: rgba(0,0,0,0);'
,
navStyle
:
'background-color: rgba(0,0,0,0);'
,
loginType
:
0
,
loginType
:
0
,
agree
:
true
,
agree
:
true
,
tabIndx
:
0
,
tabIndx
:
1
,
tabList
:
[
'我的客户'
,
'我的门店'
,
'我的员工'
],
tabList
:
[
'我的客户'
,
'我的门店'
,
'我的员工'
],
popupShow
:
false
,
popupShow
:
false
,
subIndex
:
-
1
,
subIndex
:
-
1
,
...
...
pages/tab/output/output.scss
View file @
ecdd662
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
content
:
''
;
content
:
''
;
width
:
100%
;
width
:
100%
;
height
:
486rpx
;
height
:
486rpx
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/
login
/bg.webp')
no-repeat
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/
output
/bg.webp')
no-repeat
;
background-size
:
100%
486rpx
;
background-size
:
100%
486rpx
;
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
...
@@ -44,6 +44,12 @@
...
@@ -44,6 +44,12 @@
overflow
:
scroll
;
overflow
:
scroll
;
// background-color: #fff;
// background-color: #fff;
}
}
.
comCom
:
:-
webkit-scrollbar
{
display
:none
;
width
:
0
;
height
:
0
;
color
:transparent
;
}
}
}
...
...
utils/request/environment.js
View file @
ecdd662
...
@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
...
@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试
2测试
3生产
3生产
*/
*/
const
index
=
1
const
index
=
2
const
secretKey
=
{
const
secretKey
=
{
ip
:
{},
ip
:
{},
...
...
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