mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-06 03:56:57 +08:00
小程序商品参数同步
This commit is contained in:
@ -30,7 +30,7 @@ textarea {
|
||||
}
|
||||
.spacing-nav-title .line {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
width: 80%;
|
||||
height: 1px;
|
||||
background: #d2364c;
|
||||
position: absolute;
|
||||
|
||||
@ -160,7 +160,7 @@
|
||||
font-size: 32rpx;
|
||||
line-height: 44rpx;
|
||||
font-weight: 500;
|
||||
padding: 15rpx 10rpx;
|
||||
padding: 8rpx 10rpx;
|
||||
}
|
||||
.goods-base {
|
||||
padding: 15rpx 10rpx;
|
||||
@ -337,4 +337,30 @@
|
||||
*/
|
||||
.goods-buy-nav .buy-nav-submit-full button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* 商品参数
|
||||
*/
|
||||
.parameters-base {
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
.parameters-base .content-item .item {
|
||||
color: #666;
|
||||
}
|
||||
.goods-parameters .content-item {
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item {
|
||||
padding: 8rpx 10rpx;
|
||||
width: calc(50% - 20rpx);
|
||||
}
|
||||
.goods-parameters .content-item .item .name {
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item:nth-child(2n-1) {
|
||||
float: left;
|
||||
}
|
||||
.goods-parameters .content-item .item:nth-child(2n) {
|
||||
float: right;
|
||||
}
|
||||
@ -48,7 +48,7 @@
|
||||
<text class="sales-price">{{price_symbol}}{{goods.price}}</text>
|
||||
<view a:if="{{(goods.original_price || null) != null && goods.original_price != '0.00'}}" class="original-price">{{price_symbol}}{{goods.original_price}}</view>
|
||||
</view>
|
||||
<view class="base-grid br-t oh">
|
||||
<view class="base-grid br-t-dashed oh">
|
||||
<view class="fl tl">
|
||||
<text class="cr-888">累计销量</text>
|
||||
<text class="cr-main">{{goods.sales_count}}</text>
|
||||
@ -66,6 +66,18 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商品基础参数 -->
|
||||
<view a:if="{{(goods.parameters || null) != null && goods.parameters.base.length > 0}}" class="goods-parameters parameters-base br-t-dashed bg-white">
|
||||
<view class="content-item oh">
|
||||
<block a:for="{{goods.parameters.base}}" a:key="item">
|
||||
<view class="item single-text">
|
||||
<text class="name">{{item.name}}:</text>
|
||||
<text class="value">{{item.value}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 优惠劵 -->
|
||||
<view a:if="{{(plugins_coupon_data || null) != null && plugins_coupon_data.data.length > 0}}" class="coupon-container wh-auto spacing-mt bg-white">
|
||||
<scroll-view scroll-x="true">
|
||||
@ -89,6 +101,22 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- 商品详情参数 -->
|
||||
<view a:if="{{(goods.parameters || null) != null && goods.parameters.detail.length > 0}}" class="goods-parameters spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品参数</text>
|
||||
</view>
|
||||
<view class="content-item oh">
|
||||
<block a:for="{{goods.parameters.detail}}" a:key="item">
|
||||
<view class="item single-text">
|
||||
<text class="name">{{item.name}}:</text>
|
||||
<text class="value">{{item.value}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 属性导航 -->
|
||||
<!-- <view a:if="{{false}}" class="spacing">
|
||||
<view class="goods-spec-show-title bg-white arrow-right cr-666" onTap="good_spec_nav_event">
|
||||
@ -97,30 +125,32 @@
|
||||
</view> -->
|
||||
|
||||
<!-- 商品详情 -->
|
||||
<view class="goods-detail spacing-mt spacing bg-white">
|
||||
<view class="goods-detail spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品详情</text>
|
||||
</view>
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block a:if="{{common_is_goods_detail_show_photo == 1 && goods_photo.length > 0}}">
|
||||
<view a:for="{{goods_photo}}" a:key="key" class="goods-detail-photo">
|
||||
<image a:if="{{(item.images || null) != null}}" onTap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view a:if="{{common_app_is_use_mobile_detail == 0}}">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
<!-- 手机独立详情 -->
|
||||
<block a:if="{{common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0}}">
|
||||
<view a:for="{{goods_content_app}}" class="goods-detail-app">
|
||||
<view class="spacing">
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block a:if="{{common_is_goods_detail_show_photo == 1 && goods_photo.length > 0}}">
|
||||
<view a:for="{{goods_photo}}" a:key="key" class="goods-detail-photo">
|
||||
<image a:if="{{(item.images || null) != null}}" onTap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view a:if="{{(item.content || null) != null}}" class="content-items">
|
||||
<view a:for="{{item.content}}" a:for-item="items">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view a:if="{{common_app_is_use_mobile_detail == 0}}">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 手机独立详情 -->
|
||||
<block a:if="{{common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0}}">
|
||||
<view a:for="{{goods_content_app}}" class="goods-detail-app">
|
||||
<image a:if="{{(item.images || null) != null}}" onTap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view a:if="{{(item.content || null) != null}}" class="content-items">
|
||||
<view a:for="{{item.content}}" a:for-item="items">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底线 -->
|
||||
|
||||
@ -37,7 +37,7 @@ textarea {
|
||||
}
|
||||
.spacing-nav-title .line {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
width: 80%;
|
||||
height: 1px;
|
||||
background: #d2364c;
|
||||
position: absolute;
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
font-size: 32rpx;
|
||||
line-height: 44rpx;
|
||||
font-weight: 500;
|
||||
padding: 15rpx 10rpx;
|
||||
padding: 8rpx 10rpx;
|
||||
}
|
||||
.goods-base {
|
||||
padding: 15rpx 10rpx;
|
||||
@ -342,4 +342,30 @@
|
||||
*/
|
||||
.goods-buy-nav .buy-nav-submit-full button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* 商品参数
|
||||
*/
|
||||
.parameters-base {
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
.parameters-base .content-item .item {
|
||||
color: #666;
|
||||
}
|
||||
.goods-parameters .content-item {
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item {
|
||||
padding: 8rpx 10rpx;
|
||||
width: calc(50% - 20rpx);
|
||||
}
|
||||
.goods-parameters .content-item .item .name {
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item:nth-child(2n-1) {
|
||||
float: left;
|
||||
}
|
||||
.goods-parameters .content-item .item:nth-child(2n) {
|
||||
float: right;
|
||||
}
|
||||
@ -41,7 +41,7 @@
|
||||
<text class="sales-price">{{price_symbol}}{{goods.price}}</text>
|
||||
<view s-if="(goods.original_price || null) != null && goods.original_price != '0.00'" class="original-price">{{price_symbol}}{{goods.original_price}}</view>
|
||||
</view>
|
||||
<view class="base-grid br-t oh">
|
||||
<view class="base-grid br-t-dashed oh">
|
||||
<view class="fl tl">
|
||||
<text class="cr-888">累计销量</text>
|
||||
<text class="cr-main">{{goods.sales_count}}</text>
|
||||
@ -59,6 +59,18 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商品基础参数 -->
|
||||
<view s-if="(goods.parameters || null) != null && goods.parameters.base.length > 0" class="goods-parameters parameters-base br-t-dashed bg-white">
|
||||
<view class="content-item oh">
|
||||
<block s-for="item, index in goods.parameters.base" s-key="item">
|
||||
<view class="item single-text">
|
||||
<text class="name">{{item.name}}:</text>
|
||||
<text class="value">{{item.value}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 优惠劵 -->
|
||||
<view s-if="(plugins_coupon_data || null) != null && plugins_coupon_data.data.length > 0" class="coupon-container wh-auto spacing-mt bg-white">
|
||||
<scroll-view scroll-x="true">
|
||||
@ -82,38 +94,49 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- 属性导航 -->
|
||||
<!-- <view wx:if="{{false}}" class="spacing">
|
||||
<view class="goods-spec-show-title bg-white arrow-right cr-666" bindtap="good_attribute_nav_event">
|
||||
属性
|
||||
<!-- 商品详情参数 -->
|
||||
<view s-if="(goods.parameters || null) != null && goods.parameters.detail.length > 0" class="goods-parameters spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品参数</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="content-item oh">
|
||||
<block s-for="item, index in goods.parameters.detail" s-key="item">
|
||||
<view class="item single-text">
|
||||
<text class="name">{{item.name}}:</text>
|
||||
<text class="value">{{item.value}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商品详情 -->
|
||||
<view class="goods-detail spacing-mt spacing bg-white">
|
||||
<view class="goods-detail spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品详情</text>
|
||||
</view>
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block s-if="common_is_goods_detail_show_photo == 1 && goods_photo.length > 0">
|
||||
<view s-for="item, index in goods_photo" s-key="key" class="goods-detail-photo">
|
||||
<image s-if="(item.images || null) != null" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view s-if="common_app_is_use_mobile_detail == 0">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
<!-- 手机独立详情 -->
|
||||
<block s-if="common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0">
|
||||
<view s-for="item, index in goods_content_app" s-key="key" class="goods-detail-app">
|
||||
<view class="spacing">
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block s-if="common_is_goods_detail_show_photo == 1 && goods_photo.length > 0">
|
||||
<view s-for="item, index in goods_photo" s-key="key" class="goods-detail-photo">
|
||||
<image s-if="(item.images || null) != null" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view s-if="(item.content || null) != null" class="content-items">
|
||||
<view s-for="items, index in item.content">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view s-if="common_app_is_use_mobile_detail == 0">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 手机独立详情 -->
|
||||
<block s-if="common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0">
|
||||
<view s-for="item, index in goods_content_app" s-key="key" class="goods-detail-app">
|
||||
<image s-if="(item.images || null) != null" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view s-if="(item.content || null) != null" class="content-items">
|
||||
<view s-for="items, index in item.content">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底线 -->
|
||||
|
||||
@ -37,7 +37,7 @@ textarea {
|
||||
}
|
||||
.spacing-nav-title .line {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
width: 80%;
|
||||
height: 1px;
|
||||
background: #d2364c;
|
||||
position: absolute;
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
<template is="limitedtimediscount" data="{{plugins_limitedtimediscount_data: plugins_limitedtimediscount_data, plugins_limitedtimediscount_is_show_time: plugins_limitedtimediscount_is_show_time, plugins_limitedtimediscount_time_millisecond: plugins_limitedtimediscount_time_millisecond}}"></template>
|
||||
</view>
|
||||
|
||||
<!-- 基础息 -->
|
||||
<!-- 基础信息 -->
|
||||
<view class="goods-base bg-white">
|
||||
<view class="goods-price single-text">
|
||||
<view class="goods-share tc">
|
||||
@ -48,7 +48,7 @@
|
||||
<text class="sales-price">{{price_symbol}}{{goods.price}}</text>
|
||||
<view qq:if="{{(goods.original_price || null) != null && goods.original_price != '0.00'}}" class="original-price">{{price_symbol}}{{goods.original_price}}</view>
|
||||
</view>
|
||||
<view class="base-grid br-t oh">
|
||||
<view class="base-grid br-t-dashed oh">
|
||||
<view class="fl tl">
|
||||
<text class="cr-888">累计销量</text>
|
||||
<text class="cr-main">{{goods.sales_count}}</text>
|
||||
@ -66,6 +66,18 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商品基础参数 -->
|
||||
<view qq:if="{{(goods.parameters || null) != null && goods.parameters.base.length > 0}}" class="goods-parameters parameters-base br-t-dashed bg-white">
|
||||
<view class="content-item oh">
|
||||
<block qq:for="{{goods.parameters.base}}" qq:key="item">
|
||||
<view class="item single-text">
|
||||
<text class="name">{{item.name}}:</text>
|
||||
<text class="value">{{item.value}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 优惠劵 -->
|
||||
<view qq:if="{{(plugins_coupon_data || null) != null && plugins_coupon_data.data.length > 0}}" class="coupon-container wh-auto spacing-mt bg-white">
|
||||
<scroll-view scroll-x="true">
|
||||
@ -89,38 +101,49 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- 属性导航 -->
|
||||
<!-- <view qq:if="{{false}}" class="spacing">
|
||||
<view class="goods-spec-show-title bg-white arrow-right cr-666" bindtap="good_attribute_nav_event">
|
||||
属性
|
||||
<!-- 商品详情参数 -->
|
||||
<view qq:if="{{(goods.parameters || null) != null && goods.parameters.detail.length > 0}}" class="goods-parameters spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品参数</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="content-item oh">
|
||||
<block qq:for="{{goods.parameters.detail}}" qq:key="item">
|
||||
<view class="item single-text">
|
||||
<text class="name">{{item.name}}:</text>
|
||||
<text class="value">{{item.value}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商品详情 -->
|
||||
<view class="goods-detail spacing-mt spacing bg-white">
|
||||
<view class="goods-detail spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品详情</text>
|
||||
</view>
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block qq:if="{{common_is_goods_detail_show_photo == 1 && goods_photo.length > 0}}">
|
||||
<view qq:for="{{goods_photo}}" qq:key="key" class="goods-detail-photo">
|
||||
<image qq:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view qq:if="{{common_app_is_use_mobile_detail == 0}}">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
<!-- 手机独立详情 -->
|
||||
<block qq:if="{{common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0}}">
|
||||
<view qq:for="{{goods_content_app}}" qq:key="key" class="goods-detail-app">
|
||||
<view class="spacing">
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block qq:if="{{common_is_goods_detail_show_photo == 1 && goods_photo.length > 0}}">
|
||||
<view qq:for="{{goods_photo}}" qq:key="key" class="goods-detail-photo">
|
||||
<image qq:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view qq:if="{{(item.content || null) != null}}" class="content-items">
|
||||
<view qq:for="{{item.content}}" qq:for-item="items">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view qq:if="{{common_app_is_use_mobile_detail == 0}}">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 手机独立详情 -->
|
||||
<block qq:if="{{common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0}}">
|
||||
<view qq:for="{{goods_content_app}}" qq:key="key" class="goods-detail-app">
|
||||
<image qq:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view qq:if="{{(item.content || null) != null}}" class="content-items">
|
||||
<view qq:for="{{item.content}}" qq:for-item="items">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底线 -->
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
font-size: 32rpx;
|
||||
line-height: 44rpx;
|
||||
font-weight: 500;
|
||||
padding: 15rpx 10rpx;
|
||||
padding: 8rpx 10rpx;
|
||||
}
|
||||
.goods-base {
|
||||
padding: 15rpx 10rpx;
|
||||
@ -338,4 +338,30 @@
|
||||
*/
|
||||
.goods-buy-nav .buy-nav-submit-full button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* 商品参数
|
||||
*/
|
||||
.parameters-base {
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
.parameters-base .content-item .item {
|
||||
color: #666;
|
||||
}
|
||||
.goods-parameters .content-item {
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item {
|
||||
padding: 8rpx 10rpx;
|
||||
width: calc(50% - 20rpx);
|
||||
}
|
||||
.goods-parameters .content-item .item .name {
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item:nth-child(2n-1) {
|
||||
float: left;
|
||||
}
|
||||
.goods-parameters .content-item .item:nth-child(2n) {
|
||||
float: right;
|
||||
}
|
||||
@ -37,7 +37,7 @@ textarea {
|
||||
}
|
||||
.spacing-nav-title .line {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
width: 80%;
|
||||
height: 1px;
|
||||
background: #d2364c;
|
||||
position: absolute;
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
<template is="limitedtimediscount" data="{{plugins_limitedtimediscount_data: plugins_limitedtimediscount_data, plugins_limitedtimediscount_is_show_time: plugins_limitedtimediscount_is_show_time, plugins_limitedtimediscount_time_millisecond: plugins_limitedtimediscount_time_millisecond}}"></template>
|
||||
</view>
|
||||
|
||||
<!-- 基础息 -->
|
||||
<!-- 基础信息 -->
|
||||
<view class="goods-base bg-white">
|
||||
<view class="goods-price single-text">
|
||||
<view class="goods-share tc">
|
||||
@ -48,7 +48,7 @@
|
||||
<text class="sales-price">{{price_symbol}}{{goods.price}}</text>
|
||||
<view tt:if="{{(goods.original_price || null) != null && goods.original_price != '0.00'}}" class="original-price">{{price_symbol}}{{goods.original_price}}</view>
|
||||
</view>
|
||||
<view class="base-grid br-t oh">
|
||||
<view class="base-grid br-t-dashed oh">
|
||||
<view class="fl tl">
|
||||
<text class="cr-888">累计销量</text>
|
||||
<text class="cr-main">{{goods.sales_count}}</text>
|
||||
@ -66,6 +66,18 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商品基础参数 -->
|
||||
<view tt:if="{{(goods.parameters || null) != null && goods.parameters.base.length > 0}}" class="goods-parameters parameters-base br-t-dashed bg-white">
|
||||
<view class="content-item oh">
|
||||
<block tt:for="{{goods.parameters.base}}" tt:key="item">
|
||||
<view class="item single-text">
|
||||
<text class="name">{{item.name}}:</text>
|
||||
<text class="value">{{item.value}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 优惠劵 -->
|
||||
<view tt:if="{{(plugins_coupon_data || null) != null && plugins_coupon_data.data.length > 0}}" class="coupon-container wh-auto spacing-mt bg-white">
|
||||
<scroll-view scroll-x="true">
|
||||
@ -89,38 +101,49 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- 属性导航 -->
|
||||
<!-- <view tt:if="{{false}}" class="spacing">
|
||||
<view class="goods-spec-show-title bg-white arrow-right cr-666" bindtap="good_attribute_nav_event">
|
||||
属性
|
||||
<!-- 商品详情参数 -->
|
||||
<view tt:if="{{(goods.parameters || null) != null && goods.parameters.detail.length > 0}}" class="goods-parameters spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品参数</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="content-item oh">
|
||||
<block tt:for="{{goods.parameters.detail}}" tt:key="item">
|
||||
<view class="item single-text">
|
||||
<text class="name">{{item.name}}:</text>
|
||||
<text class="value">{{item.value}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商品详情 -->
|
||||
<view class="goods-detail spacing-mt spacing bg-white">
|
||||
<view class="goods-detail spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品详情</text>
|
||||
</view>
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block tt:if="{{common_is_goods_detail_show_photo == 1 && goods_photo.length > 0}}">
|
||||
<view tt:for="{{goods_photo}}" tt:key="key" class="goods-detail-photo">
|
||||
<image tt:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view tt:if="{{common_app_is_use_mobile_detail == 0}}">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
<!-- 手机独立详情 -->
|
||||
<block tt:if="{{common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0}}">
|
||||
<view tt:for="{{goods_content_app}}" tt:key="key" class="goods-detail-app">
|
||||
<view class="spacing">
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block tt:if="{{common_is_goods_detail_show_photo == 1 && goods_photo.length > 0}}">
|
||||
<view tt:for="{{goods_photo}}" tt:key="key" class="goods-detail-photo">
|
||||
<image tt:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view tt:if="{{(item.content || null) != null}}" class="content-items">
|
||||
<view tt:for="{{item.content}}" tt:for-item="items">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view tt:if="{{common_app_is_use_mobile_detail == 0}}">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 手机独立详情 -->
|
||||
<block tt:if="{{common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0}}">
|
||||
<view tt:for="{{goods_content_app}}" tt:key="key" class="goods-detail-app">
|
||||
<image tt:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view tt:if="{{(item.content || null) != null}}" class="content-items">
|
||||
<view tt:for="{{item.content}}" tt:for-item="items">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底线 -->
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
font-size: 32rpx;
|
||||
line-height: 44rpx;
|
||||
font-weight: 500;
|
||||
padding: 15rpx 10rpx;
|
||||
padding: 8rpx 10rpx;
|
||||
}
|
||||
.goods-base {
|
||||
padding: 15rpx 10rpx;
|
||||
@ -338,4 +338,30 @@
|
||||
*/
|
||||
.goods-buy-nav .buy-nav-submit-full button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
* 商品参数
|
||||
*/
|
||||
.parameters-base {
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
.parameters-base .content-item .item {
|
||||
color: #666;
|
||||
}
|
||||
.goods-parameters .content-item {
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item {
|
||||
padding: 8rpx 10rpx;
|
||||
width: calc(50% - 20rpx);
|
||||
}
|
||||
.goods-parameters .content-item .item .name {
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item:nth-child(2n-1) {
|
||||
float: left;
|
||||
}
|
||||
.goods-parameters .content-item .item:nth-child(2n) {
|
||||
float: right;
|
||||
}
|
||||
@ -37,7 +37,7 @@ textarea {
|
||||
}
|
||||
.spacing-nav-title .line {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
width: 80%;
|
||||
height: 1px;
|
||||
background: #d2364c;
|
||||
position: absolute;
|
||||
|
||||
@ -84,7 +84,7 @@ Page({
|
||||
params = app.launch_params_handle(params);
|
||||
|
||||
// 参数赋值,初始化
|
||||
params['goods_id']=12;
|
||||
//params['goods_id']=12;
|
||||
this.setData({params: params});
|
||||
this.init();
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
<template is="limitedtimediscount" data="{{plugins_limitedtimediscount_data: plugins_limitedtimediscount_data, plugins_limitedtimediscount_is_show_time: plugins_limitedtimediscount_is_show_time, plugins_limitedtimediscount_time_millisecond: plugins_limitedtimediscount_time_millisecond}}"></template>
|
||||
</view>
|
||||
|
||||
<!-- 基础息 -->
|
||||
<!-- 基础信息 -->
|
||||
<view class="goods-base bg-white">
|
||||
<view class="goods-price single-text">
|
||||
<view class="goods-share tc" bindtap="popup_share_event">
|
||||
@ -46,7 +46,7 @@
|
||||
<text class="sales-price">{{price_symbol}}{{goods.price}}</text>
|
||||
<view wx:if="{{(goods.original_price || null) != null && goods.original_price != '0.00'}}" class="original-price">{{price_symbol}}{{goods.original_price}}</view>
|
||||
</view>
|
||||
<view class="base-grid br-t oh">
|
||||
<view class="base-grid br-t-dashed oh">
|
||||
<view class="fl tl">
|
||||
<text class="cr-888">累计销量</text>
|
||||
<text class="cr-main">{{goods.sales_count}}</text>
|
||||
@ -65,7 +65,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 商品基础参数 -->
|
||||
<view wx:if="{{(goods.parameters || null) != null && (goods.parameters.base || null) != null}}" class="goods-parameters parameters-base br-t bg-white spacing">
|
||||
<view wx:if="{{(goods.parameters || null) != null && goods.parameters.base.length > 0}}" class="goods-parameters parameters-base br-t-dashed bg-white">
|
||||
<view class="content-item oh">
|
||||
<block wx:for="{{goods.parameters.base}}" wx:key="item">
|
||||
<view class="item single-text">
|
||||
@ -100,7 +100,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 商品详情参数 -->
|
||||
<view wx:if="{{(goods.parameters || null) != null && (goods.parameters.detail || null) != null}}" class="goods-parameters spacing-mt bg-white">
|
||||
<view wx:if="{{(goods.parameters || null) != null && goods.parameters.detail.length > 0}}" class="goods-parameters spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品参数</text>
|
||||
@ -116,30 +116,32 @@
|
||||
</view>
|
||||
|
||||
<!-- 商品详情 -->
|
||||
<view class="goods-detail spacing-mt spacing bg-white">
|
||||
<view class="goods-detail spacing-mt bg-white">
|
||||
<view class="spacing-nav-title">
|
||||
<text class="line"></text>
|
||||
<text class="text-wrapper">商品详情</text>
|
||||
</view>
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block wx:if="{{common_is_goods_detail_show_photo == 1 && goods_photo.length > 0}}">
|
||||
<view wx:for="{{goods_photo}}" wx:key="key" class="goods-detail-photo">
|
||||
<image wx:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view wx:if="{{common_app_is_use_mobile_detail == 0}}">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
<!-- 手机独立详情 -->
|
||||
<block wx:if="{{common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0}}">
|
||||
<view wx:for="{{goods_content_app}}" wx:key="key" class="goods-detail-app">
|
||||
<view class="spacing">
|
||||
<!-- 是否详情展示相册 -->
|
||||
<block wx:if="{{common_is_goods_detail_show_photo == 1 && goods_photo.length > 0}}">
|
||||
<view wx:for="{{goods_photo}}" wx:key="key" class="goods-detail-photo">
|
||||
<image wx:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view wx:if="{{(item.content || null) != null}}" class="content-items">
|
||||
<view wx:for="{{item.content}}" wx:for-item="items">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- web详情 -->
|
||||
<view wx:if="{{common_app_is_use_mobile_detail == 0}}">
|
||||
<rich-text nodes="{{goods.content_web || ''}}"></rich-text>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 手机独立详情 -->
|
||||
<block wx:if="{{common_app_is_use_mobile_detail == 1 && goods_content_app.length > 0}}">
|
||||
<view wx:for="{{goods_content_app}}" wx:key="key" class="goods-detail-app">
|
||||
<image wx:if="{{(item.images || null) != null}}" bindtap="goods_detail_images_view_event" data-value="{{item.images}}" class="wh-auto dis-block" src="{{item.images}}" mode="widthFix" />
|
||||
<view wx:if="{{(item.content || null) != null}}" class="content-items">
|
||||
<view wx:for="{{item.content}}" wx:for-item="items">{{items}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底线 -->
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
font-size: 32rpx;
|
||||
line-height: 44rpx;
|
||||
font-weight: 500;
|
||||
padding: 15rpx 10rpx;
|
||||
padding: 8rpx 10rpx;
|
||||
}
|
||||
.goods-base {
|
||||
padding: 15rpx 10rpx;
|
||||
@ -342,6 +342,9 @@
|
||||
/*
|
||||
* 商品参数
|
||||
*/
|
||||
.parameters-base {
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
.parameters-base .content-item .item {
|
||||
color: #666;
|
||||
}
|
||||
@ -349,7 +352,7 @@
|
||||
padding-bottom: 10rpx;
|
||||
}
|
||||
.goods-parameters .content-item .item {
|
||||
padding: 5rpx 10rpx;
|
||||
padding: 8rpx 10rpx;
|
||||
width: calc(50% - 20rpx);
|
||||
}
|
||||
.goods-parameters .content-item .item .name {
|
||||
|
||||
Reference in New Issue
Block a user