shizhongqi 11 bulan lalu
induk
melakukan
0be5447e96

+ 2 - 2
hdApp/src/admin/picText/picTextList.vue

@@ -8,7 +8,7 @@
               <view class="app-size-26 app-color-0" style="margin-right: 32upx">{{ item.id }}</view>
             </view>
             <view class="list-det" @click="edit(item.id)">
-              <view class="app-size-30 app-color-0" style="font-weight: bold">{{ item.title }}</view>
+              <view class="app-size-30 app-color-0" style="font-weight: bold; max-width: 420rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">{{ item.title }}</view>
             </view>
 
             <view v-if="mode === 'selectPicText'">
@@ -45,7 +45,7 @@
 <script>
 import AppWrapperEmpty from '@/components/app-wrapper-empty';
 import { list } from '@/mixins';
-import { picTextList, picTextDel, UpdateCategoryId } from '@/api/pic-text';
+import { picTextDel, picTextList, UpdateCategoryId } from '@/api/pic-text';
 export default {
   name: 'picTextList',
   components: {

+ 6 - 4
mallApp/src/pages/goods/detail.vue

@@ -78,6 +78,8 @@
           <rich-media-viewer
             ref="richMediaViewerCommon"
             :content="common_previewContent"
+            :startScroll="300"
+            :threshold="450"
           />
         </view>
       </view>
@@ -171,15 +173,15 @@ export default {
         this.data = res.data;
 
         //商品描述
-        this.title = res.data.picTextGoods.title || "";
+        this.title = res.data.picTextGoods && res.data.picTextGoods.title || "";
         // 字符串转换为数组
-        let content = res.data.picTextGoods.content || "";
+        let content = res.data.picTextGoods && res.data.picTextGoods.content || "[]";
         this.previewContent =
           typeof content === "string" ? JSON.parse(content) : content || [];
 
         //通用说明
-        this.common_title = res.data.picText.title || "";
-        content = res.data.picText.content || "";
+        this.common_title = res.data.picText && res.data.picText.title || "";
+        content = res.data.picText && res.data.picText.content || "[]";
         this.common_previewContent =
           typeof content === "string" ? JSON.parse(content) : content || [];
       });