408249787@qq.com 5 時間 前
コミット
e6c952557f
2 ファイル変更29 行追加19 行削除
  1. 23 13
      pages/home/home.vue
  2. 6 6
      pages/operate/operate.vue

+ 23 - 13
pages/home/home.vue

@@ -41,14 +41,15 @@
     <!-- 最新消息 -->
     <view style="background-color: #f2f3f4" class="pb-1">
       <view class="f-size-32 f-weight-bold py2 border-bottom main-color-text" style="padding-left: 15px">最新消息</view>
-      <view class="mx3 my2 p3 bg-color-white" v-for="(item, index) in listData" :key="index" @tap="handleDetail(item)" style="border-radius: 16rpx">
+      <view class="mx3 my2 p3 bg-color-white" v-for="(item, index) in listData" :key="index" @tap="handleDetail(item)"
+        style="border-radius: 16rpx">
         <view class="d-flex j-between">
           <view class="f-size-32 f-weight-bold main-color-text">{{
-                        typeDict[item.detailType]
-                    }}</view>
+            typeDict[item.detailType]
+          }}</view>
           <view class="f-size-26 text-color-b">{{
-                        item.createdTime
-                    }}</view>
+            item.createdTime
+          }}</view>
         </view>
         <view class="f-size-28 text-color-3 f-weight-4 mt-2">
           <rich-text :nodes="item.content"></rich-text>
@@ -120,7 +121,7 @@
       </view>
       <view class="px3 py3 f-size-24 f-weight-bold text-color-6">请选择以下账号做为你的登录账号</view>
       <view class="accounts">
-        <view class="account-item" v-for="item in accounts" :key="item" @click="handleSelectLogin(item)">{{item}}</view>
+        <view class="account-item" v-for="item in accounts" :key="item" @click="handleSelectLogin(item)">{{ item }}</view>
       </view>
     </u-popup>
     <u-tabbar :list="tabbar" :mid-button="true" active-color="#0082ff"></u-tabbar>
@@ -149,12 +150,12 @@ export default {
         }
       ],
       cateList: [
-        {
-          logo: basePath + '/images/icon1.png',
-          name: '设备扫码',
-          url: '',
-          type: 1
-        },
+        // {
+        //   logo: basePath + '/images/icon1.png',
+        //   name: '设备扫码',
+        //   url: '',
+        //   type: 1
+        // },
         /* {
                     logo: basePath + '/images/icon2.png',
                     name: '点检管理',
@@ -365,6 +366,7 @@ export default {
 .uni-swiper-slides {
   inset: 0px 0px !important;
 }
+
 .cate {
   image {
     width: 100rpx;
@@ -376,14 +378,17 @@ export default {
     color: #595c68;
   }
 }
+
 .hot-p {
   .bottom {
-    & > view {
+    &>view {
       width: 33%;
     }
+
     .bottom-item {
       border-radius: 15rpx;
       width: 210rpx;
+
       .bottom-desc {
         border: 1rpx solid #fa5445;
         width: 150rpx;
@@ -416,6 +421,7 @@ export default {
     }
   }
 }
+
 .account-title {
   padding: 30rpx;
   display: flex;
@@ -423,11 +429,13 @@ export default {
   font-weight: bold;
   background: #fff;
 }
+
 .accounts {
   padding: 40rpx;
   height: 600rpx;
   line-height: 60rpx;
   overflow-y: auto;
+
   .account-item {
     padding: 40rpx;
     margin: 0 auto;
@@ -436,11 +444,13 @@ export default {
     border-radius: 20rpx;
     background: #fff;
     margin-bottom: 20rpx;
+
     &:hover {
       cursor: pointer;
     }
   }
 }
+
 ::v-deep .u-drawer-content {
   background: #eee !important;
 }

+ 6 - 6
pages/operate/operate.vue

@@ -15,8 +15,8 @@
           <image :src="myAvatar" @error="myDefaultAvatar" mode=""></image>
         </view>
         <view class="ml-3 f-size-36 text-color-white">{{
-                    userInfo.realName
-                }}</view>
+          userInfo.realName
+        }}</view>
       </view>
     </template>
 
@@ -24,13 +24,13 @@
     <view class="often px3 bg-color-white">
       <view class="f-size-32 f-weight-bold py2 border-bottom">常用功能</view>
       <view class="d-flex f-wrap my2 py3">
-        <view class="col4 mb-2" @tap="handleCode">
+        <!-- <view class="col4 mb-2" @tap="handleCode">
           <view class="d-flex f-column a-center j-center">
             <view class="iconfont icon-saoma main-color-text"></view>
-            <!-- <image src="../../static/images/code.png" mode=""></image> -->
+            <image src="../../static/images/code.png" mode=""></image>
             <text class="f-size-26 text-color-6 mt-2">设备扫码</text>
           </view>
-        </view>
+        </view> -->
         <!--                <navigator class="col4 mb-2" url="../check/check">
                     <view class="d-flex f-column a-center j-center">
                         <view class="iconfont icon-weixiu z-bl"></view>
@@ -209,7 +209,7 @@ export default {
       ]
     }
   },
-  onLoad() {},
+  onLoad() { },
 
   onShow() {
     this.userInfo = this.$BaseTool.UserUtil.getUserInfo()