Authored by 李靖

mars详情页,购物车样式

... ... @@ -38,7 +38,8 @@ const index = (req, res) => {
text: ' '
},
navBtn: false
})
}),
isWechat: req.yoho.isWechat || req.yoho.isMarsApp // 默认判断微信,mars下同微信
}));
};
... ...
... ... @@ -71,7 +71,8 @@ const newDetail = {
`YOHO!BUY 有货${result.brandName}官网专卖店提供${result.brandName}正品、${result.brandName}真品、 ${result.brandName}打折、${result.brandName}代购等。`, // eslint-disable-line
pageFooter: true,
localCss: true,
appPath: appPath
appPath: appPath,
isMarsApp: req.yoho.isMarsApp // 判断mars
});
}).catch(next);
},
... ...
... ... @@ -59,7 +59,7 @@
<link rel="apple-touch-startup-image" sizes="640x920" href="http://static.yohobuy.com/m/v1/img/startup/startup-retina.png" media="screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)">
<link rel="apple-touch-startup-image" sizes="320x460" href="http://static.yohobuy.com/m/v1/img/startup/startup.png" media="screen and (max-device-width: 320)">
</head>
<body class="{{pageStyle}} {{#if isWechat}}wechat-body{{/if}} {{#if width750}}width750{{/if}} {{#if isPassportPage}}passport-body{{/if}} {{#if isStarIndexPage}}star-index-bg{{/if}} {{#if isStarDetailPage}}star-class-body{{/if}} {{#if isInstallmentPage}}installment-body{{/if}}">
<body class="{{pageStyle}} {{#if isWechat}}wechat-body{{/if}} {{#if isMarsApp}}is-mars-app{{/if}} {{#if width750}}width750{{/if}} {{#if isPassportPage}}passport-body{{/if}} {{#if isStarIndexPage}}star-index-bg{{/if}} {{#if isStarDetailPage}}star-class-body{{/if}} {{#if isInstallmentPage}}installment-body{{/if}}">
<div class="main-wrap" id="main-wrap" {{#if appPath}}data-apppath='{{{appPath}}}'{{/if}}>
{{#if systemUpdate}}
{{> updata}}
... ...
... ... @@ -1167,3 +1167,27 @@ $basicBtnC: #eb0313;
iframe {
display: none;
}
.is-mars-app {
.good-detail-page {
.addto-cart,
.sold-out {
background-color: #000;
margin-left: 100px;
}
.cart-bar {
.num-tag {
background-color: #89b374;
}
.new-foot-ico.fav {
display: none;
}
}
.suspend-home {
display: none;
}
}
}
... ...