Kaynağa Gözat

feat: 移动端新用户留资线索生成调整

cuiyalong 1 hafta önce
ebeveyn
işleme
459cfc6d24

+ 2 - 1
apps/mobile/src/views/uersales/newuser/index.vue

@@ -140,7 +140,8 @@
     </Dialog>
     <MobileLeavePopup
       ref="leavePopup"
-      static-info
+      use-center-layout
+      source-desc="新用户留资"
       :platform="$env.platform"
       get-container="body"
       :on-popup-visible-change="onPopupVisibleChange"

+ 5 - 1
plugins/leave-source/src/lib/mobile/content-popup.vue

@@ -22,6 +22,10 @@ const props = defineProps({
     type: String,
     default: '',
   },
+  useCenterLayout: {
+    type: Boolean,
+    default: false,
+  },
   onPopupVisibleChange: Function,
   popupTitle: {
     type: String,
@@ -47,7 +51,7 @@ const props = defineProps({
 })
 
 const center = computed(() => {
-  return props.staticInfo
+  return props.staticInfo || props.useCenterLayout
 })
 const contentTransitionName = computed(() => {
   return center.value ? 'fade' : 'slide-up'