Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 cbef8533
authored
Sep 11, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
90c38841
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
46 deletions
src/api/modules/equityApi.js
src/views/foodOrder/index.vue
src/api/modules/equityApi.js
View file @
cbef853
...
...
@@ -121,7 +121,8 @@ const exportHWOrderList = params => {
params
.
method
=
`scrm.api.equity.hw.order.export`
return
http
({
data
:
params
,
sign
:
true
sign
:
true
,
returnAll
:
true
})
}
...
...
src/views/foodOrder/index.vue
View file @
cbef853
...
...
@@ -88,7 +88,7 @@
</div>
</div>
<div
class=
"detail-wrap"
>
<span
class=
"title"
>
用户
信息
</span>
<span
class=
"title"
>
餐厅
信息
</span>
<div>
<div
class=
"info"
v-for=
"(item, index) in shopInfoList"
:key=
"index"
>
<label
class=
"label"
for=
""
>
{{item.label}}:
</label>
...
...
@@ -100,41 +100,6 @@
</div>
</template>
<
script
type=
"text/ecmascript-6"
>
function
getExplorer
()
{
var
ua
=
navigator
.
userAgent
.
toLocaleLowerCase
()
var
browserType
=
null
if
(
ua
.
match
(
/msie/
)
!=
null
||
ua
.
match
(
/trident/
)
!=
null
)
{
browserType
=
'IE'
}
else
if
(
ua
.
match
(
/firefox/
)
!=
null
)
{
browserType
=
'火狐'
}
else
if
(
ua
.
match
(
/ubrowser/
)
!=
null
)
{
browserType
=
'UC'
}
else
if
(
ua
.
match
(
/opera/
)
!=
null
)
{
browserType
=
'欧朋'
}
else
if
(
ua
.
match
(
/bidubrowser/
)
!=
null
)
{
browserType
=
'百度'
}
else
if
(
ua
.
match
(
/metasr/
)
!=
null
)
{
browserType
=
'搜狗'
}
else
if
(
ua
.
match
(
/tencenttraveler/
)
!=
null
||
ua
.
match
(
/qqbrowse/
)
!=
null
)
{
browserType
=
'QQ'
}
else
if
(
ua
.
match
(
/maxthon/
)
!=
null
)
{
browserType
=
'遨游'
}
else
{
browserType
=
'谷歌'
}
return
browserType
}
function
exportFn
(
url
)
{
let
browserType
=
getExplorer
()
if
(
browserType
==
'QQ'
)
{
window
.
open
(
url
)
return
}
let
iframe
=
document
.
createElement
(
'iframe'
)
iframe
.
style
.
display
=
'none'
iframe
.
src
=
url
document
.
body
.
appendChild
(
iframe
)
}
const
userInfoList
=
[
{
...
...
@@ -183,7 +148,6 @@ const shopInfoList = [
}
]
import
url
from
'@/assets/empty.png'
// import { searchMixin } from '@/mixins'
export
default
{
name
:
''
,
// mixins: [searchMixin],
...
...
@@ -196,8 +160,6 @@ export default {
userInfoList
,
orderInfoList
,
shopInfoList
,
getExplorer
,
exportFn
,
url
:
url
,
size
:
'small'
,
dialogVisible
:
false
,
...
...
@@ -326,10 +288,11 @@ export default {
this
.
dialogVisible
=
true
let
allPrice
=
row
.
productInfo
?.
reduce
((
prev
,
cur
)
=>
{
let
price
=
cur
.
price
?
+
cur
.
price
:
0
let
curPrice
=
prev
+
Number
((
price
*
cur
.
amount
).
toFixed
(
2
))
return
prev
+
curPrice
let
curPrice
=
Number
((
prev
+
Number
((
price
*
cur
.
amount
).
toFixed
(
2
))
).
toFixed
(
2
))
return
curPrice
},
0
)
||
0
row
.
allPrice
=
allPrice
row
.
orderTime
=
this
.
dateFormat
(
row
.
orderTime
,
'YYYY-MM-DD HH:mm:ss'
)
this
.
curDetailInfo
=
row
||
{}
},
handleClose
(){
...
...
@@ -355,7 +318,9 @@ export default {
})
}
}).
catch
(
err
=>
{
this
.
getActiveDay
()
setTimeout
(()
=>
{
this
.
getActiveDay
()
},
500
)
})
},
getActiveDay
(){
...
...
@@ -366,8 +331,8 @@ export default {
let
nowTime
=
new
Date
().
getTime
()
let
oldTime
=
new
Date
(
res
.
updateTime
).
getTime
()
let
subtime
=
(
nowTime
-
oldTime
)
/
1000
;
let
days
=
Math
.
floor
(
subtime
/
86400
)
;
this
.
residueDay
=
res
.
limitedDay
-
days
let
days
=
Math
.
floor
(
subtime
/
86400
)
this
.
residueDay
=
res
.
limitedDay
-
(
days
<
0
?
0
:
days
)
}
})
},
...
...
@@ -405,7 +370,18 @@ export default {
handleExport
()
{
var
params
=
this
.
formatParams
()
this
.
$apis
.
equityApi
.
exportHWOrderList
(
params
).
then
(
res
=>
{
this
.
exportFn
(
res
.
data
)
if
(
res
?.
data
){
let
tempaa
=
this
.
getExplorer
()
console
.
log
(
tempaa
,
res
.
data
)
if
(
tempaa
==
'QQ'
)
{
window
.
open
(
res
.
data
)
}
else
{
let
iframe
=
document
.
createElement
(
'iframe'
)
iframe
.
style
.
display
=
'none'
iframe
.
src
=
res
.
data
document
.
body
.
appendChild
(
iframe
)
}
}
})
},
syncDataFn
(){
...
...
@@ -456,6 +432,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.active-wrap
{
box-sizing
:
border-box
;
background-color
:
#fff
;
width
:
100%
;
height
:
52px
;
...
...
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