快乐的梦鱼 месяцев назад: 2
Родитель
Сommit
8c61cd8475

+ 3 - 1
src/pages/article/common/CommonListPage.vue

@@ -71,6 +71,7 @@
           titleColor="title-text"
           :classNames="getItemClass(i)"
           :image="getImage(item)"
+          :titleBox="item.titleBox"
           :title="item.title"
           :desc="item.desc"
           :tags="item.bottomTags"
@@ -81,6 +82,7 @@
           v-else-if="itemType.startsWith('article-common')"
           class="w-100"
           titleColor="title-text"
+          :titleBox="item.titleBox"
           :classNames="getItemClass(i)"
           :image="getImage(item)"
           :title="item.title"
@@ -97,10 +99,10 @@
           :image="getImage(item)"
           titleColor="title-text"
           :title="item.title"
+          :titleBox="item.titleBox"
           :tags="item.bottomTags || item.keywords"
           :desc="item.desc"
           :badge="item.badge"
-          :titleBox="item.titleBox"
           @click="goDetails(item, item.id)"
         />
 

+ 6 - 1
src/pages/article/web/ewebview.vue

@@ -1,14 +1,19 @@
 <template>
   <web-view 
     class="w-100 h-100vh"
-    :src="querys.url"
+    :src="finalUrl"
   />
 </template>
 
 <script setup lang="ts">
 import { useLoadQuerys } from '@/common/composeabe/LoadQuerys';
+import { ref } from 'vue';
 
+const finalUrl = ref('')
 const { querys } = useLoadQuerys({
   url: '',
+}, ({ url }) => {
+  finalUrl.value = decodeURIComponent(url)
+  console.log('web-view', finalUrl.value)
 });
 </script>

+ 3 - 3
src/pages/discover.vue

@@ -311,9 +311,9 @@ const topicsData = useSimpleDataLoader(async () => {
 });
 
 function goAnswer() {
-  const url = `https://mn.wenlvti.net/app_static/minnan-answer/index.html?token=${authStore.token}&t=${new Date().getTime()}#/pages/home/dashboard`
-  console.log(url)
-  navTo('/pages/article/web/ewebview', { url: url })
+  navTo('/pages/article/web/ewebview', { url: encodeURIComponent(
+    `https://mn.wenlvti.net/app_static/minnan-answer/index.html?token=${authStore.token}&t=${new Date().getTime()}#/pages/home/dashboard/`
+  ) })
 }
 
 onShareTimeline(() => {

+ 11 - 4
src/pages/parts/Box2LineImageRightShadow.vue

@@ -21,10 +21,13 @@
         mode="aspectFill"
       />
       <view class="d-flex flex-col ml-3 flex-one width-500">
-        <text :class="[
-          'color-primary size-base',
-          desc || title1 ? 'text-lines-1' : 'text-lines-2',
-        ]">{{ title }}</text>
+        <view class="d-flex flex-row">
+          <text :class="[
+            'color-primary size-base',
+            desc || title1 ? 'text-lines-1' : 'text-lines-2',
+            titleBox ? 'border-all-text' : '',
+          ]">{{ title }}</text>
+        </view> 
         <text class="size-s color-second text-lines-2 mt-2">{{ desc }}</text>
         <RoundTags v-if="tags" :tags="tags" small />
       </view>
@@ -43,6 +46,10 @@ defineProps({
   right: String,
   image: String,
 
+  titleBox: {
+    type: Boolean,
+    default: false,
+  },
   tags: {
     type: Array as PropType<string[]>,
     default: null

+ 12 - 10
src/pages/parts/Box2LineLargeImageUserShadow.vue

@@ -29,16 +29,18 @@
       <image class="width-60 mr-2" :src="userHead" mode="widthFix" />
       <text class="size-s">{{ userName }}</text>
     </view>
-    <text 
-      :class="[
-        `color-${titleColor}`,
-        title1 || desc ? 'text-lines-1' : 'text-lines-2',
-        'mt-2',
-        (titleBox ? ' border-all-text' : '')
-      ]"
-    >
-      {{ title }}
-    </text>
+    <view class="d-flex flex-row align-center">
+      <text 
+        :class="[
+          `color-${titleColor}`,
+          title1 || desc ? 'text-lines-1' : 'text-lines-2',
+          'mt-2',
+          (titleBox ? ' border-all-text' : '')
+        ]"
+      >
+        {{ title }}
+      </text>
+    </view>
     <text v-if="badge" class="position-absolute color-primary-text size-s bg-light-primary radius-base p-1 radius-s text-lines-1 r-0 t-0 mr-3 mt-3">{{ badge }}</text>
     <text v-if="desc" class="color-second text-lines-2 mt-2">{{ desc }}</text>
     <view v-if="likes !== undefined && comment !== undefined" class="d-flex flex-row mt-2">