Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
5334f8b1
Commit
5334f8b1
authored
Sep 14, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
bd2de8c6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
24 deletions
+28
-24
payMall.vue
src/components/commonPage/payMall.vue
+2
-4
goodlist.vue
src/components/mall/goodlist.vue
+26
-20
No files found.
src/components/commonPage/payMall.vue
View file @
5334f8b1
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
descMin
:
0
,
descMin
:
0
,
descSecond
:
0
,
descSecond
:
0
,
descHour
:
0
,
descHour
:
0
,
begin
:
0
,
nowDate
:
new
Date
(),
nowDate
:
new
Date
(),
timer
:
null
,
timer
:
null
,
timer2
:
null
,
timer2
:
null
,
...
@@ -71,7 +70,6 @@
...
@@ -71,7 +70,6 @@
this
.
lastTime
=
new
Date
(
res
.
data
.
data
.
ExpireDate
)
this
.
lastTime
=
new
Date
(
res
.
data
.
data
.
ExpireDate
)
this
.
nowDate
=
new
Date
(
res
.
data
.
data
.
NowDate
)
this
.
nowDate
=
new
Date
(
res
.
data
.
data
.
NowDate
)
this
.
chaTime
=
this
.
lastTime
-
this
.
nowDate
this
.
chaTime
=
this
.
lastTime
-
this
.
nowDate
this
.
begin
=
this
.
nowDate
.
getSeconds
()
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
this
.
descTime
(
this
.
chaTime
)
this
.
descTime
(
this
.
chaTime
)
},
1000
);
},
1000
);
...
@@ -110,7 +108,7 @@
...
@@ -110,7 +108,7 @@
}
}
this
.
mallapipost
(
"/api/AppletOrder/UpdateERPGoodsOrderInfo"
,
mallMsg
,
res
=>
{
this
.
mallapipost
(
"/api/AppletOrder/UpdateERPGoodsOrderInfo"
,
mallMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
Success
(
"支付成功!"
);
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -121,7 +119,6 @@
...
@@ -121,7 +119,6 @@
},
err
=>
{})
},
err
=>
{})
},
},
descTime
()
{
descTime
()
{
let
day
=
parseInt
(
this
.
chaTime
/
1000
/
60
/
60
/
24
)
let
hr
=
parseInt
(
this
.
chaTime
/
1000
/
60
/
60
%
24
)
let
hr
=
parseInt
(
this
.
chaTime
/
1000
/
60
/
60
%
24
)
let
min
=
parseInt
(
this
.
chaTime
/
1000
/
60
%
60
)
let
min
=
parseInt
(
this
.
chaTime
/
1000
/
60
%
60
)
let
sec
=
parseInt
(
this
.
chaTime
/
1000
%
60
)
let
sec
=
parseInt
(
this
.
chaTime
/
1000
%
60
)
...
@@ -129,6 +126,7 @@
...
@@ -129,6 +126,7 @@
hr
=
hr
>
9
?
hr
:
'0'
+
hr
hr
=
hr
>
9
?
hr
:
'0'
+
hr
min
=
min
>
9
?
min
:
'0'
+
min
min
=
min
>
9
?
min
:
'0'
+
min
sec
=
sec
>
9
?
sec
:
'0'
+
sec
sec
=
sec
>
9
?
sec
:
'0'
+
sec
console
.
log
(
"min"
,
min
)
// 控制台打印
// 控制台打印
if
(
this
.
chaTime
>
0
)
{
if
(
this
.
chaTime
>
0
)
{
if
(
hr
>
0
)
{
if
(
hr
>
0
)
{
...
...
src/components/mall/goodlist.vue
View file @
5334f8b1
...
@@ -23,9 +23,11 @@
...
@@ -23,9 +23,11 @@
color
:
#409EFF
;
color
:
#409EFF
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.gdDis_Item
{
background-color
:
#e1e3e6
!important
;
.gdDis_Item
{
background-color
:
#e1e3e6
!important
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"flexOne goodlist"
>
<div
class=
"flexOne goodlist"
>
...
@@ -230,7 +232,7 @@
...
@@ -230,7 +232,7 @@
contactName
:
""
,
contactName
:
""
,
customerId
:
0
,
customerId
:
0
,
outBranchId
:
0
,
outBranchId
:
0
,
User_Id
:
0
User_Id
:
0
},
},
statusValue
:
0
,
//请选择
statusValue
:
0
,
//请选择
//数据列表
//数据列表
...
@@ -321,7 +323,6 @@
...
@@ -321,7 +323,6 @@
components
:
{
components
:
{
payMall
:
payMall
,
payMall
:
payMall
,
},
},
methods
:
{
methods
:
{
//清空数据
//清空数据
clreaMsg
()
{
clreaMsg
()
{
...
@@ -380,7 +381,6 @@
...
@@ -380,7 +381,6 @@
this
.
orderMsg
.
TotalPrice
=
(
parseFloat
(
tempSku
.
price
)
*
parseFloat
(
this
.
orderMsg
.
Number
)
+
parseFloat
(
this
this
.
orderMsg
.
TotalPrice
=
(
parseFloat
(
tempSku
.
price
)
*
parseFloat
(
this
.
orderMsg
.
Number
)
+
parseFloat
(
this
.
orderMsg
.
FreightMoney
)).
toFixed
(
2
);
.
orderMsg
.
FreightMoney
)).
toFixed
(
2
);
}
}
},
},
//商品分类下拉框改变
//商品分类下拉框改变
selectChange
(
e
)
{
selectChange
(
e
)
{
...
@@ -462,7 +462,6 @@
...
@@ -462,7 +462,6 @@
})
})
}
}
this
.
DataList
=
tempArray
;
this
.
DataList
=
tempArray
;
console
.
log
(
this
.
DataList
,
'datalist'
);
this
.
msg
.
total
=
res
.
data
.
data
.
count
;
this
.
msg
.
total
=
res
.
data
.
data
.
count
;
}
}
});
});
...
@@ -545,15 +544,26 @@
...
@@ -545,15 +544,26 @@
NewUserId
:
this
.
orderMsg
.
mallUserId
,
NewUserId
:
this
.
orderMsg
.
mallUserId
,
NewShopId
:
this
.
getLocalStorage
().
MallSmallShopsId
NewShopId
:
this
.
getLocalStorage
().
MallSmallShopsId
}
}
if
(
this
.
currentGoodsObj
.
goods_stock
>
0
){
if
(
DetailList
[
0
].
SpecificationList
.
length
==
0
){
if
(
orderData
.
DetailList
==
null
||
(
orderData
.
DetailList
&&
orderData
.
DetailList
.
length
==
0
)
||
this
.
Error
(
'请选择规格'
);
(
orderData
.
DetailList
&&
orderData
.
DetailList
.
length
>
0
&&
orderData
.
DetailList
[
0
].
SpecificationList
&&
orderData
.
DetailList
[
0
].
SpecificationList
.
length
==
0
))
{
this
.
Error
(
'请选择规格!'
);
return
;
return
;
}
}
if
(
orderData
.
NewUserId
==
""
||
Number
(
orderData
.
NewUserId
)
<=
0
)
{
this
.
Error
(
'请选择用户!'
);
return
;
}
}
if
(
orderData
.
Consignee
==
""
)
{
this
.
Error
(
'请选择收货地址!'
);
return
;
}
this
.
mallapipost
(
"/api/AppletOrder/SetERPGoodsOrderInfo"
,
orderData
,
res
=>
{
this
.
mallapipost
(
"/api/AppletOrder/SetERPGoodsOrderInfo"
,
orderData
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
var
resData
=
res
.
data
.
data
;
var
resData
=
res
.
data
.
data
;
this
.
payObj
.
orderId
=
resData
.
OrderId
;
this
.
payObj
.
orderId
=
resData
.
OrderId
;
...
@@ -566,7 +576,6 @@
...
@@ -566,7 +576,6 @@
this
.
payVisible
=
true
;
this
.
payVisible
=
true
;
this
.
Success
(
"下单成功!"
);
this
.
Success
(
"下单成功!"
);
this
.
clreaMsg
();
this
.
clreaMsg
();
// this.getGoodList();
this
.
orderDialog
=
false
;
this
.
orderDialog
=
false
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
...
@@ -631,11 +640,8 @@
...
@@ -631,11 +640,8 @@
})
})
}
}
cb
&&
cb
(
res
);
cb
&&
cb
(
res
);
}
else
{
// this.Info(res.data.message);
}
}
})
})
},
},
//点击新增
//点击新增
addAddress
()
{
addAddress
()
{
...
@@ -669,13 +675,13 @@
...
@@ -669,13 +675,13 @@
});
});
},
},
//调用取消
//调用取消
cancelPay
(){
cancelPay
()
{
this
.
payVisible
=
false
;
this
.
payVisible
=
false
;
this
.
$refs
.
payChild
.
parentHandleclick
();
this
.
$refs
.
payChild
.
parentHandleclick
();
},
},
//关闭
//关闭
closeDia
(){
closeDia
()
{
this
.
payVisible
=
false
;
this
.
payVisible
=
false
;
}
}
},
},
mounted
()
{
mounted
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment