Browse Source

项目优化

yanj 1 month ago
parent
commit
64197e337e

+ 1 - 1
components/common/u-content/index.vue

@@ -1,7 +1,7 @@
 <template>
   <view>
 <!--    <rich-text :user-select="true" class="rich-text-style" :nodes="htmlNodes" style="width: 100%"></rich-text>-->
-    <mp-html class="rich-text-style" :content="htmlNodes" />
+    <mp-html class="rich-text-style" :content="htmlNodes" selectable />
   </view>
 </template>
 

+ 8 - 0
pages/activity/guest.vue

@@ -158,6 +158,14 @@ export default {
       getMeetingInfo({id: this.id}).then(res => {
         this.meetingInfo = res.data
         this.meetingInfo.time = returnTimeFormat(res.data.start_date, res.data.end_date)
+        if (this.meetingInfo.speech_schedule) {
+          this.meetingInfo.speech_schedule.sort((a, b) => {
+            // 将日期字符串转换为时间戳(兼容 ISO 格式)
+            const timeA = new Date(a.start_date.replace(' ', 'T')).getTime();
+            const timeB = new Date(b.start_date.replace(' ', 'T')).getTime();
+            return timeA - timeB;
+          });
+        }
         this.expand_content = res.data.expand_content
         this.meetingInfo.speech_schedule.forEach(item=>{
           item.active = []

+ 1 - 12
pages/activity/index.vue

@@ -54,12 +54,7 @@ export default {
       activityListLoading: false,
       activityListLastPage: 1,
       mettingDesc: '',
-      meetingInfo: {},
-      shareInfo: {
-        title: '慕尼黑上海电子生产设备展',
-        path: '/pages/activity/index',
-        imageUrl: 'https://oss.productronicachina.com.cn/resources/common/up/0000001002/20250221/67b829f60c212.png'
-      }
+      meetingInfo: {}
     }
   },
   created() {
@@ -72,12 +67,6 @@ export default {
     })
   },
   methods: {
-    onShareAppMessage: function () {
-      return this.shareInfo
-    },
-    onShareTimeline() {
-      return this.shareInfo
-    },
     getList() {
       this.showLoading()
       this.activityListLoading = true

+ 2 - 0
pages/exhibitor/detail.vue

@@ -282,6 +282,8 @@ export default {
     flex-direction: column;
     grid-gap: 12rpx;
     color: #555555;
+    max-width: 180rpx;
+    word-break: break-word;
     .exhibitor-right {
       display: flex;
       grid-gap: 6rpx;

+ 0 - 17
pages/exhibitor/exhibit.vue

@@ -66,7 +66,6 @@
 		</u-scroll-view>
 		<float-button></float-button>
 		<van-dialog id="van-dialog" />
-<!--		<u-share-action-sheet :show.sync="showShare" :show-info="shareInfo" />-->
 	</page-layout>
 </template>
 
@@ -74,7 +73,6 @@
 	import NavBar from '@/components/layout/nav-bar'
 	import USelect from '@/components/common/u-select/index.vue'
 	import UScrollView from '@/components/common/u-scroll-view'
-	import UShareActionSheet from '@/components/common/u-share-action-sheet'
 	import USearch from '@/components/common/u-search'
 	import UDropdownSelect from '@/components/common/u-dropdown-select'
 	import UPagination from '@/components/common/u-pagination/index.vue'
@@ -105,7 +103,6 @@
 			UScrollView,
 			USearch,
 			UDropdownSelect,
-			UShareActionSheet,
 			ExhibitItem,
 			DisclaimerText,
 			USelect,
@@ -160,20 +157,6 @@
       })
 		},
 		methods: {
-      onShareTimeline() {
-        return {
-          title: '慕尼黑上海电子生产设备展',
-          path: '/pages/exhibitor/exhibit',
-          imageUrl: 'https://oss.productronicachina.com.cn/resources/common/up/0000001002/20250221/67b829f60c212.png'
-        }
-      },
-      onShareAppMessage: function () {
-        return {
-          title: '慕尼黑上海电子生产设备展',
-          path: '/pages/exhibitor/exhibit',
-          imageUrl: 'https://oss.productronicachina.com.cn/resources/common/up/0000001002/20250221/67b829f60c212.png'
-        }
-      },
 			onChange(event) {
 				this.activeName = event
 			},

+ 0 - 11
pages/exhibitor/index.vue

@@ -154,11 +154,6 @@ export default {
       adInfo: {
         ad_file: ''
       },
-      shareInfo:{
-        title: '慕尼黑上海电子生产设备展',
-        path: '/pages/exhibitor/index',
-        imageUrl: 'https://oss.productronicachina.com.cn/resources/common/up/0000001002/20250221/67b829f60c212.png'
-      },
     }
   },
   created() {
@@ -180,12 +175,6 @@ export default {
     })
   },
   methods: {
-    onShareAppMessage: function () {
-      return this.shareInfo
-    },
-    onShareTimeline() {
-      return this.shareInfo
-    },
     onShare(e) {
       this.$emit('share',e)
     },

+ 2 - 1
pages/index/index.vue

@@ -83,7 +83,8 @@
       onShareTimeline() {
         return {
           title: '慕尼黑上海电子生产设备展',
-          path: '/pages/index/index?tab='+this.tabbarActive,
+          path: '/pages/index/index',
+          query: 'tab=' + this.tabbarActive,
           imageUrl: 'https://oss.productronicachina.com.cn/resources/common/up/0000001002/20250221/67b829f60c212.png'
         };
       },

+ 2 - 0
static/style/pages/exhibitor-item.scss

@@ -56,6 +56,8 @@
 			flex-shrink: 0;
 			justify-content: flex-end;
 			margin-top: 12rpx;
+			max-width: 180rpx;
+			word-break: break-word;
 		}
 		.exhibitor-number-label{
 			font-size: $fontSize0;