Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
郭成尧
8 years ago
Commit
7a6e464e1c0e909acea5fb39f3ea326e09947e85
1 parent
26e9de8c
chose-panel-show
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
2 deletions
apps/guang/views/partial/detail/img-label.hbs
apps/guang/views/partial/detail/related-reco.hbs
public/js/guang/detail/guang-cart.js
public/js/guang/info-index.page.js
public/scss/guang/info-index.page.css
apps/guang/views/partial/detail/img-label.hbs
View file @
7a6e464
...
...
@@ -5,7 +5,7 @@
</div>
</div>
<div
class=
"lable-info-box"
><a
href=
"
{{
href
}}
"
>
{{
tagName
}}
</a></div>
<div
class=
"lable-btn"
>
<div
class=
"lable-btn
add-to-cart"
data-skn=
"
{{
product_skn
}}
"
>
<span
class=
"iconfont"
>

</span>
<span
class=
"iconfont plus"
>

</span>
</div>
...
...
apps/guang/views/partial/detail/related-reco.hbs
View file @
7a6e464
...
...
@@ -8,7 +8,7 @@
<span
class=
"sale-price"
>
¥
{{
sales_price
}}
</span>
</p>
<p>
<span
class=
"check-detail"
>
<span
class=
"check-detail
add-to-cart"
data-skn=
"
{{
product_skn
}}
"
>
<span
class=
"iconfont"
>

</span>
<span
class=
"iconfont plus"
>

</span>
</span>
...
...
public/js/guang/detail/guang-cart.js
0 → 100644
View file @
7a6e464
/*
* @Author: Targaryen
* @Date: 2017-05-08 09:43:20
* @Last Modified by: Targaryen
* @Last Modified time: 2017-05-08 10:41:36
*/
const
$
=
require
(
'yoho-jquery'
);
const
chosePanel
=
require
(
'common/chose-panel-new'
);
let
$addToCart
=
$
(
'.add-to-cart'
);
$addToCart
.
on
(
'click'
,
function
(
e
)
{
let
$this
=
$
(
e
.
currentTarget
);
$
.
post
(
location
.
protocol
+
'//m.yohobuy.com/product/detail/info'
,
{
productSkn
:
$this
.
data
(
'skn'
)
},
function
(
data
)
{
chosePanel
.
show
({
data
});
});
});
...
...
public/js/guang/info-index.page.js
View file @
7a6e464
...
...
@@ -28,6 +28,7 @@ let time = 0;
require
(
'common'
);
require
(
'plugin/wx-share'
)();
require
(
'./detail-dynamic'
);
require
(
'./detail/guang-cart'
);
let
CollactionBlock
=
require
(
'./collocation-block'
);
...
...
public/scss/guang/info-index.page.css
View file @
7a6e464
...
...
@@ -2,6 +2,7 @@
@import
"common/good"
;
@import
"common/loading"
;
@import
"common/suspend-home"
;
@import
"cart/chose-panel"
;
@import
"detail"
;
@import
"tvls"
;
@import
"channel/side-nav"
;
...
...
Please
register
or
login
to post a comment