|
@@ -145,7 +145,7 @@ class Index extends Component {
|
|
|
<Image className="i" src={phoneIcon}></Image>
|
|
|
{userInfoObj.phone}
|
|
|
</View>
|
|
|
- <Image className="st-img" src={userInfoObj.avatar}></Image>
|
|
|
+ <Image className="st-img" onClick={this.copyHandle.bind(this)} src={userInfoObj.avatar}></Image>
|
|
|
<View className="more">
|
|
|
<Image onClick={this.linkTo.bind(this, '/pagesRoom/follow/add')} className="b" src={btn1}></Image>
|
|
|
<Image onClick={this.linkTo.bind(this, '/pagesRoom/follow/history')} className="b t2" src={btn2}></Image>
|
|
@@ -155,6 +155,21 @@ class Index extends Component {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ copyHandle () {
|
|
|
+ const { userInfoObj } = this.state
|
|
|
+ Taro.setClipboardData({
|
|
|
+ data: userInfoObj.phone,
|
|
|
+ success: function (res) {
|
|
|
+ Taro.getClipboardData({
|
|
|
+ success: function (res) {
|
|
|
+ console.log(res.data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
callHandle (phoneNumber) {
|
|
|
Taro.makePhoneCall({
|
|
|
phoneNumber
|