king
2024-07-04 724dad9636a53fb509c1cabf0b12dc35ae269ceb
Merge branch 'master' into positec
8个文件已修改
65 ■■■■■ 已修改文件
src/assets/img/map.jpg 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/actionform/index.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/mobshell/card.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/modulesource/option.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pc/components/login/normal-login/signform.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pc/createview/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobdesign/menuform/index.jsx 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/img/map.jpg

src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -547,6 +547,11 @@
        }
      } else if (_funcType === 'shareLink') {
        shows.push('shortUrl', 'shareUrl', 'shareProUrl', 'shareTip')
      } else if (_funcType === 'openLocation') {
        shows.push('Ot')
        if (Ot === 'requiredSgl') {
          shows.push('nameField', 'addressField')
        }
      // } else if (_funcType === 'expPdf') {
      //   shows.push('exportType')
      }
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -18,6 +18,11 @@
  let type = ''
  let alltype = config.type + '_' + config.subtype
  columns = columns.map(item => ({
    value: item.field,
    text: `${item.label}(${item.field})`
  }))
  if (card.eleType === 'button') {
    type = 'card'
  } else if (config.subtype === 'datacard' || config.subtype === 'tablecard' || config.subtype === 'dualdatacard') {
@@ -211,6 +216,7 @@
      { value: 'copyurl', text: '复制链接地址' },
      { value: 'expPdf', text: '导出PDF' },
      { value: 'shareLink', text: '分享链接' },
      { value: 'openLocation', text: '打开地图'},
      { value: 'logout', text: '退出' },
      { value: 'goBack', text: '返回' },
    ]
@@ -857,6 +863,25 @@
      }]
    },
    {
      type: 'select',
      key: 'nameField',
      label: '位置名字段',
      initVal: card.nameField || '',
      tooltip: '打开地图时可展示位置名与详细地址,请绑定数据源字段集,经纬度请使用latitude、longitude且经纬度不可为空。',
      required: false,
      allowClear: true,
      options: columns
    },
    {
      type: 'select',
      key: 'addressField',
      label: '地址字段',
      initVal: card.addressField || '',
      required: false,
      allowClear: true,
      options: columns
    },
    {
      type: 'radio',
      key: 'shortUrl',
      label: '短链接',
@@ -1151,10 +1176,7 @@
      required: false,
      allowClear: true,
      forbid: position !== 'line',
      options: columns.map(item => ({
        value: item.field,
        text: `${item.label}(${item.field})`
      }))
      options: columns
    },
    {
      type: 'radio',
@@ -1371,10 +1393,7 @@
      initVal: card.controlField || '',
      required: true,
      allowClear: true,
      options: columns.map(item => ({
        value: item.field,
        text: `${item.label}(${item.field})`
      }))
      options: columns
    },
    {
      type: 'text',
src/mob/mobshell/card.jsx
@@ -31,7 +31,6 @@
const Timeline = asyncComponent(() => import('@/menu/components/timeline/normal-timeline'))
const OfficialAccount = asyncComponent(() => import('@/mob/components/official'))
const ShareCode = asyncComponent(() => import('@/mob/components/sharecode'))
const TxMap = asyncComponent(() => import('@/mob/components/txmap'))
const Iframe = asyncComponent(() => import('@/menu/components/iframe'))
const DoubleDataCard = asyncComponent(() => import('@/menu/components/card/double-data-card'))
@@ -151,8 +150,6 @@
      return (<Iframe card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
    } else if (card.type === 'sharecode') {
      return (<ShareCode card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
    } else if (card.type === 'map') {
      return (<TxMap card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
    }
  }
src/mob/modulesource/option.jsx
@@ -28,7 +28,7 @@
import officialAccount from '@/assets/mobimg/guanzhu.jpg'
import Iframe from '@/assets/img/newpage.jpg'
import Share from '@/assets/mobimg/share.jpg'
import MkMap from '@/assets/img/map.jpg'
// import MkMap from '@/assets/img/map.jpg'
// 组件配置信息
export const menuOptions = [
@@ -62,7 +62,7 @@
  { type: 'menu', url: SandBox, component: 'code', subtype: 'sandbox', title: '自定义', width: 24 },
  { type: 'menu', url: group, component: 'group', subtype: 'normalgroup', title: '分组', width: 24 },
  { type: 'menu', url: Login, component: 'login', subtype: 'normallogin', title: '注册/登录', width: 24 },
  { type: 'menu', url: MkMap, component: 'map', subtype: 'txmap', title: '地图', width: 24, adapter: 'mini' },
  // { type: 'menu', url: MkMap, component: 'map', subtype: 'txmap', title: '地图', width: 24, adapter: 'mini' },
  { type: 'menu', url: officialAccount, component: 'officialAccount', subtype: 'officialAccount', title: '关注公众号(小程序中)', width: 24, adapter: 'mini' },
  { type: 'menu', url: Share, component: 'sharecode', subtype: 'sharecode', title: '分享码', width: 24 },
  { type: 'menu', url: Iframe, component: 'iframe', subtype: 'iframe', title: 'iframe', width: 24 }
src/pc/components/login/normal-login/signform.jsx
@@ -42,7 +42,7 @@
      } else if (way === 'weixin') {
        signWays.push({
          type: 'weixin',
          label: '微信登录',
          label: '手机号快捷登录',
          icon: <WechatOutlined />,
          sort: 3
        })
@@ -79,7 +79,7 @@
        } else if (way === 'weixin') {
          signWays.push({
            type: 'weixin',
            label: '微信登录',
            label: '手机号快捷登录',
            sort: 3
          })
        }
src/pc/createview/index.jsx
@@ -175,6 +175,10 @@
              config.components = this.collectTB(config.components)
              config.version = 2.0
            }
            if (_config.getLocation) {
              config.getLocation = _config.getLocation
            }
          }
  
          param.LongParam = window.btoa(window.encodeURIComponent(JSON.stringify(config)))
src/views/mobdesign/menuform/index.jsx
@@ -21,9 +21,9 @@
  state = {}
  componentDidMount() {
    const { config, adapters } = this.props
    const { config } = this.props
    if (adapters.includes('wxmini') && config.getLocation === 'true') {
    if (config.getLocation === 'true') {
      window.GLOB.getLocation = true
    }
  }
@@ -289,9 +289,9 @@
              )}
            </Form.Item>
          </Col> : null}
          {adapters.includes('wxmini') ? <Col span={24}>
          <Col span={24}>
            <Form.Item label={
              <Tooltip placement="topLeft" title="开启时,在小程序中可获取用户所在经纬度。">
              <Tooltip placement="topLeft" title="开启后数据源中将替换 @mk_longitude@、@mk_latitude@,在小程序中将获取用户所在经纬度。">
                <QuestionCircleOutlined className="mk-form-tip" />
                定位
              </Tooltip>
@@ -305,7 +305,7 @@
                </Radio.Group>
              )}
            </Form.Item>
          </Col> : null}
          </Col>
          {adapters.includes('weixin') || adapters.includes('wxmini') ? <Col span={24}>
            <Form.Item label={
              <Tooltip placement="topLeft" title="使用默认时请在子应用设置分享信息,使用url参数会使用上页参数替换相应字段(@field@)。注:使用自定义或url参数时会分享当前页面。">