zhb há 1 semana atrás
pai
commit
7cfe74339c

+ 22 - 9
pages/follow/components/applySignalDialog.vue

@@ -1,5 +1,6 @@
 <template>
-  <cwg-popup :title="t('Documentary.TundManagement.item41')" :visible="visible" @close="closeDia" @confirm="confirmDia" width="700px">
+  <cwg-popup :title="t('Documentary.TundManagement.item41')" :visible="visible" @close="closeDia" @confirm="confirmDia"
+    width="700px">
     <uni-forms ref="formRef" :model="formData" :rules="rules" labelWidth="200" label-position="top" class="crm-form">
       <view class="dia-content">
         <!-- 名片信息 -->
@@ -139,8 +140,7 @@
           <view class="form-col">
             <view class="form-item">
               <uni-forms-item :label="t('Documentary.tradingCenter.item32')" name="settlementCycle">
-                <cwg-combox v-model:value="formData.settlementCycle"
-                  :options="optList1"
+                <cwg-combox v-model:value="formData.settlementCycle" :options="optList1"
                   :placeholder="t('placeholder.choose')" />
               </uni-forms-item>
             </view>
@@ -157,8 +157,8 @@
                   {{ t('Documentary.TundManagement.item42') }}
                   <cwg-link type="pdf" class="a" v-if="['cn', 'zhHant'].indexOf(locale) != -1"
                     url="pdf/CopyTradeUserAgreementcn.pdf" target="_blank" title="Documentary.TundManagement.item43" />
-                  <cwg-link type="pdf" class="a" v-else url="pdf/CopyTradeUserAgreement.pdf"
-                    target="_blank" title="Documentary.TundManagement.item43" />
+                  <cwg-link type="pdf" class="a" v-else url="pdf/CopyTradeUserAgreement.pdf" target="_blank"
+                    title="Documentary.TundManagement.item43" />
                   {{ t('Documentary.TundManagement.item42_2') }}
                 </text>
               </label>
@@ -180,7 +180,7 @@ import { ref, computed, watch } from 'vue'
 import { useI18n } from 'vue-i18n'
 import Config from '@/config/index'
 import { documentaryApi } from '@/service/documentary'
-import {useFollowEnum} from '@/pages/follow/const/enum'
+import { useFollowEnum } from '@/pages/follow/const/enum'
 import { useFilters } from '@/composables/useFilters'
 const { numberDecimal } = useFilters()
 
@@ -192,7 +192,7 @@ const props = defineProps({
 const emit = defineEmits(['close', 'confirm'])
 const { t, locale } = useI18n()
 const { Code } = Config
-const {optList1} = useFollowEnum()
+const { optList1 } = useFollowEnum()
 
 const formRef = ref(null)
 const formData = ref({
@@ -474,7 +474,7 @@ const rules = computed(() => ({
 }));
 
 watch(locale, () => {
-    formRef.value?.clearValidate()
+  formRef.value?.clearValidate()
 })
 
 const filterChineseEnglishOnly = (field, value) => {
@@ -623,6 +623,18 @@ watch(() => props.visible, (val) => {
     }
   }
 
+  @media screen and (max-width: 768px) {
+    .delete-item {
+      &:first-child {
+        padding-right: px2rpx(0);
+      }
+
+      &:last-child {
+        padding-left: px2rpx(0);
+      }
+    }
+  }
+
   .delete-label {
     font-size: px2rpx(14);
     color: var(--bs-body-color);
@@ -655,7 +667,8 @@ watch(() => props.visible, (val) => {
     display: flex;
     align-items: flex-start;
     gap: px2rpx(8);
-    :deep(.uni-checkbox-input){
+
+    :deep(.uni-checkbox-input) {
       margin-top: px2rpx(3);
       width: px2rpx(18);
       height: px2rpx(18);

+ 20 - 4
pages/follow/trading-management.vue

@@ -29,8 +29,12 @@
                             - {{ item.dealLogin || "--" }}
                         </view>
                         <view class="caozuo">
-                            <cwg-icon class="cwg-cursor cursor-pointer" :data-tooltip="t('Documentary.TundManagement.item28')" name="crm-trash-can" @click="dialogFllowDele(item)" />
-                            <cwg-icon class="cwg-cursor cursor-pointer" :data-tooltip="t('Documentary.TundManagement.item31')" name="cog-outline" @click="dialogFllowUpdate(item)" />
+                            <cwg-icon class="cwg-cursor cursor-pointer"
+                                :data-tooltip="t('Documentary.TundManagement.item28')" name="crm-trash-can"
+                                @click="dialogFllowDele(item)" />
+                            <cwg-icon class="cwg-cursor cursor-pointer"
+                                :data-tooltip="t('Documentary.TundManagement.item31')" name="cog-outline"
+                                @click="dialogFllowUpdate(item)" />
                         </view>
                     </view>
                     <view class="account-grid">
@@ -150,7 +154,8 @@
                         </view>
                         <view class="delete-item">
                             <text class="delete-label">{{ t('Documentary.tradingCenter.item32') }}</text>
-                            <text class="delete-value">{{ optObj[dialogFllowDataDelete.settlementCycle] || '--' }}</text>
+                            <text class="delete-value">{{ optObj[dialogFllowDataDelete.settlementCycle] || '--'
+                            }}</text>
                         </view>
                     </view>
                 </view>
@@ -940,7 +945,7 @@ const ApplyFllow = async () => {
             flag.value = false;
         }
     } catch (error) {
-        uni.showToast({title:error.msg, icon: 'none'});
+        uni.showToast({ title: error.msg, icon: 'none' });
     } finally {
         flag.value = false;
     }
@@ -1355,6 +1360,17 @@ onMounted(() => {
         }
     }
 
+    @media screen and (max-width: 768px) {
+        .delete-item {
+            &:first-child {
+                padding-right: px2rpx(0);
+            }
+            &:last-child {
+                padding-left: px2rpx(0);
+            }
+        }
+    }
+
     .delete-label {
         font-size: px2rpx(14);
         color: var(--bs-body-color);