From b09b821ef36fd1ea979e9a5daa98e95732ac81d5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 16 七月 2025 18:16:00 +0800 Subject: [PATCH] 2025-07-16 --- src/pc/quotecomponent/index.jsx | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/pc/quotecomponent/index.jsx b/src/pc/quotecomponent/index.jsx index 11426ac..271fc60 100644 --- a/src/pc/quotecomponent/index.jsx +++ b/src/pc/quotecomponent/index.jsx @@ -3,8 +3,6 @@ import { is, fromJS } from 'immutable' import { Button, Modal, notification } from 'antd' -import zhCN from '@/locales/zh-CN/model.js' -import enUS from '@/locales/en-US/model.js' import SettingForm from './settingform' import Api from '@/api' import './index.scss' @@ -16,7 +14,6 @@ } state = { - dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, visible: false, } @@ -48,10 +45,10 @@ return } - Api.getSystemConfig({ + Api.getCloudConfig({ func: 'sPC_Get_LongParam', TypeCharOne: sessionStorage.getItem('kei_no'), - typename: 'pc', + typename: sessionStorage.getItem('typename') || 'pc', MenuID: res.keys_id }).then(result => { if (!result.status) { @@ -84,6 +81,12 @@ config.components.unshift(_config) + if (sessionStorage.getItem('appType') !== 'pc' && !config.style.paddingBottom) { + config.style.paddingBottom = '50px' + } else if (sessionStorage.getItem('appType') === 'pc' && !config.style.paddingTop) { + config.style.paddingTop = '50px' + } + this.setState({ visible: false }) @@ -94,23 +97,22 @@ render () { const { config } = this.props - const { visible, dict } = this.state + const { visible } = this.state return ( <div className="quote-wrap"> - <Button icon="appstore" onClick={() => {this.setState({visible: true})}}>缁勪欢寮曠敤</Button> + <Button icon="appstore" onClick={() => {this.setState({visible: true})}}>鍏宠仈鑿滃崟鏍�</Button> <Modal - title="缁勪欢寮曠敤" + title="鍏宠仈鑿滃崟鏍�" visible={visible} width={500} maskClosable={false} - okText={dict['model.submit']} + okText="鎻愪氦" onOk={this.verifySubmit} onCancel={() => { this.setState({ visible: false }) }} destroyOnClose > <SettingForm - dict={dict} config={config} wrappedComponentRef={(inst) => this.verifyRef = inst} /> -- Gitblit v1.8.0