Commit 0b29c1783fc6d44ee19c24e9b978a63935bc9a30

Authored by 刘淇
1 parent 578c1373

样式优化

pages-sub/msg/index.vue
... ... @@ -20,11 +20,11 @@
20 20  
21 21 <template #body>
22 22 <view class="card-body">
23   - <view class="u-flex common-item-center common-justify-between" style="font-size: 14px;margin-top: 5px;">
24   - <view class="u-line-1" style="flex: 1;margin-right: 20px;color: #333"> {{ item.templateCode || '无' }}</view>
25   - <view style="color: #000">{{ timeFormat(item.createTime, 'yyyy-mm-dd hh:MM:ss') }}</view>
  23 + <view class="u-flex common-item-center common-justify-between" style="margin-top: 5px;">
  24 + <view class="u-line-1" style="flex: 1;margin-right: 20px;color: #333;font-size: 14px;"> {{ item.templateCode || '无' }}</view>
  25 + <view style="color: #030303;font-size: 12px;" >{{ timeFormat(item.createTime, 'yyyy-mm-dd') }}</view>
26 26 </view>
27   - <view class="u-line-1 ">
  27 + <view class="u-line-1 " style="font-size: 13px;color: #848484">
28 28 {{ item.templateContent || '无' }}
29 29 </view>
30 30  
... ... @@ -37,15 +37,10 @@
37 37 </template>
38 38  
39 39 <script setup lang="ts">
40   -import { computed,ref } from 'vue'
41   -import { useUserStore } from '@/pinia/user'
  40 +import { ref } from 'vue'
42 41 import { onShow } from '@dcloudio/uni-app'
43 42 import { getMsg } from '@/api/user'
44   -// 初始化Pinia仓库
45   -const userStore = useUserStore()
46 43 import { timeFormat } from '@/uni_modules/uview-plus';
47   -// 计算属性获取用户信息(响应式)
48   -const userInfo = computed(() => userStore.userInfo.user || {})
49 44  
50 45 const paging = ref(null);
51 46 const dataList = ref([]);
... ... @@ -68,13 +63,16 @@ const queryList = async (pageNo, pageSize) =&gt; {
68 63 };
69 64  
70 65 // // 页面显示时检查登录状态
71   -// onShow( async () => {
72   -// const res = await getMsg()
73   -// })
  66 +onShow( async () => {
  67 + // 初始化分页数据
  68 + paging.value?.reload()
  69 +})
74 70 </script>
75 71  
76 72  
77 73  
78 74 <style lang="scss" scoped>
79 75  
80   -</style>
81 76 \ No newline at end of file
  77 +</style>
  78 +<script setup lang="ts">
  79 +</script>
82 80 \ No newline at end of file
... ...
pages/index/index.vue
... ... @@ -386,7 +386,6 @@ $border-color: #e5e5e5; // 新增边框颜色变量
386 386  
387 387 .username {
388 388 font-size: 16px;
389   - font-weight: 500;
390 389 margin-bottom: 4px;
391 390 }
392 391  
... ...
pages/workbench/index.vue
... ... @@ -181,14 +181,12 @@ const handleMenuClick = (item: MenuItem) =&gt; {
181 181 font-size: 16px;
182 182 display: block;
183 183 margin-bottom: 4px;
184   - font-weight: 500;
185 184 }
186 185  
187 186 .platform-name {
188 187 margin-bottom: 10px;
189 188 font-size: 16px;
190 189 display: block;
191   - opacity: 0.95;
192 190 }
193 191 }
194 192  
... ...