Răsfoiți Sursa

feat :1.橙宝日志 见面优化。

suwenjiang 1 săptămână în urmă
părinte
comite
896ff90c34

+ 108 - 107
src/manifest.json

@@ -1,113 +1,114 @@
 {
-    "name" : "unibest",
-    "appid" : "__UNI__1C998EE",
-    "description" : "",
-    "versionName" : "1.0.0",
-    "versionCode" : "100",
-    "transformPx" : false,
-    "app-plus" : {
-        "usingComponents" : true,
-        "nvueStyleCompiler" : "uni-app",
-        "compilerVersion" : 3,
-        "splashscreen" : {
-            "alwaysShowBeforeRender" : true,
-            "waiting" : true,
-            "autoclose" : true,
-            "delay" : 0
-        },
-        "modules" : {},
-        "distribute" : {
-            "android" : {
-                "permissions" : [
-                    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
-                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
-                    "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
-                    "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
-                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
-                    "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",
-                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
-                    "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
-                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
-                    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
-                    "<uses-feature android:name=\"android.hardware.camera\"/>",
-                    "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
-                ],
-                "minSdkVersion" : 30,
-                "targetSdkVersion" : 30,
-                "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ]
-            },
-            "ios" : {
-                "dSYMs" : false
-            },
-            "sdkConfigs" : {},
-            "google" : {
-                "keypwd" : "123456"
-            },
-            "icons" : {
-                "android" : {
-                    "hdpi" : "unpackage/res/icons/72x72.png",
-                    "xhdpi" : "unpackage/res/icons/96x96.png",
-                    "xxhdpi" : "unpackage/res/icons/144x144.png",
-                    "xxxhdpi" : "unpackage/res/icons/192x192.png"
-                },
-                "ios" : {
-                    "appstore" : "unpackage/res/icons/1024x1024.png",
-                    "ipad" : {
-                        "app" : "unpackage/res/icons/76x76.png",
-                        "app@2x" : "unpackage/res/icons/152x152.png",
-                        "notification" : "unpackage/res/icons/20x20.png",
-                        "notification@2x" : "unpackage/res/icons/40x40.png",
-                        "proapp@2x" : "unpackage/res/icons/167x167.png",
-                        "settings" : "unpackage/res/icons/29x29.png",
-                        "settings@2x" : "unpackage/res/icons/58x58.png",
-                        "spotlight" : "unpackage/res/icons/40x40.png",
-                        "spotlight@2x" : "unpackage/res/icons/80x80.png"
-                    },
-                    "iphone" : {
-                        "app@2x" : "unpackage/res/icons/120x120.png",
-                        "app@3x" : "unpackage/res/icons/180x180.png",
-                        "notification@2x" : "unpackage/res/icons/40x40.png",
-                        "notification@3x" : "unpackage/res/icons/60x60.png",
-                        "settings@2x" : "unpackage/res/icons/58x58.png",
-                        "settings@3x" : "unpackage/res/icons/87x87.png",
-                        "spotlight@2x" : "unpackage/res/icons/80x80.png",
-                        "spotlight@3x" : "unpackage/res/icons/120x120.png"
-                    }
-                }
-            }
-        },
-        "compatible" : {
-            "ignoreVersion" : true
-        }
+  "name": "unibest",
+  "appid": "__UNI__1C998EE",
+  "description": "",
+  "versionName": "1.0.0",
+  "versionCode": "100",
+  "transformPx": false,
+  "app-plus": {
+    "usingComponents": true,
+    "nvueStyleCompiler": "uni-app",
+    "compilerVersion": 3,
+    "splashscreen": {
+      "alwaysShowBeforeRender": true,
+      "waiting": true,
+      "autoclose": true,
+      "delay": 0
     },
-    "quickapp" : {},
-    "mp-weixin" : {
-        "appid" : "wxa2abb91f64032a2b",
-        "setting" : {
-            "urlCheck" : false
+    "modules": {},
+    "distribute": {
+      "android": {
+        "permissions": [
+          "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
+          "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
+          "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
+          "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
+          "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
+          "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
+          "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
+          "<uses-permission android:name=\"android.permission.CAMERA\"/>",
+          "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
+          "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
+          "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
+          "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
+          "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
+          "<uses-feature android:name=\"android.hardware.camera\"/>",
+          "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
+        ],
+        "minSdkVersion": 30,
+        "targetSdkVersion": 30,
+        "abiFilters": [
+          "armeabi-v7a",
+          "arm64-v8a"
+        ]
+      },
+      "ios": {},
+      "sdkConfigs": {},
+      "google": {
+        "keypwd": "123456"
+      },
+      "icons": {
+        "android": {
+          "hdpi": "static/app/icons/72x72.png",
+          "xhdpi": "static/app/icons/96x96.png",
+          "xxhdpi": "static/app/icons/144x144.png",
+          "xxxhdpi": "static/app/icons/192x192.png"
         },
-        "usingComponents" : true
-    },
-    "mp-alipay" : {
-        "usingComponents" : true,
-        "styleIsolation" : "shared"
-    },
-    "mp-baidu" : {
-        "usingComponents" : true
-    },
-    "mp-toutiao" : {
-        "usingComponents" : true
+        "ios": {
+          "appstore": "static/app/icons/1024x1024.png",
+          "ipad": {
+            "app": "static/app/icons/76x76.png",
+            "app@2x": "static/app/icons/152x152.png",
+            "notification": "static/app/icons/20x20.png",
+            "notification@2x": "static/app/icons/40x40.png",
+            "proapp@2x": "static/app/icons/167x167.png",
+            "settings": "static/app/icons/29x29.png",
+            "settings@2x": "static/app/icons/58x58.png",
+            "spotlight": "static/app/icons/40x40.png",
+            "spotlight@2x": "static/app/icons/80x80.png"
+          },
+          "iphone": {
+            "app@2x": "static/app/icons/120x120.png",
+            "app@3x": "static/app/icons/180x180.png",
+            "notification@2x": "static/app/icons/40x40.png",
+            "notification@3x": "static/app/icons/60x60.png",
+            "settings@2x": "static/app/icons/58x58.png",
+            "settings@3x": "static/app/icons/87x87.png",
+            "spotlight@2x": "static/app/icons/80x80.png",
+            "spotlight@3x": "static/app/icons/120x120.png"
+          }
+        }
+      }
     },
-    "uniStatistics" : {
-        "enable" : false
+    "compatible": {
+      "ignoreVersion": true
+    }
+  },
+  "quickapp": {},
+  "mp-weixin": {
+    "appid": "wxa2abb91f64032a2b",
+    "setting": {
+      "urlCheck": false
     },
-    "vueVersion" : "3",
-    "h5" : {
-        "router" : {
-            "base" : "/unibest/"
-        }
+    "usingComponents": true
+  },
+  "mp-alipay": {
+    "usingComponents": true,
+    "styleIsolation": "shared"
+  },
+  "mp-baidu": {
+    "usingComponents": true
+  },
+  "mp-toutiao": {
+    "usingComponents": true
+  },
+  "uniStatistics": {
+    "enable": false
+  },
+  "vueVersion": "3",
+  "h5": {
+    "router": {
+      "base": "/unibest/"
     }
-}
+  }
+}

+ 11 - 21
src/pages/music/component/musicPlayback.vue

@@ -12,18 +12,14 @@
       <image
         @click="goBack"
         style="width: 60rpx; height: 60rpx"
-        src="/src/static/icon/Left.svg"
+        src="@/static/icon/Left.svg"
       ></image>
     </view>
 
     <view class="player-content">
       <!-- 播放图片 -->
       <view class="record-player">
-        <image
-          src="/src/static//icon/fi-rr-big-play.svg"
-          alt="Record Player"
-          class="record-image"
-        />
+        <image src="@/static/icon/fi-rr-big-play.svg" alt="Record Player" class="record-image" />
       </view>
       <!-- 播放按钮 -->
       <view class="track-info">
@@ -36,8 +32,8 @@
               style="width: 32rpx; height: 32rpx"
               :src="
                 song.favorite
-                  ? '/src/static/icon/fi-rr-heart-grey.svg'
-                  : '/src/static/icon/fi-rr-heart.svg'
+                  ? '@/static/icon/fi-rr-heart-grey.svg'
+                  : '@/static/icon/fi-rr-heart.svg'
               "
             ></image>
           </view>
@@ -58,48 +54,42 @@
           <view class="control-btn" @click="palyCycleBtn">
             <image
               style="width: 32rpx; height: 32rpx"
-              src="/src/static/icon/fi-rr-refresh.svg"
+              src="@/static/icon/fi-rr-refresh.svg"
             ></image>
           </view>
           <!-- 上一曲 -->
           <view class="control-btn" @click="previousSongBtn">
-            <image
-              style="width: 48rpx; height: 32rpx"
-              src="/src/static/icon/Group-left.svg"
-            ></image>
+            <image style="width: 48rpx; height: 32rpx" src="@/static/icon/Group-left.svg"></image>
           </view>
           <!-- 播放 暂停 -->
           <view class="control-paly" @click="togglePlayPause">
             <button class="control-btn pause-btn" v-if="isPlaying">
-              <image style="width: 40rpx; height: 40rpx" src="/src/static/icon/Vector.svg"></image>
+              <image style="width: 40rpx; height: 40rpx" src="@/static/icon/Vector.svg"></image>
             </button>
             <button class="control-btn pause-btn" v-else>
               <view class="control-Vector">
                 <image
                   style="width: 8rpx; height: 40rpx"
-                  src="/src/static/icon/Vector-paly.svg"
+                  src="@/static/icon/Vector-paly.svg"
                 ></image>
               </view>
               <view class="control-Vector">
                 <image
                   style="width: 8rpx; height: 40rpx"
-                  src="/src/static/icon/Vector-paly.svg"
+                  src="@/static/icon/Vector-paly.svg"
                 ></image>
               </view>
             </button>
           </view>
           <!-- 下一曲 -->
           <view class="control-btn" @click="nextSongBtn">
-            <image
-              style="width: 48rpx; height: 32rpx"
-              src="/src/static/icon/Group-right.svg"
-            ></image>
+            <image style="width: 48rpx; height: 32rpx" src="@/static/icon/Group-right.svg"></image>
           </view>
           <!--  -->
           <view class="control-btn">
             <image
               style="width: 32rpx; height: 32rpx"
-              src="/src/static/icon/fi-rr-shuffle.svg"
+              src="@/static/icon/fi-rr-shuffle.svg"
             ></image>
           </view>
         </view>

+ 12 - 19
src/pages/music/component/musicRecommend.vue

@@ -15,8 +15,8 @@
 
       <!-- 循环播放 -->
       <view class="header-right" @click="cycleBtn">
-        <image v-if="isRefresh" class="imgIcon" src="/src/static/icon/fi-rr-refresh.svg"></image>
-        <image v-else class="imgIcon" src="/src/static/icon/fi-rr-shuffle.svg"></image>
+        <image v-if="isRefresh" class="imgIcon" src="@/static/icon/fi-rr-refresh.svg"></image>
+        <image v-else class="imgIcon" src="@/static/icon/fi-rr-shuffle.svg"></image>
       </view>
     </view>
 
@@ -24,17 +24,13 @@
     <view class="currently-playing" v-show="playDom">
       <view class="currently-playing-left">
         <view class="play-circle" @click="palyBtn">
-          <image v-if="isRePaly" class="palyIcon" src="/src/static/icon/fi-rr-play.svg"></image>
-          <image v-else class="imgIcon" src="/src/static/icon/fi-rr-pause.svg"></image>
+          <image v-if="isRePaly" class="palyIcon" src="@/static/icon/fi-rr-play.svg"></image>
+          <image v-else class="imgIcon" src="@/static/icon/fi-rr-pause.svg"></image>
         </view>
         <text class="text-paly">继续播放: {{ songTitle }}</text>
       </view>
       <view style="display: flex; gap: 80rpx">
-        <image
-          @click="cleanBtn"
-          class="imgIcon"
-          src="/src/static/icon/fi-rr-cross-small.svg"
-        ></image>
+        <image @click="cleanBtn" class="imgIcon" src="@/static/icon/fi-rr-cross-small.svg"></image>
       </view>
     </view>
 
@@ -44,7 +40,7 @@
         <view class="album-cover">
           <image
             style="width: 100rpx; height: 100rpx"
-            src="/src/static/icon/fi-rr-big-play.svg"
+            src="@/static/icon/fi-rr-big-play.svg"
           ></image>
         </view>
         <view class="song-details" @click="playFavoriteBtn(song, index)">
@@ -56,9 +52,7 @@
             style="width: 40rpx; height: 40rpx"
             v-if="type === 0"
             :src="
-              song.favorite
-                ? '/src/static/icon/fi-rr-heart-grey.svg'
-                : '/src/static/icon/fi-rr-heart.svg'
+              song.favorite ? '@/static/icon/fi-rr-heart-grey.svg' : '@/static/icon/fi-rr-heart.svg'
             "
             @click="toggleFavorite(song)"
           ></image>
@@ -66,7 +60,7 @@
           <image
             v-else
             style="width: 40rpx; height: 40rpx"
-            src="/src/static/icon/fi-rr-heart.svg"
+            src="@/static/icon/fi-rr-heart.svg"
             @click="toggHeartCancel(song)"
           ></image>
         </view>
@@ -152,9 +146,9 @@
     display: flex;
     align-items: center;
     justify-content: space-between;
-    border-bottom: 2rpx solid #f0f0f0;
     padding: 16rpx 32rpx;
     background: #fff;
+    border-bottom: 2rpx solid #f0f0f0;
 
     .header-left {
       display: flex;
@@ -169,17 +163,17 @@
 
   .text-gray {
     padding-left: 25rpx;
+    overflow: hidden;
     font-size: 32rpx;
     color: #333;
-    overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
   }
   .text-paly {
     padding-left: 25rpx;
+    overflow: hidden;
     font-size: 24rpx;
     color: #333;
-    overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
   }
@@ -196,7 +190,6 @@
       align-items: center;
     }
   }
-
   /* 列表 */
   .playlist {
     height: calc(100vh - 620rpx);
@@ -208,9 +201,9 @@
   .playlist-item {
     display: flex;
     align-items: center;
-    border-bottom: 2rpx solid #f0f0f0;
     padding: 16rpx 32rpx;
     background: #fff;
+    border-bottom: 2rpx solid #f0f0f0;
   }
 
   .album-cover {

+ 4 - 4
src/pages/myUser/component/babyInformation.vue

@@ -21,7 +21,7 @@
       <view class="card-container" @click="photoBtn">
         <view class="info-profile"><image :src="camera" /></view>
         <view class="info-camera">
-          <image src="/src/static/icon/camera.svg" />
+          <image src="@/static/icon/camera.svg" />
         </view>
       </view>
       <view class="card-item">
@@ -208,19 +208,19 @@
     padding: 12rpx 0px;
   }
   ::v-deep .wd-button {
-    gap: 10px;
     flex: 1 0 0;
+    gap: 10px;
   }
   ::v-deep .wd-message-box__actions {
     .custom-one {
       color: #000 !important;
-      border: none;
       background: #fff !important;
+      border: none;
     }
     .custom-two {
       color: #fb4848 !important;
-      border: none;
       background: #fff !important;
+      border: none;
     }
   }
 </style>

+ 2 - 2
src/pages/myUser/component/headerTitle.vue

@@ -1,11 +1,11 @@
 <template>
   <view class="header">
     <view class="back-button" @click="goBack">
-      <image style="width: 60rpx; height: 60rpx" src="/src/static/icon/Left.svg"></image>
+      <image style="width: 60rpx; height: 60rpx" src="@/static/icon/Left.svg"></image>
     </view>
     <view class="header-title">{{ title }}</view>
     <view class="header-delete" v-if="isShow" @click="handleDelete">
-      <image class="w-[40rpx] h-[40rpx]" src="/src/static/icon/fi-rr-trash.svg"></image>
+      <image class="w-[40rpx] h-[40rpx]" src="@/static/icon/fi-rr-trash.svg"></image>
     </view>
     <view class="header-delete" v-else>
       <image class="w-[40rpx] h-[40rpx]"></image>

+ 3 - 3
src/pages/myUser/component/myBaby.vue

@@ -11,7 +11,7 @@
     <headerTitle title="我的宝宝"></headerTitle>
     <view class="Empty-baby">
       <!-- <view>
-        <image class="Empty-baby" src="/src/static/icon/Empty.svg"></image>
+        <image class="Empty-baby" src="@/static/icon/Empty.svg"></image>
       </view> -->
       <view
         class="baby-center"
@@ -94,9 +94,9 @@
     .baby-font {
       display: flex;
       align-items: flex-end;
+      height: 48rpx;
       font-size: 28rpx;
       font-weight: 600;
-      height: 48rpx;
       color: #333;
     }
     .baby-year {
@@ -116,7 +116,7 @@
     padding: 16rpx 32rpx;
   }
   ::v-deep .wd-button {
-    gap: 10px;
     flex: 1 0 0;
+    gap: 10px;
   }
 </style>

+ 2 - 2
src/pages/myUser/component/setFocus.vue

@@ -21,7 +21,7 @@
             />
           </view>
           <view>
-            <image style="width: 48rpx; height: 48rpx" src="/src/static/icon/chevron-right.svg" />
+            <image style="width: 48rpx; height: 48rpx" src="@/static/icon/chevron-right.svg" />
           </view>
         </view>
       </view>
@@ -102,8 +102,8 @@
     padding: 16rpx 32rpx;
   }
   ::v-deep .wd-button {
-    gap: 10px;
     flex: 1 0 0;
+    gap: 10px;
     color: #fb4848 !important;
     background: #fff !important;
     border: 2rpx solid #fb4848;

+ 1 - 1
src/pages/myUser/component/userInformation.vue

@@ -21,7 +21,7 @@
           <image :src="userAvatar" class="avatar-image" />
         </View>
         <view>
-          <image style="width: 48rpx; height: 48rpx" src="/src/static/icon/chevron-right.svg" />
+          <image style="width: 48rpx; height: 48rpx" src="@/static/icon/chevron-right.svg" />
         </view>
       </view>
 

+ 7 - 7
src/pages/myUser/myuser.vue

@@ -15,7 +15,7 @@
       <view class="avatar-container" @click="modifyBtn">
         <image :src="userInfo.avatar" class="avatar" mode="aspectFill" />
         <view class="avatar-badge">
-          <image style="width: 52rpx; height: 52rpx" src="/src/static/icon/modify.svg"></image>
+          <image style="width: 52rpx; height: 52rpx" src="@/static/icon/modify.svg"></image>
         </view>
       </view>
       <text class="user-id">{{ userInfo.id }}</text>
@@ -48,20 +48,20 @@
     {
       key: 'baby',
       label: '我的宝宝',
-      icon: '/src/static/icon/fi-rr-child-head.svg',
-      right: '/src/static/icon/chevron-right.svg',
+      icon: '@/static/icon/fi-rr-child-head.svg',
+      right: '@/static/icon/chevron-right.svg',
     },
     {
       key: 'notification',
       label: '消息通知',
-      icon: '/src/static/icon/fi-rr-bell.svg',
-      right: '/src/static/icon/chevron-right.svg',
+      icon: '@/static/icon/fi-rr-bell.svg',
+      right: '@/static/icon/chevron-right.svg',
     },
     {
       key: 'settings',
       label: '设置中心',
-      icon: '/src/static/icon/setup.svg',
-      right: '/src/static/icon/chevron-right.svg',
+      icon: '@/static/icon/setup.svg',
+      right: '@/static/icon/chevron-right.svg',
     },
   ])
   //  页面跳转

+ 7 - 7
src/pages/user/login.vue

@@ -18,12 +18,12 @@
         <!-- 账号 -->
         <view class="country-code">
           <view class="country-phone">
-            <image class="imgIcon" src="/src/static/icon/phone.svg"></image>
+            <image class="imgIcon" src="@/static/icon/phone.svg"></image>
             <view class="login-text">手机号</view>
           </view>
           <view class="phone-input">
             <view @click="replacePhone">{{ replacePoneValue }}</view>
-            <image class="w-[32rpx] h-[32rpx]" src="/src/static/icon/chevron-right.svg"></image>
+            <image class="w-[32rpx] h-[32rpx]" src="@/static/icon/chevron-right.svg"></image>
             <view>
               <input v-model="account" type="text" placeholder="请输入手机号" />
             </view>
@@ -32,7 +32,7 @@
         <!-- 验证码 -->
         <view class="country-password">
           <view class="country-phone">
-            <image class="imgIcon" src="/src/static/icon/Verification.svg"></image>
+            <image class="imgIcon" src="@/static/icon/Verification.svg"></image>
             <view class="login-text">验证码</view>
           </view>
           <view class="phone-input">
@@ -41,7 +41,7 @@
             </view>
             <image
               style="width: 2rpx; height: 32rpx; background: #e7e7e7"
-              src="/src/static/icon/textBor.svg"
+              src="@/static/icon/textBor.svg"
             ></image>
             <view class="send-btn" :disabled="isCountingDown" @click="sendVerificationCode">
               {{ buttonText }}
@@ -240,10 +240,10 @@
     justify-content: center;
     min-height: 100vh;
     // background: linear-gradient(0deg, #fff 0%, #ffac78 100%);
-    background-image: url('/src/static/icon/loginGg.svg');
-    background-size: cover;
-    background-position: center;
+    background-image: url('@/static/icon/loginGg.svg');
     background-repeat: no-repeat;
+    background-position: center;
+    background-size: cover;
   }
 
   .login-box {