import { View } from '@tarojs/components';
import { Form } from 'antd-mobile';
import FormLabel from '/components/FormLabel';
import FormImage from '/components/FormImage';

import styles from './index.module.less';

export default function Wxpay({ namePrefix }) {

  return (
    <View className={styles.container}>
      <Form.Item
        name={`${namePrefix}-weixin`}
        label='微信账号'
        childElementPosition='right'
      >
        <FormLabel />
      </Form.Item>
      <Form.Item
        name={`${namePrefix}-weixinName`}
        label='微信姓名'
        childElementPosition='right'
      >
        <FormLabel />
      </Form.Item>
      {/* <Form.Item
        name={`${namePrefix}-weixinImage`}
        label='收款码'
        childElementPosition='right'
      >
        <FormImage readonly width={72} height={72} />
      </Form.Item> */}
      {/* <Form.Item
        name='password'
        label='支付密码'
        rules={[{ required: true, message: '请输入支付密码' }]}
      >
        <Input type='password' placeholder='请输入支付密码' />
      </Form.Item> */}
    </View >
  )
}
