代码拉取完成,页面将自动刷新
'use strict';
import Taro, { Component } from '@tarojs/taro';
import { View, Text, Image } from '@tarojs/components';
import styles from './style.js';
import titleImg from './images/img_24030_0_1.png'
import shoucang from './images/img_24030_0_0.png'
class HmInformationCard extends Component {
constructor(props) {
super(props);
let defaultState = {
tag: '阿杰',
alexander: '阿雷',
data: '星期三',
titleImg,
summary: '全息用户界面提供输入到电子或机电设备通过通过手指通过复制全息图像什么',
word: '…',
shoucang,
num: '783',
like: '喜欢'
};
this.state = Object.assign(defaultState, JSON.parse(JSON.stringify(props)));
}
render() {
return (
<View style={styles.hmInformationCard}>
<View style={styles.box}>
<View style={styles.hd}>
<View style={styles.container}>
<View style={styles.tagWrap}>
<Text style={styles.tag}>{this.state.tag}</Text>
</View>
<View style={styles.nameClass}>
<View style={styles.wrap}>
<Text style={styles.alexander}>{this.state.alexander}</Text>
</View>
<View style={styles.dataClass}>
<Text style={styles.data}>{this.state.data}</Text>
</View>
</View>
</View>
<Image style={styles.titleImg} src={this.state.titleImg} />
</View>
<View style={styles.summaryClass}>
<Text style={styles.summary}>{this.state.summary}</Text>
<Text style={styles.word}>{this.state.word}</Text>
</View>
<View style={styles.ft}>
<Image style={styles.shoucang} src={this.state.shoucang} />
<Text style={styles.num}>{this.state.num}</Text>
<Text style={styles.like}>{this.state.like}</Text>
</View>
</View>
</View>
);
}
}
export default HmInformationCard;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。