Commit 6dcd0ffd9b1ce3d613faa7a8a6333de014ebc303

Authored by 刘淇
1 parent 984b2e69

优化字体大小

pages-sub/daily/maintain-manage/type-list-page.vue
@@ -22,13 +22,13 @@ @@ -22,13 +22,13 @@
22 </view> 22 </view>
23 23
24 24
25 - <view class="info-row">  
26 - <!-- timeFormat(start, 'yyyy-mm-dd'), --> 25 + <!-- <view class="info-row">
  26 +
27 <view class="info-label">计划编码:</view> 27 <view class="info-label">计划编码:</view>
28 <view class="info-value u-line-1">{{item.planNo }}—{{ 28 <view class="info-value u-line-1">{{item.planNo }}—{{
29 timeFormat(item.endTime, 'yyyy-mm-dd') }} 29 timeFormat(item.endTime, 'yyyy-mm-dd') }}
30 </view> 30 </view>
31 - </view> 31 + </view> -->
32 32
33 <!-- 有效期 --> 33 <!-- 有效期 -->
34 <view class="info-row"> 34 <view class="info-row">
@@ -89,7 +89,7 @@ @@ -89,7 +89,7 @@
89 <!-- ========== 结束任务二次确认弹窗 ========== --> 89 <!-- ========== 结束任务二次确认弹窗 ========== -->
90 <up-modal :show="endTaskModalShow" title="提示" :closeOnClickOverlay="false" :showConfirmButton="true" 90 <up-modal :show="endTaskModalShow" title="提示" :closeOnClickOverlay="false" :showConfirmButton="true"
91 :showCancelButton="true" @cancel="handleEndTaskModalCancel" @confirm="confirmEndTask"> 91 :showCancelButton="true" @cancel="handleEndTaskModalCancel" @confirm="confirmEndTask">
92 - <view class="end-task-modal-content"> 92 + <view class="end-task-modal-content" style="font-size: 14px;">
93 <text>确定要结束吗?</text> 93 <text>确定要结束吗?</text>
94 </view> 94 </view>
95 </up-modal> 95 </up-modal>
@@ -326,8 +326,13 @@ const confirmSetInvalid = async () =&gt; { @@ -326,8 +326,13 @@ const confirmSetInvalid = async () =&gt; {
326 uni.showToast({ title: '操作成功', icon: 'success', duration:2000 }) 326 uni.showToast({ title: '操作成功', icon: 'success', duration:2000 })
327 handleInvalidModalCancel() 327 handleInvalidModalCancel()
328 // 重新加载数据刷新列表 328 // 重新加载数据刷新列表
329 - await loadData()  
330 - pagingRef.value?.reload() 329 + // await loadData()
  330 + // pagingRef.value?.reload()
  331 + // 不要用 uni.navigateBack()
  332 +uni.reLaunch({
  333 + url:'/pages-sub/daily/maintain-manage/index' // 回到你的上游列表页
  334 +})
  335 +
331 } catch (err) { 336 } catch (err) {
332 console.error(err) 337 console.error(err)
333 uni.showToast({ title: err?.msg || '提交失败,请重试', icon: 'none', duration:2000 }) 338 uni.showToast({ title: err?.msg || '提交失败,请重试', icon: 'none', duration:2000 })
@@ -380,8 +385,13 @@ const confirmEndTask = async () =&gt; { @@ -380,8 +385,13 @@ const confirmEndTask = async () =&gt; {
380 await finishPlan({ commitId: targetCommitId }) 385 await finishPlan({ commitId: targetCommitId })
381 uni.hideLoading() 386 uni.hideLoading()
382 uni.showToast({ title: '结束任务成功', icon: 'success', duration:2000 }) 387 uni.showToast({ title: '结束任务成功', icon: 'success', duration:2000 })
383 - await loadData()  
384 - pagingRef.value?.reload() 388 + // await loadData()
  389 + // pagingRef.value?.reload()
  390 + // 不要用 uni.navigateBack()
  391 +uni.reLaunch({
  392 + url:'/pages-sub/daily/maintain-manage/index' // 回到你的上游列表页
  393 +})
  394 +
385 } catch (err) { 395 } catch (err) {
386 console.error('结束任务失败', err) 396 console.error('结束任务失败', err)
387 uni.hideLoading() 397 uni.hideLoading()
pages-sub/daily/maintain-manage/type-list.vue
@@ -5,9 +5,9 @@ @@ -5,9 +5,9 @@
5 @click="toNextPage(item)"> 5 @click="toNextPage(item)">
6 6
7 <!-- 左上图标:按计划类型显示不同颜色图标 --> 7 <!-- 左上图标:按计划类型显示不同颜色图标 -->
8 - <view class="card-icon" :class="item.iconClass || 'icon-default'"> 8 + <!-- <view class="card-icon" :class="item.iconClass || 'icon-default'">
9 <text class="icon-text">{{ item.iconChar || '📋' }}</text> 9 <text class="icon-text">{{ item.iconChar || '📋' }}</text>
10 - </view> 10 + </view> -->
11 11
12 <!-- 名称:第一行大字 --> 12 <!-- 名称:第一行大字 -->
13 <view class="card-name">{{ item.nameText }}</view> 13 <view class="card-name">{{ item.nameText }}</view>
@@ -240,7 +240,7 @@ onUnload(() =&gt; { @@ -240,7 +240,7 @@ onUnload(() =&gt; {
240 } 240 }
241 241
242 .card-count { 242 .card-count {
243 - font-size: 26rpx; 243 + font-size: 30rpx;
244 font-weight: 600; 244 font-weight: 600;
245 color: #2563EB; 245 color: #2563EB;
246 } 246 }