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
bc69f462
authored
Oct 30, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
调整SKU获取接口
parents
698e493b
e02b8a01
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
29 deletions
public/css/detail.css
public/js/add_order.js
resources/views/addOnline/content.blade.php
resources/views/addOrder/content.blade.php
public/css/detail.css
View file @
bc69f462
...
...
@@ -155,6 +155,9 @@ li {
.preferential_price
,
.extend_fee
{
/* 优惠金额、附加费 */
display
:
none
;
}
.price-line
{
text-decoration
:
line-through
;
}
/*提交订单成功页面*/
.section-1
,
.section-3
{
...
...
public/js/add_order.js
View file @
bc69f462
...
...
@@ -240,19 +240,20 @@
$
(
'.moq'
).
text
(
data
.
min_buy
);
$
(
'.mpq'
).
text
(
data
.
min_mpq
);
if
(
goods_type
==
1
)
{
var
status
=
data
.
goods_status
;
}
else
{
var
status
=
data
.
status
;
}
switch
(
status
)
{
case
0
:
status_val
=
'待入库'
;
break
;
case
1
:
status_val
=
'审核通过(上架)'
;
break
;
case
3
:
status_val
=
'下架'
;
break
;
case
4
:
status_val
=
'删除'
;
break
;
}
//
if (goods_type == 1) {
//
var status = data.goods_status;
//
} else {
//
var status = data.status;
//
}
//
switch (status) {
//
case 0: status_val = '待入库'; break;
//
case 1: status_val = '审核通过(上架)'; break;
//
case 3: status_val = '下架'; break;
//
case 4: status_val = '删除'; break;
//
}
status_val
=
data
.
is_buy
?
'是'
:
'否'
;
$
(
'.status'
).
text
(
status_val
);
$
(
'.goods_id'
).
val
(
data
.
goods_id
);
$
(
'.goods_type'
).
val
(
data
.
goods_type
);
...
...
@@ -260,28 +261,52 @@
//阶梯价格
if
(
data
.
tiered
!=
null
)
{
var
len
=
data
.
tiered
.
length
;
if
(
len
>
0
)
{
var
html
=
''
;
var
str
=
''
;
html
+=
'<tr><th>阶梯</th><th>RMB价格</th>'
;
if
(
data
.
ac_type
==
1
)
{
html
+=
'<th>活动价</th>'
;
}
if
(
goods_type
==
1
)
{
html
+=
'<th>USD价格</th>'
;
}
html
+=
'</tr>'
;
for
(
var
i
=
0
;
i
<
len
;
i
++
)
{
html
+=
'<tr>'
;
if
(
i
==
0
)
{
if
(
goods_type
==
1
)
{
str
=
'<td>$<span class="goods-min-price-us">'
+
data
.
tiered
[
i
][
'price_us'
]
+
'</span></td>'
;
if
(
data
.
ac_type
)
{
html
+=
'<td><span class="goods-min-num">'
+
data
.
tiered
[
i
][
'purchases'
]
+
'</span></td><td>¥<span class="goods-min-price price-line">'
+
data
.
tiered
[
i
][
'price_cn'
]
+
'</span><td>¥<span>'
+
data
.
tiered
[
i
][
'price_ac'
]
+
'</span></td>'
;
}
else
{
html
+=
'<td><span class="goods-min-num">'
+
data
.
tiered
[
i
][
'purchases'
]
+
'</span></td><td>¥<span class="goods-min-price">'
+
data
.
tiered
[
i
][
'price_cn'
]
+
'</span></td>'
;
}
html
+=
'<tr><td><span class="goods-min-num">'
+
data
.
tiered
[
i
][
'purchases'
]
+
'</span></td><td>¥<span class="goods-min-price">'
+
data
.
tiered
[
i
][
'price_cn'
]
+
'</span></td>'
+
str
+
'</tr>'
;
}
else
{
if
(
goods_type
==
1
)
{
str
=
'<td>$<span>'
+
data
.
tiered
[
i
][
'price_us'
]
+
'</span></td>'
;
html
+=
'<td>$<span class="goods-min-price-us">'
+
data
.
tiered
[
i
][
'price_us'
]
+
'</span></td>'
;
}
}
else
{
if
(
data
.
ac_type
)
{
html
+=
'<td><span>'
+
data
.
tiered
[
i
][
'purchases'
]
+
'</span></td><td>¥<span class="price-line">'
+
data
.
tiered
[
i
][
'price_cn'
]
+
'</span></td><td>¥<span>'
+
data
.
tiered
[
i
][
'price_ac'
]
+
'</span></td>'
;
}
else
{
html
+=
'<td><span>'
+
data
.
tiered
[
i
][
'purchases'
]
+
'</span></td><td>¥<span>'
+
data
.
tiered
[
i
][
'price_cn'
]
+
'</span></td>'
;
}
if
(
goods_type
==
1
)
{
html
+=
'<td>$<span>'
+
data
.
tiered
[
i
][
'price_us'
]
+
'</span></td>'
;
}
}
html
+=
'<tr><td><span>'
+
data
.
tiered
[
i
][
'purchases'
]
+
'</span></td><td>¥<span>'
+
data
.
tiered
[
i
][
'price_cn'
]
+
'</span></td>'
+
str
+
'</tr>'
;
}
html
+=
'</tr>'
;
}
$
(
'.ladder_price_table tr:gt(0)'
).
remove
();
$
(
'.ladder_price_table'
).
append
(
html
);
//
$('.ladder_price_table tr:gt(0)').remove();
$
(
'.ladder_price_table'
).
empty
().
append
(
html
);
}
}
}
...
...
@@ -312,7 +337,7 @@
return
false
;
}
if
(
type
==
0
)
{
if
(
type
==
3
||
type
==
4
)
{
layer
.
msg
(
'仅支持联营商品下单,请在自营订单中下单'
);
return
false
;
}
...
...
resources/views/addOnline/content.blade.php
View file @
bc69f462
...
...
@@ -301,7 +301,7 @@
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
状态
:
</span>
<span>
是否能购买
:
</span>
<span
class=
"status"
></span>
</div>
</div>
...
...
@@ -310,10 +310,10 @@
<div
class=
"sku-info-right"
>
<table
class=
"table table-hover ladder_price_table"
>
<tr>
<
!-- <
tr>
<th>阶梯</th>
<th>RMB价格</th>
</tr>
</tr>
-->
</table>
</div>
...
...
resources/views/addOrder/content.blade.php
View file @
bc69f462
...
...
@@ -320,7 +320,7 @@
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span>
状态
:
</span>
<span>
是否能购买
:
</span>
<span
class=
"status"
></span>
</div>
</div>
...
...
@@ -329,11 +329,11 @@
<div
class=
"sku-info-right"
>
<table
class=
"table table-hover ladder_price_table"
>
<tr>
<
!-- <
tr>
<th>阶梯</th>
<th>RMB价格</th>
<th>USD价格</th>
</tr>
</tr>
-->
</table>
</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