1 Unstar Star 0 Fork 1

毫末科技 / hm-taro-information-cardMIT

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
毫末Taro资讯卡片。兼容H5/APP/微信小程序/支付宝小程序/头条小程序/QQ小程序等 spread retract

Clone or download
index.jsx 2.00 KB
Copy Edit Web IDE Raw Blame History
taoning0403 authored 2020-03-12 18:01 . init
'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;

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/haomo/hm-taro-information-card.git
git@gitee.com:haomo/hm-taro-information-card.git
haomo
hm-taro-information-card
hm-taro-information-card
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542