Authored by 沈志敏

增加浮动首页

... ... @@ -58,6 +58,7 @@
<input id="appurl" type="hidden" value="{{appUrl}}">
<input id="wapurl" type="hidden" value="{{wapUrl}}">
{{/ noLoginUrl}}
{{> common/suspend-home}}
</div>
<div class="floor-mask"></div>
<div class="floor-message">
... ...
... ... @@ -35,4 +35,5 @@
<input id="isApp" type="hidden" value={{isApp}}>
{{/if}}
{{/ guang}}
{{> common/suspend-home}}
</div>
... ...
... ... @@ -174,4 +174,5 @@
<input id="shareTitle" type="hidden" value="{{shareTitle}}">
<input id="shareDesc" type="hidden" value="{{shareDesc}}">
{{/ guang}}
{{> common/suspend-home}}
</div>
... ...
... ... @@ -35,4 +35,5 @@
<input id="isApp" type="hidden" value={{isApp}}>
{{/if}}
{{/ guang}}
{{> common/suspend-home}}
</div>
\ No newline at end of file
... ...
... ... @@ -15,5 +15,5 @@
<div class="plusstar-resources">
<!--资源位数据模板-->
</div><!--/plusstar-resources-->
{{> common/suspend-home}}
</div><!--/plusstar-page-->
\ No newline at end of file
... ...
... ... @@ -17,4 +17,5 @@
</div>
{{/if}}
</div>
{{> common/suspend-home}}
</div>
\ No newline at end of file
... ...
... ... @@ -174,6 +174,6 @@
{{#if showPannel}}
<input type="hidden" id="showPannel" value="1">
{{/if}}
{{> common/suspend-home}}
</div>
{{/ result}}
... ...
... ... @@ -39,6 +39,7 @@
{{> common/query-param}}
{{> common/suspend-home}}
{{> common/suspend-cart}}
</div>
... ...
... ... @@ -51,5 +51,5 @@
{{> common/filter-nav}}
</div>
{{> sale/common}}
{{> common/suspend-home}}
</div>
... ...
... ... @@ -233,6 +233,7 @@
</ul>
</div>
</div>
{{> common/suspend-home}}
</div>
{{> common/filter}}
{{/ shopIndex}}
... ...
... ... @@ -143,7 +143,7 @@
</div>
{{> common/query-param}}
{{> common/suspend-home}}
{{> common/suspend-cart}}
{{/ goodList}}
... ...
... ... @@ -32,7 +32,8 @@ module.exports = () => {
res.set('Access-Control-Allow-Origin', '*');
}
res.locals.cartUrl = helpers.urlFormat('/cart/index/index');
res.locals.cartUrl = helpers.urlFormat('/cart/index/index'); // 悬挂购物车
res.locals.indexUrl = helpers.urlFormat('/?go=1'); // 悬挂首页
res.locals.showHeader = true;
next();
... ...
<div id="suspend-home" class="suspend-home hide">
<a href="{{@root.indexUrl}}">
<span class="iconfont">&#xe62a;</span>
</a>
</div>
<script type="text/javascript">
var isWechat = /micromessenger/i.test(navigator.userAgent || '');
if (isWechat) document.getElementById('suspend-home').classList.remove('hide');
</script>
\ No newline at end of file
... ...
@import "good";
@import "filter";
@import "suspend-cart";
@import "suspend-home";
@import "error";
@import "loading";
@import "data-bind";
... ...
.suspend-home {
position: fixed;
right: 30px;
bottom: 140px;
z-index: 10;
width: 88px;
height: 88px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.3);
text-align: center;
line-height: 88px;
a {
display: block;
width: 100%;
height: 100%;
}
.iconfont {
color: #fff;
font-size: 36px;
}
}
\ No newline at end of file
... ...
... ... @@ -94,4 +94,8 @@
padding-left: 0.375rem;
padding-top: 0.2rem;
}
.suspend-home {
bottom: 258px;
}
}
... ...
... ... @@ -311,4 +311,8 @@
}
}
}
.suspend-home {
bottom: 258px;
}
}
... ...