/**
 * 图片
 */

import Taro, { Component, Config } from '@tarojs/taro';
import { ComponentClass } from 'react';
import { View } from '@tarojs/components';

import WImage from './../../components/wImage/index';
import { IPageState, IProps, IPageOwnProps } from './wImage.itf'

import './wImage.scss';

/**
 * 类的属性
 */
interface WImage {
  props: IProps;
  // this的属性可以在这里定义
}

class WImage extends Component {
  config: Config = {
    navigationBarTitleText: '图片'
  };

  state: IPageState = {};

  componentDidMount() { }

  componentDidShow() { }

  render() {
    return (
      <View className='wImage-page'>
        <WImage src={'https://ceshiapi.58wld.com/images/login/sdf.png'}
          type='store'
          key='storeIcon'
        />
      </View>
    );
  }
}
export default WImage as ComponentClass<IPageOwnProps, IPageState>;

