|
|
@@ -1,72 +1,68 @@
|
|
|
<template>
|
|
|
- <scroll-view class="app-content" scroll-y="true" @scroll="scrollFn">
|
|
|
- <app-swiper
|
|
|
- :height="{ type: 'number', val: 750 }"
|
|
|
- :tagShow="true"
|
|
|
- :list="imgList"
|
|
|
- />
|
|
|
- <view class="shop-intro">
|
|
|
- <view class="app-price app-bold" v-if="data.priceType == 1">
|
|
|
- <text>¥</text>
|
|
|
- <text class="app-size-34">
|
|
|
- {{ data.price ? parseFloat(data.price).toFixed(2) : 0}}
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <view class="tui-pro-titbox">
|
|
|
- <view class="tui-pro-title app-size-32">{{ data.name }}</view>
|
|
|
- <button open-type="share" class="share-button" @click="shareFn">
|
|
|
- <i class="iconfont iconfenxiang"></i>
|
|
|
- <text class="share-text">分享</text>
|
|
|
- </button>
|
|
|
- </view>
|
|
|
- <view class="shop-express app-color-3">
|
|
|
- <view>线下门店</view>
|
|
|
- <view>
|
|
|
- <span class="prompt-text">快速发货</span>
|
|
|
+ <view class="page-container">
|
|
|
+ <scroll-view class="app-content" scroll-y="true" @scroll="scrollFn">
|
|
|
+ <app-swiper
|
|
|
+ :height="{ type: 'number', val: 750 }"
|
|
|
+ :tagShow="true"
|
|
|
+ :list="imgList"
|
|
|
+ />
|
|
|
+ <view class="shop-intro">
|
|
|
+ <view class="app-price app-bold" v-if="data.priceType == 1">
|
|
|
+ <text>¥</text>
|
|
|
+ <text class="app-size-34">
|
|
|
+ {{ data.price ? parseFloat(data.price).toFixed(2) : 0}}
|
|
|
+ </text>
|
|
|
</view>
|
|
|
- <view>
|
|
|
- <span class="prompt-text">品质保证</span>
|
|
|
+ <view class="tui-pro-titbox">
|
|
|
+ <view class="tui-pro-title app-size-32">{{ data.name }}</view>
|
|
|
+ <button open-type="share" class="share-button" @click="shareFn">
|
|
|
+ <i class="iconfont iconfenxiang"></i>
|
|
|
+ <text class="share-text">分享</text>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ <view class="shop-express app-color-3">
|
|
|
+ <view>线下门店</view>
|
|
|
+ <view>
|
|
|
+ <span class="prompt-text">快速发货</span>
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ <span class="prompt-text">品质保证</span>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="module-wrap shop-detail">
|
|
|
- <view class="module-tit app-size-30">商品详情</view>
|
|
|
- <view class="module-det">
|
|
|
- <view class="module-det-text">
|
|
|
- <view class="preview-page">
|
|
|
- <!-- 页面头部 -->
|
|
|
- <!-- <view class="page-header">
|
|
|
- <view class="header-content">
|
|
|
- <text class="page-title">{{ title || "内容预览" }}</text>
|
|
|
+ <view class="module-wrap shop-detail">
|
|
|
+ <view class="module-tit app-size-30">商品详情</view>
|
|
|
+ <view class="module-det">
|
|
|
+ <view class="module-det-text">
|
|
|
+ <view class="preview-page">
|
|
|
+ <!-- 预览内容区域 -->
|
|
|
+ <view class="preview-content">
|
|
|
+ <rich-media-viewer
|
|
|
+ ref="richMediaViewerGoods"
|
|
|
+ :content="previewContent"
|
|
|
+ :startScroll="350"
|
|
|
+ :threshold="550"
|
|
|
+ />
|
|
|
</view>
|
|
|
- </view> -->
|
|
|
-
|
|
|
- <!-- 预览内容区域 -->
|
|
|
- <view class="preview-content">
|
|
|
- <rich-media-viewer
|
|
|
- ref="richMediaViewerGoods"
|
|
|
- :content="previewContent"
|
|
|
- :startScroll="350"
|
|
|
- :threshold="550"
|
|
|
- />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="module-wrap shop-desc">
|
|
|
- <view class="module-tit app-size-30">{{ common_title }}</view>
|
|
|
- <view class="module-det">
|
|
|
- <view class="preview-content">
|
|
|
- <rich-media-viewer
|
|
|
- ref="richMediaViewerCommon"
|
|
|
- :content="common_previewContent"
|
|
|
- :startScroll="300"
|
|
|
- :threshold="450"
|
|
|
- />
|
|
|
+ <view class="module-wrap shop-desc">
|
|
|
+ <view class="module-tit app-size-30">{{ common_title }}</view>
|
|
|
+ <view class="module-det">
|
|
|
+ <view class="preview-content">
|
|
|
+ <rich-media-viewer
|
|
|
+ ref="richMediaViewerCommon"
|
|
|
+ :content="common_previewContent"
|
|
|
+ :startScroll="300"
|
|
|
+ :threshold="450"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </scroll-view>
|
|
|
+
|
|
|
<sel-popup
|
|
|
:show="popupShow"
|
|
|
:info="data"
|
|
|
@@ -76,6 +72,7 @@
|
|
|
@change="changeNum"
|
|
|
@close="hidePopup"
|
|
|
/>
|
|
|
+
|
|
|
<buy-foot
|
|
|
@buy="showPopup"
|
|
|
@goShop="goToShop"
|
|
|
@@ -83,7 +80,7 @@
|
|
|
:priceType="data.priceType"
|
|
|
@goChat="goChat"
|
|
|
/>
|
|
|
- </scroll-view>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import AppSwiper from "@/components/app-swiper";
|
|
|
@@ -395,9 +392,24 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.app-content {
|
|
|
- padding-bottom: 120upx;
|
|
|
+.page-container {
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
height: 100vh;
|
|
|
+ background-color: #f5f5f5;
|
|
|
+}
|
|
|
+
|
|
|
+.app-content {
|
|
|
+ height: 100%;
|
|
|
+ /* #ifdef MP */
|
|
|
+ padding-bottom: calc(220upx + constant(safe-area-inset-bottom)); /* iOS 11.0 */
|
|
|
+ padding-bottom: calc(220upx + env(safe-area-inset-bottom)); /* iOS 11.2+ */
|
|
|
+ /* #endif */
|
|
|
+ /* #ifdef APP-PLUS */
|
|
|
+ padding-bottom: calc(200upx + constant(safe-area-inset-bottom)); /* iOS 11.0 */
|
|
|
+ padding-bottom: calc(200upx + env(safe-area-inset-bottom)); /* iOS 11.2+ */
|
|
|
+ /* #endif */
|
|
|
+ box-sizing: border-box;
|
|
|
// 公共模块
|
|
|
.module-wrap {
|
|
|
margin-top: 20upx;
|