Jelajahi Sumber

商品资料库版本

喻文俊 3 tahun lalu
induk
melakukan
b561a816ee

+ 5 - 0
src/main/resources/static/js/document/beautyArchiveDetailMixin.js

@@ -17,6 +17,7 @@ var beautyArchiveDetailMixin = {
         fileArchiveList: [], // 文件资料列表
         defaultImage: 'https://static.caimei365.com/app/img/icon2/PC-default.png',  // 默认图片
         videoCover: 'https://static.caimei365.com/app/img/icon2/video-cover.png', //默认视频封面
+        archiveProductInfo: {}
     },
     filters: {
         // 时间格式化
@@ -211,6 +212,10 @@ var beautyArchiveDetailMixin = {
                 _self.videoArchiveList = res.data.videoArchiveList;
                 _self.fileArchiveList = res.data.fileArchiveList;
                 _self.permission = res.data.permission;
+                _self.archiveProductInfo.productImage = res.data.productImage;
+                _self.archiveProductInfo.productName = res.data.productName;
+                _self.archiveProductInfo.productType = res.data.productType;
+                _self.archiveProductInfo.shopName = res.data.shopName;
                 _self.isRequest = false;
                 // 只有当前用户权限为0时初始化图片预览
                 if (_self.permission === 0) {

+ 4 - 4
src/main/resources/templates/document/beauty-archive-detail.html

@@ -30,17 +30,17 @@
         <!--顶部产品介绍-->
         <div class="cm-header cm-container cm-clearfix">
             <div class="cm-cover">
-                <img src="https://picsum.photos/800/600?random=1" alt="">
+                <img :src="archiveProductInfo.productImage" alt="">
             </div>
             <div class="cm-content">
-                <div class="cm-title">孤云将野鹤,岂向人间住。 莫买沃洲山,时人已知处。</div>
+                <div class="cm-title" v-html="archiveProductInfo.productName"></div>
                 <div class="cm-param">
                     <span>供应商:</span>
-                    <span>唐诗300首</span>
+                    <span>{{ archiveProductInfo.shopName }}</span>
                 </div>
                 <div class="cm-param">
                     <span>商品属性:</span>
-                    <span>刘长卿〔唐代〕</span>
+                    <span>{{archiveProductInfo.productType === 1 ? '商品' : '仪器' }}</span>
                 </div>
             </div>
         </div>