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 463713dd
authored
Sep 19, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.45' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V4.45
2 parents
359f7f6c
98d9de14
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
77 additions
and
48 deletions
api/module/systemApi.js
api/request/http.js
components/HomeFrame/components/CustomerFile.vue
components/HomeFrame/components/RecordList.vue
env.js
mixin/click.js
mixin/receptionTrackMixin.js
pages/boutique/components/Reception.vue
pages/boutique/components/SkuBox.vue
pages/boutique/detail.vue
pages/boutique/index.vue
pages/equity/detail/detail.vue
store/modules/user.js
api/module/systemApi.js
View file @
463713d
...
...
@@ -147,7 +147,7 @@ const getBoutiqueMockData = async (immediate = false) => {
const
data
=
await
http
.
uni_request
({
url
:
boutiqueConfigUrl
});
data
.
createTime
=
Date
.
now
();
boutiqueServerConfig
.
mockCache
=
data
;
uni
.
$storage
.
set
(
'b
yd
_mock_data'
,
data
);
uni
.
$storage
.
set
(
'b
outique
_mock_data'
,
data
);
return
Promise
.
resolve
(
data
);
}
else
{
const
key
=
Date
.
now
();
...
...
api/request/http.js
View file @
463713d
...
...
@@ -14,13 +14,13 @@ const HOST = {
ip
:
"http://192.168.1.169:8292"
,
};
class
Request
{
get
(
params
,
returnAll
=
false
,
hostType
)
{
get
(
params
,
returnAll
=
false
,
hostType
)
{
return
this
.
request
(
"GET"
,
params
,
returnAll
,
hostType
);
}
post
(
params
,
returnAll
=
false
,
hostType
)
{
post
(
params
,
returnAll
=
false
,
hostType
)
{
return
this
.
request
(
"POST"
,
params
,
returnAll
,
hostType
);
}
fetch
(
method
,
data
,
returnAll
=
true
,
hostType
)
{
fetch
(
method
,
data
,
returnAll
=
true
,
hostType
)
{
return
this
.
post
(
{
method
,
...
...
@@ -30,11 +30,11 @@ class Request {
hostType
);
}
request
(
RequestMethods
,
params
,
returnAll
,
hostType
=
"dj"
)
{
request
(
RequestMethods
,
params
,
returnAll
,
hostType
=
"dj"
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
_this
=
this
;
uni
.
getNetworkType
({
success
(
res
)
{
success
(
res
)
{
if
(
res
.
networkType
==
"none"
)
{
uni
.
hideLoading
();
// uni.showToast({
...
...
@@ -47,11 +47,11 @@ class Request {
let
header
=
RequestMethods
===
"POST"
?
{
"content-type"
:
"application/x-www-form-urlencoded"
,
}
"content-type"
:
"application/x-www-form-urlencoded"
,
}
:
{
"Cache-Control"
:
"no-cache"
,
};
"Cache-Control"
:
"no-cache"
,
};
let
projectName
=
params
.
projectName
;
if
(
!
projectName
)
projectName
=
_this
.
getRopProject
(
params
.
method
);
const
path
=
pathEnum
[
projectName
];
...
...
@@ -63,10 +63,16 @@ class Request {
header
,
dataType
:
"json"
,
responseType
:
"text"
,
success
(
response
)
{
success
(
response
)
{
/**业务代码 */
let
{
data
}
=
response
;
if
(
!
data
)
return
reject
();
let
{
data
,
statusCode
}
=
response
;
if
(
!
data
||
statusCode
!=
200
)
{
uni
.
hideLoading
()
let
errMsg
=
''
if
(
!
data
)
errMsg
=
'获取数据失败,请重试。'
else
errMsg
=
'服务器暂时不可用,请稍后再次尝试。'
return
reject
(
errMsg
);
}
let
{
code
,
message
}
=
data
;
if
(
returnAll
)
{
resolve
(
data
);
...
...
@@ -89,7 +95,7 @@ class Request {
}
}
},
fail
(
error
)
{
fail
(
error
)
{
uni
.
hideLoading
();
console
.
error
(
`
${
params
.
method
}
接口异常:`
,
error
);
uni
.
showToast
({
...
...
@@ -97,13 +103,13 @@ class Request {
typeof
error
==
"string"
?
error
:
error
.
errMsg
?
error
.
errMsg
:
JSON
.
stringify
(
error
)
||
"系统异常"
,
?
error
.
errMsg
:
JSON
.
stringify
(
error
)
||
"系统异常"
,
icon
:
"error"
,
});
reject
(
error
);
},
complete
()
{
complete
()
{
uni
.
stopPullDownRefresh
();
},
});
...
...
@@ -111,7 +117,7 @@ class Request {
});
});
}
getData
(
params
,
hostType
=
"scrm"
)
{
getData
(
params
,
hostType
=
"scrm"
)
{
let
projectName
=
params
.
projectName
;
if
(
!
projectName
)
projectName
=
this
.
getRopProject
(
params
.
method
);
else
delete
params
.
projectName
;
...
...
@@ -143,11 +149,11 @@ class Request {
params
.
appKey
=
appKey
;
return
sign
(
params
,
secret
,
noSignAttr
);
}
getRopProject
(
method
)
{
getRopProject
(
method
)
{
const
projectName
=
method
.
split
(
"."
)[
2
];
return
projectName
;
}
uni_request
({
uni_request
({
url
,
method
=
"GET"
,
data
=
{},
...
...
@@ -163,7 +169,7 @@ class Request {
header
,
dataType
,
responseType
,
success
(
response
)
{
success
(
response
)
{
resolve
(
response
.
data
);
},
});
...
...
components/HomeFrame/components/CustomerFile.vue
View file @
463713d
...
...
@@ -465,7 +465,7 @@ export default {
}
}
.
record
-
list
{
height
:
calc
(
100
%
-
24
8
rpx
);
height
:
calc
(
100
%
-
24
0
rpx
);
position
:
relative
;
z
-
index
:
4
;
}
...
...
@@ -633,7 +633,7 @@ export default {
display
:
flex
;
justify
-
content
:
space
-
between
;
width
:
fit
-
content
;
height
:
76
rpx
;
height
:
68
rpx
;
background
-
color
:
#
f2f2f2
;
border
-
radius
:
16
rpx
;
margin
-
left
:
64
rpx
;
...
...
@@ -652,7 +652,7 @@ export default {
}
.
tab
{
width
:
184
rpx
;
height
:
76
rpx
;
height
:
68
rpx
;
justify
-
content
:
center
;
font
-
size
:
28
rpx
;
color
:
#
1
f2133
;
...
...
@@ -665,7 +665,7 @@ export default {
.
active
-
btn
{
position
:
absolute
;
width
:
184
rpx
;
height
:
76
rpx
;
height
:
68
rpx
;
background
:
#
ffffff
;
top
:
50
%
;
transform
:
translateY
(
-
50
%
);
...
...
components/HomeFrame/components/RecordList.vue
View file @
463713d
...
...
@@ -680,11 +680,12 @@ export default {
height
:
76
rpx
;
justify
-
content
:
center
;
font
-
weight
:
500
;
font
-
size
:
32
rpx
;
color
:
#
1
f2133
;
font
-
size
:
28
rpx
;
color
:
#
1
f2133
b3
;
z
-
index
:
10
;
}
.
active
{
color
:
#
1
f2133
;
}
.
active
-
btn
{
position
:
absolute
;
...
...
env.js
View file @
463713d
const
target
=
[
"ip"
,
"dev"
,
"uat"
,
"prod"
,
"beta"
];
const
index
=
1
;
const
index
=
2
;
/**
*
0本地
...
...
mixin/click.js
View file @
463713d
...
...
@@ -98,8 +98,8 @@ export default {
...
receptionTrack
[
key
],
merchantId
:
shopMerchantId
,
businessScene
:
sceneType
,
staffUuid
:
salesU
uid
,
staffName
,
staffUuid
:
u
uid
,
staffName
:
name
,
})
})
let
params
=
{
...
...
mixin/receptionTrackMixin.js
View file @
463713d
...
...
@@ -34,9 +34,9 @@ export default {
value
=
this
.
receptionTrack
[
key
]
value
.
stayDuration
+=
Number
(
Date
.
now
()
-
value
.
entryTime
)
this
.
$store
.
dispatch
(
"setReceptionTrack"
,
{
key
,
value
})
if
(
keyName
==
'id'
&&
key
==
1
)
{
if
(
keyName
==
'id'
&&
key
==
1
)
{
let
[
receptionRef
]
=
this
.
$refs
.
media1
receptionRef
.
previewLeave
(
receptionRef
.
currentItem
)
receptionRef
.
previewLeave
&&
receptionRef
.
previewLeave
(
receptionRef
.
currentItem
)
}
}
...
...
pages/boutique/components/Reception.vue
View file @
463713d
...
...
@@ -141,7 +141,7 @@ export default {
immediate
:
true
,
handler
(
newval
)
{
if
(
newval
)
{
if
(
newval
&&
this
.
currentItem
)
this
.
changePreView
(
this
.
currentItem
)
if
(
newval
&&
this
.
currentItem
)
this
.
changePreView
(
this
.
currentItem
,
false
)
}
}
}
...
...
@@ -181,13 +181,12 @@ export default {
this
.
currentCarString
=
item
this
.
updateViewKey
=
Date
.
now
()
},
changePreView
(
e
)
{
changePreView
(
e
,
leave
=
true
)
{
let
{
currentItem
}
=
this
,
{
id
,
carModelName
,
name
,
materialType
}
=
e
,
key
=
`
${
carModelName
}
_
${
id
}
`
,
value
=
this
.
receptionTrack
[
key
]
if
(
currentItem
)
this
.
previewLeave
(
currentItem
)
if
(
currentItem
&&
leave
)
this
.
previewLeave
(
currentItem
)
this
.
currentItem
=
e
this
.
updateViewKey
=
Date
.
now
()
if
(
this
.
isPreview
)
return
...
...
pages/boutique/components/SkuBox.vue
View file @
463713d
...
...
@@ -4,7 +4,7 @@
<view
:class=
"['block',blockClass]"
></view>
<template
v-for=
"(i,index) in boutiqueMediaConfig[currentCar]"
>
<view
class=
"first-type-item flex
"
:class=
"['first-type-item flex',
{active:i.tabId == tabId}]
"
:key="index"
@click="changeTabId(i.tabId,index)"
>
...
...
@@ -274,11 +274,15 @@ export default {
line-height
:
44
rpx
;
position
:
relative
;
z-index
:
2
;
opacity
:
.7
;
.sprite-icon
{
margin-bottom
:
12
rpx
;
transform
:
scale
(
1.45
);
}
}
.active
{
opacity
:
1
;
}
.block
{
width
:
280
rpx
;
height
:
160
rpx
;
...
...
pages/boutique/detail.vue
View file @
463713d
...
...
@@ -153,9 +153,7 @@ export default {
},
back
()
{
this
.
$refs
?.
toolRef
?.
hide
();
let
[
receptionRef
]
=
this
.
$refs
.
media1
if
(
this
.
id
==
1
&&
receptionRef
.
currentImgUrl
)
receptionRef
.
showPicture
(
false
)
else
this
.
$emit
(
"back"
);
this
.
$emit
(
"back"
);
},
done
(
e
)
{
this
.
$refs
.
toolRef
.
hide
();
...
...
@@ -236,12 +234,26 @@ export default {
},
onPreviewBack
()
{
this
.
showPreview
=
false
if
(
this
.
type
==
'preview'
)
return
if
(
this
.
type
==
'preview'
)
return
this
.
mediaObject
=
null
const
{
materialFormat
,
id
}
=
this
.
mediaObject
,
key
=
`case-
${
materialFormat
}
-
${
id
}
`
,
value
=
this
.
receptionTrack
[
key
]
value
.
stayDuration
+=
Number
(
Date
.
now
()
-
value
.
entryTime
)
this
.
$store
.
dispatch
(
"setReceptionTrack"
,
{
key
,
value
})
this
.
mediaObject
=
null
},
hidePicture
()
{
let
[
receptionRef
]
=
this
.
$refs
.
media1
,
flag
=
false
if
(
this
.
id
==
1
&&
receptionRef
.
currentImgUrl
)
{
receptionRef
.
showPicture
(
false
)
flag
=
true
}
if
(
this
.
id
==
4
&&
this
.
mediaObject
)
{
this
.
onPreviewBack
()
flag
=
true
}
return
flag
}
},
};
...
...
pages/boutique/index.vue
View file @
463713d
...
...
@@ -247,7 +247,7 @@ export default {
{
key
:
'films'
,
configIndex
:
1
},
{
key
:
'products'
,
configIndex
:
2
}
]
if
(
!
hidePackage
)
configItems
.
unshift
({
key
:
'packages'
,
configIndex
:
0
})
if
(
!
hidePackage
)
configItems
.
unshift
({
key
:
'packages'
,
configIndex
:
0
})
configItems
.
map
(
item
=>
{
boutiqueMediaConfig
[
e
.
carModelName
].
push
({
...
defaultConfig
[
item
.
configIndex
],
...
...
@@ -286,8 +286,16 @@ export default {
},
back
()
{
if
(
!
this
.
id
)
return
uni
.
navigateBack
();
if
(
this
.
type
!=
"preview"
)
return
this
.
$refs
.
home
.
finishRef
.
open
();
this
.
backHome
();
else
{
if
(
this
.
id
==
1
||
this
.
id
==
4
)
{
let
isPictureView
=
this
.
$refs
.
detail
.
hidePicture
()
console
.
log
(
isPictureView
)
if
(
isPictureView
)
return
}
if
(
this
.
type
!=
"preview"
)
return
this
.
$refs
.
home
.
finishRef
.
open
();
this
.
backHome
();
}
},
backHome
()
{
if
(
this
.
recording
)
this
.
$refs
.
home
.
stopAudio
(
true
);
...
...
@@ -498,7 +506,7 @@ export default {
position
:
relative
;
padding-top
:
58
rpx
;
.config-box
{
animation
:
show-config-box
0
.5s
forwards
;
animation
:
show-config-box
1
.5s
forwards
;
width
:
100%
;
height
:
100%
;
position
:
absolute
;
...
...
@@ -507,11 +515,9 @@ export default {
}
@keyframes
show-config-box
{
0
%
{
transform
:
scale
(
10
);
opacity
:
0
;
}
100
%
{
transform
:
scale
(
1
);
opacity
:
1
;
}
}
...
...
pages/equity/detail/detail.vue
View file @
463713d
...
...
@@ -191,6 +191,7 @@ export default {
this
.
showPayPage
=
false
this
.
$refs
.
toolRef
.
hide
()
this
.
$refs
.
stepRef
.
close
()
this
.
receptionTrackLeave
()
this
.
$emit
(
'done'
,
e
)
},
toPay
()
{
...
...
store/modules/user.js
View file @
463713d
...
...
@@ -80,7 +80,7 @@ export default {
},
setReceptionTrack
({
state
},
{
key
,
value
})
{
state
.
receptionTrack
[
key
]
=
value
console
.
log
(
state
.
receptionTrack
,
'触发埋点'
)
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
state
.
receptionTrack
))
)
},
clearReceptionTrack
({
state
})
{
state
.
receptionTrack
=
{}
...
...
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