Quellcode durchsuchen

优化钱包展示

calm vor 6 Tagen
Ursprung
Commit
f3a0ab48cc
2 geänderte Dateien mit 18 neuen und 16 gelöschten Zeilen
  1. 4 3
      config/app.js
  2. 14 13
      pages/user/index.vue

+ 4 - 3
config/app.js

@@ -1,17 +1,18 @@
-let domain = "https://www.shuibeibyg.com/front-api"; // 正式环境IP
+// let domain = "https://www.shuibeibyg.com/front-api"; // 正式环境IP
 // let domain = "https://test.shuibeibyg.com/front-api"; // 测试环境IP
 // let domain = 'http://192.168.100.199:8081' // 晋守桦IP
 // let domain = 'http://192.168.100.246:8081' // 韩朝龙IP
-// let domain = "http://192.168.3.29:8081"; // 宏广IP
+let domain = "http://192.168.3.29:8081"; // 宏广IP
 let share = "https://www.shuibeibyg.com";
 
 let imgUrl =
   "https://sb-admin.oss-cn-shenzhen.aliyuncs.com/shuibei-mini/new-mini/"; //服務器上图片地址
 
 // export const H5_BASE_URL = "http://192.168.3.10:5174"; // 本地测试
+export const H5_BASE_URL = "http://192.168.3.16:5173"; // 本地测试
 // export const H5_BASE_URL = "http://192.168.100.35:5175"; // 本地测试
 // export const H5_BASE_URL = "https://test.shuibeibyg.com/web-h5/"; // 测试环境H5地址
-export const H5_BASE_URL = "https://www.shuibeibyg.com/web-h5/"; // 正式环境H5地址
+// export const H5_BASE_URL = "https://www.shuibeibyg.com/web-h5/"; // 正式环境H5地址
 
 // PC 后台 API 地址(用于上传图片)
 export const HTTP_ADMIN_URL = domain;

+ 14 - 13
pages/user/index.vue

@@ -73,7 +73,10 @@
       </view>
 
       <!-- 会员开通提示 v-if="!userInfo.isVip"-->
-      <view class="vip-promote" v-if="!appStore?.$wxConfig?.storeAuditModeEnabled">
+      <view
+        class="vip-promote"
+        v-if="!appStore?.$wxConfig?.storeAuditModeEnabled"
+      >
         <image
           class="vipBG"
           :src="HTTP_REQUEST_URL_IMG + 'vipBG.png'"
@@ -107,23 +110,23 @@
     </view>
 
     <!-- 钱包余额 -->
-    <view class="wallet-section" v-if="!appStore?.$wxConfig?.storeAuditModeEnabled">
+    <view
+      class="wallet-section"
+      v-if="!appStore?.$wxConfig?.storeAuditModeEnabled"
+    >
       <view class="wallet-header">
         <view>
-          <view class="wallet-title">钱包余额(元)</view>
-          <view class="balance">{{ wallet.balance }}</view>
+          <view class="wallet-title">钱包余额</view>
+          <!-- <view class="balance">{{ wallet.balance }}</view> -->
         </view>
 
-        <view
-          class="transaction-detail"
-          @click="viewTransactionDetail"
-        >
+        <view class="transaction-detail" @click="viewTransactionDetail">
           <text style="margin-right: 10rpx">进入钱包</text>
           <uni-icons type="right" size="16" color="#666666"></uni-icons>
         </view>
       </view>
       <up-line color="#F1F3F8"></up-line>
-
+      <!-- 
       <view class="assets">
         <view
           v-for="(asset, index) in wallet.assets"
@@ -137,7 +140,6 @@
             >
           </view>
 
-          <!-- 在每个资产项后面添加垂直分隔线,除了最后一个 -->
           <up-line
             v-if="index < wallet.assets.length - 1"
             color="#F1F3F8"
@@ -146,7 +148,7 @@
             style="margin: 0 20rpx"
           ></up-line>
         </view>
-      </view>
+      </view> -->
 
       <!-- <view
         class="wallet-actions"
@@ -173,7 +175,6 @@
         >
           <view class="function-icon">
             <image
-
               :src="item.iconUrl"
               mode="widthFix"
               :style="{ width: (item.iconSize || '60') + 'rpx' }"
@@ -543,7 +544,7 @@ watch(
     // ];
     console.log(tradeList.value);
   },
-  { deep: true, immediate: true },
+  { deep: true, immediate: true }
 );
 
 // 编辑资料