Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f3cf2ee3
authored
Jun 05, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.5' of
http://192.168.3.233:8090/glsx/gl_tape
into v1.0.5
2 parents
5d2aae9e
4cebd6f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
10 deletions
pages/boutique/invitation.vue
pages/common/accountItems.vue
pages/common/components/AccountList.vue
pages/common/components/MerchantList.vue
pages/boutique/invitation.vue
View file @
f3cf2ee
...
@@ -42,7 +42,9 @@
...
@@ -42,7 +42,9 @@
<view
class=
"info flex"
:key=
"ind"
>
<view
class=
"info flex"
:key=
"ind"
>
<view
class=
"label"
>
{{
k
.
label
}}
</view>
<view
class=
"label"
>
{{
k
.
label
}}
</view>
<view
class=
"value"
>
{{
<view
class=
"value"
>
{{
k
.
format
?
formatTime
(
item
[
k
.
key
])
:
item
[
k
.
key
]
||
"-"
k
.
format
?
formatTime
(
item
[
k
.
key
],
k
.
key
)
:
item
[
k
.
key
]
||
"-"
}}
</view>
}}
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -88,9 +90,9 @@ export default {
...
@@ -88,9 +90,9 @@ export default {
customerNameOrPhone
:
''
,
customerNameOrPhone
:
''
,
isSearch
:
false
,
isSearch
:
false
,
list
:
[],
list
:
[],
inviteStatus
:
{
1
:
'待邀约'
,
2
:
'已邀约'
,
3
:
'取消预约'
,
4
:
'已施工'
,
5
:
'超时未到店'
},
inviteStatus
:
{
1
:
'待邀约'
,
2
:
'已邀约'
,
3
:
'取消预约'
,
4
:
'已施工'
,
5
:
'超时未到店'
,
6
:
'已撤销'
,
7
:
'已支付'
},
itemObject
:
[
itemObject
:
[
{
label
:
'客户电话'
,
key
:
'customerPhone'
},
{
label
:
'客户电话'
,
key
:
'customerPhone'
,
format
:
true
},
{
label
:
'客户车型'
,
key
:
'carSeriesName'
},
{
label
:
'客户车型'
,
key
:
'carSeriesName'
},
{
label
:
'礼券名称'
,
key
:
'couponName'
},
{
label
:
'礼券名称'
,
key
:
'couponName'
},
{
label
:
'领券时间'
,
key
:
'receiveCouponDate'
,
format
:
true
},
{
label
:
'领券时间'
,
key
:
'receiveCouponDate'
,
format
:
true
},
...
@@ -108,7 +110,10 @@ export default {
...
@@ -108,7 +110,10 @@ export default {
this
.
getRecordList
()
this
.
getRecordList
()
},
},
methods
:
{
methods
:
{
formatTime
(
val
)
{
formatTime
(
val
,
key
)
{
if
(
key
==
'customerPhone'
)
{
return
val
.
slice
(
0
,
3
)
+
" "
+
val
.
slice
(
3
,
7
)
+
" "
+
val
.
slice
(
7
)
}
return
dayjs
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
return
dayjs
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
},
},
//下拉分页
//下拉分页
...
@@ -260,11 +265,14 @@ export default {
...
@@ -260,11 +265,14 @@ export default {
font-weight
:
500
;
font-weight
:
500
;
font-size
:
24
rpx
;
font-size
:
24
rpx
;
justify-content
:
center
;
justify-content
:
center
;
background
:
#fdece9
;
color
:
#f24724
;
&.status_1
{
&.status_1
{
background
:
#fff5e6
;
background
:
#fff5e6
;
color
:
#ff9d0a
;
color
:
#ff9d0a
;
}
}
&
.status_2
{
&
.status_2
,
&
.status_7
{
background
:
#eaf9f1
;
background
:
#eaf9f1
;
color
:
#35c376
;
color
:
#35c376
;
}
}
...
...
pages/common/accountItems.vue
View file @
f3cf2ee
...
@@ -100,6 +100,11 @@ export default {
...
@@ -100,6 +100,11 @@ export default {
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
stepIndex
==
1
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
account
.
getListSelectAccount
(
true
)
})
}
},
},
mounted
()
{
mounted
()
{
},
},
...
...
pages/common/components/AccountList.vue
View file @
f3cf2ee
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
this
.
getListSelectAccount
()
this
.
getListSelectAccount
()
},
},
methods
:
{
methods
:
{
getListSelectAccount
()
{
getListSelectAccount
(
autoLogin
=
false
)
{
uni
.
showLoading
()
uni
.
showLoading
()
uni
.
$api
.
userApi
.
getListSelectAccount
().
then
(
res
=>
{
uni
.
$api
.
userApi
.
getListSelectAccount
().
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
...
@@ -74,6 +74,7 @@ export default {
...
@@ -74,6 +74,7 @@ export default {
uni
.
$storage
.
set
(
'sessionId'
,
sessionId
);
uni
.
$storage
.
set
(
'sessionId'
,
sessionId
);
this
.
loginUserInfoList
=
loginUserInfoList
this
.
loginUserInfoList
=
loginUserInfoList
this
.
copyLoginUserInfoList
=
loginUserInfoList
this
.
copyLoginUserInfoList
=
loginUserInfoList
if
(
autoLogin
)
this
.
chooseAccount
(
loginUserInfoList
[
0
])
}
else
uni
.
showToast
({
}
else
uni
.
showToast
({
title
:
message
,
title
:
message
,
icon
:
'none'
,
icon
:
'none'
,
...
...
pages/common/components/MerchantList.vue
View file @
f3cf2ee
...
@@ -44,7 +44,7 @@ export default {
...
@@ -44,7 +44,7 @@ export default {
openSceneArr
:
[],
openSceneArr
:
[],
flag
:
false
,
flag
:
false
,
userInfo
:
{},
userInfo
:
{},
selectMerchantId
:
''
selectMerchantId
:
''
}
}
},
},
onLoad
()
{
onLoad
()
{
...
@@ -53,13 +53,12 @@ export default {
...
@@ -53,13 +53,12 @@ export default {
methods
:
{
methods
:
{
init
(
userInfo
)
{
init
(
userInfo
)
{
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
this
.
getMerchantList
()
this
.
getSceneArr
()
this
.
getSceneArr
()
},
},
getSceneArr
()
{
getSceneArr
()
{
let
{
userInfo
}
=
this
let
{
userInfo
}
=
this
// 超管开通全部场景
// 超管开通全部场景
if
(
userInfo
?.
isSuper
)
return
if
(
userInfo
?.
isSuper
)
return
this
.
getMerchantList
()
// 获取4s店关联场景数据
// 获取4s店关联场景数据
uni
.
$api
.
userApi
.
getYqMerchantSceneConfigAPI
({
uni
.
$api
.
userApi
.
getYqMerchantSceneConfigAPI
({
yqMerchantId
:
userInfo
?.
subLoginUser
?.
merchantId
,
yqMerchantId
:
userInfo
?.
subLoginUser
?.
merchantId
,
...
@@ -67,6 +66,9 @@ export default {
...
@@ -67,6 +66,9 @@ export default {
}).
then
(
result
=>
{
}).
then
(
result
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
openSceneArr
=
result
.
map
(
val
=>
{
if
(
val
.
sceneOpenFlag
==
0
)
return
val
.
scene
})
||
[]
this
.
openSceneArr
=
result
.
map
(
val
=>
{
if
(
val
.
sceneOpenFlag
==
0
)
return
val
.
scene
})
||
[]
this
.
getMerchantList
()
}).
catch
(
err
=>
{
this
.
getMerchantList
()
})
})
},
},
getMerchantList
()
{
getMerchantList
()
{
...
@@ -81,6 +83,7 @@ export default {
...
@@ -81,6 +83,7 @@ export default {
this
.
loginUserInfoList
=
result
this
.
loginUserInfoList
=
result
this
.
copyLoginUserInfoList
=
result
this
.
copyLoginUserInfoList
=
result
this
.
flag
=
true
this
.
flag
=
true
if
(
result
&&
result
.
length
==
1
)
this
.
chooseAccount
(
result
[
0
])
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
err
)
console
.
log
(
err
)
...
@@ -109,7 +112,7 @@ export default {
...
@@ -109,7 +112,7 @@ export default {
title
:
'暂无开通业务,请联系总部管理员'
,
title
:
'暂无开通业务,请联系总部管理员'
,
icon
:
'none'
icon
:
'none'
})
})
this
.
$emit
(
'chooseMerchant'
,{
this
.
$emit
(
'chooseMerchant'
,
{
...
userInfo
,
...
userInfo
,
shopMerchantName
,
shopMerchantName
,
shopMerchantId
,
shopMerchantId
,
...
...
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