Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
lea guo
5 years ago
Commit
368510b65e1f2079df0c97dc079999a72d935a86
1 parent
877fc0ac
订单调价
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
apps/components/change-bid-price-dialog/change-bid-price-dialog.vue
apps/pages/order/mixin/order-action.js
apps/store/order/order-list.js
apps/components/change-bid-price-dialog/change-bid-price-dialog.vue
View file @
368510b
...
...
@@ -103,16 +103,16 @@ export default {
async onChange(price) {
// 预先算费
if (this.checkPrice(price)) {
const
res
= await this.computeChangePrice({
const
{ code, message, data }
= await this.computeChangePrice({
price,
orderCode: this.orderCode
});
if (typeof res === "string") {
this.errorTip = res;
if (code !== 200) {
this.errorTip = message;
this.calced = false;
} else {
this.computePrice =
res
;
this.computePrice =
data
;
this.calced = true;
}
}
...
...
apps/pages/order/mixin/order-action.js
View file @
368510b
...
...
@@ -176,28 +176,30 @@ export default {
case
orderActionsMap
.
CHANGE_BID_PRICE
.
name
:
{
const
{
goodPrice
}
=
goodsInfo
;
const
computePriceInfo
=
await
this
.
computeChangePrice
({
const
{
code
,
message
,
data
}
=
await
this
.
computeChangePrice
({
orderCode
,
price
:
goodPrice
,
});
let
isStr
=
false
;
if
(
typeof
computePriceInfo
===
'string'
)
{
if
(
code
!==
200
)
{
isStr
=
true
;
this
.
$createToast
({
type
:
'alert'
,
txt
:
computePriceInfo
,
txt
:
message
,
mask
:
true
,
}).
show
();
return
;
// 有未完成调价订单
if
(
code
===
401
)
{
return
;
}
}
let
that
=
this
;
this
.
$createChangeBidPriceDialog
({
computePriceInfo
:
isStr
?
{
promotionFormulaList
:
[]
}
:
computePriceInfo
,
computePriceInfo
:
isStr
?
{
promotionFormulaList
:
[]
}
:
data
,
goodsInfo
,
orderCode
,
onCloseAction
()
{},
...
...
apps/store/order/order-list.js
View file @
368510b
...
...
@@ -173,7 +173,9 @@ export default function() {
},
);
return
res
.
code
===
200
?
res
.
data
:
res
.
message
||
''
;
const
{
code
,
message
}
=
res
;
return
code
===
200
?
res
:
{
code
,
message
};
},
// 买家调价
...
...
Please
register
or
login
to post a comment