Authored by yyq

fix style

.detail-banner {
position: relative;
width: 100%rpx;
background-color: #f4f4f4;
}
.detail-banner .swiper-wrapper {
... ...
... ... @@ -18,8 +18,8 @@
</view>
<view class="name-price">
<text class="name item-left">{{item.product_name}}</text>
<view class="price item-right">
<text class="sale-price red">¥ {{helper.round(item.sales_price)}}</text>
<view class="price item-right red">
<text class="sale-price">¥ {{helper.round(item.sales_price)}}</text>
<text wx:if="{{item.mark_price}}" class="mark-price">¥ {{helper.round(item.mark_price)}}</text>
</view>
</view>
... ...
... ... @@ -5,6 +5,11 @@ import {parse, stringify} from '../vendors/query-stringify';
const MINI_APP_DOMAIN = 'miniapp.yohobuy.com';
const OPEN_BY_TYPE = {
GO_LIST: 'go.list',
GO_DETAIL: 'go.productDetail'
};
const pageNameMap = {};
for (let i in rules) {
... ... @@ -64,17 +69,14 @@ global.router = {
});
}
let openBy = JSON.parse(qs['openby:yohobuy'] || {});
let openBy = JSON.parse(qs['openby:yohobuy'] || '{}');
if (openBy.action) {
const GO_LIST = 'go.list';
const GO_DETAIL = 'go.productDetail';
switch (openBy.action) {
case GO_LIST:
case OPEN_BY_TYPE.GO_LIST:
this.go('productList', openBy.params);
break;
case GO_DETAIL:
case OPEN_BY_TYPE.GO_DETAIL:
this.go('productDetail', {productSkn: openBy.params.product_skn});
break;
}
... ...