Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
84d150eb
authored
Aug 28, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加购物车判断
parent
2b9b8b05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
public/js/add_order.js
resources/views/addOrder/content.blade.php
public/js/add_order.js
View file @
84d150eb
...
@@ -267,13 +267,17 @@
...
@@ -267,13 +267,17 @@
var
str
=
''
;
var
str
=
''
;
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
if
(
goods_type
==
1
)
{
str
=
'<td>$<span>'
+
data
.
ladder_price
[
i
][
'price_us'
]
+
'</span></td>'
;
}
if
(
i
==
0
)
{
if
(
i
==
0
)
{
html
+=
'<tr><td><span class="goods-min-num">'
+
data
.
ladder_price
[
i
][
'purchases'
]
+
'</span></td><td>¥<span class="goods-min-price">'
+
data
.
ladder_price
[
i
][
'price_cn'
]
+
'</span></td>'
+
str
+
'</tr>'
;
if
(
goods_type
==
1
)
{
str
=
'<td>$<span class="goods-min-price-us">'
+
data
.
ladder_price
[
i
][
'price_us'
]
+
'</span></td>'
;
}
html
+=
'<tr><td><span class="goods-min-num">'
+
data
.
ladder_price
[
i
][
'purchases'
]
+
'</span></td><td>¥<span class="goods-min-price">'
+
data
.
ladder_price
[
i
][
'price_cn'
]
+
'</span></td>'
+
str
+
'</tr>'
;
}
else
{
}
else
{
if
(
goods_type
==
1
)
{
str
=
'<td>$<span>'
+
data
.
ladder_price
[
i
][
'price_us'
]
+
'</span></td>'
;
}
html
+=
'<tr><td><span>'
+
data
.
ladder_price
[
i
][
'purchases'
]
+
'</span></td><td>¥<span>'
+
data
.
ladder_price
[
i
][
'price_cn'
]
+
'</span></td>'
+
str
+
'</tr>'
;
html
+=
'<tr><td><span>'
+
data
.
ladder_price
[
i
][
'purchases'
]
+
'</span></td><td>¥<span>'
+
data
.
ladder_price
[
i
][
'price_cn'
]
+
'</span></td>'
+
str
+
'</tr>'
;
}
}
}
}
...
@@ -308,6 +312,21 @@
...
@@ -308,6 +312,21 @@
layer
.
msg
(
'请选择交货地'
);
layer
.
msg
(
'请选择交货地'
);
return
false
;
return
false
;
}
}
var
goods_min_price
=
$
(
this
).
parents
(
'.sku-info'
).
find
(
'.goods-min-price'
).
text
();
var
goods_min_price_us
=
$
(
this
).
parents
(
'.sku-info'
).
find
(
'.goods-min-price-us'
).
text
();
if
(
delivery_place
==
1
)
{
if
(
goods_min_price
==
0
)
{
layer
.
msg
(
'添加商品失败'
);
return
false
;
}
}
else
if
(
delivery_place
==
2
)
{
if
(
goods_min_price_us
==
0
)
{
layer
.
msg
(
'添加商品失败'
);
return
false
;
}
}
}
}
}
}
...
...
resources/views/addOrder/content.blade.php
View file @
84d150eb
...
@@ -229,9 +229,9 @@
...
@@ -229,9 +229,9 @@
<label
class=
"radio-inline"
>
<label
class=
"radio-inline"
>
<input
type=
"radio"
name=
"delivery_place"
value=
"1"
>
大陆
<input
type=
"radio"
name=
"delivery_place"
value=
"1"
>
大陆
</label>
</label>
<label
class=
"radio-inline"
>
<
!-- <
label class="radio-inline">
<input type="radio" name="delivery_place" value="2"> 香港
<input type="radio" name="delivery_place" value="2"> 香港
</label>
</label>
-->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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