Ver código fonte

feat: 样式

ljc 2 semanas atrás
pai
commit
3bd01e2e74

+ 2 - 1
components/cwg-email-code-popup.vue

@@ -202,8 +202,9 @@ onBeforeUnmount(() => {
     button {
       border-radius: px2rpx(8);
       font-size: px2rpx(14);
+      line-height: px2rpx(35);
       height: 100%;
-      min-height: px2rpx(35);
+      height: px2rpx(35);
     }
   }
 

+ 1 - 1
components/cwg-payment.vue

@@ -105,7 +105,7 @@ const NumberDecimal = (value) => {
   let realVal = ''
   if (!isNaN(value) && value !== '') {
     // 截取当前数据到小数点后两位
-    realVal = parseFloat(value).toFixed(2)
+    realVal = value// parseFloat(value).toFixed(2)
   } else {
     realVal = '0'
   }

+ 1 - 1
components/cwg-sidebar.vue

@@ -139,7 +139,7 @@ const walletData = ref({} as any)
 const NumberDecimal = (value: any) => {
   let realVal = ''
   if (!isNaN(value) && value !== '') {
-    realVal = parseFloat(value).toFixed(2)
+    realVal = value// parseFloat(value).toFixed(2)
   } else {
     realVal = '0.00'
   }

+ 2 - 2
config/index.ts

@@ -1,8 +1,8 @@
 // #ifdef H5
 let [p, h] = [window.location.protocol, window.location.host];
 let isIP = /^\d+\.\d+\.\d+\.\d+:\d+$/.test(h);
-// let [ho, dt] = isIP ? ['44a5c8109e4', 'com'] : h.split('.').slice(-2);
-let [ho, dt] = isIP ? ['cwgvu', 'club'] : h.split('.').slice(-2);
+let [ho, dt] = isIP ? ['44a5c8109e4', 'com'] : h.split('.').slice(-2);
+// let [ho, dt] = isIP ? ['cwgvu', 'club'] : h.split('.').slice(-2);
 let ht = p == 'http:' ? 'https:' : p;
 console.log(ho, dt, ht, 1009);
 // #else

+ 3 - 2
pages/common/download.vue

@@ -540,8 +540,9 @@ onMounted(async () => {
 @import "@/uni.scss";
 
 :deep(.nav-pills .nav-link.active) {
-    color: #fff;
-    background-color: #FF8110;
+    color: #333;
+    background-color: #FFF5F5;
+  border: 1px solid #EE1C25;
 }
 
 .download-qr-header {

+ 3 - 3
pages/customer/dashboard.vue

@@ -42,7 +42,7 @@
             <view class="card position-relative">
               <view class="card-body d-flex align-items-center gap-3">
                 <view class="icon-placeholder">
-                  <cwg-icon name="crm-money-up" :size="28" color="red" />
+                  <cwg-icon name="crm-money-up" :size="14" color="red" />
                 </view>
                 <view class="flex-1">
                   <view class="d-flex justify-between items-start mb-1">
@@ -960,10 +960,10 @@
 
   .btn {
     text-align: center;
-    background-color: rgb(var(--bs-danger-rgb));
+    //background-color: rgb(var(--bs-danger-rgb));
     font-size: px2rpx(16);
     color: #fff;
-    padding: px2rpx(10) px2rpx(20);
+    //padding: px2rpx(10) px2rpx(20);
     border-radius: px2rpx(8)!important;
     margin: 0;
   }

+ 4 - 2
pages/customer/deposit-select.vue

@@ -1698,7 +1698,8 @@ const showTable = () => {
 const loginComboxOptions = computed(() => {
     return loginOptions.value.map((item) => ({
         text: item.label,
-        value: item.login
+        value: item.login,
+      disable: item.disable,
     }))
 })
 const creditCardOptions = computed(() => {
@@ -1723,7 +1724,8 @@ const getDateList = async () => {
     if (res.code == Code.StatusOK) {
         loginOptions.value = res.data.map(item => ({
             ...item,
-            label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`
+            label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`,
+          disable: item.closeFunctions.includes('1')
         }))
         const pages = getCurrentPages()
         const route = pages[pages.length - 1].$page?.options || {}

+ 1 - 1
pages/customer/wallet-transfer.vue

@@ -219,7 +219,7 @@ const getWalletList = async () => {
     try {
         let res = await drawApi.walletbalance({})
         if (res.code == Code.StatusOK) {
-            walletbalance.value = res.data != null ? Number(res.data).toFixed(2) : '0'
+            walletbalance.value = res.data != null ? res.data  : '0'
         } else {
             uni.showToast({ title: res.msg, icon: 'none' })
         }

+ 5 - 2
pages/customer/withdrawal-select.vue

@@ -803,7 +803,8 @@ const dialogError = computed(() => dialogCheck.value && !dialogVisible.value)
 const loginComboxOptions = computed(() => {
   return loginOptions.value.map((item, index) => ({
     text: item.label,
-    value: item.login
+    value: item.login,
+    disable: item.disable,
   }))
 })
 
@@ -1588,7 +1589,9 @@ async function getDateList() {
   if (res.code == Code.StatusOK) {
     loginOptions.value = res.data.map(item => ({
       ...item,
-      label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`
+      label: `${item.login} - ${groupTypeName(item.type)} - ${t('Custom.Deposit.AvailableBalance')}${groupCurrency(item.currency)}${item.balance}`,
+      // 关闭的功能
+      disable: item.closeFunctions.includes('2')
     }))
     const route = getCurrentPages().pop().$page.options
     if (route.login) {

+ 4 - 1
pages/ib/transfer.vue

@@ -36,7 +36,7 @@
                                                         <span v-t="'Label.AgentNumber'" />
                                                         <span class="text-danger">{{ ibInfo.ibNo }}</span>
-                                                        <span> | </span>
+                                                        <span class="pdlr-1">|</span>
                                                         <span v-t="'Label.CommissionBalance'" />
                                                         <span>:</span>
                                                         <span class="text-danger">${{ Number(balance).toFixed(2)
@@ -1079,4 +1079,7 @@ onLoad((options) => {
 
     }
 }
+.pdlr-1{
+  padding: 0 px2rpx(10);
+}
 </style>

+ 2 - 1
pages/login/index.vue

@@ -53,8 +53,9 @@
           <cwg-match-media :max-width="991">
             <view class="mobile-header-bar">
               <!--          <view class="fixed"/>-->
-
+<!--          #ifndef APP-PLUS    -->
               <LoginHeaderGroup text-color="#fff" :icon-color="isDark ? '#fff' : '#97A1C0'" />
+              <!-- #endif -->
             </view>
           </cwg-match-media>
           <view class="account">