Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
e9f2d737
Commit
e9f2d737
authored
Apr 07, 2018
by
Junling Bu
Browse files
fix[litemall-wx]: 目前商品没有商品数量字段,取消对数量的测试。
parent
3c854091
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/goods/goods.js
View file @
e9f2d737
...
...
@@ -37,13 +37,11 @@ Page({
if
(
_specificationList
[
0
].
valueList
.
length
==
1
)
{
_specificationList
[
0
].
valueList
[
0
].
checked
=
true
// 如果仅仅存在一种货品,那么商品价格应该和货品价格一致
,商品数量应该和货品数量一致
// 如果仅仅存在一种货品,那么商品价格应该和货品价格一致
// 这里检测一下
let
_produc
e
Price
=
_specificationList
[
0
].
value
List
[
0
].
retailPrice
;
let
_produc
t
Price
=
res
.
data
.
product
List
[
0
].
retailPrice
;
let
_goodsPrice
=
res
.
data
.
info
.
retailPrice
;
let
_produceNumber
=
_specificationList
[
0
].
valueList
[
0
].
goodsNumber
;
let
_goodsNumber
=
res
.
data
.
info
.
number
;
if
(
_producePrice
!=
_goodsPrice
||
_produceNumber
!=
_goodsNumber
){
if
(
_productPrice
!=
_goodsPrice
){
console
.
error
(
'
商品数量价格和货品不一致
'
);
}
...
...
Write
Preview
Supports
Markdown
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